Re: Loading a nib
Re: Loading a nib
- Subject: Re: Loading a nib
- From: Jens Alfke <email@hidden>
- Date: Wed, 11 Jun 2008 12:53:57 -0700
On 11 Jun '08, at 12:43 PM, john darnell wrote:
I stepped through
showNewDialog and initWithWindowNibName so I know that that code is
being executed, but the second window never makes an appearance.
My first guess would be that, in NewDialogController.nib, the "window"
outlet of the file's owner (the window controller) isn't wired up to
the window. That would prevent NSWindowController from being able to
find the window or display it.
(While you're in there, also make sure that the window's "delegate"
outlet is wired back to the File's Owner; various things go wrong if
it's not.)
This may not be your fault; I've noticed this happening to me lately
and I believe that in IB 3 the "Cocoa Window" nib template doesn't
have those outlets hooked up, unlike in the past. Known bug?
—Jens
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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