• 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: Getting font color change messages in view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting font color change messages in view


  • Subject: Re: Getting font color change messages in view
  • From: Gideon King <email@hidden>
  • Date: Fri, 9 Apr 2004 07:23:03 +1000

Thanks for the suggestion, but it is a custom view, so this doesn't work (even if I implement the methods in my view).

The best suggestion I have had so far is to set the target and action of the color panel manually, and then have logic in my application to determine what the context is in order to process the color change appropriately. This would be pretty difficult to do in my application, so am still looking for a better solution.

Gideon

On Friday, April 9, 2004, at 03:20 AM, Scott Thompson wrote:

On Apr 7, 2004, at 6:19 PM, Gideon King wrote:

I have a view where I want to pick up all the changes to a font.

I use the changeFont: method to pick up font changes, but when I change the font color using the color panel opened by the font panel, I get no changeFont: messages. I also tried using changeColor:, but that only gets called when the color panel was *not* opened from the font panel.

TextFields pick up the colors as they are changed, so there is obviously some sort of message or notification being sent, but I can't see it mentioned anywhere in the documentation. The only other related posting I have seen in the archives is someone else asking the same question - does anyone have an answer?


Are you using a custom view or something like an NSTextView? With NSTextView when the color of the text changes you can catch it in either "textView:shouldChangeTextInRange:replacementString" or "textDidChange:"

Scott
_______________________________________________
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.
_______________________________________________
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.


References: 
 >Re: Getting font color change messages in view (From: Scott Thompson <email@hidden>)

  • Prev by Date: Re: fileExistsAtPath: NO means YES? (Doc error)
  • Next by Date: RE: Simple question: How do you store a sender's ID?
  • Previous by thread: Re: Getting font color change messages in view
  • Next by thread: Can't build OCUnit example
  • Index(es):
    • Date
    • Thread