Skip navigation.
 
mlRe: Is there another way to do performSelectorOnMainThread?
FROM : Jerrod Fowkes
DATE : Fri Jun 30 19:20:06 2006

Jerry Krinock <<email_removed>> wrote: on 06/06/29 8:17, Finlay Dobbie at finlay.<email_removed> wrote:

> NSInvocation is probably even more heavyweight, tbh.


And a real pain!  After using NSInvocation a few times, I realized "Why am I
putting myself through this torture?"

So, I don't use it NSInvocation or its side-kick NSMethodSignature anymore.
If I need to invoke a method with non-object arguments, I either rewrite the
method so it has object wrappers around its arguments, or else wrap it in
another method that takes only object arguments, then use a
performSelector:. 

My rate of hair loss has decreased, without drugs!
Certain things might be a pain and a little more heavy weight, however what is better to use may not always be the best to develop. If NSInvocation performs better and is more stable, then I don't see why it shouldn't be embraced despite the grunt work. I don't think that it has really been determined if either structure is really better in it's core implementation and it's functionality. I could experiement with each different solutions however, I think it would be better for someone that is more experienced than I to explain that.

It is to my understanding that NSInvocation and performSelectorOnMainThread can be used in the same manner, It's determining scalability and stability that my inexperienced fingers can't tell just yet. -Jerrod Fowkes

         
---------------------------------
Yahoo! Music Unlimited - Access over 1 million songs.Try it free.

Related mailsAuthorDate
mlIs there another way to do performSelectorOnMainThread? Scott Andrew Jun 28, 20:55
mlRe: Is there another way to do performSelectorOnMainThread? Mark Stultz Jun 28, 20:56
mlRe: Is there another way to do performSelectorOnMainThread? Alan Pearson Jun 28, 21:01
mlRe: Is there another way to do performSelectorOnMainThread? Aurélien Hugelé Jun 29, 16:32
mlRe: Is there another way to do performSelectorOnMainThread? Finlay Dobbie Jun 29, 17:17
mlRe: Is there another way to do performSelectorOnMainThread? Dustin Voss Jun 30, 02:58
mlRe: Is there another way to do performSelectorOnMainThread? Jerry Krinock Jun 30, 17:28
mlRe: Is there another way to do performSelectorOnMainThread? Jerrod Fowkes Jun 30, 19:20
mlRe: Re: Is there another way to do performSelectorOnMainThread? Michael Ash Jun 30, 20:46
mlRe: Is there another way to do performSelectorOnMainThread? Shaun Wexler Jun 30, 21:59