[Tcl-bugs] [ tktoolkit-Bugs-1611821 ] tk_getSaveFile -initialfile odd behavior
by SourceForge.net other posts by this author
Dec 14 2006 7:03AM messages near this date
[Tcl-bugs] [ tktoolkit-Bugs-1611821 ] tk_getSaveFile -initialfile odd behavior
|
[Tcl-bugs] tk-cvs: "tk/doc button.n checkbutton.n entry.n frame.n label.n labelframe.n menu.n menubutton.n panedwindow.n radiobutton.n scrollbar.n ttk_button.n ttk_checkbutton.n ttk_combobox.n ttk_dialog.n ttk_entry.n ttk_frame.n ttk_image.n ttk_intro.n ttk_label.n ttk_labelframe.n ttk_menubutton.n ttk_notebook.n ttk_panedwindow.n ttk_progressbar.n ttk_radiobutton.n ttk_scrollbar.n ttk_separator.n ttk_sizegrip.n ttk_style.n ttk_treeview.n ttk_widget.n" modified
Bugs item #1611821, was opened at 2006-12-08 20:35
Message generated for change (Comment added) made by dkf
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: Donal K. Fellows (dkf)
Date: 2006-12-14 15:03
Message:
Logged In: YES
user_id=79902
Originator: NO
If both are present, [file join] them and then [file split] them to get
the real directory to start in and the real "initally selected filename".
----------------------------------------------------------------------
Comment By: Daniel A. Steffen (das)
Date: 2006-12-13 23: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
|