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

How to identify the host app is Carbon or Cocoa in a context menu plugin.


  • Subject: How to identify the host app is Carbon or Cocoa in a context menu plugin.
  • From: Satoshi Matsumoto <email@hidden>
  • Date: Fri, 07 Jul 2006 10:35:19 +0900
  • Thread-topic: How to identify the host app is Carbon or Cocoa in a context menu plugin.

Hi,

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?

Satoshi
-----------------------------------------------------
Satoshi Matsumoto <email@hidden>
816-5 Odake, Odawara, Kanagawa, Japan 256-0802


 _______________________________________________
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: Uli Kusterer <email@hidden>
    • Re: How to identify the host app is Carbon or Cocoa in a context menu plugin.
      • From: Steve Christensen <email@hidden>
    • [SOLVED] How to identify the host app is Carbon or Cocoa in a context menu plugin.
      • From: Satoshi Matsumoto <email@hidden>
  • Prev by Date: Re: Bindings Bug?
  • Next by Date: Re: converting NSData to string
  • Previous by thread: Re: question about -init methods
  • Next by thread: [SOLVED] How to identify the host app is Carbon or Cocoa in a context menu plugin.
  • Index(es):
    • Date
    • Thread