• 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
Re: why does this method return an id?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: why does this method return an id?


  • Subject: Re: why does this method return an id?
  • From: Ben Kennedy <email@hidden>
  • Date: Sun, 11 Dec 2011 10:41:01 -0800

On 11 Dec 2011, at 8:58 am, Matt Neuburg wrote:

> Now, I think I know why [NSString string] is declared as returning an id - it's because it's a class cluster,

Despite this however, why then don't the cluster classes implement a protocol (e.g. one named NSString), and then NSString can return an id<NSString> rather than a plain id?

b

--
Ben Kennedy, chief magician
Zygoat Creative Technical Services
http://www.zygoat.ca

_______________________________________________

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: why does this method return an id?
      • From: Kyle Sluder <email@hidden>
References: 
 >why does this method return an id? (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: why does this method return an id?
  • Next by Date: Re: why does this method return an id?
  • Previous by thread: Re: why does this method return an id?
  • Next by thread: Re: why does this method return an id?
  • Index(es):
    • Date
    • Thread