Re: Suggesting an initial filename with document-based app?
Re: Suggesting an initial filename with document-based app?
- Subject: Re: Suggesting an initial filename with document-based app?
- From: mmalcolm crawford <email@hidden>
- Date: Wed, 2 Jul 2003 15:52:53 -0700
On Wednesday, July 2, 2003, at 03:19 PM, Matt Gemmell wrote:
What part of the NSDocument saving machinery do I need to override in
order to suggest an initial filename (say, based on the document's
contents)? Or is there more involved in order to achieve this?
One way...
- (BOOL)prepareSavePanel:(NSSavePanel *)savePanel {
if ([self fileName] == nil) {
[self setFileName:NSLocalizedString(@"MyDefaultFileName",
@"custom default filename")];
}
return YES;
}
mmalc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.