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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to