• 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: 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
References: 
 >How to identify the host app is Carbon or Cocoa in a context menu plugin. (From: Satoshi Matsumoto <email@hidden>)

  • Prev by Date: Combo Box in Table Question
  • Next by Date: NSDocumentController overriding NSApp delegate?
  • Previous by thread: Re: How to identify the host app is Carbon or Cocoa in a context menu plugin.
  • Next by thread: Custon toolbar items and size
  • Index(es):
    • Date
    • Thread