• 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: Does NSObject have a "super" ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Does NSObject have a "super" ? (From: Dave <email@hidden>)

  • Prev by Date: Re: Swift and parameter names
  • Next by Date: Re: Swift and parameter names
  • Previous by thread: Re: Does NSObject have a "super" ?
  • Next by thread: Swift 2 generics and derived types
  • Index(es):
    • Date
    • Thread