• 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
NSColorWell inside a custom NSCell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSColorWell inside a custom NSCell


  • Subject: NSColorWell inside a custom NSCell
  • From: Bryan Hansen <email@hidden>
  • Date: Wed, 20 Apr 2011 23:17:09 -0700

I'm trying to develop a gradient control using multiple custom NSCells to control the gradient color locations. I'd like to have an NSColorWell contained within each cell. I have the interactions working correctly as they are all handled by the cell itself but can not seem to get the color wells to draw correctly. Using drawWellInside: has no affect and asking the well to drawRect: (which seems like a bad idea anyway) has strange results, drawing just the frame and always at the control frame's origin (it does not move with the cells as they are updated)

Am I on the right track with this? Is there a better way to get a bunch of movable colorwells within a custom control?

Thanks,
Bryan

_______________________________________________

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

  • Follow-Ups:
    • Re: NSColorWell inside a custom NSCell
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: iPad Files
  • Next by Date: computing values within NSTableView using bindings
  • Previous by thread: Re: iPad Files
  • Next by thread: Re: NSColorWell inside a custom NSCell
  • Index(es):
    • Date
    • Thread