[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Accessing array members without the use of objectAtIndex
From: |
tyler mclean |
Subject: |
Accessing array members without the use of objectAtIndex |
Date: |
Fri, 13 Apr 2018 19:03:36 -0400 |
Greetings developers,
I want to preface this question by saying that this project is
impressive. My question is, is there a way to access members of
NSArray or NSMutableArray like an array with the GNUstep framework or
is that a function that currently only sits with the current Apple
architecture of the language/libraries?
e.g
NSMutableArray *myArray = [[NSMutableArray alloc] init]; //This will
be an array of NSStrings
. . .
NSLog(@"%@", myArray[0]);
instead of
NSLog(@"%@", [myArray objectAtIndex:0]);
while this particular example does not create much bloat, repeated
need to access members can make code substantially larger than that of
it's counterpart on Apple's end. If so, what do I need to do to start
using this feature. Else if not, is there a plan to add this in the
(hopefully near) future?
Thanks,
Tyler McLean
- Accessing array members without the use of objectAtIndex,
tyler mclean <=