Programmatically adding objects to an ArrayController
Programmatically adding objects to an ArrayController
- Subject: Programmatically adding objects to an ArrayController
- From: Jesus De Meyer <email@hidden>
- Date: Tue, 16 May 2006 11:01:24 +0200
Hi (again),
I'm using an ArrayController to feed data to an NSTableView. However,
in my awakeFromNib method, I would like to add some standard data to
this ArrayController. The ArrayController is bound to a method that
returns an NSMutableArray for its contentArray field.
So to add an object to this array, do I have to do something like
this? Or is there a better way?
[myArrayController addObject:theObject];
[myArray addObject:theObject];
Thanks in advance,
Jesus
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden