ftp.nice.ch/peanuts/GeneralData/Documents/openstep/OpenStepSpec_rtf.tar.gz#/OpenStepSpec_rtf/ApplicationKit/Functions/CFunctions.rtf

This is CFunctions.rtf in view mode; [Download] [Up]

paperh18648 margl-907 margr0 margt0 margb0 fi0 ri0 ql sb0 f1 fs24 Copyright f3 'e3f1 1994 by NeXT Computer, Inc.  All Rights Reserved.

s0 li100 fi0 ri1007 ql f0 b fs52 fs80 
fs52 Application Kit Functions
fs28 
fs52 s2 fs36 fs48 
fs36 Rectangle Drawing Functions
fs20 
fs36 s22 fs28 fs20 
fs28 Optimize Drawing
fs14 
fs28 pard s12 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs2 
fs28 fi-6552 voidb  NSEraseRect(b0 NSRect i aRectb i0 )tab b0 Erases the rectangle by filling it with white. (This does not alter the current drawing color.)
fi-6552 fs16 
fs28 fi-6552 void b NSHighlightRect(b0 NSRect i aRectb i0 )tab b0 Highlights or unhighlights a rectangle by switching light gray for white and vice versa, when drawing on the screen. If not drawing to the screen, the rectangle is filled with light gray.
fi-6552 fs16 
fs28 fi-6552 voidb  NSRectClip(b0 NSRect i aRectb i0 )b0 tab Intersects the current clipping path with the rectangle i aRecti0 , to determine a new clipping path. 
fi-6552 fs16 
fs28 fi-6552 voidb  NSRectClipList(b0 const NSRect *i rectsi0 , tab Takes an array of i counti0  number of rectangles and intersects 
s13 li7030 fi-6553 fi-5796 int i countb i0 )tab tab b0 the current clipping path with each of them. Thus, the new clipping path is the graphic intersection of all the rectangles and the original clipping path. 
s12 li7029 fi-5794 fi-6552 fs16 
fs28 fi-6552 voidb  NSRectFill(b0 NSRect i aRectb i0 )tab b0 Fills the rectangle referred to by i aRecti0  with the current color. 
fi-6552 fs16 
fs28 fi-6552 voidb  NSRectFillList(b0 const NSRect *i rectsi0 , 
s13 li7030 fi-6553 fi-5796 int i countb i0 )tab b0 Fills an array of i counti0  rectangles with the current color.
s12 li7029 fi-5794 fi-6552 fs16 
fs28 fi-6552 voidb  NSRectFillListWithGrays(b0 const NSRect *i rectsi0 , 
s13 li7030 fi-6553 fi-5796 const float *i graysi0 , int i countb i0 )tab b0 Fills each rectangle in the array i rectsi0  with the gray whose value is stored at the corresponding location in the array i graysi0 . Both arrays must be count elements long. Avoid rectangles that overlap, because the order in which they'27ll be filled can'27t be guaranteed. 
pard s22 li100 fi0 ri1007 ql f0 b fs48 
fs28 Draw a Bordered Rectangle
fs14 
fs28 pard s12 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs2 
fs28 fi-6552 void b NSDrawButton(b0 NSRect i aRecti0 , tab Draws the bordered light gray rectangle whose appearance
s13 li7030 fi-6553 fi-5796 NSRect i clipRectb i0 )tab tab b0 signifies a button in the OpenStep user interface. i aRecti0  is the bounds for the button, but only the area where i aRecti0  intersects i clipRecti0  is drawn.
s12 li7029 fi-5794 fi-6552 fs16 
fs28 fi-6552 void b NSDrawGrayBezel(b0 NSRect i aRecti0 , tab Draws a bordered light gray rectangle with the appearance
s13 li7030 fi-6553 fi-5796 NSRect i clipRectb i0 )tab tab b0 of a pushed-in button, clipped by intersecting with i clipRecti0 .
s12 li7029 fi-5794 fi-6552 fs16 
fs28 fi-6552 voidb  NSDrawGroove(b0 NSRect i aRecti0 , tab Draws a light gray rectangle whose border is a groove, 
s13 li7030 fi-6553 fi-5796 NSRect i clipRectb i0 )tab tab b0 giving the appearance of a typical box in the OpenStep user interface.
s12 li7029 fi-5794 fi-6552 fs16 
fs28 fi-6552 NSRect b NSDrawTiledRects(b0 NSRect i boundsRecti0 , b tab b0 Draws an unfilled rectangle, clipped by i clipRecti0 , whose 
s13 li7030 fi-6553 fi-5796 NSRect i clipRecti0 , b  b0  tab tab border is defined by the parallel arrays i sidesi0  and i graysi0 ,
const NSRectEdge *i sidesi0 ,tab tab both of length i counti0 . Each element of i sidesi0  specifies an
const float *i graysi0 , b tab i tab b0 i0 edge of the rectangle, which is drawn with a width of
int i countb i0 )tab tab b0 1.0 using the corresponding gray level from i graysi0 . If the i edgesi0  array contains recurrences of the same edge, each is inset within the previous edge.
s12 li7029 fi-5794 fi-6552 fs16 
fs28 fi-6552 void b NSDrawWhiteBezel(b0 NSRect i aRecti0 , tab Draws a white rectangle with a bezeled border. Only the
s13 li7030 fi-6553 fi-5796 NSRect i clipRectb i0 )tab tab b0 area that intersects i clipRecti0  is drawn.
s12 li7029 fi-5794 fi-6552 fs16 
fs28 fi-6552 voidb  NSFrameRect(b0 NSRect i aRectb i0 )tab b0 Draws a frame of width 1.0 around the inside of a rectangle, using the current color. 
fi-6552 fs16 
fs28 fi-6552 voidb  NSFrameRectWithWidth(b0 NSRect i aRecti0 , tab Draws a frame of width i frameWidthi0  around the inside of a
s13 li7030 fi-6553 fi-5796 float i frameWidthb i0 )tab tab b0 rectangle, using the current color.
pard s2 li100 fi0 ri1007 ql f0 b fs36 fs70 
fs36 Color Functions
fs20 
fs36 s22 fs28 fs20 
fs28 Get Information About Color Space and Window Depth
fs14 
fs28 pard s12 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs2 
fs28 fi-6552 const NSWindowDepth *b NSAvailableWindowDepths(b0 voidb )b0  
s13 li7030 fi-6553 fi-5796 tab Returns a zero-terminated list of available window depths.
s12 li7029 fi-5794 fi-6552 fs16 
fs28 fi-6552 NSWindowDepth b NSBestDepth(b0 NSString *i colorSpacei0 , 
s13 li7030 fi-6553 fi-5796 int i bitsPerSamplei0 , int i bitsPerPixeli0 , tab Returns a window depth deep enough for the given number 
BOOL i planari0 , BOOL *i exactMatchb i0 )tab b0 tab of colors, bits per sample, bits per pixel, and if planar. Upon return, the variable pointed to by i exactMatchi0  is YES if the window depth can accommodate all of the values given for all of the parameters, NO if not.
s12 li7029 fi-5794 fi-6552 fs16 
fs28 fi-6552 int b NSBitsPerPixelFromDepth(b0 NSWindowDepth i depthb i0 )b0  
s13 li7030 fi-6553 fi-5796 tab Returns the number of bits per pixel for the given window depth.
s12 li7029 fi-5794 fi-6552 b fs16 
fs28 fi-6552 b0 int b NSBitsPerSampleFromDepth(b0 NSWindowDepth i depthb i0 )
pard s13 li7030 fi-5796 ri1007 ql tx6652 tx7030 b0 tab Returns the number of bits per sample (bits per pixel in each color component) for the given window depth.
s12 li7029 fi-5794 fi-6552 fs16 
fs28 fi-6552 NSString *b NSColorSpaceFromDepth(b0 NSWindowDepth i depthb i0 )
s13 li7030 fi-6553 fi-5796 b0 tab Returns the name of the color space that matches the given window depth.
s12 li7029 fi-5794 fi-6552 fs16 
fs28 fi-6552 int b NSNumberOfColorComponents(b0 NSString *i colorSpaceNameb i0 )
s13 li7030 fi-6553 fi-5796 b0 tab Returns the number of color components in the named color space.
s12 li7029 fi-5794 fi-6552 fs16 
fs28 fi-6552 BOOL b NSPlanarFromDepth(b0 NSWindowDepth i depthb i0 )
s13 li7030 fi-6553 fi-5796 b0 tab Returns YES if the given window depth is planar, NO if not.
pard s22 li100 fi0 ri1007 ql f0 b fs48 
fs28 Read the Color at a Screen Position
fs14 
fs28 pard s12 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs2 
fs28 fi-6552 NSColor b *NSReadPixel(b0 NSPoint i locationb i0 )tab b0 Returns the color of the pixel at the given location, which must be specified in the current view'27s coordinate system.
pard s2 li100 fi0 ri1007 ql f0 b fs36 fs70 
fs36 Text Functions
fs20 
fs36 s22 fs28 fs20 
fs28 Filter Characters Entered into a Text Object
fs14 
fs28 pard s12 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs2 
fs28 fi-6552 unsigned short b NSEditorFilter(b0 unsigned short i theChari0 , 
s13 li7030 fi-6553 fi-5796 int i flags, b i0 tab b0 Identical to b NSFieldFilter()b0  except that it passes on values
NSStringEncoding i theEncodingb i0 ) tab tab b0 corresponding to Return, Tab, and Shift-Tab directly to the NSText object.
s12 li7029 fi-5794 fi-6552 fs16 
fs28 fi-6552 unsigned short b NSFieldFilter(b0 unsigned short i theChari0 , 
s13 li7030 fi-6553 fi-5796 int i flagsi0 , tab Checks each character the user types into an NSText
NSStringEncoding i theEncodingb i0 )tab tab b0 object'27s text, allowing the user to move the selection among text fields by pressing Return, Tab, or Shift-Tab. Alphanumeric characters are passed to the NSText object for display. The function returns either the ASCII value of the character typed, 0 (for illegal characters or ones entered while a Command key is held down), or a constant that the Text object interprets as a movement command.
pard s22 li100 fi0 ri1007 ql f0 b fs48 
fs28 Calculate or Draw a Line of Text (in Text Object)
fs14 
fs28 pard s12 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs2 
fs28 fi-6552 int b NSDrawALine(b0 id i selfi0 , tab Draws a line of text, using the global variables set by
s13 li7030 fi-6553 fi-5796 NSLayInfo *i layInfob i0 )tab tab NSScanALine()b0 . The return value has no significance.
s12 li7029 fi-5794 fi-6552 fs16 
fs28 fi-6552 int b NSScanALine(b0 id i selfi0 , tab Determines the placement of characters in a line of text. i self
s13 li7030 fi-6553 fi-5796 i0 NSLayInfo *i layInfob i0 )tab i tab  b0 i0 refers to the NSText object calling the function, and *i layInfoi0  is an NSLayInfo struct. The function returns 1 if a word'27s length exceeds the width of a line and the NSText'27s charWrap instance variable is NO. Otherwise, it returns 0.
pard s22 li100 fi0 ri1007 ql f0 b fs48 
fs28 Calculate Font Ascender, Descender, and Line Height (in Text Object)
fs14 
fs28 pard s12 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs2 
fs28 fi-6552 voidb  NSTextFontInfo(b0 id i fidi0 , tab Calculates, and returns by reference, the ascender,
s13 li7030 fi-6553 fi-5796 float *i ascenderi0 , float *i descenderi0 , tab tab descender, and line height values for the NSFont given 
float *i lineHeightb i0 )tab tab b0 by i fonti0 .
pard s22 li100 fi0 ri1007 ql f0 b fs48 
fs28 Access Text Object'27s Word Tables
fs14 
fs28 pard s12 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs2 
fs28 fi-6552 fs28 NSData * b NSDataWithWordTable(b0 fs28 consti  i0 unsigned charfs28  *i fs28 smartLefti0 fs28 , 
s13 li7030 fi-6553 fi-5796 fs28 const unsigned charfs28  *i fs28 smartRighti0 fs28 , b tab b0 fs28 Given pointers to word table structures, records the
const unsigned chafs28 r *i fs28 charClassesi0 fs28 , tab tab fs28 structures in the returned NSData object. The
const NSFSM fs28 *i wrapBreaksi0 , tab tab fs28 arguments are similar to those of
int i fs28 wrapBreaksCounti0 , b tab tab fs28 NSReadWordTable()b0 .
const NSFSM fs28 *i clickBreaksi0 , 
fs28 int i fs28 clickBreaksCounti0 , 
fs28 BOOLfs28  i charWrapb i0 ) 
s12 li7029 fi-5794 fi-6552 b0 fs28 fs16 
fs28 fi-6552 voidb  NSReadWordTable(b0 fs28 NSZoneb  b0 *i zonei0 ,b  tab b0 fs28 Given i datai0 , creates word tables in the memory zone
s13 li7030 fi-6553 fi-5796 NSData *i datai0 , tab tab specified by i zonei0 , returning (in the subsequent 
unsigned char **i smartLefti0 , tab tab arguments) pointers to the various tables. The integer
unsigned char **i smartRighti0 , tab tab pointer arguments return the length of the preceding
unsigned char **i charClassesi0 , tab tab array, and i charWrapi0  indicates whether words whose
NSFSM **i wrapBreaksi0 , tab tab length exceeds the NSText object'27s line length should 
int *i wrapBreaksCounti0 , tab tab be wrapped on a character-by-character basis.
NSFSM **i clickBreaksi0 , 
int *i clickBreaksCounti0 , 
fs28 BOOL *i charWrapb i0 fs28 )
pard s2 li100 fi0 ri1007 ql f0 fs36 fs70 
fs36 Array Allocation Functions for Use by the NSText Class
fs20 
fs36 pard s12 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs28 NSTextChunk *b NSChunkCopy(b0 NSTextChunk *i pci0 , tab Copies the array i pci0  to the array i dpci0  and returns a pointer to
s13 li7030 fi-6553 fi-5796 NSTextChunk *i dpcb i0 )tab tab b0 the copy. 
s12 li7029 fi-5794 fi-6552 fs16 
fs28 fi-6552 NSTextChunk b *NSChunkGrow(b0 NSTextChunk *i pci0 , tab Increases the array identified by the pointer i pci0  to a size of
s13 li7030 fi-6553 fi-5796 int i newUsedb i0 )tab b0 i tab newUsedb i0  b0 bytes.
s12 li7029 fi-5794 fi-6552 fs16 
fs28 fi-6552 NSTextChunk *b NSChunkMalloc(b0 int i growByi0 , tab Allocates initial memory for a structure whose first field is
s13 li7030 fi-6553 fi-5796 int i initUsedb i0 )tab tab b0 an b NSTextChunkb0  structure and whose subsequent field is a variable-sized array. The amount of memory allocated is equal to i initUsedi0 . If i initUsedi0  is 0, i growByi0  bytes are allocated. i growByi0  specifies how much memory should be allocated when the chunk grows.
s12 li7029 fi-5794 fi-6552 fs16 
fs28 fi-6552 NSTextChunk *b NSChunkRealloc(b0 NSTextChunk *i pcb i0 )tab 
s13 li7030 fi-6553 fi-5796 b0 b tab b0 Increases the amount of memory available for the array identified by the pointer i pci0 , as determined by the array'27s NSTextChunk.
pard s12 li7029 fi-6552 ri1007 ql tx6652 tx7030 fs16 
fs28 fi-6552 NSTextChunk *b NSChunkZoneCopy(b0 NSTextChunk *i pci0 , 
s13 li7030 fi-6553 fi-5796 NSTextChunk *i dpci0 , tab Like b NSChunkCopy()b0 , but uses the specified zone of
NSZone *i zoneb i0 )tab tab b0 memory.
s12 li7029 fi-5794 fi-6552 fs16 
fs28 fi-6552 NSTextChunk *b NSChunkZoneGrow(b0 NSTextChunk *i pci0 ,
s13 li7030 fi-6553 fi-5796 int i newUsedi0 , tab Like b NSChunkGrow()b0 , but uses the specified zone of
NSZone *i zoneb i0 )tab tab b0 memory.
s12 li7029 fi-5794 fi-6552 fs16 
fs28 fi-6552 NSTextChunk *b NSChunkZoneMalloc(b0 int i growByi0 , tab Like b NSChunkMalloc()b0 , but uses the specified zone of
s13 li7030 fi-6553 fi-5796 int i initUsedi0 , tab tab memory.
NSZone *i zoneb i0 )
s12 li7029 fi-5794 fi-6552 b0 fs16 
fs28 fi-6552 NSTextChunk *b NSChunkZoneRealloc(b0 NSTextChunk *i pci0 , 
s13 li7030 fi-6553 fi-5796 NSZone *i zoneb i0 )tab b0 Like b NSChunkRealloc()b0 , but uses the specified zone of memory.
pard s2 li100 fi0 ri1007 ql f0 b fs36 fs70 
fs36 Imaging Functions
fs20 
fs36 s22 fs28 fs20 
fs28 Copy an image
fs14 
fs28 pard s12 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs2 
fs28 fi-6552 void b NSCopyBitmapFromGState(b0 int i srcGstatei0 , tab Copies the pixels in the rectangle i srcRecti0  to the rectangle
s13 li7030 fi-6553 fi-5796 NSRect i srcRecti0 , tab tab i destRecti0 . The source rectangle is defined in the 
NSRecti  destRectb i0 )tab  tab b0 graphics state designated by i srcGstatei0 , and the destination is defined in the current graphics state. 
s12 li7029 fi-5794 fi-6552 fs16 
fs28 fi-6552 void b NSCopyBits(b0 int i srcGstatei0 , tab Copies the pixels in the rectangle i srcRecti0  to the location
s13 li7030 fi-6553 fi-5796 NSRecti  srcRecti0 , tab tab i destPointi0 . The source rectangle is defined in the current
NSPoint i destPointb i0 )tab tab b0 graphics state if i srcGstatei0  is NSNullObject; otherwise, in the graphics state designated by i srcGstatei0 . The  i destPointi0  destination is defined in the current graphics state.
pard s22 li100 fi0 ri1007 ql f0 b fs48 
fs28 Render Bitmap Images
fs14 
fs28 pard s12 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs2 
fs28 fi-6552 void b NSDrawBitmapb0 (NSRect i recti0 ,tab Renders an image from a bitmap. i recti0  is the rectangle in
s13 li7030 fi-6553 fi-5796 int i pixelsWidei0 ,tab tab which the image is drawn, and i data i0 is the bitmap data,
int i pixelsHighi0 ,tab tab stored in up to 5 channels unless i isPlanar i0 is NO (in
int i bitsPerSamplei0 , tab tab which case the channels are interleaved in a single 
int i samplesPerPixeli0 ,tab tab array).
int i bitsPerPixeli0 ,
int i bytesPerRowi0 , 
BOOL i isPlanari0 ,
BOOL i hasAlphai0 , 
NSString *i colorSpaceNamei0 , 
const unsigned char *const i datai0 [5]b )
pard s2 li100 fi0 ri1007 ql f0 fs36 fs70 
fs36 Attention Panel Functions
fs20 
fs36 s22 fs28 fs20 
fs28 Create an Attention Panel without Running It Yet
fs14 
fs28 pard s12 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs2 
fs28 fi-6552 id b NSGetAlertPanel(b0 NSString *i titlei0 , tab Returns an NSPanel object that you can use in a modal
s13 li7030 fi-6553 fi-5796 NSString *i msgi0 , i tab tab i0 session. Unlike b NSRunAlertPanel()b0 , no button is
NSString *i defaultButtoni0 , i tab tab i0 displayed if i defaultButtoni0  is NULL.
NSString *i alternateButtoni0 , 
NSString *i otherButton, ...b i0 )
pard s22 li100 fi0 ri1007 ql f0 fs48 
fs28 Create and Run an Attention Panel
fs14 
fs28 pard s12 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs2 
fs28 fi-6552 int b NSRunAlertPanel(b0 NSString *i titlei0 , tab Creates an attention panel that alerts the user to some
s13 li7030 fi-6553 fi-5796 NSString *i msg, tab tab i0 consequence of a requested action, and runs the panel in
NSString *i defaultButton, tab tab i0 a modal event loop. i titlei0  is the panel'27s title (by default, 
NSString *i alternateButton, tab tab i0 'aaAlert'ba); i msgi0  is the b printf()b0 -style message that'27s
NSString *i otherButton, ...b i0 )tab tab b0 displayed in the panel; i defaultButtoni0  (by default, 'aaOK'ba) is the title for the main button, also activated by Return; i alternateButtoni0  and i otherButtoni0  give two more choices, which are displayed only if the corresponding argument isn'27t NULL. The trailing arguments are a variable number of b printf()b0 -style arguments to msg.
s12 li7029 fi-5794 fi-6552 fs16 
fs28 fi-6552 int b NSRunLocalizedAlertPanel(b0 NSString *i tablei0 , tab Similar to b NSRunAlertPanel()b0 , but preferred, as it makes
s13 li7030 fi-6553 fi-5796 NSString *i titlei0 , tab tab use of OpenStep'27s localization feature for languages of
NSString *i msg, tab i0 tab different countries.
NSString *i defaultButton, 
i0 NSString *i alternateButton, 
i0 NSString *i otherButton, ...b i0 )
pard s22 li100 fi0 ri1007 ql f0 fs48 
fs28 Release an Attention Panel
fs14 
fs28 pard s12 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs2 
fs28 fi-6552 void b NSReleaseAlertPanel(b0 id i panelb i0 )b0 tab Releases the specified alert panel.
pard s2 li100 fi0 ri1007 ql f0 b fs36 fs70 
fs36 Services Menu Functions
fs20 
fs36 s22 fs28 fs20 
fs28 Determine Whether an Item Is Included in Services Menus
fs14 
fs28 pard s12 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs2 
fs28 fi-6552 int b NSSetShowsServicesMenuItem(b0 NSString *i itemi0 , 
s13 li7030 fi-6553 fi-5796 BOOL i shoi0 wi Serviceb i0 )tab b0 Determines (based on the value of i showServicei0 ) whether the i itemi0  command will be included in other applications'27 Services menus. i itemi0  describes a service provided by this application, and should be the same string entered in the 'aaMenu Item:'ba field of the services file. The function returns 0 upon success.
s12 li7029 fi-5794 fi-6552 fs16 
fs28 fi-6552 BOOL b NSShowsServicesMenuItem(b0 NSString *i itemb i0 )
s13 li7030 fi-6553 fi-5796 b0 b tab b0 Returns YES if item is currently shown in Services menus.
s22 li100 fi1134 fi0 f0 b fs48 
fs28 Programmatically Invoke a Service
fs14 
fs28 pard s12 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs2 
fs28 fi-6552 BOOL b NSPerformService(b0 NSString *i itemi0 , tab Invokes a service found in the application'27s Services menu.
s13 li7030 fi-6553 fi-5796 NSPasteboard *i pboardb i0 )tab b0 tab  i itemi0  is the name of a Services menu item, in any language; a slash in this name represents a submenu. i pboardi0  must contain the data required by the service, and when the function returns, i pboardi0  will contain the data supplied by the service provider.
pard s22 li100 fi0 ri1007 ql f0 b fs48 
fs28 Force Services Menu to Update Based on New Services
fs14 
fs28 pard s12 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs2 
fs28 fi-6552 void b NSUpdateDynamicServices(b0 voidb )tab b0 Re-registers the services the application is willing to provide, by reading the file with the extension 'aa.service'ba in the application path or in the standard path for services.
pard s2 li100 fi0 ri1007 ql f0 b fs36 fs70 
fs36 Other Application Kit Functions
fs20 
fs36 s22 fs28 fs20 
fs28 Play the System Beep
fs14 
fs28 pard s12 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs2 
fs28 fi-6552 void b NSBeep(b0 voidb )tab b0 Plays the system beep.
pard s22 li100 fi0 ri1007 ql f0 b fs48 
fs28 Return File-related Pasteboard Types
fs14 
fs28 pard s12 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs2 
fs28 fi-6552 NSStringb  b0 *b NSCreateFileContentsPboardType(b0 NSString *i fileTypeb i0 )
s13 li7030 fi-6553 fi-5796 b0 tab Returns a string naming a pasteboard type that represents a file'27s contents, based on the supplied string i fileTypei0 . i fileTypei0  should generally be the extension part of a file name. The conversion from a named file type to a pasteboard type is simple; no mapping to standard pasteboard types is attempted.
s12 li7029 fi-5794 fi-6552 fs16 
fs28 fi-6552 NSString *b NSCreateFilenamePboardType(b0 NSString *i filenameb i0 )
s13 li7030 fi-6553 fi-5796 b0 tab Returns a string naming a pasteboard type that represents a a file name, based on the supplied string i filenamei0 . 
s12 li7029 fi-5794 fi-6552 fs16 
fs28 fi-6552 NSString *b NSGetFileType(b0 NSString *i pboardTypeb i0 )tab b0 Returns the extension or file name from which the pasteboard type i pboardTypei0  was derived. b nilb0  is returned if i pboardTypei0  isn'27t a pasteboard type created by b NSCreateFileContentsPboardType()b0  or b NSCreateFilenamePboardType()b0 .
fi-6552 fs16 
fs28 fi-6552 NSArray *b NSGetFileTypes(b0 NSArray *i pboardTypesb i0 )
s13 li7030 fi-6553 fi-5796 b0 tab Accepts an array of pasteboard types and returns an array of the unique extensions and file names from the file-content and file-name types found in the input array. It returns b nilb0  if the input array contains no file-content or file-name types.
pard s22 li100 fi0 ri1007 ql f0 b fs48 
fs28 Draw a Distinctive Outline around Linked Data
fs14 
fs28 pard s12 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs2 
fs28 fi-6552 voidb  NSFrameLinkRect(b0 NSRect i aRecti0 , tab Draws a distinctive link outline just outside the rectangle
s13 li7030 fi-6553 fi-5796 BOOL i isDestinationb i0 )tab b0 i tab aRecti0 . To draw an outline around a destination link, i isDestinationi0  should be YES, otherwise NO. 
s12 li7029 fi-5794 fi-6552 fs16 
fs28 fi-6552 float b NSLinkFrameThickness(b0 voidb )b0 tab Returns the thickness of the link outline so that the outline can be properly erased by the application, or for other purposes.
pard s22 li100 fi0 ri1007 ql f0 b fs48 
fs28 Convert an Event Mask Type to a Mask
fs14 
fs28 pard s12 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs2 
fs28 fi-6552 unsigned int b NSEventMaskFromTypeb0 (NSEventType i typei0 )
s13 li7030 fi-6553 fi-5796 tab Returns the event mask corresponding to i typei0  (which is an enumeration constant). The returned mask equals 1 left-shifted by i type i0 bits. 
}

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.