• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
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?


  • Subject: Re: Is there another way to do performSelectorOnMainThread?
  • From: Alan Pearson <email@hidden>
  • Date: Wed, 28 Jun 2006 12:01:53 -0700

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
  • Follow-Ups:
    • Re: Is there another way to do performSelectorOnMainThread?
      • From: AurĂ©lien HugelĂ© <email@hidden>
References: 
 >Is there another way to do performSelectorOnMainThread? (From: Scott Andrew <email@hidden>)

  • Prev by Date: Re: Is there another way to do performSelectorOnMainThread?
  • Next by Date: Re: Bind to element in dictionary in array
  • Previous by thread: Re: Is there another way to do performSelectorOnMainThread?
  • Next by thread: Re: Is there another way to do performSelectorOnMainThread?
  • Index(es):
    • Date
    • Thread