• 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 File names with appended characters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Saving File names with appended characters


  • Subject: Re: Saving File names with appended characters
  • From: "Michael Ash" <email@hidden>
  • Date: Mon, 26 Jun 2006 12:19:43 -0400

On 6/26/06, Cook, Mike <email@hidden> wrote:
Hi,

I want to allow a user to have the option of automatically appending a
few characters to the end of a file name. These will give information on
the format of images a JPEG file contains. I have done this by adding
the characters to the file name after NSOpenPanel has run. All well and
good but the bit that checks if that file name exists, and prompts you
for overwriting if it does, is part of NSOpenPanel, therefore it never
checks for file names with the added extension characters. It also
checks for names without the appended characters and so is not checking
what will be written later. Before the panel runs I don't know what file
name a user will choose. Any ideas on a strategy to get round this?

This delegate seems like it should do what you need:

- (NSString *)panel:(id)sender userEnteredFilename:(NSString
*)filename confirmed:(BOOL)okFlag

Mike
_______________________________________________
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


References: 
 >Saving File names with appended characters (From: "Cook, Mike" <email@hidden>)

  • Prev by Date: Re: Folder Action the Cocoa Way
  • Next by Date: Re: Simplest Dongle Method? Making a file uncopyable on CD?
  • Previous by thread: Saving File names with appended characters
  • Next by thread: [MEETING] Toronto Area Cocoa & WebObjects Developer Group - July 11
  • Index(es):
    • Date
    • Thread