[repost] Using NSFontPanel in a prefPane ?
[repost] Using NSFontPanel in a prefPane ?
- Subject: [repost] Using NSFontPanel in a prefPane ?
- From: Yann Bizeul <email@hidden>
- Date: Fri, 29 Nov 2002 16:22:59 +0100
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@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.