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 (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/md207%40doc.ic.ac.uk
This email sent to [EMAIL PROTECTED]
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]