Skip navigation

Lost password? | Help

Enthsiasm about what?

Shine in my world

Objective-C beginner..for fluent c/c++ programmer

1. Objective-C doesn't have value types, so there is nothing similar to C++'s: Fraction frac; frac.print();. You always deal with objects as pointers in Objective-C. for example:
MyClass *myObj = [[MyClass alloc] init];
....// do something
[myObj release];


2. Dynamic types in Objective-C
-(BOOL) isKindOfClass: classObjis object a descendent or member of classObj
-(BOOL) isMemberOfClass: classObjis object a member of classObj
-(BOOL) respondsToSelector: selectordoes the object have a method named specifiec by the selector
+(BOOL) instancesRespondToSelector: selectordoes an object created by this class have the ability to respond to the specified selector
-(id) performSelector: selectorinvoke the specified selector on the object

3. Every object inherited from NSObject has a class method that returns a class object. This is very similar to Java's getClass() method. This class object is used in the methods above.


Video over USB, UWB, IP networkStudy on Linux initrd and initramfs

How to use Quote function:

  1. Select some text
  2. Click on the Quote link

Write a comment

Comment
(BBcode and HTML is turned off for anonymous user comments.)

If you can't read the words, press the small reload icon.


Smilies

January 2010
M T W T F S S
December 2009February 2010
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31