Class: ObjC::NSArray

This is the Ruby wrapper for instances of the Objective-C NSArray class. It contains a few additional methods to support Ruby-style manipulation (it also includes the Ruby Enumerable module). These methods are inherited by the Ruby wrappers of all classes derived from NSArray. It is a child of ObjC::NSObject, which in turn is a child of the ObjC::Object class.


Public Instance methods

<< (x)

Ruby-style appending to an Objective-C NSArray. The array must be of a mutable subclass of NSArray.

[] (i)

Ruby-style indexing into an Objective-C NSArray.

[]= (index,value)

Ruby-style assignment into an Objective-C NSArray. The array must be of a mutable subclass of NSArray.

each () {|object| ...}

Ruby-style enumeration of an Objective-C NSArray.

length ()

Ruby-style size of an Objective-C NSArray.