Re: NSTextView bound to NSColorWell?
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