• 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
NSDocument/NSSavePanel and controlling filenames
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSDocument/NSSavePanel and controlling filenames


  • Subject: NSDocument/NSSavePanel and controlling filenames
  • From: Robert Martin <email@hidden>
  • Date: Thu, 27 Jan 2005 17:32:44 -0500

Is there a way to set filenames in a savePanel in response to the user selecting different formats?

Where the file is saved is up to the user - but the filename is not really up to the user to choose - it is determined by values inside the document - (because most applications that use the output file treat the filename as a key) - and different formats require different permutations. When the user clicks on a different format, I'd like to provide instant feedback on the name change.

I can easily set an initial filename for a specific format during the prepareSavePanel delegate method. But when the user selects a different format, I cannot figure out how to make the SavePanel display the new computed name. I can change the document's type and filename, but this seems to have no immediate effect on the savePanel.

By the time panel:userEnteredFilename:confirmed: is called, it's too late to change the filename.

Is it possible to use the standard classes for this, or do I have to subclass NSSavePanel?

Apologies if I'm missing something obvious, but I can't find anything in the archives.

Thanks, Rob

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSDocument/NSSavePanel and controlling filenames
      • From: Chris Giordano <email@hidden>
    • Re: NSDocument/NSSavePanel and controlling filenames [partially solved]
      • From: Robert Martin <email@hidden>
  • Prev by Date: Re: Cocoa-dev Digest, Vol 2, Issue 130
  • Next by Date: Re: Mailing list archive
  • Previous by thread: Re: Cocoa-dev Digest, Vol 2, Issue 130
  • Next by thread: Re: NSDocument/NSSavePanel and controlling filenames [partially solved]
  • Index(es):
    • Date
    • Thread