• 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
initWithWindowNibName returns null window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

initWithWindowNibName returns null window


  • Subject: initWithWindowNibName returns null window
  • From: David Farmer <email@hidden>
  • Date: Thu, 12 Apr 2007 19:14:49 -0500

Hello,

This might be very simple. I am attempting to add a window inside of an iTunes plugin. All of my custom dialog code is written in ObjC so I am calling a ObjC method from carbon. This works great. Once the code runs and the instance of the NSWindowController calls 'init' I call initWithWindowNibName. I assume the .nib was loaded as no error is logged in the console. windowDidLoad is called. Unfortunately, [self window] in the NSWindowCOntroller 'init' call returns NULL. I use the same code in an fxPlug with great success. I am using the performSelectorOnMainThread which I used elsewhere as well. The only difference I can find between the two executing is that [self window] is NULL in the new implementation. Any ideas?

Regards,
David Farmer
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: initWithWindowNibName returns null window
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: hey, who's enabling my window's close button?
  • Next by Date: My Slider has spikes
  • Previous by thread: Re: ScriptEditor thinks my command is a variable
  • Next by thread: Re: initWithWindowNibName returns null window
  • Index(es):
    • Date
    • Thread