• 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
NSApplicationMain() doesn't set NSApp to my subclass
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSApplicationMain() doesn't set NSApp to my subclass


  • Subject: NSApplicationMain() doesn't set NSApp to my subclass
  • From: "Christopher Hickman" <email@hidden>
  • Date: Wed, 17 Aug 2005 16:03:11 -0400

I have an app with a subclass of NSApplication, called SWLApplication.  I've
set the custom class of File's Owner in MainMenu.nib to my subclass and I've
changed my principal class to SWLApplication in my application's target in
Xcode, but when I run my app NSApplicationMain() doesn't initialize the
NSApp global with an instance of my subclass.  Instead, NSApp is an
NSApplication instance.

Am I missing a step somewhere?

Any hints are appreciated.

Thanks,
Topher


 _______________________________________________
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

  • Follow-Ups:
    • Re: NSApplicationMain() doesn't set NSApp to my subclass
      • From: "John C. Randolph" <email@hidden>
    • RE: NSApplicationMain() doesn't set NSApp to my subclass
      • From: "Christopher Hickman" <email@hidden>
  • Prev by Date: init toolbar item frame with custom view (Was: tooltip event/notification?)
  • Next by Date: Re: Anyone used iTableColumnHeader?
  • Previous by thread: init toolbar item frame with custom view (Was: tooltip event/notification?)
  • Next by thread: RE: NSApplicationMain() doesn't set NSApp to my subclass
  • Index(es):
    • Date
    • Thread