nil

No Comments

Overview

nil is ObjC’s null, which means that the pointer to the object doesn’t really point to anything. This is usually when you haven’t created the object.

However, in ObjC, nil is much more useful than in other languages. In languages like Java, if an object is null and you try to do pretty much anything with it, it will fail at runtime. nil is a lot more flexible.

In ObjC, you can send nil as a parameter for a selector(that’s how methods are called on ObjC, will use that from now on), receive nil from one, and even call  a selector on nil.

More

Useful Documents

No Comments

This was a page, but I decided that it was too cluttered, so I decided to make it a post.

Here are some PDFs that have been really helpful to me, I have not bought any books or anything. I did take a course on basic C, and I’m also being teached Java at school.

Simple App Template

No Comments

I decided I needed a template App for the toolchain, so here it is.

This is a template app that will make an empty app that does nothing but put your screen white. It’s made from a UIApplication subclass, a UIViewController subclass and a UIView subclass, so it’s pretty much ready for you to code your own view, add your own methods and turn it into something.

http://blog.epelaez.net/wp-content/plugins/downloads-manager/img/icons/default.gif File: App Template (3.31KB)
added: 06/06/2009

ObjC class

No Comments

This is a “template” of a very basic ObjC class, with some things explained, you should copy it and paste it into a text editor to see it more clearly.

More

ObjC 1

No Comments

Personally, I had never used a language with a sintax like ObjC (if there’s another one with the same/similar sintax), so, comming from using C and Java, it was quite confusing.

While ObjC uses C as a core, and accessing properties is quite similar as in other languages (object.property;), methods are a little bit different from other languages I’ve used. More

Older Entries