Re: Best place to hide license files
Re: Best place to hide license files
- Subject: Re: Best place to hide license files
- From: Charles Srstka <email@hidden>
- Date: Fri, 16 Apr 2004 16:00:46 -0500
Yeah, right - then the first guy who copies your app using BSD tools
suddenly discovers he has a free copy.
Basically, I see this problem with storing stuff in the defaults'
resource forks - aside from getting copied with BSD stuff, which is
also an issue, there's also the problem of Cocoa saving files
atomically. Cocoa has a tendency to do things this way - make a file in
a temporary location with the new contents, delete the old file, and
move the new file to the old file's place. This is great for avoiding
file corruption, but unfortunately it means that if the old file had a
resource fork, it will be lost. This is actually quite annoying to me
as it causes things like custom application binding to get erased, and
I wish Apple would copy the old file's resource fork onto the new one.
But oh well. The consequence of this is that it's very possible that
NSUserDefaults could be saving the files atomically. And even if it's
not, who knows if it might start doing that in a future version of the
OS? You'd end up with lots of not-so-happy customers who've been having
to enter their license code again... and again... and again...
Charles
On Apr 16, 2004, at 2:40 PM, Lance Drake wrote:
Perhaps another thing is to include an entry/resource/key in your
standard preferences file that, once the file has been licensed, would
be removed. If the file is deleted, the activities of the app would
replace the old preferences file with a new copy that included the
special resource/key that would be a tip off that the app had not been
properly initialized. The existence or non-existence of the file
would no longer be the issue.
In the words of Liam Lynch, "Whatever..."
Lance Drake
_______________________________________________
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.
_______________________________________________
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.