Hi,How can I check whether my application is running from Harddisk or from a removable media (CD, USB drive...). I used [[NSWorkspace sharedWorkspace] getFileSystemInfoForPath:path isRemovable:&isRem isWritable:&isWritable isUnmountable:&isUnmountable description:&description type:&type] method and used the "isRemovable" parameter to check whether it is removable media or not. It works fine if i directly copy my app to HDD, CD or USB drive. But if I create a disk image of my application and keep it on har disk and then I run my app from disk image the isRemovable parameter still shows that it is running from removable media and that's not true. My purpose is I dont want my user to run my application from Hard Disk. Please suggest some way to achieve this.Thanks & RegardsAbhijeetGet Yourself a cool, short @in.com Email ID now! _______________________________________________
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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com