Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Is there another way to do performSelectorOnMainThread?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is there another way to do performSelectorOnMainThread?



I have always just created a proxy method on self that I call using performSelectorOnMainThead. I pass the proxy method a dictionary of the objects for the real call I want to make on the main thread. It extracts the items from the dictionary and invokes the selector.

I'll bet you could also achieve this with NSInvocation, though that seems a bit heavy-weight.

Alan Pearson - email@hidden
http://www.sonzea.com/



On Jun 28, 2006, at 11:55 AM, Scott Andrew wrote:

I want to user performSelectorOnMainThread however i want to pass in more than one object (2 actually) but performSelectorOnMainThread only supports one. Is there a way to this besides using an arrray as my object?

Scott Andrew
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Is there another way to do performSelectorOnMainThread? (From: Scott Andrew <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.