Re: Getting notification about new font is available
Re: Getting notification about new font is available
- Subject: Re: Getting notification about new font is available
- From: "Rimas M." <email@hidden>
- Date: Wed, 07 Sep 2011 13:33:30 +0300
Hello Martin,
Thank you - that helped. And, as you have mentioned, additional checking is
required due to "unnecessary" update calls.
Regards,
p.s. I still don't like Xcode 4. I have overlooked NSFont's class
notifications because of removed TOC at documentation viewer.
Rimas M.
On Tue, Sep 6, 2011 at 9:21 PM, Martin Wierschin <email@hidden> wrote:
> > During weekend I was trying to figure out how to know when new font
> becomes available.
>
> You can use NSFontSetChangedNotification:
>
>
> http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ApplicationKit/Classes/NSFont_Class/Reference/Reference.html
>
> Though in my experience it's posted a lot more often than necessary, so you
> might want to pay attention to how much work you do in response, or
> delay/batch your work.
>
> ~Martin
>
>
_______________________________________________
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