Kill App after Expire Date (Suicidal Code Redux)


/ Published in: Objective C
Save to your folder(s)

Using a gcc predefined macro, __DATE__, the code can know for itself when it was compiled, and build in an expiration date based on that value.

The former code (http://snipplr.com/view/3448/kill-app-after-expire-date/) was not internationalised and might cause an issue when run outside of English speaking countries. This code resolves the locale issue.

URL: http://www.daytimesoftware.com/blog/2007/10/suicidal-code-redux

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.