From: Paul P. <bay...@gm...> - 2011-03-24 14:12:54
|
Fortunately with XMLVM we can make use of "final" variables, which are accessible inside run(), so you don't need an argument. Most of the time you'll probably be writing anonymous inner classes, which can use those variables. And a more standard class that implements Runnable can store variables as members. The nature of Objective-C makes it more difficult to use performSelectorOnMainThread if we didn't have a place to stick an argument, but Java & therefore XMLVM makes it simple. Thanks, Paul On Thu, Mar 24, 2011 at 5:44 AM, Panayotis Katsaloulis < pan...@pa...> wrote: > > On Mar 24, 2011, at 9:27 AM, Arno Puder wrote: > > > > > that is certainly also an interesting alternative: instead of > > introducing a new interface NSSelector, simply use Runnable. > > > > Panayotis: what do you think? > > > > Arno > > > This was my first intention. > Unfortunately it is not possible, since we need an argument for this > method, but the "run" method is without arguments. > > |