• 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: How to identify the host app is Carbon or Cocoa in a context menu plugin.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: How to identify the host app is Carbon or Cocoa in a context menu plugin.
      • From: "John C. Daub" <email@hidden>
References: 
 >How to identify the host app is Carbon or Cocoa in a context menu plugin. (From: Satoshi Matsumoto <email@hidden>)

  • Prev by Date: Custon toolbar items and size
  • Next by Date: Re: NSTableView - how to select text when editing a column?
  • Previous by thread: Re: [SOLVED] How to identify the host app is Carbon or Cocoa in a context menu plugin.
  • Next by thread: Re: How to identify the host app is Carbon or Cocoa in a context menu plugin.
  • Index(es):
    • Date
    • Thread