What is the term or name of the operation for getting member of an array? For example, this method returns a simple array:
- (NSArray*)createArray
{
NSArray *myArray = [[NSArray alloc] initWithObjects:@"unordentliches array", @"beliebiges Value", nil];
return myArray;
}
And I can NSLog
one of its elements in the following way:
NSLog(@"%@", [self createArray][1]);
Output:
beliebiges Value
Good, no problem here.
But what do we call this operation: [self createArray][1]
? One that allows us to -- without first assigning the value to a NSString
-- simply put this [1]
right next to the the returned value from a method call and output the value?
[self createArray][1];
What is the technical term for this?