On Mar 7, 2014, at 4:54 AM, Bill Cheeseman <wjcheese...@gmail.com> wrote:
> However, when I run it on Mac OS X 10.7 Lion, I get a runtime error claiming > it encountered an invalid argument, namely, the unrecognized selector > -objectAtIndexedSubscript:. The NSArray Class Reference notes that > -objectAtIndexedSubscript: is available only in OS X 10.8 and later, and that > it is "identical to objectAtIndex:". Of course, -objectAtIndex: still exists > in the 10.9 API, and it is not marked as deprecated. > It appears, therefore, that the compiler generated a call to > -objectAtIndexedSubscript: even though my source specifies -objectAtIndex: > and a deployment version of 10.7. Backtrace, please? It’s possible it wasn’t that exact -objectAtIndex: call that raised the exception. > I notice that the 10.7 Lion SDK is not part of the Xcode 5 installation. Do I > have to add the 10.7 Lion SDK? -- and how would I go about doing that? SDKs aren’t separately installable, unfortunately. They’re kind of hardwired into Xcode, i.e. you can’t add any SDK that didn’t come with that version of Xcode. (Or rather, you _can_ often splice it in, but that’s an unsupported configuration and sometimes it doesn’t work out well.) —Jens _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com