Simple Clock?
-
Hi,
I'd like to create an exceptionally simple clock in cocoa.
But I don't know how to write a timer yet that would update a text field with the current system time every second... for that matter, neither do I know how to retrieve the current system time.
Any help appreciated,
thankyou for your time,
-Peter -
Am Montag, 07.07.03 um 15:03 Uhr schrieb (s) Peter Laurens:
> But I don't know how to write a timer yet that would update a text
> field with the current system time every second...
NSTimer *timer = [[NSTimer alloc] initWithFireDate:startTime
interval:1.0 target:self selector:@selector(update:) userInfo:nil
repeats:YES];
> for that matter, neither do I know how to retrieve the current system
> time.
NSCalendarDate *time = [[NSCalendarDate alloc] init];
bye. Andreas. -
Peter,
You can go on my website and load the full source Cocoa code of my
freeware MoreClocks.
You'll find a lot of stuff around clock, time, and timer subject...
http://regnault.luc.free.fr/
Luc.
Luc Regnault
Alwan Color Expertise
Research & Development
http://www.alwancolor.com/
http://regnault.luc.free.fr/
Le lundi, 7 jul 2003, à 15:03 Europe/Paris, (s) Peter Laurens a écrit :
> Hi,
>
> I'd like to create an exceptionally simple clock in cocoa.
>
> But I don't know how to write a timer yet that would update a text
> field with the current system time every second... for that matter,
> neither do I know how to retrieve the current system time.
>
> Any help appreciated,
>
> thankyou for your time,
>
> -Peter
> _______________________________________________
> MacOSX-dev mailing list
> <MacOSX-dev...>
> http://www.omnigroup.com/mailman/listinfo/macosx-dev
>
>
>



