Home > Computer Science, Off-Topic, Programming > Objective-C Reference in Numb3rs

Objective-C Reference in Numb3rs

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?

Advertisements
  1. Bill
    August 15, 2009 at 9:45 am

    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.

  1. November 10, 2009 at 10:08 pm

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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: