Re: Customising NSFontManager

2015-11-17 Thread Roland King
> On 18 Nov 2015, at 09:00, Graham Cox wrote: > >> >> On 18 Nov 2015, at 11:46 AM, Roland King wrote: >> >> >>> On 18 Nov 2015, at 08:26, Graham Cox wrote: >>> >>> >>> Anyone know what NSFontManager’s designated initializer is? >>> >>> I have set the Font Manager’s factory class to my su

Re: Customising NSFontManager

2015-11-17 Thread Graham Cox
> On 18 Nov 2015, at 11:46 AM, Roland King wrote: > > >> On 18 Nov 2015, at 08:26, Graham Cox 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 -i

Re: Customising NSFontManager

2015-11-17 Thread Roland King
> On 18 Nov 2015, at 08:26, Graham Cox 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 o

Re: Customising NSFontManager

2015-11-17 Thread Graham Cox
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 cas

Re: Customising NSFontManager

2015-11-13 Thread Graham Cox
Thanks- main() is the only place that works. I tried run() and even init() of the application, but even they were too late. It does prove my working theory - that NSTextView is accessing NSFontManager directly rather than using the sender passed to -changeFont:, even though Apple’s docs tell th

Re: Customising NSFontManager

2015-11-11 Thread Ken Thomases
On Nov 11, 2015, at 7:51 PM, Graham Cox wrote: > > According to the docs for NSFontManager: > > > + setFontPanelFactory: > Sets the class used to create the Font panel to the given class. > > Discussion > Invoke this method before accessing the Font panel in any way, such as in the > applicat

Customising NSFontManager

2015-11-11 Thread Graham Cox
According to the docs for NSFontManager: + setFontPanelFactory: Sets the class used to create the Font panel to the given class. Discussion Invoke this method before accessing the Font panel in any way, such as in the application delegate’s applicationWillFinishLaunching: method. I’m doing ex