Re: NSRecursiveLock problems
Re: NSRecursiveLock problems
- Subject: Re: NSRecursiveLock problems
- From: PCWiz <email@hidden>
- Date: Tue, 22 Dec 2009 13:52:34 -0700
So for example I could do performSelectorOnMainThread with an NSMutableArray, for example, then have the method add the result object to the array and return it?
Independent Cocoa Developer, Macatomy Software
http://macatomy.com
On 2009-12-22, at 1:29 PM, Greg Guerin wrote:
>>
>> I would like to use blocks, however I'm using the 10.5 SDK so as far as I know blocks cannot be used. Is there a way to get performSelectorOnMainThread to return a value? That would solve my issue, because I could pass on the NSAttributedString to a method on the main thread that figures out the size and all, then returns the value.
>
>
> Give performSelectorOnMainThread an object that has space for a result value. In olden days this was called a parameter block.
>
> -- GG
_______________________________________________
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