Custom NSControl is not visible when dropped on a window from IB3.1 Library
Custom NSControl is not visible when dropped on a window from IB3.1 Library
- Subject: Custom NSControl is not visible when dropped on a window from IB3.1 Library
- From: Richard Humiston <email@hidden>
- Date: Sun, 4 Jan 2009 21:41:36 -0500
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@hidden)
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:
This email sent to email@hidden