• 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: Suggesting an initial filename with document-based app?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Static vs. Dynamic typing
  • Next by Date: Can I "share" a view between nibs?
  • Previous by thread: ProKit
  • Next by thread: Re: Suggesting an initial filename with document-based app?
  • Index(es):
    • Date
    • Thread