I need to have a loop that can constantly check for this variable:
NSString *charlieSoundVolume;
charlieSoundVolume = [charlieSoundLevel stringValue];
This variable will change by an interface builder patch. I was thinking of doing this:
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
while(1) {
float floatValue;
floatValue = 0.0001;
NSString *charlieSoundVolume;
charlieSoundVolume = [charlieSoundLevel stringValue];
if(charlieSoundVolume >= floatValue){
(do something)
}
}
}
But this will freeze the rest of the application. What is another way of doing this?
Thanks, Elijah