Re: Does NSObject have a "super" ?
Re: Does NSObject have a "super" ?
- Subject: Re: Does NSObject have a "super" ?
- From: Graham Cox <email@hidden>
- Date: Thu, 25 Jun 2015 09:36:14 +1000
> On 25 Jun 2015, at 3:50 am, Dave <email@hidden> wrote:
>
> Hi,
>
> Quick question, does the “super” of NSObject == nil?
>
> Cheers
> Dave
No, because super == self.
Perhaps what you mean is, does NSObject have a superclass? No it doesn’t. To verify:
Class objSuper = [NSObject superclass];
NSLog(@"superclass of NSObject is %@", NSStringFromClass( objSuper ));
I’m curious, how does this question even arise?
—Graham
_______________________________________________
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