• 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
Where in a prefPane can I do some polling, and then update the UI?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Where in a prefPane can I do some polling, and then update the UI?


  • Subject: Where in a prefPane can I do some polling, and then update the UI?
  • From: "Sean McBride" <email@hidden>
  • Date: Wed, 28 May 2003 11:12:49 -0400
  • Organization: Matrox Electronic Systems Ltd.

Hi all,

I have a prefPane (inherits from NSPreferencePane, runs in System
Preferences) and I need to periodically poll for new information and
update the UI based on the results. (Yes, polling is bad, but I have no
choice due to a known CoreAudio bug: the
kAudioDevicePropertyDeviceIsRunningSomewhere callback does not work.)

But where can I do this polling? AFAICT I don't have access to any kind
of event loop or anything else than runs periodically. Should I create a
thread that polls and sleeps? Will I then have issues with 2 threads
updating the UI at once?

Thanks for any pointers!

--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Mac Software Designer +1-514-822-6000
Matrox Electronic Systems Ltd. Montrial, Quibec, Canada
_______________________________________________
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.

  • Follow-Ups:
    • Re: Where in a prefPane can I do some polling, and then update the UI?
      • From: "M. Uli Kusterer" <email@hidden>
    • Re: Where in a prefPane can I do some polling, and then update the UI?
      • From: Oscar Morales Vivó <email@hidden>
  • Prev by Date: Re: Unicode Problem
  • Next by Date: Re: [Programmatically Filling In Body of E-Mail Message]
  • Previous by thread: Re: Interface Builder and projects with variable number of windows
  • Next by thread: Re: Where in a prefPane can I do some polling, and then update the UI?
  • Index(es):
    • Date
    • Thread