Using NSSavepanel to init and allow <ok>
Using NSSavepanel to init and allow <ok>
- Subject: Using NSSavepanel to init and allow <ok>
- From: Ken Hawkins <email@hidden>
- Date: Mon, 15 Mar 2004 08:34:41 -0800
i have an NSSavePanel created
NSSavePanel * panel = [NSSavePanel savePanel];
[panel setCanChooseDirectories:YES];
[panel setCanCreateDirectories:YES];
[panel beginSheetForDirectory:NSHomeDirectory()
file:nil
modalForWindow:sender
modalDelegate:self
didEndSelector:@selector(filePanelDidEnd:
returnCode:
contextInfo:)
contextInfo:nil];
and my only question is that when it comes up the ok button is grayed
out. how can i have the panel come up and default to the passed in
directory? in this case 'NSHomeDirectory()'?
thanks,
ken;
_______________________________________________
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.