• 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: NSFontManager is ignoring my delegate methods...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSFontManager is ignoring my delegate methods...


  • Subject: Re: NSFontManager is ignoring my delegate methods...
  • From: Jonathan del Strother <email@hidden>
  • Date: Mon, 1 Nov 2004 07:41:27 +0000

Ahh. Well, it's responding to changeFont now, at least.
Still no response for willIncludeFont, though.

I noticed this in the header file:
"This method is perhaps inappropriately named; it is sent to the delegate of the shared NSFontPanel instance, not to the delegate of the NSFontManager."
But even after setting the sharedFontPanel delegate, I'm not seeing anything...

Searching on Google, there seem to be a lot of people with the same problem. Has anyone got this working?

Jon

On 31 Oct 2004, at 22:17, Andrew Thompson wrote:

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 ...)


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
References: 
 >NSFontManager is ignoring my delegate methods... (From: Jonathan del Strother <email@hidden>)
 >Re: NSFontManager is ignoring my delegate methods... (From: Andrew Thompson <email@hidden>)

  • Prev by Date: Re: How to show invisible files and folders in NSOpenPanel list.
  • Previous by thread: Re: NSFontManager is ignoring my delegate methods...
  • Next by thread: Iterate a NSMatrix
  • Index(es):
    • Date
    • Thread