• 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
How to get NSColorPanel's target?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to get NSColorPanel's target?


  • Subject: How to get NSColorPanel's target?
  • From: Keith Renz <email@hidden>
  • Date: Mon, 18 Aug 2003 23:37:05 -0400

I'm setting NSColorPanel's shared instance's target to a custom view (no color well is being used). When I deallocate the view, I would like to decouple it from the color panel if it is the color panel's target by resetting the color panel's target and action to nil. I would like to ask the color panel what its target is, but there's no method to do so. I can get at the color panel's private _target instance variable with key value coding ([colorPanel valueForKey:@"target"]), but this isn't really kosher. Is there a better way to do this without manually keeping track of the color panel's target?

Thanks,

Keith
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: How to get NSColorPanel's target?
      • From: Neil Earnshaw <email@hidden>
  • Prev by Date: Re: Sharing models between buttons
  • Next by Date: AEWP and environment variables
  • Previous by thread: ... Multiple Documents in Single Window? ...
  • Next by thread: Re: How to get NSColorPanel's target?
  • Index(es):
    • Date
    • Thread