• 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
Simple but fundamental question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Simple but fundamental question


  • Subject: Simple but fundamental question
  • From: email@hidden
  • Date: Wed, 1 Feb 2006 05:06:12 -0800

Hi,

I have a simple question, but means a lot to me.
That is, if I call a method of super, like [super goAway] and - goAway calls a method on self, like [self blowUp],
and - blowUp is subclassed in the same class that called the original method, super's call would call my subclassed method?


Is supers' self actually the same as my "self?"

So If I could have a call stack like this :
...
4 NSObject : CleanUp
3 MyObject : BlowUp //Calls super CleanUP
2 NSObject : CleanUp //Calls Self BlowUP (I would think the super's implementation but calls subclassed one?)
1 MyObject : BlowUp //Calls super CleanUP


Is it true? That is what I'm seeing.

NSController calls - setSelectionIndexPath when setting - setSelectionIndexPaths apparently, and instead of calling super's version of - setSelectionIndexPath it calls my subclasses' one....
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Follow-Ups:
    • Re: Simple but fundamental question
      • From: Guy Umbright <email@hidden>
    • Re: Simple but fundamental question
      • From: Scott Thompson <email@hidden>
    • Re: Simple but fundamental question
      • From: Camillo Lugaresi <email@hidden>
  • Prev by Date: Re: extracting numbers from NSString
  • Next by Date: Re: Simple but fundamental question
  • Previous by thread: Re: extracting numbers from NSString
  • Next by thread: Re: Simple but fundamental question
  • Index(es):
    • Date
    • Thread