I would like to be able to define a built-in anonymous selector so that the selector is wherever the selector is needed as an argument.
Is this possible, or do I just need to suck it and define a method?
Background . In my iPhone application, I need to update my interface from another thread. For this, I use performSelectorOnMainThread:withObject:waitUntilDone: However, I would like to be able to get this functionality without defining another method.
objective-c iphone anonymous-methods selector
Ben s
source share