Philosophical Multicore

Sometimes controversial, sometimes fallacious, sometimes thought-provoking, and always fun.

Objective-C Reference in Numb3rs

Posted by Michael Dickens on August 14, 2009

I was watching Numb3rs when I came across something interesting. So I took a screenshot:

numb3rs objc
That language is almost definitely Objective-C. The giveways are: the commenting style, the use of brackets for method calls, and the unusual method syntax (for example, [cell addSubView:switchview]).

I thought that was interesting. Why are they using Objective-C? It’s not a very portable language. For the kind of stuff they are doing, I would expect C or C++.

And then, I found this:

If you pause at 0:35, there’s a line that says
NSArray *crayon
Like, what’s the deal with that? Why is there an array of crayons?


2 Responses to “Objective-C Reference in Numb3rs”

  1. Bill said

    This particular code is indeed Objective-C. More specifically, it’s code for an iPhone app and it is setting up table cells for a view — perhaps a view that shows crayons! For some reason, watching someone develop the UI code for an iPhone app is very exciting for these guys.

  2. […] } At least according to Numb3rs. After I saw another Objective-C reference, I figured that the writers must have something for Objective-C. Maybe one of the math consultants […]

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 )

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s

%d bloggers like this: