Re: Default NSSavePanel filename selection not to include filename extension
Re: Default NSSavePanel filename selection not to include filename extension
- Subject: Re: Default NSSavePanel filename selection not to include filename extension
- From: Ryan Britton <email@hidden>
- Date: Wed, 7 Feb 2007 14:09:47 -0800
-setExtensionHidden: ?
http://developer.apple.com/documentation/Cocoa/Reference/
ApplicationKit/Classes/NSSavePanel_Class/Reference/Reference.html#//
apple_ref/occ/instm/NSSavePanel/setExtensionHidden:
On Feb 7, 2007, at 1:58 PM, Gonzalo Castro wrote:
Hello,
I need to have the default selection of the filename in an
NSSavePanel to
_not_ have the extension selected. For example, when the
NSSavePanel comes
up only the "untitled" part of the "untitled.m" filename should be
selected
so when a user starts typing the extension is preserved.
Anyone know how to do this? I've seen it done in other apps.
I know about setRequiredFileType:@"m" which forces an extension onto
whatever the user enters but it would be nice to have the default
selection
as a hint to the user.
Thanks,
Gonzalo
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden