• 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
NSSavePanel can't enter filename
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSSavePanel can't enter filename


  • Subject: NSSavePanel can't enter filename
  • From: Robert Kuilman <email@hidden>
  • Date: Mon, 31 May 2004 13:56:29 +0200

Hey all!

I have created a NSSavePanel, for (obviously) saving a document. The
panel appears fine, but
There's no location to enter the filename that a use would desire.

The code that i use:

// -----[ SNIPPER ]----- //
- (IBAction)selectDestinationPath:(id)sender {
NSSavePanel * savePanel = [NSOpenPanel savePanel];

[savePanel setCanCreateDirectories:YES];
[savePanel setRequiredFileType:nil];
[savePanel setNameFieldLabel:@"Save As:"];

if( [savePanel runModalForDirectory:NSHomeDirectory() file:@""] ==
NSFileHandlingPanelOKButton ) {
[_destinationPath setStringValue:[savePanel filename]];
}
}
// -- //

Can anyone give me any insight as to what the cause of my problem can
be?

Thanks in advance,

Robert K.

-----------------------------{ Official Cocoa Newbie!
}-----------------------------
web: http://halfduplex.net/
email: email@hidden
_______________________________________________
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.


  • Follow-Ups:
    • Re: NSSavePanel can't enter filename
      • From: "M. Uli Kusterer" <email@hidden>
    • Re: NSSavePanel can't enter filename
      • From: Andreas Mayer <email@hidden>
  • Prev by Date: Re: Window won't show a second time.
  • Next by Date: Re: Code Guidelines
  • Previous by thread: ANN: PyObjC 1.1
  • Next by thread: Re: NSSavePanel can't enter filename
  • Index(es):
    • Date
    • Thread