• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
[repost] Using NSFontPanel in a prefPane ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[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.

  • Follow-Ups:
    • Re: [repost] Using NSFontPanel in a prefPane ?
      • From: Scott Anguish <email@hidden>
  • Prev by Date: Re: open file
  • Next by Date: Re: Drawing Directly onto an NSWindow
  • Previous by thread: Re: Simple #import question
  • Next by thread: Re: [repost] Using NSFontPanel in a prefPane ?
  • Index(es):
    • Date
    • Thread