Re: GUI Responsiveness with a Network Resource
Re: GUI Responsiveness with a Network Resource
- Subject: Re: GUI Responsiveness with a Network Resource
- From: Chris Suter <email@hidden>
- Date: Tue, 22 May 2007 09:34:30 +1000
On 22/05/2007, at 9:28 AM, Stephen Gerstacker wrote:
I have a cocoa app that displays a list of pictures which are stored
across the network. The images a received via XML-RPC. If I click on
an item in the list, my Cocoa app:
1. Shows a spinning progress indicator
2. Sets up an XML-RPC call
3. Invokes the call in a new thread
4. The callback function puts the image in an ImageView
Which thread is the callback function running in? You should only do
UI in the main thread. If your callback function is in a different
thread use performSelectorOnMainThread.
Please note: I come from a Windows/Linux world. Cocoa development has
been very different for me.
I would have thought the same principles with regards threading apply
to the Windows and Linux world.
- Chris
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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