Re: Class vs +class: Cocoa/Obj-C design question
Re: Class vs +class: Cocoa/Obj-C design question
- Subject: Re: Class vs +class: Cocoa/Obj-C design question
- From: Bill Bumgarner <email@hidden>
- Date: Tue, 16 Oct 2007 09:31:42 -0500
On Oct 16, 2007, at 12:19 AM, Chris Suter wrote:
So, going back to the original question, is there a circumstance
where NSObject isn't the same as [NSObject class]?
Effectively, they are the same thing.
Technically, they are never the same. Bare "NSObject" can only be
used for invoking class methods. [NSObject class] produces a pointer
to the class that can be used for messaging, comparison, etc...
b.bum
_______________________________________________
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