• 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 the need for the id type?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why the need for the id type?


  • Subject: Re: Why the need for the id type?
  • From: Chris Kane <email@hidden>
  • Date: Tue, 19 Jun 2007 12:34:40 -0700

I'll throw in another reason, not for 'id', but for not having a single root class... Categories.

With categories you can add methods to any class. NSObject gets a pile of cr** ^H^H^H^H^Hmethods added onto it, and there are times when you don't want your object to respond to every random method somebody tacked onto the root class. It doesn't happen often, but once in a while it's useful to have an alternative. The issue doesn't arise in Java.


Chris Kane Cocoa Frameworks, Apple

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


References: 
 >Re: Why the need for the id type? (From: Bill Bumgarner <email@hidden>)

  • Prev by Date: Re: Why the need for the id type?
  • Next by Date: NSAttributedString producing malformed XHTML
  • Previous by thread: Re: Why the need for the id type?
  • Next by thread: [OFF] NSDistributedNotification
  • Index(es):
    • Date
    • Thread