NSSavePanel can't enter filename
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.