Re: Hash Values in Custom Classes
Re: Hash Values in Custom Classes
- Subject: Re: Hash Values in Custom Classes
- From: Peter Lübke <email@hidden>
- Date: Wed, 30 Mar 2011 02:27:47 +0200
Am 29.03.2011 um 23:26 schrieb Jean-Daniel Dupas:
Am 28.03.2011 um 20:06 schrieb Sean McBride:
Are you aware that starting in 10.6, the OS provides 'file reference
URLs' which are much like FSRefs. See:
<http://developer.apple.com/library/mac/#releasenotes/Cocoa/
Foundation.html>
Good to know. I'm very interested in your experience related to:
- Under which circumstances will fileReferenceURL break when
decoded from an archive? (Item moved, overwritten ...)
File reference should not be archived. They are valid only for the
application lifetime.
Obviously. This makes me think that somewhere inside fileReferenceURL
there is an FSRef in use.
Use Bookmark (provided by NSURL class too) for archiving.
I was referring to this statement in the Release Note:
" When asked to perform keyed archiving, file reference URLs will
encode their minimal bookmark data and when decoded will resolve to a
file path URL (if you wish to receive a file reference URL from
this, please call -[NSURL fileReferenceURL] on the resulting item). "
...so it seems we are talking about the same point.
But right, my question was obsolete because I overlooked that fact
that bookmarks are alias files - so this will give me what I can
expect from Alias Manager.
Thank you for pointing me to this,
Peter
_______________________________________________
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