It pretty much is exactly what I posted, but ok--
+(NSArray *)options {
return @[
@[ @"drum1.caf", @"TR-808 Tom" ],
@[ @"drum2.caf", @"TR-808 Snare" ],
];
}
-(NSArray *)options {
return [[[self class] options] valueForKey:@"lastObject"];
}
2016-04-15 23:45:09.139 myapp[1418:534149] [<__NSCFConstantString 0x44d9c0> valueForUndefinedKey:]: this class is not key value coding-compliant for the key lastObject.
2016-04-15 23:45:09.180 myapp[1418:534149] (
0 CoreFoundation 0x27755477 <redacted> + 150
1 libobjc.A.dylib 0x35686c8b objc_exception_throw + 38
2 CoreFoundation 0x27755169 <redacted> + 0
3 Foundation 0x2845e0ab <redacted> + 262
4 Foundation 0x283c5337 <redacted> + 202
5 Foundation 0x28416f65 <redacted> + 460
6 Foundation 0x28416f65 <redacted> + 460
7 myapp 0x0029fbb3 -[RhythmSoundSelect options] + 78
8 myapp 0x0029ed95 -[RhythmSoundSelect createElements] + 96
9 myapp 0x000d6d71 -[BaseSettings initWithTrainingType:] + 168
10 myapp 0x000d6c7f +[BaseSettings sceneWithTrainingType:] + 90
11 myapp 0x001bb2c3 -[RhythmTraining didTapTrainingButton:] + 638
12 myapp 0x00329637 -[TrainingButton ccTouchEnded:withEvent:] + 306
13 myapp 0x003d0005 -[CCTouchDispatcher touches:withEvent:withTouchType:] + 1272
14 myapp 0x003d0913 -[CCTouchDispatcher touchesEnded:withEvent:] + 102
15 myapp 0x003d25ad -[CCGLView touchesEnded:withEvent:] + 104
16 UIKit 0x2aca2567 <redacted> + 522
17 UIKit 0x2ac9be31 <redacted> + 544
18 UIKit 0x2ac72759 <redacted> + 196
19 UIKit 0x2aee62f9 <redacted> + 14168
20 UIKit 0x2ac711a9 <redacted> + 1352
21 CoreFoundation 0x2771bfbf <redacted> + 14
22 CoreFoundation 0x2771b3cf <redacted> + 218
23 CoreFoundation 0x27719a35 <redacted> + 772
24 CoreFoundation 0x276673b1 CFRunLoopRunSpecific + 476
25 CoreFoundation 0x276671c3 CFRunLoopRunInMode + 106
26 GraphicsServices 0x2ebc7201 GSEventRunModal + 136
27 UIKit 0x2acd143d UIApplicationMain + 1440
28 myapp 0x001e55e9 main + 108
29 libdyld.dylib 0x35c12aaf <redacted> + 2
)
It's as if valueForKey: is trying to send that message to each item inside each inner array, where I just want to send it to each inner array instance....
Like I said, I am looking to get back an array of ["TR-808 Tom", "TR-808 Snare"]
Patrick J. Collins
http://collinatorstudios.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Objc-language mailing list (Objc-language@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/objc-language/anirudha.k.cpp1%40blogger.com
This email sent to anirudha.k.cpp1@blogger.com
No comments:
Post a Comment