In Cocoa, is there a notification i can register for, that informs me, when a new day begins – at 00h:00min:01s in the morning?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There’s no notification that I know of. You can get a timer to fire whenever a new day begins like so:
The trick is getting an
NSDateset to midnight. Check the Date and Time Programming Guide for how to do that with date components and the like.EDIT: see this question for how to get the midnight
NSDate.