Grief with porting IB palettes to plugins
Grief with porting IB palettes to plugins
- Subject: Grief with porting IB palettes to plugins
- From: Ricky Sharp <email@hidden>
- Date: Thu, 1 Nov 2007 17:51:30 -0500
I unfortunately assumed that porting my IB palettes would be fairly
straightforward. I just cannot get anything to work in IB's simulator.
All my plugins suffer the same fate as the ClockControlPalette
sample. I can drag items from the library over to say a window.
Running will always crash the simulator and in the console I get the
same report:
2007-11-01 17:44:45.457 IBCocoaSimulator[6464:10b] An uncaught
exception was raised
2007-11-01 17:44:45.458 IBCocoaSimulator[6464:10b] *** -
[NSKeyedUnarchiver decodeObjectForKey:]: cannot decode object of class
(ClockControl)
11/1/07 5:44:45 PM IBCocoaSimulator[6464] *** Terminating app due to
uncaught exception 'NSInvalidUnarchiveOperationException', reason:
'*** -[NSKeyedUnarchiver decodeObjectForKey:]: cannot decode object of
class (ClockControl)'
Or, in my own palettes, I see <my_object_name> instead of
ClockControl. All my custom objects conform to NSCoding. I even had
my implementations only do a call to super.
I even removed all ivars from a custom view and simply just had a
drawRect: with...
[[NSColor blackColor] set];
NSRectFill ([self bounds]);
What gives? Has anyone been able to get ClockControl to work. Or,
more importantly, their own IB plugins to work in the simulator?
Finally, it appears that ClockControl is the only sample code for the
new ibplugin architecture? If so, that's really sad.
I know that if I can ever get past this brick wall, I'm hoping to
provide a much richer example which would show:
* plain vanilla NSView subclass
* a "container" class
* a control with cell
* NSMatrix subclass
* formatter
* custom bindings
___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Founder & President
Instant Interactive(tm) http://www.instantinteractive.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden