Re: Return value of performSelector:onThread:?
Re: Return value of performSelector:onThread:?
- Subject: Re: Return value of performSelector:onThread:?
- From: Seth Willits <email@hidden>
- Date: Fri, 8 Oct 2010 11:55:49 -0700
On Oct 7, 2010, at 10:49 PM, Abhi Beckert wrote:
> The performSelector: methods don't expose the return value of the message, even with waitUntilDone:YES. I'm not happy with my workaround, which is to use an instance variable:
Use the withObject: parameter. If you use a mutable dictionary, you can shove multiple "parameters" into it for the method to use, and the method can add the return value. Whatever gets triggered after the method is done can examine the dictionary to see the result. Just make sure you do the memory management correctly.
--
Seth Willits
_______________________________________________
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