Notifications instead of a Timer
Notifications instead of a Timer
- Subject: Notifications instead of a Timer
- From: Jesus De Meyer <email@hidden>
- Date: Fri, 14 Mar 2003 20:38:43 +0100
Hi,
Correct me if I'm wrong, but can you replace a timer by simply using
Notifications? For example, when something happens I need to take a
certain action, and current I use this method from a timer:
(pseudo code)
- (void)refresh:(id)sender {
if ([self thisThingChanged] || [self thisOtherThingChanged]) {
[self updateTheThing];
}
}
I was thinking that perhaps notifing the object about the changes that
it would be better, and more CPU friendly :)
_______________________________________________
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.