Sorry, I didn't see that it came though. I'm new to the list so I kept getting the moderator bounce back and assumed it didn't go through. I've actually submitted this question several times.

Also, thanks for the feedback. I thought it was weird they implemented it using NSTemporaryDirectory for the reason you noted which is what made me ask the question in the first place.

On Jun 25, 2009, at 12:37 AM, Kyle Sluder wrote:

On Tue, Jun 23, 2009 at 9:02 PM, Anthony Smith<anth...@sticksnleaves.com > wrote:
If count is not greater than 0 then it returns an NSTemporaryDirectory. What's the point? Is that check really necessary? Will there ever be an instance where NSSearchPathForDirectoriesInDomains will not return the NSApplicationSupportDirectory when asked for? If so, why and what would be
the appropriate way to handle this?

Yes.  When the user has deleted the Application Support directory.

At which point the application should probably complain and warn the
user, rather than allowing them to go on and do a whole bunch of work
only to lose it when the temp dir is flushed.  But that's your
responsibility to implement.

--Kyle Sluder

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to