How to restrict an app to run from harddisk
How to restrict an app to run from harddisk
- Subject: How to restrict an app to run from harddisk
- From: Abhijeet Singh <email@hidden>
- Date: Tue, 22 May 2012 15:20:51 +0530
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 (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