NewGestalt
NewGestalt
Add a selector code to those already recognized OSType selector ; Gestalt selector code ProcPtr selectorFunction ; address of new selector function later be recognized by calls to the Gestalt function. selector is the code re presenting the feature being registered (see
selectorFunction is the function Gestalt calls when it receives the selector. noErr (0) No error
memFullErr (-108) Ran out of memory
gestaltDupSelectorErr (-5551) Selector already exists
gestaltLocationErr (-5553) Function not in system heap
Notes: A program might wish to use its assigned creator type as its Gestalt selector code in order to avoid Gestalt namespace collisions. Under THINK C 5.0 or later, THINK Pascal 4.0 or later and MPW 3.2 or
later, NewGestalt will return an unimpErr on systems which do not language, it is necessary to check for the existence of the