Videos in category Objective-C
How to add a custom executable to your Xcode project so that you can run your application in the Rosetta PowerPC emulator instead of as native Intel code. Xcode 3.1.1 shown. At one point, I shake my arrow over the Build and Go button. Don't use it for this; it doesn't work. Use ??R instead.
OCUnit: Unit testing in Cocoa
Why and how to do unit testing for Cocoa (Mac) applications using OCUnit, which comes with Xcode. I'm not an iPhone developer, so please don't ask me about testing for iPhone applications. Instead, see this blog post by my friend Colin Barrett: http://iamthewalr.us/blog/2008/11/10/ocmock-and-the-iphone/ This video is based on a presentation I gave at the December 2008 meeting of CocoaHeads in L...
Unit Testing iPhone apps using Ruby
You cannot run RubyCocoa on an iPhone, but you can use it for your unit testing of your Objective-C classes. This tutorial shows you how to get started. Project at http://github.com/drnic/rbiphonetest/ NOTE: the project has been renamed to 'rbiphonetest' and not 'iphoneruby' as in the video.
ChocTop – packaging and deployment of Cocoa applications
ChocTop packages and deploys any Cocoa application in a custom DMG, with generated Sparkle XML support. This is a tutuorial on how to use ChocTop. It takes 30 minutes to watch the tutorial but only 5 minutes to use ChocTop.
Pivotal Labs Talks: Using Shoes to Have Fun
Shoes is a tiny graphics toolkit that embeds ruby. It allows you to do anything. You can draw squares and circles and they can move about and say "Good Morning" when they chance upon each other. Shoes lets you add layouts to your applications with ease. It borrows ideas from Processing, Lua, and HTML to make an intuitive language to convert your ideas into programs that you can share with your ...
Pivotal Labs Talks: MacRuby and HotCocoa
MacRuby is an implementation of the Ruby language that runs on the Objective-C runtime under OS X. MacRuby is based on Ruby 1.9 but contains substantial modifications including the merging of object models (every Object is an NSObject), using the Objective-C 2.0 generational garbage collector, moving core types (String, Fixnum, Array, Hash) atop their Objective-C counterparts and replacement of...
Coding in Objective-C 2.0 Episode 3: Debugging
Bugs happen, even in Objective-C programs. You’ll want to find and fix them as quickly as possible. Thankfully, Xcode has a powerful debugger. In this episode, we’ll explore the various features and commands of the debugger, use it to find a bug, and wrap up with remote debugging. You’ll learn how to: Use the debugger to find and squash bugs Set breakpoints, and disable them f...
Coding in Objective-C 2.0 Episode 2: Memory Management
Objective-C 2.0 has a garbage collector, but it’s not available on the iPhone. So if you’re writing iPhone applications, you’ll need to manage your own memory. And it’s especially important on the iPhone, where resources are constrained, that you clean up after yourself. In this episode, we’ll find and fix various memory-management problems that are common in Objec...
Coding in Objective-C 2.0 Episode 1: Classes, Objects, and Messages
In this episode, we’ll write a small program in Xcode to learn the basics of object-oriented programming with Objective-C. You’ll learn how to: Write, build, and run basic Objective-C code in Xcode Use the Objective-C extensions to C for object-oriented programming Understand basic object-oriented programming concepts Use existing classes Write your own custom classes Define instanc...
Coding in Objective-C 2.0: Free Preview
Objective-C is the programming language for writing native iPhone and Mac applications. It’s also the language that Apple uses to build their own applications and frameworks. So, if you know Objective-C, you have a lot of power at your fingertips. But if you’re new to C or object-oriented programming, then Objective-C can seem a little awkward at first. These screencasts by Bill Dud...