@@ -32,7 +32,7 @@ available as an optional or default install on recent Mac OS X).
32
32
TkAqua and TkX11 can be distinguished at runtime via [tk windowingsystem].
33
33
34
34
- At a minimum, Mac OS X 10.3 is required to run Tcl and TkX11.
35
- TkAqua requires Mac OS X 10.5 or later (starting with Tk 8.6b2 ).
35
+ TkAqua requires Mac OS X 10.5 or later (starting with the Cocoa-based Tk 8.5.7 ).
36
36
37
37
- Unless weak-linking is used, Tcl/Tk built on Mac OS X 10.x will not run on
38
38
10.y with y < x; on the other hand Tcl/Tk built on 10.y will always run on 10.x
@@ -105,7 +105,7 @@ normal scrollbar has a small dimension of 15, the small variant 11.
105
105
Access to the small variant was added in Tk 8.4.2.
106
106
107
107
- The default metrics of native buttons, radiobuttons, checkboxes and
108
- menubuttons in the Cocoa-based Tk 8.6b2 and later preserve compatibility with
108
+ menubuttons in the Cocoa-based Tk 8.5.7 and later preserve compatibility with
109
109
the older Carbon-based implementation, you can turn off the compatibility
110
110
metrics to get more native-looking spacing by setting:
111
111
set tk::mac::useCompatibilityMetrics 0
@@ -127,13 +127,13 @@ where -kind is one of
127
127
-systemType icon for given IconServices 4-char OSType
128
128
-namedImage named NSImage for given name
129
129
-imageFile image at given path
130
- This support was added with the Cocoa-based Tk 8.6b2 .
130
+ This support was added with the Cocoa-based Tk 8.5.7 .
131
131
132
132
- TkAqua cursor names are interpred as follows (in order):
133
133
- standard or platform-specific Tk cursor name (c.f. cursors.n)
134
134
- @path to any image file readable by NSImage
135
135
- NSImage named image name
136
- Support for the latter two was added with the Cocoa-based Tk 8.6b2 .
136
+ Support for the latter two was added with the Cocoa-based Tk 8.5.7 .
137
137
138
138
- The standard Tk dialog commands [tk_getOpenFile], [tk_chooseDirectory],
139
139
[tk_getSaveFile] and [tk_messageBox] all take an additional optional -command
@@ -142,15 +142,15 @@ the global level when the dialog closes, with the dialog command's result
142
142
appended (the dialog command itself returning an emtpy result). If the -parent
143
143
option is also present, the dialog is configured as a modeless (window-modal)
144
144
sheet attached to the parent window and the dialog command returns immediately.
145
- Support for -command was added with the Cocoa-based Tk 8.6b2 .
145
+ Support for -command was added with the Cocoa-based Tk 8.5.7 .
146
146
147
147
- The TkAqua-specific [tk::mac::standardAboutPanel] command brings the standard
148
148
Cocoa about panel to the front, with all its information filled in from your
149
149
application bundle files (i.e. standard about panel with no options specified).
150
150
See Apple Technote TN2179 and the AppKit documentation for -[NSApplication
151
151
orderFrontStandardAboutPanelWithOptions:] for details on the Info.plist keys and
152
152
app bundle files used by the about panel.
153
- This support was added with the Cocoa-based Tk 8.6b2 .
153
+ This support was added with the Cocoa-based Tk 8.5.7 .
154
154
155
155
- TkAqua has three special menu names that give access to the standard
156
156
Application, Window and Help menus, see menu.n for details.
@@ -160,7 +160,7 @@ application's Info.plist (or displaying an alert if no Help Book is set). This
160
160
action can be customized by defining a procedure named [tk::mac::ShowHelp], if
161
161
present, this procedure is invoked instead by the standard Help menu item.
162
162
Support for the Window menu and [tk::mac::ShowHelp] was added with the
163
- Cocoa-based Tk 8.6b2 .
163
+ Cocoa-based Tk 8.5.7 .
164
164
165
165
- The TkAqua-specific command [tk::unsupported::MacWindowStyle style] is used to
166
166
get and set Mac OS X-specific toplevel window class and attributes. Note that
@@ -179,12 +179,12 @@ Window attribute names:
179
179
verticalZoom, closeBox, collapseBox, toolbarButton, sideTitlebar,
180
180
noTitleBar, unifiedTitleAndToolbar, metal, hud, noShadow, doesNotCycle,
181
181
noActivates, hideOnSuspend, inWindowMenu, ignoreClicks, doesNotHide,
182
- canJoinAllSpaces, moveToActiveSpace, nonActivating, black, dark, light,
182
+ canJoinAllSpaces, moveToActiveSpace, nonActivating, black, dark, light,
183
183
gray, red, green, blue, cyan, yellow, magenta, orange, purple,
184
184
brown, clear, opacity
185
185
186
186
Note that not all attributes are valid for all window classes.
187
- Support for the 3 argument form was added with the Cocoa-based Tk 8.6b2 , at the
187
+ Support for the 3 argument form was added with the Cocoa-based Tk 8.5.7 , at the
188
188
same time support for some legacy Carbon-specific classes and attributes was
189
189
removed (they are still accepted by the command but no longer have any effect).
190
190
@@ -195,7 +195,7 @@ tk::unsupported::MacWindowStyle style .f document {metal light opaque closeBox c
195
195
196
196
pack [label .f.f -bg #ababab -text "This is a textured window\nwith opacity and a gray background\nsimilar to other Mac applications"] -fill both -expand yes
197
197
198
- The color attributes correspond to system-defined NSColor constants (e.g., red is [NSColor redColor]. The "light" and "dark" attributes correspond to lightGrayColor and darkGrayColor, respectively (because of the way the attributes are parsed, using "lightgray" and "darkgray" would cause a conflict with the core "gray" attribute).
198
+ The color attributes correspond to system-defined NSColor constants (e.g., red is [NSColor redColor]. The "light" and "dark" attributes correspond to lightGrayColor and darkGrayColor, respectively (because of the way the attributes are parsed, using "lightgray" and "darkgray" would cause a conflict with the core "gray" attribute).
199
199
200
200
Below are the corresponding hex and/or Tk-defined colors that can be used from Tk widgets to match the NSColor-based attributes:
201
201
0 commit comments