Re: How to tell what API is used
Re: How to tell what API is used
- Subject: Re: How to tell what API is used
- From: Rustam Muginov <email@hidden>
- Date: Fri, 25 Jun 2004 11:29:36 +0400
On 6/25/04 11:16 AM, "Mark Patterson" <email@hidden> wrote:
>
Hi,
>
>
How can you work out whether an app you're running is Cocoa or Carbon
>
or java Cocoa? Is there something you can look at in the bundle? or
>
some utility that tests for this?
>
1) Open "Info.plist" file which is inside the application package. If you
see the "NSPrincipalClass" and "NSMainNibFile" entries, then it should be
cocoa. If you don't see that entries, it should be Carbon.
2) In the terminal, type "otool -L <<path to application binary>>". This
will print the frameworks the application is linked with. If you see only
CarbonFramework and no CocoaFramework, then the application should be
Carbon.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.