Re: NSDocument: File attributes for backup file?
Re: NSDocument: File attributes for backup file?
- Subject: Re: NSDocument: File attributes for backup file?
- From: Mark Piccirelli <email@hidden>
- Date: Tue, 12 Feb 2002 14:26:07 -0800
On Wednesday, February 6, 2002, at 07:54 AM, Manfred Lippert wrote:
It looks like there are indeed situations in which backup file
attributes
aren't preserved, though I'd be surprised if you're seeing the problem
happen
on HFS+.
Yes, I am seeing this in HFS+! I do not have volumes with other file
system
formats.
In either case, thanks for the bug report that I have in Radar now.
Your code will have to figure out the path to the backup document file
itself. Here's some code that will do it the exact same way that
NSDocument does it:
Thank you! Hopefully, NSDocument will not change its backup naming
scheme,
so it would break that code ... ;-}
Hmmm, a general question here: Is it possible for the _system_ (via
software
updates) to make changes to Cocoa things like NSDocument, or is this
entirely depending on the framework (the dev tools) I linked my programs
with? Or both?
The first one. When you link your app against Cocoa, you're linking
against a dynamic library. The Cocoa libraries that get loaded for your
app at runtime on your customers' machines (or even your own machine, if
you install a system software update) may not exactly match what you
linked against. That's why I thought it worth mentioning that we would
include backward compatibility code if we ever changed the way backup
file names are figured in a future version of Cocoa. By "backward
compatibility code" here I mean "code that checks to see if the
application was linked against an older version of Cocoa and, if so,
exhibits old behavior, so as not to break older applications."
We've done this before when changing other things. For example, see the
comment about backwards binary compatibility in the NSDocument section
of the Mac OS 10.1 release notes at
<
http://developer.apple.com/techpubs/macosx/ReleaseNotes/AppKit.html>.
-- Mark
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.