Re: connections and the nib lifecycle
Re: connections and the nib lifecycle
- Subject: Re: connections and the nib lifecycle
- From: Jack Repenning <email@hidden>
- Date: Wed, 21 May 2008 12:20:15 -0700
On May 21, 2008, at 11:00 AM, Vijay Malhan wrote:
But the problem is still open for discussion. Is there any
differences in sequence of events occurring while loading of Nib
between Tiger and Leopard platforms?
All UI-elements should be initialized by the time call reaches -
(void)awakeFromNib. This is ensured to happen on Mac OS X 10.4.
Has anyone seen problems in -awakeFromNib? I've noticed this shift to
lazy load, but I don't have any problems in my -awakeFromNib, only in
other routines of my own. The OP notes a problem in an "other"
routine as well, -test:. The dox don't guarantee anything about
"other routines," only about -awakeFromNib.
The dox also say, of -[NSWindowController window],
If the window has not yet been loaded, this method attempts to load
the window’s nib file usingloadWindow. Before it loads the window,
it invokes windowWillLoad, and if the window controller has a
document, it invokes the document's corresponding
methodwindowControllerWillLoadNib: (if implemented). After loading
the window, this method invokeswindowDidLoad and, if there is a
document, the NSDocument methodwindowControllerDidLoadNib: (if
implemented).
As illustrated in one of the replies in this thread, this means that -
window is at least one way to ensure that the window is actually
loaded. And that much is the same on Tiger and Leopard (that is,
calling [super window] makes it safe to assume the window is loaded
and bound).
I think there's a change in behavior between Tiger and Leopard, but I
think the change is within the undefined territory of the dox (and
therefore legal, even if significantly troublesome to us programmers).
-==-
Jack Repenning
email@hidden
Project Owner
SCPlugin
http://scplugin.tigris.org
"Subversion for the rest of OS X"
_______________________________________________
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