• 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
Custom NSCell and target/action
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Custom NSCell and target/action


  • Subject: Custom NSCell and target/action
  • From: Vincent Habchi <email@hidden>
  • Date: Fri, 19 Nov 2010 15:17:23 +0100

Hi there,

I'm beginning to figure out something but I'd like to have some (even terse) comments.

I have created a custom subclass of NSCell that duplicates the behavior of a NSColorWell: It draws a small colored rectangle inside of its frame, and responds to a click by opening the shared color panel.

However, I would have liked to set my custom cell as the target of the shared color panel action, in order to refresh its color as the user moves inside the color panel. It failed. So the question is: is there a way to do this, or is it mandatory to connect the action to the NSControl object responsible for the cell (in my case, a table view).

Thanks a lot,
Vincent
_______________________________________________

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: Custom NSCell and target/action
      • From: Graham Cox <email@hidden>
  • Prev by Date: Codesign failure
  • Next by Date: Subclasses, protocols and properties - compiler warning
  • Previous by thread: Re: Codesign failure
  • Next by thread: Re: Custom NSCell and target/action
  • Index(es):
    • Date
    • Thread