How to tell if a path is an Application
How to tell if a path is an Application
- Subject: How to tell if a path is an Application
- From: MT <email@hidden>
- Date: Fri, 17 Sep 2004 16:13:40 +0100
Hi,
How can I query if a path is an application?
I can use something like this
[[NSWorkspace sharedWorkspace] getInfoForFile:Path application:nil
type:&type];
if ([type isEqualToString:NSApplicationFileType]) {
.....
}
but this doesn't seem to work for non-Cocoa apps.
How can I also make it work for Carbon apps?
Thanks in advance
Moray
_______________________________________________
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