Skip navigation.
 
ml[repost] Using NSFontPanel in a prefPane ?
FROM : Yann Bizeul
DATE : Fri Nov 29 16:22:59 2002

Hi,

I have problems using NSFontManager and NSFontPanel into a
preferencePane, and I know this is possible, like in TinkerTool.
I open the NSFontPanel successfully, but never called when changing the
selection of it.

    [[ NSFontManager sharedFontManager ] setDelegate: self ];
    [[ NSFontManager sharedFontManager ] setEnabled: YES ];

And then changeFont: method is never called. I also tried to subclass
NSFontManager without success, I'm afraid the delegate is only for
validating which font to show.
   - (void)changeFont:(id)sender
   {
       NSLog(@"changeFont");
   }
My changeFont: method is in my NSPreferencePane subclass, which is the
first responder of the prefPane.

I think the System Preferences application get the changeFont without
passing it to me, how to solve this problem ?

--
Yann Bizeul
TYNSOE.ORG - http://www.tynsoe.org/
Site technique consacri ` MacOS X
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Related mailsAuthorDate
ml[repost] Using NSFontPanel in a prefPane ? Yann Bizeul Nov 29, 16:22
mlRe: [repost] Using NSFontPanel in a prefPane ? Scott Anguish Nov 30, 00:10
mlRe: [repost] Using NSFontPanel in a prefPane ? Yann Bizeul Nov 30, 09:57
mlRe: [repost] Using NSFontPanel in a prefPane ? Scott Anguish Nov 30, 21:30
mlRe: [repost] Using NSFontPanel in a prefPane ? Yann Bizeul Dec 1, 22:50
mlRe: [repost] Using NSFontPanel in a prefPane ? Dustin Voss Dec 6, 06:30
mlRe: [repost] Using NSFontPanel in a prefPane ? Scott Anguish Dec 6, 06:34
mlRe: [repost] Using NSFontPanel in a prefPane ? Dustin Voss Dec 11, 07:21