Re: Call of super from a custom NSCell in a custom NSControl
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