NSSavePanel selecting part of file name
Posted
by regulus6633
on Stack Overflow
See other posts from Stack Overflow
or by regulus6633
Published on 2010-04-18T18:10:19Z
Indexed on
2010/04/18
18:13 UTC
Read the original article
Hit count: 270
How do I set the part of the file name that is selected in NSSavePanel? I only want the file name selected and not the file extension.
Here's what I noticed. If I setAllowedFileTypes: for the save panel then only the file name is selected but not the file extension. However if I don't set the allowed file types then the file extension is selected along with the file name.
I don't want to use setAllowedFileTypes but I still want to control the selection so that the file extension is not selected. Can that be done?
© Stack Overflow or respective owner