• 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
IBPalettes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

IBPalettes


  • Subject: IBPalettes
  • From: Livio Isaia <email@hidden>
  • Date: Thu, 31 Aug 2006 17:38:26 +0200

I'm trying to make a palette for IB, and just to start I use a very simple NSView subclass (named SimpleView: it merely draws itself in green and has absolutely nothing else to do).

Once created the palette I can put in IB successfully, then add it to a program's window(SimpleViewWindow.nib). But when I run the program it tells me:

"Exception raised during posting of notification. Ignored. exception: *** -[NSKeyedUnarchiver decodeObjectForKey:]: cannot decode object of class (SimpleView)"

I put initWithCoder: and encodeWithCoder: in SimpleView.m, but they just call super methods (what else should they do since there are no variables declared? The only thing SimpleView has of its own is the drawRect: method...).

I created the palette both with a related SimpleViewFramework and without, but the result is the same.

Any idea about?

Thanks in advance, livio.

P.S.: The same thing happens with the InterfaceBuilder examples (like ProgressView) that come with XCode.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Prev by Date: Re: Is this kind of desktop application possible in Cocoa ???
  • Next by Date: Re: Newbie: window resize aloud with code?
  • Previous by thread: Re: Is this kind of desktop application possible in Cocoa ???
  • Next by thread: Re: IBPalettes
  • Index(es):
    • Date
    • Thread