Re: Saving a document to a predefined location
Re: Saving a document to a predefined location
- Subject: Re: Saving a document to a predefined location
- From: Murat Konar <email@hidden>
- Date: Fri, 26 Oct 2007 14:07:35 -0700
On Oct 26, 2007, at 1:54 PM, Pierre Bernard wrote:
I would like to offer the option to save a (NS)document to a fixed
location. I.e. the user is free to chose the file name, but not the
location.
One option I see is to set the document as delegate to the
NSSavePanel and have it reset the target directory each time the
user changes it. That ought to work, but does not seem to be good
UI. I'd rather forbid the change than reverse it.
The other option is to write my own save panel. But then I'd have
to handle quite some stuff myself that NSSavePanel ought to take
care of. E.g. duplicate file names.
Even if you could prevent the user from changing the directory used
by NSSaveDialog, it's still bad UI and will definitely feel broken.
Dealing with duplicate file names is easy enough that I'm surprised
you'd consider compromising the user-experience to avoid it.
Writing your own save pane is the best option.
_murat
_______________________________________________
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