• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Saving a document to a predefined location
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Saving a document to a predefined location


  • Subject: Re: Saving a document to a predefined location
  • From: Pierre Bernard <email@hidden>
  • Date: Sat, 27 Oct 2007 00:36:49 +0200

What I am trying to save are document templates. There can be any number of those. They need to be named by the user.

Pierre


On Oct 27, 2007, at 12:19 AM, Ron Fleckner wrote:


On 27/10/2007, at 6:54 AM, Pierre Bernard wrote:

Hi!

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.

Thoughts welcome...

Best,
Pierre

You could not bother with any sort of save panel and simply save the file to the location you want. In my app, the user can save groups of settings to be reloaded. The settings are saved as plists and I save them to the Application Support/myApp folder. This way the user doesn't need to decide where to put the saved settings and navigate to them when he/she wants to reload them.


Ron

- - - Houdah Software s. à r. l. http://www.houdah.com

HoudahGeo: One-stop photo geocoding
HoudahSpot: Powerful Spotlight frontend



_______________________________________________

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


  • Follow-Ups:
    • Re: Saving a document to a predefined location
      • From: Ron Fleckner <email@hidden>
References: 
 >Saving a document to a predefined location (From: Pierre Bernard <email@hidden>)
 >Re: Saving a document to a predefined location (From: Ron Fleckner <email@hidden>)

  • Prev by Date: Re: How to get the process Id of a process?
  • Next by Date: Re: Saving a document to a predefined location
  • Previous by thread: Re: Saving a document to a predefined location
  • Next by thread: Re: Saving a document to a predefined location
  • Index(es):
    • Date
    • Thread