Objective-Everything Release 5. Copyright ©1994-1998 by TipTop Software, Inc. All Rights Reserved.
Lookup object by name. If name represents an illegal object ValueError is raised.
perl% lookup 'NSObject'; NSObject perl% $x=NSObject->object; <NSObject:0x4927c> perl% lookup '@NSObject@0x4927c'; <NSObject:0x4927c> perl% lookup '0x4927c'; <NSObject:0x4927c>
Dynamically links (loads) the specified files.
Returns true if ObjPerl object is nil, false otherwise. Raises if o is not an ObjPerl object.
nil(nil); # ==> 1 nil(lookup("Object")); # ==> 0 nil("hello"); # ==> croaks
Returns an error description if o is a bad ObjPerl object, or if o is not an ObjPerl object at all. Returns false (0) if o is a valid ObjPerl object. Never raises.
perl% $o=NSObject->alloc->init; <NSObject:0x169ff0> perl% $o->release; perl% $o->release; perl% object_is_bad $o; 'Dealloc'ed object' perl% object_is_bad 123; 'not an object' perl% object_is_bad nil;
Executes BLOCK for each element of $obj. If enumerator is specified, it is used to enumerate elements of obj. Otherwise, $obj->objectEnumerator is used.
Prints Perl expression EXPR in the interactor.
Reads one line from the interactor.
Converts Perl object pl to its ObjPerl equivalent.
Converts ObjPerl object obj to its Perl equivalent.
To load AppKit, simply import the AppKit module.
This brings in the AppKit and ObjAppKit frameworks.
Runs the AppKit main event loop. Code sub is executed as soon as the main event loop starts running.
Asynchronously executes sub. If the delay argument is specified, sub is executed after delay seconds.