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
scott_r...@elevated-dev.com
http://www.elevated-dev.com/
(303) 722-0567 voice





_______________________________________________

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

Reply via email to