Re: Write to file Entitlement

2011-11-04 Thread Sam Rowlands
Rowlands s...@ohanaware.com http://www.ohanaware.com - Fun Photos, HDRtist Pro & some cool free apps. On Nov 1, 2011, at 2:06 AM, cocoa-dev-requ...@lists.apple.com wrote: > Date: Mon, 31 Oct 2011 08:10:57 -0700 > From: James Merkel > Subject: Re: Write to file Entitlement > To: Gideon King

Re: Write to file Entitlement

2011-11-02 Thread Shane Stanley
On 02/11/2011, at 6:19 AM, James Merkel wrote: > Your're assuming the temporary exception will always be granted. A point seemingly made clear in today's email on the topic: "These entitlements are granted on a short-term basis and will be phased out over time." -- Shane Stanley 'AppleScript

Re: Write to file Entitlement

2011-11-02 Thread Sean McBride
On Tue, 1 Nov 2011 11:00:33 -0700, James Merkel said: >Why would someone want to base their application on the tenuous >availability of a temporary exception ? Because there's no choice. They are the only way to achieve a large number of extremely common operations. I'm looking forward to seei

Re: Write to file Entitlement

2011-11-01 Thread Seth Willits
On Nov 1, 2011, at 12:19 PM, James Merkel wrote: >> Well, I maintain a synchronization tool. For me, that seems like a >> reasonable solution. Each time the user decides to synchronize 2 folders, I >> could just use a temporary exception. > > Your're assuming the temporary exception will always

Re: Write to file Entitlement

2011-11-01 Thread James Merkel
On Nov 1, 2011, at 11:37 AM, Laurent Daudelin wrote: > On Nov 1, 2011, at 11:00, James Merkel wrote: > >> Why would someone want to base their application on the tenuous availability >> of a temporary exception ? >> >> Jim Merkel >> >> On Nov 1, 2011, at 10:30 AM, Laurent Etiemble wrote: >>

Re: Write to file Entitlement

2011-11-01 Thread Laurent Daudelin
On Nov 1, 2011, at 11:00, James Merkel wrote: > Why would someone want to base their application on the tenuous availability > of a temporary exception ? > > Jim Merkel > > On Nov 1, 2011, at 10:30 AM, Laurent Etiemble wrote: > >> Hello, >> >> In a sandboxed application, you can read/write fi

Re: Write to file Entitlement

2011-11-01 Thread James Merkel
Why would someone want to base their application on the tenuous availability of a temporary exception ? Jim Merkel On Nov 1, 2011, at 10:30 AM, Laurent Etiemble wrote: > Hello, > > In a sandboxed application, you can read/write files without the save dialog > by using the "File Access Tempora

Re: Write to file Entitlement

2011-11-01 Thread Laurent Etiemble
Hello, In a sandboxed application, you can read/write files without the save dialog by using the "File Access Temporary Exceptions" (cf. http://developer.apple.com/library/mac/#documentation/Miscellaneous/Reference/EntitlementKeyReference/AppSandboxTemporaryExceptionEntitlements/AppSandboxTemporar

Re: Write to file Entitlement

2011-10-31 Thread Martin Hewitson
I wonder how such a system would work with an app which is a file-manager. Take, for example, Xcode. How could such an app be sandboxed if that would stop it from being able to save the files it manages? Has such a scenario been thought about or discussed before? Cheers, Martin On 31, Oct, 2

Re: Write to file Entitlement

2011-10-31 Thread James Merkel
That will completely break my app. Off the top of my head, I don't know how I would change things to conform to that regime. I update files in a batch mode. Jim Merkel On Oct 30, 2011, at 11:39 PM, Gideon King wrote: > If you are writing to somewhere inside the sandbox, you can read and write

Re: Write to file Entitlement

2011-10-30 Thread Gideon King
If you are writing to somewhere inside the sandbox, you can read and write freely, but if outside, then you have to go through the save panel, which behind the scenes stretches your sandbox to include that file. Regards Gideon On 31/10/2011, at 3:27 PM, James Merkel wrote: > Reading the san

Re: Write to file.

2008-12-24 Thread Macarov Anatoli
Thank you for your reply and for directory /tmp. Вы уже с Yahoo!? Испытайте обновленную и улучшенную. Yahoo! Почту! http://ru.mail.yahoo.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.ap

Re: Write to file.

2008-12-23 Thread John Cebasek
Well, it's been a long time since I worked on a loginwindow replacement, but I think it was when Tiger was released, I had to split my code into two mechanisms , one privileged - which could have no GUI, and could write to at least /tmp and the global Preferences directory and then a non-pr

Re: Write to file.

2008-12-16 Thread Jean-Daniel Dupas
Le 16 déc. 08 à 13:47, Macarov Anatoli a écrit : I have admin rights. But I can't use NSUserDefaults because upon starting system in login window I'm not in user account, and there the function doesn't work.. After authorization and login in user account the function will work because det

Re: Write to file.

2008-12-15 Thread Filip van der Meeren
You are writing to a folder that is under admin rights. Instead write to the user directory: ~/Library/Preferences/myFile.plist Or make use of the NSUserDefaults class. Filip van der Meeren fi...@code2develop.com http://www.sourceforge.net/projects/perlmanager http://www.sourceforge.net/projects/