Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1935
Can't obtain path from a section header or any of it's superclasses.
posted

My code blows up with an unrecognized selector when I ask for the path from a section header or any of it's superclasses.

It's already fully instantiated at the time... this method is triggered when I click on an actual section header in the gridview.

Do you know why I can't get the path.   It's in the documentation that the path is a member of at least some of the classes I've tried querying.

Please see attached images.

Thanks

Images.zip
Parents
  • 40030
    Verified Answer
    Offline posted

    Hi David, 

    self.superclass returns an instance of the class, not base version of your self. 

    If you're a cell, you just need to call self.path, as that property will automatically be available because of inheritance. 

    Btw, in the screen shot of the error, notices how it says +[IGGridViewCellBase path],  that "+" symbol means you're trying to access a static method called path off of the IGGridViewCellBase class. 

    Hope this helps clear things up. 

    -SteveZ

Reply Children
No Data