Re: NSSavePanel runModalForDirectory, set name selection?
Re: NSSavePanel runModalForDirectory, set name selection?
- Subject: Re: NSSavePanel runModalForDirectory, set name selection?
- From: Corbin Dunn <email@hidden>
- Date: Fri, 01 May 2009 08:04:17 -0700
On Apr 30, 2009, at 1:28 PM, Henrietta Read wrote:
Question,
I'm passing a file name such as 'MyTextFile.txt' to NSSavePanel
runModalForDirectory.
When the panel appears the entire string is selected, but I would
rather
that just
'MyTextFile' is selected. Is it possible to set the selection to
exclude the
file
extension?
If you have the extension added to the "allowedFileExtensions", then
it should work automatically. Ideally, what you are doing should work
anyways, and it is a bug; please do log a bug report for this.
Unfortunately, there is no work around, as there is no API to access
the private ivar that controls the name field.
corbin
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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