The way I understand it is that you are free to use the example code provided by Apple. However, when doing so, you must keep Apple's commented function block at the top of each .h and .m file. Please correct me if I am wrong.
However, my question is, what are the rules when you use snippets of code from Apple's example code? do you still need to comment them to be Apple's or should you just change a few variable names and hope for the best?
I'm using parts of other code in most of my .m and .h files (as I sure most people are), and I don't want to keep Apple's function block for each file just being of a small function that is used.
You can delete all or none of it. The only thing they are doing is not taking any responsibility for the code.
Delete the comments.
Quote:
Originally Posted by blang
Hi,
oThe way I understand it is that you are free to use the example code provided by Apple. However, when doing so, you must keep Apple's commented function block at the top of each .h and .m file. Please correct me if I am wrong.
However, my question is, what are the rules when you use snippets of code from Apple's example code? do you still need to comment them to be Apple's or should you just change a few variable names and hope for the best?
I'm using parts of other code in most of my .m and .h files (as I sure most people are), and I don't want to keep Apple's function block for each file just being of a small function that is used.
In consideration of your agreement to abide by the following terms, and subject
to these terms, Apple grants you a personal, non-exclusive license, under
Apple's copyrights in this original Apple software (the "Apple Software"), to
use, reproduce, modify and redistribute the Apple Software, with or without
modifications, in source and/or binary forms; provided that if you redistribute
the Apple Software in its entirety and without modifications, you must retain
this notice and the following text and disclaimers in all such redistributions
of the Apple Software.
I only used the Reachability class from Apple and I kept the disclaimer. I don't see a problem in keeping it.