FoundationExtension
FoundationExtension is common Foundation/UIKit/Cocoa shortcuts and snippets collection.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
<NSAArrayLikeDataObject> Protocol Reference

This protocol defines NSArray-like interface methods for data objects. More...

#import <NSADataObject.h>

Inheritance diagram for <NSAArrayLikeDataObject>:
<NSAIndexedSubscript> <NSAMutableArrayLikeDataObject> NSATriple NSATuple NSAMutableTriple NSAMutableTuple NSAMutableTriple NSAMutableTuple

Instance Methods

(id) - objectAtIndex:
 Returns the object located at index. More...
 
(NSUInteger) - indexOfObject:
 Returns the lowest index whose corresponding member value is equal to a given object. More...
 
(BOOL) - containsObject:
 Returns a Boolean value that indicates whether a given object is present in the array. More...
 
(id) - :
 Returns the object located at index. Shortcut of objectAtIndex: More...
 
- Instance Methods inherited from <NSAIndexedSubscript>
(id) - objectAtIndexedSubscript:
 Returns the object located at the specified index. More...
 

Properties

NSUInteger count
 Returns the number of objects currently in the data object. More...
 
NSArray * allObjects
 Returns an array containing the container’s members, or an empty array if the container has no members. More...
 

Detailed Description

This protocol defines NSArray-like interface methods for data objects.

Method Documentation

- (id) : (NSUInteger)  __deprecated

Returns the object located at index. Shortcut of objectAtIndex:

Parameters
indexAn index within the bounds of data object.
Returns
The object located at index.
Deprecated:
Use (obj)[index] syntax of Modern Objective-C instead of this method.
- (BOOL) containsObject: (id)  anObject

Returns a Boolean value that indicates whether a given object is present in the array.

Parameters
anObjectAn object.
Returns
YES if anObject is present in the array, otherwise NO.
- (NSUInteger) indexOfObject: (id)  anObject

Returns the lowest index whose corresponding member value is equal to a given object.

Parameters
anObjectAn object.
Returns
The lowest index whose corresponding member value is equal to anObject. If none of the objects in the data object is equal to anObject, returns NSNotFound.
- (id) objectAtIndex: (NSUInteger)  index

Returns the object located at index.

Parameters
indexAn index within the bounds of data object.
Returns
The object located at index.

Property Documentation

- (NSArray*) allObjects
readatomiccopy

Returns an array containing the container’s members, or an empty array if the container has no members.

- (NSUInteger) count
readnonatomicassign

Returns the number of objects currently in the data object.


The documentation for this protocol was generated from the following file: