Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Closed
fjun99 opened this Issue · 2 comments

2 participants

@fjun99

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 referenced this issue from a commit
@mattt [Issue #2] Avoiding array literal in implementation to improve compat…
…ibility with older versions of Xcode
487ae74
@mattt
Owner

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
@fjun99
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.