• 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
Re: Knowing when font panel is visible
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Knowing when font panel is visible


  • Subject: Re: Knowing when font panel is visible
  • From: "email@hidden" <email@hidden>
  • Date: Sun, 04 Sep 2011 10:05:43 +0100

On 4 Sep 2011, at 08:40, Antonio Nunes wrote:

> I tried subclassing NSFontPanel by doing the following:
>
> - (void)applicationWillFinishLaunching:(NSNotification *)aNotification
> {
> 	[NSFontManager setFontPanelFactory:[MY_FontPanel class]];
> }
>
> but it doesn't appear to work. The font panel returned by [NSFontPanel sharedFontPanel] continues to be NSFontPanel, not MY_FontPanel.
>
> What I want to do is override orderFront: and orderOut: in my subclass so that I can send out some notifications whenever one of these is called.
>
> Why does my call to setFontPanelFactory: not work, and how can I best achieve my stated goal?

FWIW On OS X 10.7.1 I couldn't successfully change the font panel class either.

Regards

Jonathan Mitchell

Developer
Mugginsoft LLP
http://www.mugginsoft.com_______________________________________________

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: Knowing when font panel is visible
      • From: Antonio Nunes <email@hidden>
References: 
 >Knowing when font panel is visible (From: Antonio Nunes <email@hidden>)

  • Prev by Date: Re: typedef show up as existing type while introspecting, want to show defined data type
  • Next by Date: Re: Knowing when font panel is visible
  • Previous by thread: Re: Knowing when font panel is visible
  • Next by thread: Re: Knowing when font panel is visible
  • Index(es):
    • Date
    • Thread