FROM : Aki Inoue
DATE : Thu Nov 08 23:55:13 2007
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_removed>)
>
> 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_removed>
>
> This email sent to <email_removed>
DATE : Thu Nov 08 23:55:13 2007
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_removed>)
>
> 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_removed>
>
> This email sent to <email_removed>
| Related mails | Author | Date |
|---|---|---|
| Stefan Werner | Nov 8, 23:28 | |
| Aki Inoue | Nov 8, 23:55 | |
| Stefan Werner | Nov 9, 00:35 |






Cocoa mail archive

