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: Aki Inoue <email@hidden>
- Date: Thu, 8 Nov 2007 14:55:13 -0800
Stefan,
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.
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.
Aki
On 2007/11/08, at 14:28, Stefan Werner wrote:
Hi,
I'm trying to use NSFontManager/NSFontPanel from within a Carbon
app. Naturally, there is no NSApplication/NSWindow or similar
instantiated, so I don't have any instance of an NSResponder
anywhere. NSFontManater's (void)changeFont:(id)sender however is
being sent to the first responder. Is there a method of catching the
changeFont: message without having to open a NSWindow?
thanks,
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
_______________________________________________
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