Live counter updates?
Live counter updates?
- Subject: Live counter updates?
- From: "John C. Welch" <email@hidden>
- Date: Tue, 01 Mar 2011 18:08:20 -0500
- Thread-topic: Live counter updates?
Having an issue with a counter I want to update live in the window.
The counter is a text field, bound to an intger property. The text field is
not editable but is selectable. The bindings are for the value, and both
"Continuously Updates Value" and "Raises for Not Applicable Keys" are
enabled.
The property is set to 0 in the definition of the property, and in
awakeFromNib(). That shows up correctly.
The problem is, I update that property in
applicationWillFinishLaunching_(aNotification) as part of a loop:
set my kextOfTotalKexts to my kextOfTotalKexts + 1
That is updating correctly, and if I log the value, I can see it
incrementing correctly. But in the UI, it stays at 0 until
applicationWillFinishLaunching is finished, then it updates to the correct
value.
I want this to update live, as the initial load of the application is a bit
slow (it's grabbing the output of kextstat as a list, and then as it
iterates through the list to populate the data table, it runs kextfind on
the kext to get the architectures for the kext), and I think a "loading x of
y kexts" display is going to be of more use for users than a generic
animated control.
Any ideas, it's probably something simple.
--
There are no little events with the heart. It magnifies everything; it
places in the same scales the fall of an empire of fourteen years and the
dropping of a woman's glove, and almost always the glove weighs more than
the empire.
- Balzac (1799-1850)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden