• 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: Using NSTimer to call the main thread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using NSTimer to call the main thread


  • Subject: Re: Using NSTimer to call the main thread
  • From: Peter Robinson <email@hidden>
  • Date: Fri, 28 Mar 2003 11:51:48 +0000

At 10:35 am -0800 27/3/03, email@hidden wrote:

On Thu, 27 Mar 2003 10:34:31 -0800 (PST), Peter Robinson wrote:

> I am trying to communicate with the main thread in order to update
> the user interface.

wouldn't be equally possible to pass a reference to the UI controller to the
secondary thread and then call updateValueNow: directly from the secondary
thread when need be?

That would be very easy, but unfortunately, it is not legal to update the UI from a secondary thread.

Regards,

Peter
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Using NSTimer to call the main thread
  • Next by Date: Constraining window resize?
  • Previous by thread: Re: Using NSTimer to call the main thread
  • Next by thread: Re: Need advice: handling SQL DB based datasource for NSTableView
  • Index(es):
    • Date
    • Thread