• 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
Restricted FontPanel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Restricted FontPanel


  • Subject: Restricted FontPanel
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Sun, 26 May 2013 18:48:30 +0700

I want (on OS X 10.8.3) to show a font panel, which only has nice fonts (e.g. only fonts which are able to show "门").

There is a delegate method of NSFontManager:
- (BOOL)fontManager:(id)theFontManager willIncludeFont:(NSString *)fontName
Requests permission from the Font panel delegate to display the given font name in the Font panel.

Looks exactly the thing I need.

But then the documentation ends with:
Important:  This delegate method is not called in OS X versions 10.3 and later.

So: how to display a restricted Font Panel in 10.8?

Gerriet.


P.S.
NSFontPanel has this method:
reloadDefaultFontFamilies
"Triggers a reload to the default state, so that the delegate is called."

But there is no delegate for a FontPanel. There is a NSWindow delegate, but this does not help much.

Somehow either I or the documentation is a bit confused.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Restricted FontPanel
      • From: Uli Kusterer <email@hidden>
    • Re: Restricted FontPanel
      • From: email@hidden
  • Prev by Date: Re: what does "err = Resource busy" mean?
  • Next by Date: Re: what does "err = Resource busy" mean?
  • Previous by thread: Re: what does "err = Resource busy" mean?
  • Next by thread: Re: Restricted FontPanel
  • Index(es):
    • Date
    • Thread