Objective-C


Cocoa Warning: from distinct Objective-C type

One warning that gcc emits can seem quite perplexing the first time you see it. It involves variations on the phrase “distinct Objective-C type“.
What?
In this case GCC is trying to say that you have a type mismatch, at least so far as she can tell.
For example if you have a method:
[code lang="objc"]
-(void) myMethod:(NSArray*)myArray;
[/code]
that takes [...]

No Rule To Process File For Architecture i386

I was getting a bunch of “warning: no rule to process file xyz.h for architecture i386” from XCode and scratching my head.
Turns out this always means that you have some non compilable files in your Compile Sources build phase. In my case I had dragged Objective-C .m and .h files into the Compile Sources [...]

Twitter Me

With another release of the IPhone SDK, I am seeing new Cocoa programmers popping up everywhere!
One of the best ways to get into this world lately is to listen in on the helpful advice of the very best Cocoa code jockeys as they figure things out on Twitter.
Go ahead and follow me on Twitter and [...]

Objective-C initialize method

One thing that makes Objective-C interesting is that it is very, very close to C. In fact, it is really just C plus a few language extensions plus a runtime.
It is the addition of a runtime (albeit a very light one) that travels along with every Objective-C program, that gives it its dynamic nature. [...]

Got a flump?

On pre-knowing an object’s type:
“What’s so bad about sending a message that is not understood? If a person on the street asks you for a flump, and you don’t know how to respond, do you exit with a core dump? Do you feel that a Higher Power should prohibit the question from even being asked?”
When [...]

Objective-C 2.0 Tutorial

Theocacao gets the ball rolling with the first of (hopefully many) Objective-C 2.0 tutorials.

Self Self

Paul Kim on why that this is valid Cocoa fun:
[code lang="objc"]
[[[someObject valueForKey:@"self"] self] valueForKey:@”self”]
[/code]