On Nov 20, 2009, at 5:55 PM, Paul Archibald wrote:

> So, why does setParentViewController get called twice, and why is the 
> parameter type different the second time, and why don't I get an exception  
> when the wrong type is gets passed into setParentViewController that second 
> time?

Probably because UIViewController already has a property named 
parentViewController. Your set method is probably overriding the one defined in 
UIViewController, and thus getting called by UINavigationController when you 
tell it to push your view controller onto its stack.

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please 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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to