Re: Newbie coming to Cocoa from the world of C++
Re: Newbie coming to Cocoa from the world of C++
- Subject: Re: Newbie coming to Cocoa from the world of C++
- From: Marcel Weiher <email@hidden>
- Date: Wed, 5 Mar 2003 23:36:04 +0100
3) When using the @ sign in front of some quoted text, that
automatically converts that text into an NSString?
To be precise, the compiler boils it down into a function call that
returns a member of a private NSString subclass. There's a compiler
option to let you choose the class to use for constant strings.
I thought it simply compiled a direct referene to a statically
allocated instane of said NSString subclass. Has this changed, or am I
simply delusional?
5) Obj C has two types of methods: class and instance. Are class
methods the same as C++'s static methods?
Essentially, yes. Class methods are executed by the class, instance
methods are executed by instances of the class.
And instance methods are found in the class, whereas class methods are
found in the meta-class (the class of the class...)
Marcel
--
Marcel Weiher Metaobject Software Technologies
email@hidden www.metaobject.com
Metaprogramming for the Graphic Arts. HOM, IDEAs, MetaAd etc.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.