Question regarding NSDocument loading order...
Question regarding NSDocument loading order...
- Subject: Question regarding NSDocument loading order...
- From: Darren Ford <email@hidden>
- Date: Sat, 11 Oct 2003 01:05:16 +1000
Hi all,
I have an NSDocument inherited class (in a multiple document
application), and I'm attempting to add 'Open...' file functionality,
which should open a new window and populate the UI elements with the
data from the file.
My question is, the 'readFromFile' method on my document class gets
called before the connections are made to the ui elements in the nib
(eg. NSTextField outlets etc. are nil). Since the data i'm loading
from the file needs to be displayed on the ui, at which point (or in
which overridden method) should i be populating the outlets to display
the data in the associated window?
Or, am I going around this in entirely the wrong way?
Thanks in advance...
Darren.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.