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 PROTECTED] Project Owner SCPlugin http://scplugin.tigris.org "Subversion for the rest of OS X" _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]