prepareSavePanel and Hide extension
prepareSavePanel and Hide extension
- Subject: prepareSavePanel and Hide extension
- From: "Brian Helinski" <email@hidden>
- Date: Wed, 13 Feb 2002 17:13:11 -0500
Hello:
I am trying the following under 10.1.3 with Dec 2001 Dev Tools, but the
"Hide extension" button seems to always stay checked until I manually click
on the button from the NSSavePanel for an NSDocument based Document. Anyone
know a way to change the current state of the displayed NSSavePanel Hide
extensions button?. I want to ensure that the Hide Extension defaults to
being off the first time a users launches the application, and then let the
system and the user choose their own course after that point, but I cannot
seem to override the default state of Hiding extensions, unless I entirely
disable the Hide extension button via - (void)setCanSelectHiddenExtension:.
Here is a simple version of what I am trying to no avail in my NSDocument
derived class. The code is called, and everything appears to be okay in gdb
but the button is still checked when the save dialog appears on screen.
- (BOOL)prepareSavePanel:(NSSavePanel*)savePanel
{
[savePanel setExtensionHidden:NO];
return YES;
}
Any help appreciated,
Brian Helinski
_______________________________________________
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.