Einhugur macOS Bridge plugin. |

# EinhugurCoreBridge.NSArray Class

Read only array for Cocoa objects.
Use NSMutableArray to get read and write array.

EinhugurCoreBridge.NSObject
NSArray

class EinhugurCoreBridge.NSArray implements

EinhugurCoreBridge.INSCopying

#### Constructors

NSArray (private) | This constructor is private since you cannot create instance of this class directly.

#### Properties

ClassName (Inherited) (desktop - console) | Returns the name of the Cocoa class under the hood as String.
Count | Returns number of elements in the array.
Handle (Inherited) | Returns Integer handle to the native NSObject structure.

#### Methods

BooleanValue | Returns Boolean value from the array at given index or false if the element at given index was not NSNumber.
shared Cast | Does deep cast on incoming NSObject to NSArray
Contains | Returns a Boolean value that indicates whether a given object is present in the array.
Contains | Returns a Boolean value that indicates whether a given string is present in the array.
DoubleValue | Returns Double value from the array at given index or false if the element at given index was not NSNumber.
shared FromIntegerPtr | Constructs NSArray object from Integer handle coming from declares or 3rd party plugin.
IndexOf | Returns the lowest index whose corresponding array value is equal to a given object.
IndexOf | Returns the lowest index whose corresponding array value is equal to a given string.
IntegerValue | Returns Integer value from the array at given index or false if the element at given index was not NSNumber.
shared IsNSArray | Returns true if the NSObject under the hood is NSArray or derived from NSArray.
Operator_Subscript | Gets NSObject from given index in the array.
Release (Inherited) | Releases the NSObject.
Retain (Inherited) | Retains the NSObject
StringValue | Returns String value from the array at given index or false if the element at given index was not String.

#### Constants

Version = 5.0 (Inherited) |

#### Examples

Note when you take out of NSArray class then you will need to do “deep cast” as in use .Cast like for example NSImage.Cast to cast the objects if you want to get them as anything but base NSObject.

#### Supported Platforms:

- macOS Intel 64 bit
- macOS Apple Silicon
- iOS

#### Unsupported Platforms:

- Windows 32 bit
- Windows 64 bit
- Windows ARM 64 bit
- Linux 32 bit
- Linux 64 bit
- Linux ARM 32 bit
- Linux ARM 64 bit