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

Re: Showing a NSPanel


  • Subject: Re: Showing a NSPanel
  • From: Nick Zitzmann <email@hidden>
  • Date: Wed, 1 Dec 2010 17:03:08 -0700

On Dec 1, 2010, at 4:43 PM, email@hidden wrote:

> The code below explodes on the loadNibNamed call but I have done this many times ... where am I wrong?

I'd recommend you scrap what you're doing and try it again using an NSWindowController subclass, with that subclass as the nib's file owner and the window as a top-level object. It will simplify a great many things regarding loading and opening windows. I would also recommend against subclassing NSWindow or NSPanel unless you have a really good reason for doing so.

Nick Zitzmann
<http://www.chronosnet.com/>

_______________________________________________

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

References: 
 >Showing a NSPanel (From: email@hidden)

  • Prev by Date: Re: Keeping track of state in Cocoa
  • Next by Date: Re: Keeping track of state in Cocoa
  • Previous by thread: Showing a NSPanel
  • Next by thread: Re: Showing a NSPanel
  • Index(es):
    • Date
    • Thread