Decoding a line of Objective-C
Decoding a line of Objective-C
- Subject: Decoding a line of Objective-C
- From: Kevin Walzer <email@hidden>
- Date: Sun, 08 Jul 2007 16:23:20 -0400
- Organization: WordTech Communications LLC
I understand what this line signifies:
MyClass *MCLSSharedInstance;
*MCLSSShareInstance is a pointer to an instance variable of MyClass.
However, I am a bit confused by this line:
+ (MyClass *)sharedInstance
I understand that "sharedInstance" is a class method of MyClass, but
what does the asterisk refer to? What is the pointer here? Could this be
also be written as
+ MyClass *sharedInstance
?
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden