Hey Richard -

Did you implement encodeWithCoder: and initWithCoder: in your two classes? If so, did you remember to call through to super's implementation in each case? Also, does your cell correctly implement copyWithZone?

I'd put a breakpoint in the drawing functions of the cell to see why the cell isn't drawing as expected. I'd also try poking at the control with the debugger, to make sure all of its instance variables have expected values.

Jon Hess

On Jan 4, 2009, at 6:41 PM, Richard Humiston wrote:

I have a custom NSControl and custom NSCell. I created an IBPlugin and framework per IB Plugin programming guide, and also used the clock control example as a guide. My control appears (draws itself) in the library pane. When I drag the control to a window in IB, only a rectangle (made up of dots) appears. The inspector sees the control in the window, displays its settings, etc. I can drag the rect around the window and the control coordinates change in the inspector as expected. If I change settings and save the nib file, the changes are saved and appear when I next open the nib...but only the rectangle appears. I am not getting any errors, exceptions, etc in the debugger. I would append code if I knew where the issue was located. I am suspecting the the controls view is not inserted properly in the view hierarchy? Has anyone seen this issue. Any suggestions.

Rich
_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/jhess%40apple.com

This email sent to [email protected]

_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to