• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSSavePanel runModalForDirectory, set name selection?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: NSXMLParser frees itself on error?
  • Next by Date: Re: ObjectAlloc and objects that should have been released
  • Previous by thread: Re: Modifying NSTableView cell data just prior to invoking field editor
  • Next by thread: Re: ObjectAlloc and objects that should have been released
  • Index(es):
    • Date
    • Thread