• 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: NSWindow and IBPlugins
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSWindow and IBPlugins


  • Subject: Re: NSWindow and IBPlugins
  • From: Kyle Sluder <email@hidden>
  • Date: Sun, 20 Jun 2010 10:13:11 -0700

On Sun, Jun 20, 2010 at 9:25 AM, Martin Pilkington <email@hidden> wrote:
> The issue is, when I then try to drag the window out of the library, IB throws an exception because (supposedly) NSWindow doesn't support archiving. Even if I make it try to add a plain NSWindow it does the same. I'm not quite sure what is happening as the docs for NSWindow says it does implement NSCoding via NSResponder. Here is the full log if I try to drag my window out of the library and click continue on the error that pops up:

NSWindow only implements NSCoding for legacy reasons, as per the
really big note at the top of the NSWindow documentation. IB doesn't
archive NSWindows in nibs; it archives instances of the private class
NSWindowTemplate.

I'm afraid you won't be able to do what you want to do. File an
enhancement request! In the meantime, you'll have to use standard
NSWindows and change their class on the Identity inspector.

--Kyle Sluder
_______________________________________________

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: 
 >NSWindow and IBPlugins (From: Martin Pilkington <email@hidden>)

  • Prev by Date: NSWindow and IBPlugins
  • Next by Date: Re: Getting Computer Name
  • Previous by thread: NSWindow and IBPlugins
  • Next by thread: NewStyle Preferences
  • Index(es):
    • Date
    • Thread