• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSApplication subclass and NSTabView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: NSApplication subclass and NSTabView
      • From: Bruno Blondeau <email@hidden>
References: 
 >NSApplication subclass and NSTabView (From: Bruno Blondeau <email@hidden>)

  • Prev by Date: Re: 3 IB Qs: actions; view tags; NSWindow setFrame
  • Next by Date: Framework add-on
  • Previous by thread: NSApplication subclass and NSTabView
  • Next by thread: Re: NSApplication subclass and NSTabView
  • Index(es):
    • Date
    • Thread