• 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
NSColorPanel question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSColorPanel question


  • Subject: NSColorPanel question
  • From: Matthias Schmidt <email@hidden>
  • Date: Mon, 18 Jan 2010 14:39:56 +0100

Hello,
I'm a bit stuck with NSColorPanel, while trying to write a plugin for
another app, which should open the color picker, select a color, close
it and return the color.

I use this code here, but as soon as I click in the panel it is crashing:
-(void)setPicker:(id)sender {

    panel = [NSColorPanel sharedColorPanel ] ;
    [ panel setColor: myColor ];
    [ panel setMode: (NSColorPanelMode)pMode ];
    [ panel setContinuous: YES ];
    [ panel setTarget: sender ]; //myColor
    [ panel setAction: @selector( changeColor:) ];
    [ panel makeKeyAndOrderFront: nil ]; //self
}

I'd be happy, if someone could point me in the right direction

thanks
Matthias
_______________________________________________

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: NSColorPanel question
      • From: Steve Christensen <email@hidden>
    • Re: NSColorPanel question
      • From: Corbin Dunn <email@hidden>
  • Prev by Date: setting the searchResultsTableView of a UISearchDisplayController to grouped style
  • Next by Date: Re: [iphone] Release Navigation View Controller Question
  • Previous by thread: setting the searchResultsTableView of a UISearchDisplayController to grouped style
  • Next by thread: Re: NSColorPanel question
  • Index(es):
    • Date
    • Thread