Hey Sean,

Thank you! Though this didn't quite work. I'm getting an error response in
the code telling me "No visible @interface for 'NSFileManger' declares the
selector 'createDirectoryAtURL:attributes'. Included in this message is the
code im playing with,
https://dl.dropbox.com/u/3783094/BlogDemoAppDelegate.m
<https://dl.dropbox.com/u/3783094/BlogDemoAppDelegate.m>



On Thu, Nov 22, 2012 at 10:58 AM, Sean McBride <s...@rogue-research.com>wrote:

> On Wed, 21 Nov 2012 18:17:26 -0500, Tom Miller said:
>
> >Sorry my bad! The warning states 'createDirectoryAtPath:attributes:' is
> >depreciated. I was able to get rid of that window warning once the app
> >launched, miss spelled something in my code. Though I'm still unable to
> >save the imputed text to the XML. I can provide the entire set of code if
> >needed to.
>
> Tom,
>
> Most path-based and non-NSError-returning file APIs are deprecated, and
> you should use URL+NSError methods instead:
>
> createDirectoryAtURL:withIntermediateDirectories:attributes:error:
>
> Also, using fileExistsAtPath: is rarely the right thing due to race
> conditions: it's possible the file didn't exist when you checked, then gets
> created by a different process before you get to create it.  Instead, just
> try to create it, and be ready for a returned error like 'already exists'.
>  See:
>
> <
> https://developer.apple.com/library/mac/#documentation/security/conceptual/SecureCodingGuide/Articles/RaceConditions.html
> >
>
> Cheers,
>
> --
> ____________________________________________________________
> Sean McBride, B. Eng                 s...@rogue-research.com
> Rogue Research                        www.rogue-research.com
> Mac Software Developer              Montréal, Québec, Canada
>
>
>


-- 
-
Tom Miller
t...@pxlc.me
pxlc.me
_______________________________________________

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

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

Reply via email to