• 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: Loading a nib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • RE: Loading a nib
      • From: "john darnell" <email@hidden>
References: 
 >Loading a nib (From: "john darnell" <email@hidden>)

  • Prev by Date: Bound NSTreeNode - Inserting Children
  • Next by Date: -insertNewline: and -insertLineBreak:, using the shift key modifier
  • Previous by thread: Loading a nib
  • Next by thread: RE: Loading a nib
  • Index(es):
    • Date
    • Thread