Re: Saving File names with appended characters
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