Skip navigation.
 
mlIBPalettes
FROM : Livio Isaia
DATE : Thu Aug 31 17:38:26 2006

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.

Related mailsAuthorDate
mlIBPalettes Livio Isaia Aug 31, 17:38
mlRe: IBPalettes Conor Dearden Aug 31, 21:49