• 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: Call of super from a custom NSCell in a custom NSControl
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Call of super from a custom NSCell in a custom NSControl


  • Subject: Re: Call of super from a custom NSCell in a custom NSControl
  • From: Nicolas Dudebout <email@hidden>
  • Date: Sat, 24 Feb 2007 18:48:42 +0100

Thanks for your help, it is exactly what I was trying to do.

On Feb 24, 2007, at 5:43 PM, Joar Wingfors wrote:


On Feb 24, 2007, at 4:27 PM, Ricky Sharp wrote:

Problem is a logging issue. You are doing:

    NSLog (@"Test: %@", super);

But super is a pointer.  Do this instead to log the address:

NSLog (@"Test: %x", super);

No, do neither:

"super is simply a flag to the compiler telling it where to begin searching for the method to perform; it’s used only as the receiver of a message."

<http://developer.apple.com/documentation/Cocoa/Conceptual/ ObjectiveC/Articles/chapter_4_section_6.html#//apple_ref/doc/uid/ TP30001163-CH7-BAJHDGAC>

So, don't use "super" like a reference to an object (unless in a method call). If you want to print the description of some superclass, use NSLog(@"%@", [super description]).

j o a r


_______________________________________________

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: 
 >Call of super from a custom NSCell in a custom NSControl (From: Nicolas Dudebout <email@hidden>)
 >Re: Call of super from a custom NSCell in a custom NSControl (From: Ricky Sharp <email@hidden>)
 >Re: Call of super from a custom NSCell in a custom NSControl (From: Joar Wingfors <email@hidden>)

  • Prev by Date: Re: Call of super from a custom NSCell in a custom NSControl
  • Next by Date: Re: NSTabView help
  • Previous by thread: Re: Call of super from a custom NSCell in a custom NSControl
  • Next by thread: Batch process fro website
  • Index(es):
    • Date
    • Thread