hello, i have a method and only is working if is call in awakefromnib but if i want to change the name of the method and call it when i want then is not working ¿somebody can tell me why?, and how to run this method no in awakefromnib.
The application is one tableview and there is set the sentence "Entity number", there are two bindings, one for an Array controller
to the appcontroller set to "list",and another in the table column, bind to the Array controller, well how i say this works but only from awakefromnib...
-(void) awakeFromNib
{
list = [ [ NSMutableArray alloc ] init ];
int i;
NSMutableArray *actualData;
for( i =0; i< 4; i++ )
{
DNBindingEntity *ent = [ [ DNBindingEntity alloc ] init ];
[ ent setName: [ NSString stringWithFormat: @"Entity number %i", i ] ];
actualData = [ self list ];
[ actualData insertObject: ent atIndex: i ];
[ self setList: actualData ];
[ ent release ];
}
}
The application is one tableview and there is set the sentence "Entity number", there are two bindings, one for an Array controller
to the appcontroller set to "list",and another in the table column, bind to the Array controller, well how i say this works but only from awakefromnib...
-(void) awakeFromNib
{
list = [ [ NSMutableArray alloc ] init ];
int i;
NSMutableArray *actualData;
for( i =0; i< 4; i++ )
{
DNBindingEntity *ent = [ [ DNBindingEntity alloc ] init ];
[ ent setName: [ NSString stringWithFormat: @"Entity number %i", i ] ];
actualData = [ self list ];
[ actualData insertObject: ent atIndex: i ];
[ self setList: actualData ];
[ ent release ];
}
}