• 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: NSFontManager's delegate.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSFontManager's delegate.


  • Subject: Re: NSFontManager's delegate.
  • From: Andrew Thompson <email@hidden>
  • Date: Thu, 19 Feb 2004 08:58:55 -0500

Its not a delegate method. The documentation is a little confused.
Look again carefully, you'll see changeFont: is a method sent up the responder chain, not a delegate method.

You can still work with it, but you need to receive it through something on the responder chain.

AndyT

On Feb 16, 2004, at 7:07 PM, Hiro Fujimoto wrote:

Hi, everyone.

I got a strange problem, need some advice.
I draw some string on window with attributes : color, font, so on.
I prepared dialog sheet for user to specified attributes or string to display.
Initialy, when the textfield is enabled but not activated (no insersion point),
my controller object can recieve changeFont: message from
NSFontManeger as delegate,
But if user started to edit the textfield, changeFont: message never sent.
I checked [[NSFontManager sharedFontManager] delegate] , it was still
my controller object, I subclassed the NSTextfield and overrided it's
changeFont: method, but it never recieved such message.
When I sent setEnabled:NO message to the field (and enabled again, the
field doesn't have insersion point in it yet), the controller became to be
able to receive changeFont: message. What eat my message?

Any advice?


----------------------------------------------------------------------- ----------
hiro FUJIMOTO - developer in Japan.
_______________________________________________
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.


AndyT (lordpixel - the cat who walks through walls)
A little bigger on the inside

(see you later space cowboy ...)
_______________________________________________
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:
    • [SOLVED]: NSFontManager's delegate.
      • From: Hiro Fujimoto <email@hidden>
    • Re: NSFontManager's delegate.
      • From: Hiro Fujimoto <email@hidden>
References: 
 >NSFontManager's delegate. (From: Hiro Fujimoto <email@hidden>)

  • Prev by Date: A 'small' NSMenu
  • Next by Date: Re: comboBox menu choice validation
  • Previous by thread: NSFontManager's delegate.
  • Next by thread: Re: NSFontManager's delegate.
  • Index(es):
    • Date
    • Thread