Where in a prefPane can I do some polling, and then update the UI?
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.