[SOLVED]: NSFontManager's delegate.
[SOLVED]: NSFontManager's delegate.
- Subject: [SOLVED]: NSFontManager's delegate.
- From: Hiro Fujimoto <email@hidden>
- Date: Fri, 20 Feb 2004 11:45:20 +0900
AndyT,
Thanks a lot, I could change looking of my texts by replacing
NSFontManager's action.
When I open the dialog, replace it to my original method
'changeOurFont:' via setAction: method,
And restore it to default at closing.
--
On 2004/02/19, at 22:58, Andrew Thompson wrote:
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.
------------------------------------------------------------------------
---------
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.