Skip navigation.
 
mlRe: NSFontManager is ignoring my delegate methods...
FROM : Andrew Thompson
DATE : Sun Oct 31 23:17:53 2004

Well known "documentation bug".

Go reads the docs *really* closely - you'll see changeFont: isn't a
delegate method, its sent up the responder chain.
You can still catch it, but you need to be in the chain.

I don't know if fontManager:willIncludeFont: is the same.

AndyT

On Oct 31, 2004, at 12:17 PM, Jonathan del Strother wrote:

> My Cocoa controller calls this in its init method:
>
>     [[NSFontManager sharedFontManager] setDelegate:self];
>
> It later calls this when a button is pressed :
>
>     [[NSFontManager sharedFontManager] orderFrontFontPanel:self];
>
> I have 2 delegate methods:
>
> - (void)changeFont:(id)sender;
> - (BOOL)fontManager:(id)theFontManager willIncludeFont:(NSString
> *)fontName;
>
>
> But they're both ignored - I don't seem to be receiving anything back
> from the font panel.
>
> Any ideas what I might be missing?


AndyT (lordpixel - the cat who walks through walls)
A little bigger on the inside

        (see you later space cowboy ...)

Related mailsAuthorDate
mlNSFontManager is ignoring my delegate methods... Jonathan del Strot… Oct 31, 18:17
mlRe: NSFontManager is ignoring my delegate methods... Andrew Thompson Oct 31, 23:17
mlRe: NSFontManager is ignoring my delegate methods... Jonathan del Strot… Nov 1, 08:41