• 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: Customising NSFontManager
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Customising NSFontManager


  • Subject: Re: Customising NSFontManager
  • From: Roland King <email@hidden>
  • Date: Wed, 18 Nov 2015 08:46:10 +0800

> On 18 Nov 2015, at 08:26, Graham Cox <email@hidden> wrote:
>
>
> Anyone know what NSFontManager’s designated initializer is?
>
> I have set the Font Manager’s factory class to my subclass of NSFontManager is previously discussed, but its -init method is never called. The Font Manager object is part of MainMenu.xib, which has ‘prefer coder’ unchecked. In any case, NSFontManager doesn’t implement NSCoding so it does not appear to expect -initWithCoder: anyway.
>
> —Graham
>
>

The documentation claims it’s init()

"Your font manager class should implement init as its designated initializer.”

It also seems to indicate that having it part of MainMenu.xib is too late

"This method must be invoked before your application’s main nib file is loaded, such as in the application delegate’s applicationWillFinishLaunching: method."
_______________________________________________

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: Customising NSFontManager
      • From: Graham Cox <email@hidden>
References: 
 >Customising NSFontManager (From: Graham Cox <email@hidden>)
 >Re: Customising NSFontManager (From: Ken Thomases <email@hidden>)
 >Re: Customising NSFontManager (From: Graham Cox <email@hidden>)
 >Re: Customising NSFontManager (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: a question concerning how to fire a message at the beginning of my application
  • Next by Date: Installing older OS X
  • Previous by thread: Re: Customising NSFontManager
  • Next by thread: Re: Customising NSFontManager
  • Index(es):
    • Date
    • Thread