• 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: NSTextView bound to NSColorWell?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextView bound to NSColorWell?


  • Subject: Re: NSTextView bound to NSColorWell?
  • From: "Shawn Erickson" <email@hidden>
  • Date: Tue, 28 Aug 2007 08:37:40 -0700

On 8/27/07, Daniel Platz <email@hidden> wrote:
> Hi there,
> I'm having kind of a problem with the NSColorWell. I'm writing a
> document-based cocoa application. There is a main window with a
> NSTextView and in a preference-panel i have a NSColorWell. Without
> doing anything (no bindings, really nothing!) the choosen color in
> the well automatically becomes the text-color in the NSTextView. Am I
> missing something?

<http://developer.apple.com/documentation/Cocoa/Conceptual/DrawColor/index.html#//apple_ref/doc/uid/10000082i>

"When you select a color in the panel, NSColorPanel sends a
changeColor: message to the first responder. It also sends its action
message (set by setAction:) to its target object (set by setTarget:),
provided that neither the action nor the target is nil. NSColorPanel
also sends its action to its target whenever you select a color in the
color panel."

-Shawn
_______________________________________________

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: 
 >NSTextView bound to NSColorWell? (From: Daniel Platz <email@hidden>)

  • Prev by Date: Re: NSOutlineView change a textfield for an NSButton (switch)
  • Next by Date: NSScrollerView Problem
  • Previous by thread: Re: NSTextView bound to NSColorWell?
  • Next by thread: constrain number input?
  • Index(es):
    • Date
    • Thread