Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: first responder when there is no responder chain



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >first responder when there is no responder chain (From: "Stefan Werner" <email@hidden>)
 >Re: first responder when there is no responder chain (From: Aki Inoue <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.