Re: Custom app class and NSApplicationLoad
Re: Custom app class and NSApplicationLoad
- Subject: Re: Custom app class and NSApplicationLoad
- From: Guy Meyer <email@hidden>
- Date: Thu, 9 Nov 2006 22:11:41 +0200
On Nov 9, 2006, at 12:53 PM, David Catmull wrote:
NSApplicationLoad seems to be ignoring the NSPrincipalClass item in
my app's plist, and just creating an instance of NSApplication
instead of my subclass. If I call [MyAppSubclass sharedApplication]
first, then NSApplicationLoad thinks it doesn't need to do
anything, and my Cocoa-in-Carbon windows don't work right.
So is there a way to get NSApplicationLoad to use a custom app class?
The reason I'm subclassing NSApplication is so I can add my own key
paths for bindings.
In addition to setting the NSPrincipalClass you should create a sub
class of NSApplication in your MainMenu.nib (with the same name) and
select it as your File's Owner
Guy
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden