IB palette mojo
IB palette mojo
- Subject: IB palette mojo
- From: John Pannell <email@hidden>
- Date: Mon, 26 Dec 2005 22:18:40 -0700
Hi all-
I'm hoping there is an Interface Builder palette guru with nothing
better to do than answer newbie emails over the holidays... here's my
problem:
I'm trying to make my first IB palette, and encountering difficulty
when the image view representing my NSControl subclass gets dropped
onto anything in Interface Builder. IB immediately crashes, and the
stack trace looks like my view is getting released for no reason
(that I can discern). Here is the trace:
0 libobjc.A.dylib 0x909bf120 objc_msgSend + 32
1 com.apple.CoreFoundation 0x9076c954 CFArrayApplyFunction +
416
2 com.apple.AppKit 0x936b34f4 -[NSView _finalize] + 292
3 com.apple.AppKit 0x936b3398 -[NSView dealloc] + 48
4 com.apple.AppKit 0x93724328 -[NSControl dealloc] +
152
5 PSMTabBarControlFramework 0x04c3fb84 -[PSMTabBarControl
dealloc] + 120 (icplusplus.c:28)
6 com.apple.AppKit 0x93692284 -[NSView release] + 200
7 ...e.InterfaceBuilderFramework 0x961b1938 -[IBPointerKey
dealloc] + 40
8 com.apple.CoreFoundation 0x907538fc
__CFDictionaryDeallocate + 616
9 com.apple.CoreFoundation 0x9073d4f4 _CFRelease + 240
10 ...e.InterfaceBuilderFramework 0x961b2b90 -
[IBOrderedObjectContainer dealloc] + 140
....... etc (more below about dragging and dropping) ....
I am associating my view with the dragged image via...
_customControl = [[PSMTabBarControl alloc] initWithFrame:NSMakeRect
(0,0,180,22)];
[self associateObject:_customControl ofType:IBViewPboardType
withView:repImage];
I've come this far (palette and framework projects build, can be
installed) but have hit a wall with little supporting documentation.
I suspect it is the encode/decodeWithCoder methods within my control
and associated cells, but I have doubled checked their
implementation, and they seem to jive with other sample code (going
through my iVars and encoding and decoding).
Can anyone suggest any clues or places to look for some? Any help is
much appreciated!
john
John Pannell
Positive Spin Media
http://www.positivespinmedia.com
_______________________________________________
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