Re: Do Cocoa bindings retain their own values?
Re: Do Cocoa bindings retain their own values?
- Subject: Re: Do Cocoa bindings retain their own values?
- From: "Shawn Erickson" <email@hidden>
- Date: Mon, 19 Nov 2007 13:58:42 -0800
On Nov 19, 2007 1:42 PM, Frank Reiff <email@hidden> wrote:
> Now for the question: can I call it with waitUntilDone: NO !?
Yes, assuming no other inter-thread dependencies exist.
> The code as it stands wouldn't be thread safe because the NSString
> parameter might already have been de-allocated by the worker thread by
> the time [text copy] is executed on the main thread.
The performSelectorOnMainThread:withObject: method retains the object
you supply until the target object has processed the selector.
-Shawn
_______________________________________________
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