The function that I want queued takes no parameters. What do I pass in as paramContext? Passing in NULL generates the compile error “Invalid use of void expression”. I do not want to add a parameter to my function just to make it compile – how do I make this work?
Mac OS X Snowleopard, Xcode 3.2.6 with Objective-C
You need to wrap the function somehow. The easiest way is actually to use
dispatch_async()instead, as in