I am very new to the Mac, having programmed Windows and mainframe all of my 25 years thus far. Just got an iMac and have been familiarizing myself with all of the Mac OS X things. So far so good. I've been familiarizing myself with Objective-C and come from C, C++ and C# experience.
I have downloaded and installed the iPhone SDK 2.2.1 and have opened up XCode and would like to work with a sample application. I see many samples that came with the installation but it seems to me that these are primarily Mac examples. I tried to open the directory of iPhone examples and there is a text file in there stating that I should refer to the XCode directory under "Documentation":
Sample code and example applications for the iPhone SDK are available as part of the iPhone Reference Library. You can find them in Xcode in the Documentation window, or online at iPhone Dev Center - Apple Developer Connection.
The only entry in that window close to an "x" is "wxWidgets" and I dont think this is what they are referring to. Should I be looking elsewhere? I went online to that URL specified and it does show sample code but I am not sure what to do with the code - specifically how to get it down to the Mac and where it gets installed...
Can anyone provide some tips or hints regarding the iPhone samples?
Yes, and I went to the site which was listed in the readme text file, and I do see those samples. But I am wondering - are they on the hard drive from the install? If so, then where? If not, how do I get them off the Apple site and onto my hard drive? And, should they go in a specific directory? And recommendations?
Remember, I just figured out how to install the SDK and using DMG files, etc. I am very new to the Mac but learning quickly..
Check the Help > Documentation in the file menu up top or press control-command-?
In the top, click the Browse icon and browse around the documentation for iPhone development. Be sure to download and choose the iPhone dev library on the left. There are most examples in Tools > User Experience as far as I know.
Check the Help > Documentation in the file menu up top or press control-command-?
In the top, click the Browse icon and browse around the documentation for iPhone development. Be sure to download and choose the iPhone dev library on the left. There are most examples in Tools > User Experience as far as I know.
Ok, what I have been doing is downloading the ones which I'd like to play around with - from the web site. However, I had thought that these (and/or others) were already installed into some sample directory when I installed the iPhone SDK.
No, I think all the samples are located on Apple's servers regardless of what you download. So they don't take up hard drive space for no reason, I guess.
No, I think all the samples are located on Apple's servers regardless of what you download. So they don't take up hard drive space for no reason, I guess.
Cool. Just wanted to make sure I am not missing anything. I am learning from the samples I am downloading. Got a lonnnng way to go!