Nu Class Reference

NuPointer

The Nu pointer wrapper.

Superclass: NSObject
Declared in: objc/pointer.h

The NuPointer class provides a wrapper for pointers to arbitrary locations in memory.

Methods

- (void) allocateSpaceForTypeString: (NSString *) s
Helper function, used internally to reserve space for data of a specified type.

in objc/pointer.h

- (id) object
Assume the pointer is a pointer to an Objective-C object. Get the object. You had better be right, or this will crash.

in objc/pointer.h

- (void *) pointer
Get the value of the pointer. Don't call this from Nu.

in objc/pointer.h

- (void) setPointer: (void *) pointer
Set the pointer. Used by the bridge to create NuReference objects from pointers. Don't call this from Nu.

in objc/pointer.h

- (void) setTypeString: (NSString *) typeString
Set the type of a pointer. This should be an Objective-C type encoding that begins with a "^".

in objc/pointer.h

- (NSString *) typeString
Get an Objective-C type string describing the pointer target.

in objc/pointer.h

- (id) value
Get the value of the pointed-to object, using the typeString to determine the correct type

in objc/pointer.h