Skip to content

Are You the Boolean Type?

December 7, 2010

there are books i will read because i want to. and there are those because i need to. and this, it blurs the line.

from: “Learn Objective-C on the Mac”

When a program containing Log() is built with Cocoa included, Xcode complains that Log() is defined multiple times, and sadness results.

sadness results? HAHAHAAA!

..Rather than break compatibility with code already written for NextSTEP, Apple just continued to use the “NS” prefix. It’s a historical curiosity now, like your appendix.

Rather than telling the drawRectangle() function to “go draw a rectangle using this shape structure,” you instead ask a rectangle to “go draw yourself” (gosh, that sounds rude, but it’s really not).

Another change is shapes[], the first argument to the function: it’s now an array of id objects. What is an id? Is it a psychological term referring to the part of the mind in which innate instinctive impulses and primary processes are manifest?

Procedural programming has been around a long, long time, since just after the invention of dirt.

No comments yet

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: