⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 macintosh.3

📁 tcl是工具命令语言
💻 3
字号:
'\"'\" Copyright (c) 1997-1998 Sun Microsystems, Inc.'\"'\" See the file "license.terms" for information on usage and redistribution'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.'\" '\" RCS: @(#) $Id: Macintosh.3,v 1.4 2002/01/25 20:40:55 dgp Exp $'\" .so man.macros.TH Tcl_MacSetEventProc 3 "8.1" Tcl "Tcl Library Procedures".BS.SH NAMETcl_MacSetEventProc, Tcl_MacConvertTextResource, Tcl_MacEvalResource, Tcl_MacFindResource, Tcl_GetOSTypeFromObj, Tcl_SetOSTypeObj, Tcl_NewOSTypeObj \- procedures to handle Macintosh resources and other Macintosh specifics.SH SYNOPSIS.nf\fB#include <tcl.h>\fR.spint\fBTcl_MacEvalResource\fR(\fIinterp, resourceName, resourceNumber, fileName\fR).spchar*\fBTcl_MacConvertTextResource\fR(\fIresource\fR).spHandle\fBTcl_MacFindResource\fR(\fIinterp, resourceType, resourceName, resourceNumber, resFileRef, releaseIt\fR).spTcl_Obj*\fBTcl_NewOSTypeObj\fR(\fInewOSType\fR).spvoid\fBTcl_SetOSTypeObj\fR(\fIobjPtr, newOSType\fR).spint\fBTcl_GetOSTypeFromObj\fR(\fIinterp, objPtr, osTypePtr\fR).spvoid\fBTcl_MacSetEventProc\fR(\fIprocPtr\fR).SH ARGUMENTS.AP Tcl_Interp *interp inInterpreter to use for error reporting, or NULL if no error reporting isdesired..AP "CONST char" *resourceName inName of TEXT resource to source, NULL if number should be used..AP int resourceNumber inResource id of source..AP "CONST char" *fileName inName of file to process. NULL if application resource..AP Handle resource inHandle to TEXT resource..AP long resourceType inType of resource to load..AP "CONST char" *resFileRef inRegistered resource file reference, NULL if searching all open resource files..AP int *releaseIt outShould we release this resource when done..AP int newOSType inInt used to initialize the new object or set the object's value..AP Tcl_Obj *objPtr inObject whose internal representation is to be set or retrieved..AP osTypePtr outPlace to store the resulting integer..AP Tcl_MacConvertEventPtr procPtr inReference to the new function to handle all incoming Mac events..BE.SH INTRODUCTION.PPThe described routines are used to implement the Macintosh specific\fBresource\fR command and the Mac specific notifier.. They manipulateor use Macintosh resources and provide administration for openresource file references..SH DESCRIPTION.PP\fBTcl_MacEvalResource\fR extends the \fBsource\fR command toMacintosh resources.  It sources Tcl code from a Text resource.Currently only sources the resource by name, file IDs may be supportedat a later date..PP\fBTcl_MacConvertTextResource\fR converts a TEXT resource into a Tclsuitable string. It mallocs the returned memory, converts ``\\r'' to``\\n'', and appends a NULL. The caller has the responsibility forfreeing the memory..PP\fBTcl_MacFindResource\fR provides a higher level interface forloading resources. It is used by \fBresource read\fR..PP\fBTcl_NewOSTypeObj\fR is used to create a new resource name typeobject. The object type is "ostype"..PP\fBTcl_SetOSTypeObj\fR modifies an object to be a resource type and tohave the specified long value..PP\fBTcl_GetOSTypeFromObj\fR attempts to return an int from the Tclobject "objPtr". If the object is not already an int, an attempt willbe made to convert it to one..PP\fBTcl_MacSetEventProc\fR sets the event handling procedure for theapplication. This function will be passed all incoming Mac events.This function usually controls the console or some other entity likeTk..SH RESOURCE TYPES.PPResource types are 4-byte values used by the macintosh resourcefacility to tag parts of the resource fork in a file so that the OSknows how to handle them. As all 4 bytes are restricted to printablecharacters such a type can be interpreted as a 4 character string too..SH KEYWORDSmacintosh, mac, resource, notifier

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -