Re: Write to file Entitlement

2011-11-04 Thread Sam Rowlands
...@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 jmerk...@mac.com Subject: Re: Write to file Entitlement To: Gideon King gid...@novamind.com

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

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

Re: Write to file Entitlement

2011-11-01 Thread Laurent Etiemble
the sandboxing documents, it looks like in order to write to a file you need to use the save dialog. My app updates files without the save dialog. Will that be permitted in a sandboxed app ? Jim Merkel ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: Write to file Entitlement

2011-11-01 Thread James Merkel
in order to write to a file you need to use the save dialog. My app updates files without the save dialog. Will that be permitted in a sandboxed app ? Jim Merkel ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

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 files without

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: Hello, In a

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 be

Re: Write to file Entitlement

2011-10-31 Thread Gideon King
the sandboxing documents, it looks like in order to write to a file you need to use the save dialog. My app updates files without the save dialog. Will that be permitted in a sandboxed app ? Jim Merkel ___ Cocoa-dev mailing list (Cocoa-dev

Re: Write to file Entitlement

2011-10-31 Thread James Merkel
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 sandboxing documents, it looks like in order to write to a file you

Re: Write to file Entitlement

2011-10-31 Thread Martin Hewitson
, it looks like in order to write to a file you need to use the save dialog. My app updates files without the save dialog. Will that be permitted in a sandboxed app ? Jim Merkel ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Write to file Entitlement

2011-10-30 Thread James Merkel
Reading the sandboxing documents, it looks like in order to write to a file you need to use the save dialog. My app updates files without the save dialog. Will that be permitted in a sandboxed app ? Jim Merkel ___ Cocoa-dev mailing list (Cocoa-dev

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

Write to file.

2008-12-23 Thread Macarov Anatoli
CFPreferences doesn't work. My bundle works in login window under user account securityagent. Can I somehow with the user's rights create file? Вы уже с Yahoo!? Испытайте обновленную и улучшенную. Yahoo! Почту!

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

Write to file.

2008-12-16 Thread Macarov Anatoli
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 detects what user account you work from.

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

Re: Write to file.

2008-12-15 Thread Filip van der Meeren
in Writing. This code works fine in application. What is another way to write into file? Вы уже с Yahoo!? Испытайте обновленную и улучшенную. Yahoo! Почту! http://ru.mail.yahoo.com

Write to file.

2008-12-15 Thread Macarov Anatoli
way to write into file? Вы уже с Yahoo!? Испытайте обновленную и улучшенную. Yahoo! Почту! http://ru.mail.yahoo.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

to write to file except NSData*

2008-04-15 Thread Nick Rogers
]; === NSFileHandle has the method: - (void)writeData:(NSData *)data = but i want to write the length of (NSData *)data, before I write it to file because I will be writing a lot of NSData to the file, so that I will be able to read the length first and then read the following NSData. SO

Re: to write to file except NSData*

2008-04-15 Thread Thomas Backman
it to file because I will be writing a lot of NSData to the file, so that I will be able to read the length first and then read the following NSData. SO how can I write the length which is an integer to file before I write the NSData. Thanks, Nick

Re: to write to file except NSData*

2008-04-15 Thread Nick Rogers
Hi, I will use NSKeyedArchiver to create a lot of NSData objects before writing to file. I can't write one whole NSData to file because i have to write in GBs and also have to show the progress bar. Thanks for the reply, Nick On 15-Apr-08, at 8:10 PM, Thomas Backman wrote: Sorry to duck

Re: to write to file except NSData*

2008-04-15 Thread Alastair Houghton
On 15 Apr 2008, at 15:49, Nick Rogers wrote: I will use NSKeyedArchiver to create a lot of NSData objects before writing to file. I can't write one whole NSData to file because i have to write in GBs and also have to show the progress bar. So just use NSKeyedArchiver to generate a header

Re: to write to file except NSData*

2008-04-15 Thread Navneet Kumar
ok, so if i generate a header NSData object and write that to file, and then then write the larger NSData object, how will i read one NSData after the another. How will i know what length should I read. excuse me if this sounds very newbie to you. Wishes, Nick On 15-Apr-08, at 8:30 PM

Re: to write to file except NSData*

2008-04-15 Thread Jeff LaMarche
fileHandleForWritingAtPath:path]; === NSFileHandle has the method: - (void)writeData:(NSData *)data = but i want to write the length of (NSData *)data, before I write it to file because I will be writing a lot of NSData to the file, so that I will be able to read

Re: to write to file except NSData*

2008-04-15 Thread Alastair Houghton
On 15 Apr 2008, at 16:06, Navneet Kumar wrote: ok, so if i generate a header NSData object and write that to file, and then then write the larger NSData object, how will i read one NSData after the another. How will i know what length should I read. excuse me if this sounds very newbie

Re: to write to file except NSData*

2008-04-15 Thread Jens Alfke
On Apr 15, 2008, at 10:38 AM, Nick Rogers wrote: but i want to write the length of (NSData *)data, before I write it to file because I will be writing a lot of NSData to the file, so that I will be able to read the length first and then read the following NSData. SO how can I write