Skip to content


about @[ @"A", @"B" ] #2

fjun99 opened this Issue · 2 comments

2 participants


Thank first. I am already using SkyLab and GroundControl.

It makes life easy to init a array or dictionary using @[] or @{}. But it will be a problem for those whose XCode is still under 4.2. I encountered this problem.

In the code you init a array using this:

@[ @"A", @"B" ]

would you please change it to [NSArray arrayWithObjects:@"A", @"B", nil]?

@mattt mattt added a commit that referenced this issue
@mattt [Issue #2] Avoiding array literal in implementation to improve compat…
…ibility with older versions of Xcode

You know, you have a good point here. While object literals make this a heckuva better-looking in the README, there's no really good reason for me to force object literals in the private implementation, if it's going to cause so much hassle for so little benefit. I've changed this in 487ae74.

While the example project won't work on older versions of Xcode, you'll be able to use SkyLab just fine on its own. Thanks for bringing this to my attention.

@mattt mattt closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.