Learn Cocoa with your free time this holiday
Let's face it, during the holiday season we all need to take a little break from our families (even though we love them). Why not do something productive when you're squirreled away in that spare bedroom hiding in the bed from your Aunt Dora? Cocoa Dev Central has just updated their great Cocoa tutorial for Leopard. I am just a simple blogger, and I could follow along so I am sure you smart readers out there will be whipping up apps lickety-split.
Share
Let's face it, during the holiday season we all need to take a little break from our families (even though we love them). Why not do...
Add a Comment
very neat - been wanting to play in xcode for a while - thanks!
December 27 2007 at 9:04 PM Report abuse Permalink rate up rate down ReplyFirst off, the tutorial series is excellent. I'm in the middle of the second one right now, and I just got over my hiccup with adding the class using Nathan's help. Also, Josh, I don't have the build view either, however you don't need it to complete the tutorial in part 1. I, being a cocoa and xcode neophyte, have no idea what you need it for, but I do know that you can complete the first tutorial (and the second so far for me) without it. Thanks Cocoa Dev Team!
December 27 2007 at 1:19 AM Report abuse Permalink rate up rate down ReplyThe first (Tiger) version of the tutorial focused on using the Build view just because it's simpler -- there are less items visible. On the other hand, it's probably easier in the long run for Xcode to only have two views as it does in Leopard.
December 27 2007 at 8:29 PM Report abuse Permalink rate up rate down ReplyThanks for letting me know that its not just me seeing this! I never went past that step figuring it was something critical. Good to know its not and I will continue through the rest of the tutorial!
December 28 2007 at 3:09 AM Report abuse Permalink rate up rate down ReplyI don't have my copy of 10.5 around but I do have 10.4 can I grab Xcode from that?
December 26 2007 at 11:19 AM Report abuse Permalink rate up rate down ReplyYou can install it off of the Tiger DVD, or you can install Xcode 2.5 from a web download at: http://developer.apple.com/tools/download/
However, if you are trying to install Xcode 2.x under Leopard I don't think it will work. You would have to download the 3.0 image from that link. At first I thought you wanted to install under Tiger.
December 27 2007 at 9:28 AM Report abuse Permalink rate up rate down ReplyI love the tutorial, but my Xcode window doesn't have the build view in the top toolbar like the screenshot shows, so I get stuck there.
December 26 2007 at 1:20 AM Report abuse Permalink rate up rate down ReplyHey editors, please ban ballmer. whoever is posting that crap is just trying to get hits on his stupid blog and his spamming needs to stop.
December 25 2007 at 4:14 AM Report abuse Permalink rate up rate down ReplyI would, but XCode likes to freeze on me.
December 25 2007 at 2:22 AM Report abuse Permalink rate up rate down ReplyYou're not the only one experiencing this :-) (a good, and bad, thing!).
I guess we'll see it resolved in a future update to XCode
Nik
@Nathan: That's the correct solution. I wish I could have had part two ready at the same time, but it's more involved than it probably seems on the surface. I figured it was better to at least get part one up.
I'm aware of the contact form being down. Will get to that shortly, as well. Glad you liked the tutorial.
I tried to leave a feedback and the form was down. I tried to email them and it bounced saying no such inbox.
So here I am saying, "Thank You for the tutorial"
One word of caution for would-be Xcoders; part two isn't up to date yet, so when you try to add your custom class in Interface Builder, you'll reach a dead end (that killed me :( ). After much google-fu, I figured out how to add custom classes in Interface Builder, which is as follows:
1. Create your custom class like outlined in the tutorial.
2. In IB, open the Library and scroll down to the Controllers section (Library > Cocoa > Objects & Controllers > Controllers, if you use the list view at the top of the Library panel).
3. Drag the blue square (NSObject) from the Library panel to the window titled MainMenu.nib.
4. Open the Identity Inspector (Tools > Identity Inspector, from the menu bar). In the field labeled Class, type the name of your custom class. (IB automatically detects any custom classes you have added in Xcode, and should autocomplete the name after you type a few characters).
That's it; you can now link and use your class (right click and drag to or from the object, depending upon whether you are linking a method or an outlet. The way you drag is the same as in the tutorial, so see that for info on how to do that).
One (large) grain of salt; I am still quite new to Xcode/ObjC, so this may not be the most efficient way of implementing custom classes in Xcode 3, but it has worked for me so far, and hopefully this will help some of you. Also, if any more experienced Xcoders has a better way of doing this, please, post it here (for mine and other beginner's sake). Thanks, and good luck to future Xcoders!
"Why not do something productive when you're squirreled away in that spare bedroom hiding in the bed from your Aunt Dora?"
lol, +1 Scott
Hot Apps on TUAW
Deals of the Day
more deals- Altec Lansing Octiv Duo iDock for $48 + free shipping
- Used Apple iMac 17" Core Duo 1.83GHz for $430 + $28 s&h
- Lounge Deluxe Stand for iPhone / iPod touch for $28 + $8 s&h
- Brookstone Surround-Sound Earbuds for $14 + $7 s&h
- Refurbished Skullcandy Tokidoki Smokin' Buds Mic'd Headset for $5 + $2 s&h
- Stitchway Backup Battery for iPod / iPhone for $5 + free shipping
Software Updates
more updates- EFI Firmware Update brings Lion Internet Recovery to 2010-model Macs
- OS X Lion 10.7.3 released with Safari 5.1.3, Wi-Fi bug fix
- Aperture updated to 3.2.2, addresses Photo Stream issue
- Apple updates Keynote to address Lion issues
- Google Search app gets new look on iPad
- Apple releases Apple TV Software Update 4.4.3



16 Comments