Change in NSDocument between 10.4 and 10.5
Change in NSDocument between 10.4 and 10.5
- Subject: Change in NSDocument between 10.4 and 10.5
- From: Randall Meadows <email@hidden>
- Date: Mon, 11 Aug 2008 12:54:24 -0600
The application I'm working on is NSDocument-based. In my client's
workflow, these documents will typically live on a server volume
mounted on the desktop, and be edited from there. When a document is
opened, it's file name (extension)[1] is changed to indicate that it
is currently being edited (so when someone else opens that same
document off the server, they get a message to that effect). When the
document is closed, the name is changed back, indicating that others
may now edit the document.
On 10.4, when the document was edited, pressing cmd-S simply saved the
document.
On 10.5, when the document is edited, pressing cmd-S now brings up an
additional dialog, informing the user that "This document has been
renamed to <new name>. It will be saved under this new name, or you
can provide another name. [Save As...] [Cancel] [Save]".
This appears to be a change in the underlying frameworks, as the same
executable behaves differently on the different OS versions. (At
least, that's my conclusion based on conversations with the client.)
Since I'm controlling the name changing and the saving and all that
jazz, is there a way I can suppress this new dialog on 10.5?
Thanks.
randy
[1] - I'm currently using the deprecated -setFileName:, but -
setFileURL: behaves similarly.
_______________________________________________
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