initWithWindowNibName returns null window
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