Re: How to restrict an app to run from harddisk
Re: How to restrict an app to run from harddisk
- Subject: Re: How to restrict an app to run from harddisk
- From: Scott Ribe <email@hidden>
- Date: Tue, 22 May 2012 07:42:19 -0600
On May 22, 2012, at 3:50 AM, Abhijeet Singh wrote:
> ...I run my app from disk image the isRemovable parameter still shows that it is running from removable media and that's not true.
Well, yes it is. The disk image is unmountable. Maybe the system's definition of removable is different than yours, but really how do you define this for virtual media.
> My purpose is I dont want my user to run my application from Hard Disk. Please suggest some way to achieve this.
Inherently stupid, user-hostile, unenforceable requirement--give it up? Or accept the limitation that a disk image is always removable. Or go to extreme lengths to use lower-level calls to determine that the volume is a disk image, then find out where it's located, then check the containing disk type.
--
Scott Ribe
email@hidden
http://www.elevated-dev.com/
(303) 722-0567 voice
_______________________________________________
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