Re: Opening a file read-only?
Re: Opening a file read-only?
- Subject: Re: Opening a file read-only?
- From: Graham Cox <email@hidden>
- Date: Wed, 20 Jul 2011 11:55:45 +1000
On 20/07/2011, at 11:43 AM, Greg Parker wrote:
> On Jul 19, 2011, at 6:29 PM, Graham Cox wrote:
>> I'm using +[NSData dataWithContentsOfMappedFile:] to access a file. Is it possible to ensure this opens read-only? I see there's a version that takes options, but none of these options seem to open it read-only.
>
> I believe it already opens the file read-only. What makes you suspect that it does not?
Because we just got rejected on the App Store for opening a file with read/write access in a place that's not allowed. I've checked the code that we're not writing or creating files to these locations - we're not - so the only other possibility is this.
--Graham
_______________________________________________
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