Re: NSFontManager changeFont not called
Re: NSFontManager changeFont not called
- Subject: Re: NSFontManager changeFont not called
- From: Scott Anguish <email@hidden>
- Date: Mon, 24 Jun 2002 07:26:30 -0400
On Monday, June 24, 2002, at 06:30 AM, Alexander Veenendaal wrote:
I am having issues trying to get the font panel to send a changeFont:
message to my NSView subclass. A similar problem has been asked a few
times before:
http://cocoa.mamasam.com/COCOADEV/2001/10/1/13875.php
Is the view that you're attempting to send the changeFont: message
to able to accept first responder?
This isn't something you should be messing with delegates for..
It looks like the whole delegate documentation there might be
hosed... it seems that there is an additional header in there 'Methods
Implemented by Responders' which the changeFont: is listed under...
Yep.. if you look at the headers, you'll see that there is only a
single delegate method, and it is fontManager:willIncludeFont: totally
unrelated... so, it's a documentation bug...
Oh, and you did see that there is a warning in the changeFont:
documentation that selectedFont is NOT reliable at that point..
look at this instead...
http://developer.apple.com/techpubs/macosx/Cocoa/TasksAndConcepts/ProgrammingTopics/
FontHandling/Tasks/RespondingToFontChanges.html
or, if you don't mind muddling through code that hasn't been moved
to Cocoa yet, but is applicable (it's for setting a font as a default in
a panel)
http://www.stepwise.com/Articles/Technical/HTMLEditor/HTMLEditor-5.html
_______________________________________________
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.