Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ZaBlanc

macrumors newbie
Original poster
Apr 28, 2009
10
0
The following won't work:

NSDictionary *callObject = [[NSDictionary alloc] initWithObjectsAndKeys:target, @"target", selector, @"selector", nil];

Any workarounds for passing a selector through to a thread? I'm trying to encapsulate a network process so that a performSelectorInBackground: can be used, but since I can only pass one (or maybe two) objects into it (using withObject:), I am wrapping my args in an NSDictionary.

:-(
 
Sometimes I feel like posting to the forum means I'll figure it out myself. :)

Found NSSelectorFromString and NSStringFromSelector!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.