[Tcl-bugs] [ tktoolkit-Bugs-1611821 ] tk_getSaveFile -initialfile odd behavior
by SourceForge.net other posts by this author
Dec 13 2006 3:53PM messages near this date
[Tcl-bugs] [ tktoolkit-Bugs-1615425 ] [tag add] segfaults if index out of range of peer
|
[Tcl-bugs] [ tktoolkit-Bugs-1611821 ] tk_getSaveFile -initialfile odd behavior
Bugs item #1611821, was opened at 2006-12-09 07:35
Message generated for change (Comment added) made by das
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112997&aid=1611821&group_id=12997
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: 37. [tk_get*File]
Group: current: 8.4.14
Status: Open
> Resolution: Accepted
Priority: 6
Private: No
Submitted By: Jeffrey Hobbs (hobbs)
Assigned to: Daniel A. Steffen (das)
Summary: tk_getSaveFile -initialfile odd behavior
Initial Comment:
If you do:
set someRealFile /Library/Tcl/Tclapplescript/pkgIndex.tcl
tk_getSaveFile -initialfile $someRealFile
the dialog converts the / to -. The workaround is to separate file and dir segments for -in
itialdir and -initialfile, but that is not the way Tk docs it, so it really is a Tk/Aqua bug
.
----------------------------------------------------------------------
> Comment By: Daniel A. Steffen (das)
Date: 2006-12-14 10:52
Message:
Logged In: YES
user_id=90580
Originator: NO
the reason for this is that NavServices does not expect the -initialfile
param to be a path but a filename in the -initialdir, and hence it munges
any chars in the -initialfile that are illegal for filenames.
What behaviour did you expect to see in this case exactly? the docs are
not clear what to do with a path for -initialfile IMO, indeed getOpenFile.n
says -initialfile is a "filename" (and that -initialfile is not implemented
on the Mac, along with other obsolete Mac info; doc bug).
We could extract any initial path component from the -initialfile param
and handle it as if -initialdir had also been given, but what to do when
both -initialdir and -initialfile with a path are present?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112997&aid=1611821&group_id=12997
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Tcl-Bugs mailing list
Tcl-Bugs@[...].net
https://lists.sourceforge.net/lists/listinfo/tcl-bugs
Thread:
SourceForge.net
SourceForge.net
|