Trouble with TTTableViewController / TTRequestLoader

4 views
Skip to first unread message

studpete

unread,
May 18, 2009, 7:30:21 AM5/18/09
to Three20
Hi,

i really try to integrate TTTableViewController in my app, but on
OS3b5 i fail.

I tried this example for a simple TTTableViewController with JSON
integration.
It works on Similator, but fails with SIGABRT on iPhone (running
OS3b5)

How can it be that there's an unrecognized selector?

(File TTURLRequestQueue.m:188)
if (_response.statusCode == 200) {
>TROUBLE AHEAD >> [_queue performSelector:@selector(loader:didLoadResponse:data:) withObject:self
withObject:_response withObject:_responseData];
} else {

The Example:

http://revetkn.com/?p=72

Console Output:
2009-05-18 13:18:25.781 Three20JsonExample[1151:207] Cache miss for
http://search.yahooapis.com/ImageSearchService/V1/imageSearch?appid=YahooDemo&query=lolcats&output=json
2009-05-18 13:18:28.399 Three20JsonExample[1151:207] *** -
[TTURLRequestQueue performSelector:withObject:withObject:withObject:]:
unrecognized selector sent to instance 0x215b00
2009-05-18 13:18:28.464 Three20JsonExample[1151:207] *** Terminating
app due to uncaught exception 'NSInvalidArgumentException', reason:
'*** -[TTURLRequestQueue
performSelector:withObject:withObject:withObject:]: unrecognized
selector sent to instance 0x215b00'
2009-05-18 13:18:28.479 Three20JsonExample[1151:207] Stack: (
808001701,
805397928,
808005509,
807501935,
807464352,
175951,
810989469,
810989341,
833652909,
833598161,
833597893,
833597805,
833597677,
833597581,
807749875,
807747947,
839185060,
814678044,
814671668,
8381,
8244
)
terminate called after throwing an instance of 'NSException'
Program received signal: “SIGABRT”.


Any Help would be really great, i'm kinda new to ObjC.
- Peter

klazuka

unread,
May 18, 2009, 8:16:11 AM5/18/09
to Three20
Three20 extends NSObject to provide an implementation of the
performSelector:withObject:withObject:withObject: method. It appears
that this implementation is not being linked in to your executable. In
Xcode, open Project Settings, go to "Other Linker Flags" under the
"Linker" section, and make sure that you have added "-ObjC" to the
list of flags.

-keith

klazuka

unread,
May 18, 2009, 9:49:37 AM5/18/09
to Three20
I just noticed a related issue posted on the Three20 github issue
tracker:

-----------

Add -all_load to OTHER_LDFLAGS
0 comments Created 28 days ago by davidmorford
The included ObjC categories are not getting linked when building for
the device target (ie., arm) on the latest "beta" SDKs. Adding -
all_load, in addition to -ObjC to OTHER_LDFLAGS seems to fix the
problem. I have filed this: rdar://6806626

------------

I haven't tried this, but it should fix your problem.
-keith

rAndomPi

unread,
May 19, 2009, 12:23:57 PM5/19/09
to Three20
I can confirm that this does fix the problem. I was trying to use the
gallery thumbnail view controller and it was working fine on the
Simulator OS3b5, but not on the Device. Just added -all_load to
"Other Linker Flags" in Project Settings > Build and it now works on
the device. Thanks!

studpete

unread,
May 20, 2009, 11:12:00 AM5/20/09
to Three20
Thank you, you saved my day!

I added the flags for TTCatalog. Hope it helps somebody.
http://github.com/studpete/three20/tree/master

-peter
Reply all
Reply to author
Forward
0 new messages