• 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
Class vs +class: Cocoa/Obj-C design question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Class vs +class: Cocoa/Obj-C design question


  • Subject: Class vs +class: Cocoa/Obj-C design question
  • From: Chris Ryland <email@hidden>
  • Date: Sat, 13 Oct 2007 13:17:53 -0400

Can I ask perhaps a "list in the mists of time" language/library question? (Or perhaps a dumb question--forgive me if so.)

Why can't a class name (e.g., NSObject) stand for itself in general-- i.e., why isn't NSObject == [NSObject class] the way +class is defined now?

In theory, NSObject is a class object, and [NSObject class] should be its metaclass.

Why this breakdown in what otherwise is a very clean language/library design?

Cheers!
--Chris Ryland / Em Software, Inc. / www.emsoftware.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: Class vs +class: Cocoa/Obj-C design question
      • From: Bill Bumgarner <email@hidden>
  • Prev by Date: Re: HUD style view scroller a la Cover Flow?
  • Next by Date: NSOpenPanel not showing all Folders in the Left Pane
  • Previous by thread: Re: HUD style view scroller a la Cover Flow?
  • Next by thread: Re: Class vs +class: Cocoa/Obj-C design question
  • Index(es):
    • Date
    • Thread