Reproduction Man Mac OS

broken image


SYNOPSIS

::tk::mac::ShowPreferences
::tk::mac::OpenApplication
::tk::mac::ReopenApplication
::tk::mac::OpenDocument file...
::tk::mac::PrintDocument file...
::tk::mac::Quit
::tk::mac::OnHide
::tk::mac::OnShow
::tk::mac::ShowHelp
::tk::mac::standardAboutPanel
::tk::mac::useCompatibilityMetrics boolean
::tk::mac::CGAntialiasLimit limit
::tk::mac::antialiasedtext number
::tk::mac::useThemedToplevel boolean
::tk::mac::iconBitmap name width height -kind value


EVENT HANDLER CALLBACKS

This document is a Mac OS X manual page. Manual pages are a command-line technology for providing documentation. You can view these manual pages locally using the man(1) command. These manual pages come from many different sources, and thus, have a variety of writing styles. Some Mac users may require the ability to erase a disk or erase a hard drive from the command line on Mac OS, a task which is typically performed through the Disk Utility application from the GUI. The command line approach to disk erasure in macOS is a bit different and it requires precise syntax to insure that you are erasing the proper disk. Mac® OS X® 10.10 (Yosemite) or higher, up to 10.14 (macOS Mojave). 3.5 Use, reproduction and distribution of components of the SDK licensed under an open source. To see the size of a specific file or folder, click it once and then press Command-I. To see storage information about your Mac, click the Apple menu in the top-left of your screen. Choose About This Mac and click the Storage tab. For Time Machine backups, it's good to use a drive that has at least twice the storage capacity of your Mac.

The Aqua/Mac OS X application environment defines a number of additionalevents that applications should respond to. These events are mapped by Tk tocalls to commands in the ::tk::mac namespace; unless otherwise noted, ifthe command is absent, no action will be taken.

Reproduction
::tk::mac::ShowPreferences
The default Apple Event handler for kAEShowPreferences,``pref'.The application menu``Preferences'menu item is only enabled when this proc is defined. Typically this command isused to wrap a specific own preferences command, which pops up a preferenceswindow. Something like:
::tk::mac::OpenApplication
If a proc of this name is defined, this proc fill fire when your applicationis intially opened. It is the default Apple Event handler forkAEOpenApplication,``oapp'.
::tk::mac::ReopenApplication
If a proc of this name is defined it is the default Apple Event handler forkAEReopenApplication,``rapp',the Apple Event sent when your application is opened when it is alreadyrunning (e.g. by clicking its icon in the Dock). Here is a sample that raisesa minimized window when the Dock icon is clicked:
::tk::mac::OpenDocument file...
If a proc of this name is defined it is the default Apple Event handler forkAEOpenDocuments,``odoc',the Apple Event sent when your application is asked to open one or moredocuments (e.g., by drag & drop onto the app or by opening a document of atype associated to the app). The proc should take as arguments paths to thefiles to be opened, like so:
::tk::mac::PrintDocument file...
If a proc of this name is defined it is the default Apple Event handler forkAEPrintDocuments,``pdoc',the Apple Event sent when your application is asked to print one or moredocuments (e.g., via the Print menu item in the Finder). It works the sameway as tk::mac::OpenDocument in terms of arguments.
::tk::mac::Quit
If a proc of this name is defined it is the default Apple Event handler forkAEQuitApplication,``quit',the Apple Event sent when your application is asked to be quit, e.g. via thequit menu item in the application menu, the quit menu item in the Dock menu,or during a logout/restart/shutdown etc. If this is not defined, exit iscalled instead.
::tk::mac::OnHide
If defined, this is called when your application receives a kEventAppHiddenevent, e.g. via the hide menu item in the application or Dock menus.
::tk::mac::OnShow
If defined, this is called when your application receives a kEventAppShownevent, e.g. via the show all menu item in the application menu, or by clickingthe Dock icon of a hidden application.
::tk::mac::ShowHelp
Customizes behavior of Apple Help menu; if this procedure is not defined, theplatform-specific standard Help menu item``YourApp Help'performs the default Cocoa action of showing the Help Book configured in theapplication's Info.plist (or displaying an alert if no Help Book is set).

ADDITIONAL DIALOGS

The Aqua/Mac OS X defines additional dialogs that applications shouldsupport.

::tk::mac::standardAboutPanel
Brings the standard Cocoa about panel to the front, with all its informationfilled in from your application bundle files (standard about panel with nooptions specified). See Apple Technote TN2179 and the AppKit documentation for-[NSApplication orderFrontStandardAboutPanelWithOptions:] for details on theInfo.plist keys and app bundle files used by the about panel.

SYSTEM CONFIGURATION

There are a number of additional global configuration options that control thedetails of how Tk renders by default.

::tk::mac::useCompatibilityMetrics boolean
Preserves compatibility with older Tk/Aqua metrics; set to false formore native spacing.
::tk::mac::CGAntialiasLimit limit
Sets the antialiasing limit; lines thinner that limit pixels will not beantialiased. Integer, set to 0 by default, making all lines be antialiased.
::tk::mac::antialiasedtext number
Sets anti-aliased text. Controls text antialiasing, possible values fornumber are -1 (default, use system default for text AA), 0 (no text AA),1 (use text AA).
::tk::mac::useThemedToplevel boolean
Sets toplevel windows to draw with the modern grayish/ pinstripe Macbackground. Equivalent to configuring the toplevel with``-background systemWindowHeaderBackground',or to using a ttk::frame.

SUPPORT COMMANDS

::tk::mac::iconBitmap name width height -kind value
Renders native icons and bitmaps in Tk applications (including any image filereadable by NSImage). A native bitmap name is interpreted as follows (inorder):
  • predefined builtin 32x32 icon name (stop, caution, document,etc.)
  • name, as defined by tk::mac::iconBitmap
  • NSImage named image name
  • NSImage url string
  • 4-char OSType of IconServices icon

Reproduction Man Mac Os Catalina

The width and height arguments to tk::mac::iconBitmap definethe dimensions of the image to create, and -kind must be one of:

-file
icon of file at given path
-fileType
icon of given file type
-osType
icon of given 4-char OSType file type
-systemType
icon for given IconServices 4-char OSType
-namedImage
named NSImage for given name
-imageFile
image at given path

Reproduction Man Mac Os Download

KEYWORDS

Reproduction Man Mac Os X

about dialog, antialiasing, Apple event, icon, NSImage



broken image