FROM : Shawn Erickson
DATE : Sun Apr 29 00:11:36 2007
On 4/28/07, Scott Stevenson <<email_removed>> wrote:
> That is, "self" refers to an instance, "super" refers to a class.
To be pedantic... "super" refers to an object (same object as "self")
but message lookup is done in the context of your superclass or to
think of it another way... when the metal hits the road [self blah]
results in objc_msgSend(self, "blah") while [super blah] results in
objc_msgSendSuper(self, "blah").
-Shawn
DATE : Sun Apr 29 00:11:36 2007
On 4/28/07, Scott Stevenson <<email_removed>> wrote:
> That is, "self" refers to an instance, "super" refers to a class.
To be pedantic... "super" refers to an object (same object as "self")
but message lookup is done in the context of your superclass or to
think of it another way... when the metal hits the road [self blah]
results in objc_msgSend(self, "blah") while [super blah] results in
objc_msgSendSuper(self, "blah").
-Shawn
| Related mails | Author | Date |
|---|---|---|
| Paul Borokhov | Apr 28, 19:52 | |
| Scott Stevenson | Apr 28, 20:19 | |
| Paul Borokhov | Apr 28, 20:49 | |
| Buddy Kurz | Apr 28, 21:34 | |
| Scott Stevenson | Apr 28, 22:32 | |
| Paul Borokhov | Apr 28, 23:01 | |
| Shawn Erickson | Apr 29, 00:11 | |
| Matt Neuburg | Apr 30, 01:52 |






Cocoa mail archive

