Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

AG!

macrumors newbie
Original poster
May 21, 2009
1
0
Hello,

Im a new iphone developer so please be patient with me.

The problem is that I have a function like this

-(void)buttonPressed {

NSDate someDate = [[NSDate alloc] init];

NSlog(@"Date: %d", someDate);

}

NOTE: Im not in front of my MAC at the moment so my code may differ slightly.

The issue is that when ever I press the button that fires the buttonPressed method, a time is printed, however, it does not always increase (though it should theoretically). Sometimes is decreases (i.e. goes back in time). Does anybody know of a solution or the problem Im facing?

Thanks
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.