• 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
Notifications instead of a Timer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
  • Prev by Date: Re: Embedding perl ?
  • Next by Date: Re: printing woes
  • Previous by thread: Re: NSAppleEventManager details ??
  • Next by thread: Re: Notifications instead of a Timer
  • Index(es):
    • Date
    • Thread