• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Decoding a line of Objective-C
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Decoding a line of Objective-C
      • From: Thomas Engelmeier <email@hidden>
    • Re: Decoding a line of Objective-C
      • From: Andrew Farmer <email@hidden>
    • Re: Decoding a line of Objective-C
      • From: Steve Bird <email@hidden>
    • Re: Decoding a line of Objective-C
      • From: Rodrigue Cloutier <email@hidden>
  • Prev by Date: Re: Porting Tk applications to Cocoa
  • Next by Date: Re: Decoding a line of Objective-C
  • Previous by thread: Re: Languages supported by OS X?
  • Next by thread: Re: Decoding a line of Objective-C
  • Index(es):
    • Date
    • Thread