Re: 30 day trial howto?
Re: 30 day trial howto?
- Subject: Re: 30 day trial howto?
- From: Allan Odgaard <email@hidden>
- Date: Sat, 12 Jun 2004 05:55:06 +0200
On 12. Jun 2004, at 2:16, Adam wrote:
It depends how secure you want it to be... If you only want a minor
inconvenience, just put a first-run date in the NSUserDefaults and
tell the app to quit if that date is 30 or more days ago. For more
security, I've seen developers try and hide the date information in
hidden files in various places throughout the filesystem. I don't
really know any of the advanced/secure ways of doing what you ask.
You could store the date in the preferences, but encrypt it. Your
application should then quit if either the date has been exceeded *or*
if there is a preferences file w/o a date. That way, the user will
need to delete all preferences in order to continue using the program
(or figure out how dates are encrypted ;) ).
It has been said *many* times before, but let me anyway repeat that
hidden files suck because many may discontinue to use your application
and thus should not have to suffer from having hidden files installed
-- if I look in ~/ (for hidden files), ~/Library/Application Support/
and similar places, I literally find hundreds of things placed there by
applications I have only started once or twice.
Especially when the names doesn't give away what the hell it is, e.g. I
have ~/.mycomputer/prefs.props.txt which amongst others contain:
"#mycomputer preferences, do not delete". Now wtf is this? I don't
recall every running anything named 'mycomputer'.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.