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.
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 mails | Author | Date |
|---|---|---|
| Yann Bizeul | Nov 29, 16:22 | |
| Scott Anguish | Nov 30, 00:10 | |
| Yann Bizeul | Nov 30, 09:57 | |
| Scott Anguish | Nov 30, 21:30 | |
| Yann Bizeul | Dec 1, 22:50 | |
| Dustin Voss | Dec 6, 06:30 | |
| Scott Anguish | Dec 6, 06:34 | |
| Dustin Voss | Dec 11, 07:21 |






Cocoa mail archive

