Re: Question about the Foundation Framework

2009-03-05 Thread Steve Shepard
On Thu, Feb 19, 2009 at 7:36 AM, Michael Ash michael@gmail.com wrote: If you're looking for more information, note that NSTemporaryDirectory is essentially equivalent to /tmp on a normal UNIX system This is not quite true. On Leopard, the dirhelper utility deletes files from

Re: Question about the Foundation Framework

2009-03-05 Thread Steve Shepard
On Thu, Mar 5, 2009 at 1:06 PM, Bill Bumgarner b...@me.com wrote: Then touch the files every 24 hours or so? That would work. Of course you'd also have to register for sleep notifications in case your user closed the laptop lid and left it closed for more than three days, and you'd have to

Re: Question about the Foundation Framework

2009-03-05 Thread Michael Ash
On Thu, Mar 5, 2009 at 3:45 PM, Steve Shepard steves...@gmail.com wrote: On Thu, Feb 19, 2009 at 7:36 AM, Michael Ash michael@gmail.com wrote: If you're looking for more information, note that NSTemporaryDirectory is essentially equivalent to /tmp on a normal UNIX system This is not

Question about the Foundation Framework

2009-02-19 Thread Michael
Hi all I am going through Kochan's new book to learn Obj-C and cocoa..trying to start with the basics...so hope you don't mind if I post some very basic questions Going through the exercises, I am currently stuck on this one as follows. Given the NSPathUtilities.h function

Re: Question about the Foundation Framework

2009-02-19 Thread Michael Ash
On Thu, Feb 19, 2009 at 9:15 AM, Michael m...@comcast.net wrote: My question, having seen that the author creates and then stores these unique names in the NSTemporaryDirectory, is **why** one would choose that directory over, say, some locally created directory..is there a good OOP reason for

Re: Question about the Foundation Framework

2009-02-19 Thread Sherm Pendley
On Thu, Feb 19, 2009 at 10:36 AM, Michael Ash michael@gmail.com wrote: On Thu, Feb 19, 2009 at 9:15 AM, Michael m...@comcast.net wrote: My question, having seen that the author creates and then stores these unique names in the NSTemporaryDirectory, is **why** one would choose that

Re: Question about the Foundation Framework

2009-02-19 Thread Mike Abdullah
On 19 Feb 2009, at 15:36, Michael Ash wrote: On Thu, Feb 19, 2009 at 9:15 AM, Michael m...@comcast.net wrote: My question, having seen that the author creates and then stores these unique names in the NSTemporaryDirectory, is **why** one would choose that directory over, say, some locally

Re: Question about the Foundation Framework

2009-02-19 Thread Michael
Thank you Mike, that's what I was looking for. Michael. On Feb 19, 2009, at 7:36 AM, Michael Ash wrote: On Thu, Feb 19, 2009 at 9:15 AM, Michael m...@comcast.net wrote: My question, having seen that the author creates and then stores these unique names in the NSTemporaryDirectory, is **why**

Re: Question about the Foundation Framework

2009-02-19 Thread Michael
thank You. On Feb 19, 2009, at 7:45 AM, Sherm Pendley wrote: And, of course, there's a very good meta-reason - you gain all of the above benefits without having to write, debug, or maintain the relevant code yourself. Apple already wrote it, so why reinvent that wheel? sherm--

Re: Question about the Foundation Framework

2009-02-19 Thread Michael
On Feb 19, 2009, at 8:11 AM, Mike Abdullah wrote: Also don't forget that it enables Apple to automatically move your app to use a completely different location in a future release of OS X. e.g. it could be some kind of encrypted directory accessible only to your app. Thanks Mike...did

Re: Question about the Foundation Framework

2009-02-19 Thread Andreas Monitzer
On Feb 19, 2009, at 16:36, Michael Ash wrote: Nothing to do with OOP, it's just good practice on the system. Temporary files go in the temporary directory. There are several reasons why this is a good idea: - The temporary directory gets cleaned out regularly by the system. If you forget to

Re: Question about the Foundation Framework

2009-02-19 Thread Graham Lee
On 19/02/2009 15:36, Michael Ash michael@gmail.com wrote: If you're looking for more information, note that NSTemporaryDirectory is essentially equivalent to /tmp on a normal UNIX system, although it's actually in a different location. Hi Mike, that's not quite true,