Re: How does NSWorkspace -isFilePackageAtPath: work?
Re: How does NSWorkspace -isFilePackageAtPath: work?
- Subject: Re: How does NSWorkspace -isFilePackageAtPath: work?
- From: Milen Dzhumerov <email@hidden>
- Date: Mon, 2 Jun 2008 16:03:35 +0100
Hi Daniel,
I believe NSWorkspace creates a CFURL from the path you're given and
then uses LSCopyItemInfoForURL requesting kLSRequestAllFlags.
Then you can use the LSItemInfoRecord provided which has a
LSItemInfoFlags which in turn has bit flags for the following (and
more as well) kLSItemInfoIsPackage, kLSItemInfoIsApplication and
kLSItemInfoIsContainer.
Regards,
Milen
On 2 Jun 2008, at 15:30, Daniel Dalquen wrote:
Hi all,
I am working on client for online storage and the app should not
download any files unless the user tells it to. Still it should
recognize bundles and display them as files instead of directories.
Does anybody know how the NSWorkspace method -isFilePackageAtPath:
determines whether the file at the path is a bundle or not? Does it
just look at the directory structure only or does it read some
files? Is there a way to find out?
Thanks,
Daniel
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden