Re: How to identify the host app is Carbon or Cocoa in a context menu plugin.
Re: How to identify the host app is Carbon or Cocoa in a context menu plugin.
- Subject: Re: How to identify the host app is Carbon or Cocoa in a context menu plugin.
- From: Uli Kusterer <email@hidden>
- Date: Fri, 7 Jul 2006 20:24:09 +0200
Am 07.07.2006 um 03:35 schrieb Satoshi Matsumoto:
On PowerPC Mac, NSApp is always nil in Carbon apps. So I can easily
identify
Carbon or Cocoa by checking NSApp value.
But on Intel Mac, NSApp has non zero value even in Carbon apps.
You can't rely on any of this. If someone called NSApplicationLoad
() in their Carbon app to use some Cocoa calls, this test will claim
your app was Cocoa, even on a PPC Mac.
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden