• 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
Re: Announce the time every 30 minutes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Announce the time every 30 minutes


  • Subject: Re: Announce the time every 30 minutes
  • From: M Pulis <email@hidden>
  • Date: Thu, 11 Dec 2008 17:07:20 -0700

If you don't "need" this function "in" your app, or don't want to have your app running all the time just to do the chime, you could setup system preferences to let OSX do it for you. There may even be a command line that can be executed under control of your app.

Gary

On Dec 11, 2008, at 4:49 PM, Andrew Farmer wrote:

On 11 Dec 08, at 15:14, Mr. Gecko wrote:
Hell I'm trying to find out how to announce the time every 30 minutes, I'm guessing I have to do it with NSTimer and and than have the time interval set to NSDate interval from now to the time which is like 7:30 or 8:00. but I'm not sure.

That's correct - you will need to figure out the next time you want to make an announcement, given the current time, and calculate how far in the future that is. Keep in mind that NSTimers don't guarantee exact timing; they may fire slightly before or significantly after the target date. (In other words, be careful about handling "missed" announcements, especially in cases such as the computer going to sleep or the user adjusting the time or time zone.)
_______________________________________________


Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Announce the time every 30 minutes
      • From: "Mr. Gecko" <email@hidden>
References: 
 >Announce the time every 30 minutes (From: "Mr. Gecko" <email@hidden>)
 >Re: Announce the time every 30 minutes (From: Andrew Farmer <email@hidden>)

  • Prev by Date: Re: Announce the time every 30 minutes
  • Next by Date: Re: Core Data warning: to-many relation does not have an inverse
  • Previous by thread: Re: Announce the time every 30 minutes
  • Next by thread: Re: Announce the time every 30 minutes
  • Index(es):
    • Date
    • Thread