‘-’ in the front of the definition, signifies that the method is an instance method.
‘+’ to define a class method (more on class methods in a future post).
credit : http://macdevelopertips.com/objective-c/objective-c-defining-a-class.html
Showing posts with label Objective-C. Show all posts
Showing posts with label Objective-C. Show all posts
20 April 2011
12 April 2011
ความหมายของ prefix "NS"
อ้างอิงจาก wiki ละกัน
NEXTSTEP, an object-oriented, multitasking operating system by NeXT, as well as a prefix for certain system-provided classes in the operating system, such as "NSString"
มันคือ nextstep นั้นเอง
http://en.wikipedia.org/wiki/NS
NEXTSTEP, an object-oriented, multitasking operating system by NeXT, as well as a prefix for certain system-provided classes in the operating system, such as "NSString"
มันคือ nextstep นั้นเอง
http://en.wikipedia.org/wiki/NS
Subscribe to:
Posts (Atom)