Re: NSApplication subclass and NSTabView
Re: NSApplication subclass and NSTabView
- Subject: Re: NSApplication subclass and NSTabView
- From: Greg Titus <email@hidden>
- Date: Fri, 21 Feb 2003 10:15:16 -0800
On Friday, February 21, 2003, at 10:06 AM, Bruno Blondeau wrote:
My application uses a NSApplication subclass and it seems the NSTabView
tries to access NSApp directly instead of my subclass.
Can anyone help me? Is this a bug in Cocoa?
Nope, it's a bug in the way that you are trying to use an NSApplication
subclass.
You should never create an NSApplication object yourself. If you want
to use a subclass in your app, just go into the Target settings in
Project Builder, click on Info.plist Entries, Simple View,
Cocoa-Specific, and change the Principal class field from
"NSApplication" to the name of your subclass.
This will make Cocoa use an instance of your subclass instead of an
NSApplication object.
Hope this helps,
- Greg
_______________________________________________
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.