• 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: Displaying time
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Displaying time


  • Subject: Re: Displaying time
  • From: Ron Fleckner <email@hidden>
  • Date: Fri, 22 Aug 2008 22:51:13 +1000


On 22/08/2008, at 8:32 PM, Nathan Kinsinger wrote:


On Aug 22, 2008, at 12:59 AM, Ron Fleckner wrote:

Hi,

I want to display the current time in a full screen window. I'm making my computer into a digital clock (for my own use). I've done it by using NSCalendarDate and extracting the hours, minutes, and seconds, formatting a string and displaying it. I use an NSTimer to update the display every half a second.

My question is: Is there a better way to display what is essentially the same as the menu bar clock?

Thanks for any ideas,

Ron

Look at NSDateFormatter.


On 22/08/2008, at 8:41 PM, Graham Cox wrote:

On 22 Aug 2008, at 4:59 pm, Ron Fleckner wrote:

My question is: Is there a better way to display what is essentially the same as the menu bar clock?


Maybe I misunderstood the question...

Reminds me though of one of my first ever apps - a big digital clock on the C64. Each digit was a double-sized sprite. Couldn't miss that sucker ;-)

cheers, Graham


Oh, sorry Graham and Nathan. My question wasn't clear. It should've been:


Is there a way to update the time without using an NSTimer? I'd like my clock to be synchronised with the menu bar clock. Maybe this isn't a Cocoa question. Thanks for your answers.

Ron


_______________________________________________

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: Displaying time
      • From: "Michael Ash" <email@hidden>
References: 
 >Displaying time (From: Ron Fleckner <email@hidden>)
 >Re: Displaying time (From: Nathan Kinsinger <email@hidden>)

  • Prev by Date: Re: NSString and special characters
  • Next by Date: Re: Displaying time
  • Previous by thread: Re: Displaying time
  • Next by thread: Re: Displaying time
  • Index(es):
    • Date
    • Thread