Re: NSTableView questions
Re: NSTableView questions
- Subject: Re: NSTableView questions
- From: "I. Savant" <email@hidden>
- Date: Tue, 25 Sep 2007 13:59:47 -0400
On 9/25/07, I. Savant <email@hidden> wrote:
> > set up the data source array in the initialization of your controlling
> > object. so if you have AppController with an NSMutableArray property you
> > would setup initialize / setup the data source array in AppControllers
> > init. i guess this assumes you have AppController instantiated in your nib
> > file
As a followup:
http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Protocols/NSNibAwaking_Protocol/Reference/Reference.html
"Because the order in which objects are instantiated from an archive
is not guaranteed, your initialization methods should not send
messages to other objects in the hierarchy. Messages to other objects
can be sent safely from within awakeFromNib—by which time it's assured
that all the objects are unarchived and initialized (though not
necessarily awakened, of course)."
--
I.S.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden