I class dumped UIKit in the 3.1.2 SDK and took a look at the headers. previousViewController is defined on a single class, UINavigationController, not UIViewController. Considering how the ObjC runtime treats categories, I do not see a problem with the current code since the UINavigationController method implementation would replace the method defined on the UIViewController category. Also, since UINavigationController is not supposed to be subclassed, how would that method get invoked except within a subclass of UINavigationController?
The question I have for Apple is *why* these various methods are not prefixed with an underscore to clearly indicate they are private, thus avoiding naming conflicts.
The "offending" method should be renamed, sadly, to something less meaningful. The thought of class dumping every framework before I even sit down to write a new set of features or design a new class cluster just to avoid private name conflicts fills me with dread.
David
> --
>
> You received this message because you are subscribed to the Google Groups "Three20" group.
> To post to this group, send email to
thr...@googlegroups.com.
> To unsubscribe from this group, send email to
three20+u...@googlegroups.com.
> For more options, visit this group at
http://groups.google.com/group/three20?hl=.
>
>