• 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: GUI Responsiveness with a Network Resource
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >GUI Responsiveness with a Network Resource (From: Stephen Gerstacker <email@hidden>)

  • Prev by Date: GUI Responsiveness with a Network Resource
  • Next by Date: [JOB] We need Cocoa Developers in Austin
  • Previous by thread: GUI Responsiveness with a Network Resource
  • Next by thread: [JOB] We need Cocoa Developers in Austin
  • Index(es):
    • Date
    • Thread