• 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: NSSavePanel and setting extensions...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSSavePanel and setting extensions...


  • Subject: Re: NSSavePanel and setting extensions...
  • From: Andreas Schempp <email@hidden>
  • Date: Fri, 25 Apr 2003 00:00:44 +0200

I'm not that good in cocoa to tell you if your code is wrong ;-)

What I do when I use the NSSavePanel class is to set this (setExtensionHiding:) to OFF before I open the sheet.
simply before telling the sheet to show

For Example:

- (void)test:(id)sender
{
NSSavePanel * mySavePanel = [[NSSavePanel alloc] init];

[mySavePanel setCanSelectHiddenExtension:YES];
[mySavePanel setExtensionHiding:FALSE];

[mySavePanel beginSheetForDirectory:nil modalForWindow:nil modalDelegate:self didEndSelector:@selector(savePanelDidEnd:)];
}


Try this.
Maybe you have to set setCanSelectHiddenExtension, I really dont know ;-)



Am Donnerstag, 24.04.03 um 23:50 Uhr schrieb Oliver Cameron:

Whoops =-)

The problem is that code is not working. The extension hiding is still ticked when I try to save.

Is there anything wrong with my code?

Thanks!
On Thursday, April 24, 2003, at 10:45 PM, Andreas Schempp wrote:

Ehm...

what is you question / problem ? ;-)



Am Donnerstag, 24.04.03 um 22:33 Uhr schrieb Oliver Cameron:

Im currently trying to make the extension in the standard save panel,
by default off. So when some person opens my app and clicks save, the
extension should be there by default.

Here is my current code:

- (BOOL)prepareSavePanel:(NSSavePanel*)savePanel
{
[savePanel setExtensionHidden:NO];
return YES;
}
_______________________________________________
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.
_______________________________________________
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: natural languages
  • Next by Date: underline fonts
  • Previous by thread: Re: NSSavePanel and setting extensions...
  • Next by thread: Message.framework and user preferences
  • Index(es):
    • Date
    • Thread