Re: first responder when there is no responder chain
Re: first responder when there is no responder chain
- Subject: Re: first responder when there is no responder chain
- From: "Stefan Werner" <email@hidden>
- Date: Fri, 09 Nov 2007 00:35:59 +0100
On Thu, 08 Nov 2007 23:55:13 +0100, Aki Inoue <email@hidden> wrote:
With Leopard and later, you can redirect the action message using -
[NSFontManager setTarget:].
For Tiger, you should be able to receive the action message as
NSApplication delegate.
Thanks. That works beautifully. I was trying to make my class the delegate
of NSFontManager, but that didn't work.
Naturally, there is no NSApplication/NSWindow or similar instantiated,
so I don't have any instance of an NSResponder anywhere.
You're required to call NSApplicationLoad() before accessing any Cocoa
objects from Carbon applications.
The function initializes NSApp.
Good to know. I wasn't sure how comparable a NSApplicationLoad()
initialized NSApplication is to one created during the startup of a Cocoa
app.
Thanks for the quick help,
Stefan
_______________________________________________
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