AppleArray - UBogun/Xojo-iosLib GitHub Wiki
Inherits from AppleObject
Memory leak check: not yet done
Status: Very incomplete
This is an implementation of NSArray, the iOS native class for arrays.
NSArray is an immutable class, you will need it usually only for iOS methods returning arrays. If you want to create a NSArray on your own, refer to the iOSLibMutableArray class.
iOSLibArray is interchangeable with iOSLibCFArray
Constructor
Constructor (): Returns an empty unchangeable array.
Constructor (Id As Ptr): For receiving NSArrays from iOS methods.
Properties
Count As UInteger (read-only): The number of items the array contains.
Methods
ContainsObject (AnObject As AppleGeneralObject) As Boolean: Returns True if the array contains the object.
ContainsText (SearchText As CFStringRef) As Boolean: True if the array contains the text as one element.
ObjectAtIndex (Index As UInteger) As iOSLibObject: Returns the object at array position Index as iOSLibObject.
PtrAtIndex (Index As UInteger) As Ptr: The same as above but returns a Ptr.
TextAtIndex (Index As UInteger): Again the same but returns the value as a Text data type.
toPtrArray() As core.Array: Returns the array as a xojo.Core.Array of Ptr.
toTextArray() As core.Array: Returns the array as a xojo.Core.Array of Text.