Re: performSelectorOnMainThread primitives for withObject
Re: performSelectorOnMainThread primitives for withObject
- Subject: Re: performSelectorOnMainThread primitives for withObject
- From: Torsten Curdt <email@hidden>
- Date: Wed, 22 Apr 2009 20:22:42 +0200
>> It does not seem like it works that way.
>
> Is it documented to work that way? No.
I wish it would always be that simple with documentation :)
But seriously - I could have just missed it. Stuff like that do
happens sometimes ;)
>> Do I really have to use NSInvocation for this?
>
> Of course not. There are always alternatives. You could, say, write a
> -setActivatedWithNSNumber: method that manually unboxes the number.
That's what I am doing now. But that makes me feel dirty.
> You could write a higher-order message for main-thread performs.
Just had the idea to add an un-boxed version of
performSelectorOnMainThread to NSObject via Category.
But could you elaborate on the HOM a bit. Not sure I can follow there.
cheers
--
Torsten
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden