• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Custom NSControl is not visible when dropped on a window from IB3.1 Library
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom NSControl is not visible when dropped on a window from IB3.1 Library


  • Subject: Re: Custom NSControl is not visible when dropped on a window from IB3.1 Library
  • From: Jonathan Hess <email@hidden>
  • Date: Tue, 6 Jan 2009 17:44:46 -0800

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@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

_______________________________________________

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


References: 
 >Custom NSControl is not visible when dropped on a window from IB3.1 Library (From: Richard Humiston <email@hidden>)

  • Prev by Date: Re: Maintaining mutable values with NSDictionaryControllerKeyValuePair
  • Next by Date: Re: .DS_Store files, dirContentsAtPath? (newb)
  • Previous by thread: Re: Custom NSControl is not visible when dropped on a window from IB3.1 Library
  • Next by thread: Overlay controls a la iTunes and QuickTime
  • Index(es):
    • Date
    • Thread