Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 03-07-2011, 08:07 PM   #1 (permalink)
Registered Member
 
Join Date: Jan 2011
Location: Brisbane, Australia
Posts: 14
blang is on a distinguished road
Default Rules when using Apple Example code

Hi,

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.

Thanks
blang is offline   Reply With Quote
Old 03-07-2011, 08:44 PM   #2 (permalink)
Registered Member
 
Join Date: May 2010
Posts: 551
aldcorn@live.com is on a distinguished road
Default Just use it

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 View Post
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.

Thanks
aldcorn@live.com is offline   Reply With Quote
Old 03-07-2011, 10:12 PM   #3 (permalink)
Registered Member
 
Join Date: Jan 2011
Location: Brisbane, Australia
Posts: 14
blang is on a distinguished road
Default

Quote:
Originally Posted by aldcorn@live.com View Post
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.
Is this true? I've read so many other places that you must keep the commented header?
blang is offline   Reply With Quote
Old 03-08-2011, 12:40 AM   #4 (permalink)
Reading the Documentation
 
baja_yu's Avatar
 
Join Date: Sep 2010
Location: 45.255019,19.844908
Posts: 5,414
baja_yu has a spectacular aura about
Default

Quote:
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.
baja_yu is offline   Reply With Quote
Reply

Bookmarks

Tags
apple, code, rules

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 363
17 members and 346 guests
Absentia, akphyo, apatsufas, BinHex, dre, fredidf, Gaz, gmarro, host number one, jeroenkeij, Kirkout, MarkC, mottdog, Music Man, PavelMik, whitey99, Wikiboo
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,667
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, host number one
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 03:21 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0