• 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: 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


  • Follow-Ups:
    • Re: first responder when there is no responder chain
      • From: "Stefan Werner" <email@hidden>
References: 
 >first responder when there is no responder chain (From: "Stefan Werner" <email@hidden>)

  • Prev by Date: Changing frame inside of NSCollectionView
  • Next by Date: Re: How get key down on launch?
  • Previous by thread: first responder when there is no responder chain
  • Next by thread: Re: first responder when there is no responder chain
  • Index(es):
    • Date
    • Thread