• 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: first responder when there is no responder chain
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


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

  • Prev by Date: NSTabViewItem label
  • Next by Date: Re: Cocoa-dev Digest, Vol 4, Issue 1137
  • Previous by thread: Re: first responder when there is no responder chain
  • Next by thread: How get key down on launch?
  • Index(es):
    • Date
    • Thread