Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[repost] Using NSFontPanel in a prefPane ?



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.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.