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: Steve Christensen <email@hidden>
- Date: Fri, 7 Jul 2006 07:47:54 -0700
On Jul 6, 2006, at 6:35 PM, Satoshi Matsumoto wrote:
I am developing a contextual menu plugin that works both under
Carbon and
Cocoa apps.
I need to know the host application is Carbon or Cocoa.
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.
Does anybody know how to identify the host app is Carbon or Cocoa
on Intel
Mac?
I've never written a contextual menu plug-in, but is there a
particular reason to know whether the app is Carbon or Cocoa? I would
assume that a plug-in would just code to the published plug-in API
and be done with it.
Besides, what do you do if there's a mix? For example, a primarily
Carbon application that makes some Cocoa calls, or vice versa?
steve
_______________________________________________
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