Re: Preserving knowledge of renamed/moved directory?
Re: Preserving knowledge of renamed/moved directory?
- Subject: Re: Preserving knowledge of renamed/moved directory?
- From: Sean McBride <email@hidden>
- Date: Mon, 28 Nov 2016 21:14:21 -0500
- Organization: Rogue Research Inc.
On Mon, 28 Nov 2016 17:06:41 -0800, Rick Mann said:
>Back in the days before URLs, I could have an FSRef to a directory, and
>no matter where I moved that directory what I named it, the FSRef was
>still valid, and I could still read/write to it.
>
>Now that everything is URL based, if a thread changes the name of a
>directory, or moves it, another thread's URL pointing to that directory
>(or inside it) becomes invalid, right?
>
>Is there any way for this to not be the case? That is, for a URL to a
>directory or subdirectory or item within to stay valid even if the path
>to it changes?
Stay valid for how long? If you need to persistent them, use them across reboots, etc. see bookmarkDataWithOptions:includingResourceValuesForKeys:relativeToURL:error.
Cheers,
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden