NSApplication shared instance is now available in all NIB files in IB3. It's there for convenience.

File's owner is the object loading the nib. In general, it is NSApp only for MainMenu.nib (the first NIB to be loaded). In that NIB, both objects designate the same instance.

--
Julien

Sent from my iPhone

Le 8 mars 08 à 15:54, Trygve Inda <[EMAIL PROTECTED]> a écrit :

In IB 2 there was only a File's Owner and First Responder and one typically
made an AppController object as a subclass of NSObject and made it a
delegate of File's Owner.

IB3 has added an NSApplication object. How does this work... It seems if my AppController is still the delegate of the File's Owner that the specific instance of NSApplication is not needed.... Since it is created at run time
anyway.

Thanks,

Trygve


_______________________________________________

Cocoa-dev mailing list ([email protected])

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/jjalon%40gmail.com

This email sent to [EMAIL PROTECTED]
_______________________________________________

Cocoa-dev mailing list ([email protected])

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]

Reply via email to