• 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
Re: [iPhone] weird crash (aren't they all?): ivar seems to be dynamically changing its type
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [iPhone] weird crash (aren't they all?): ivar seems to be dynamically changing its type


  • Subject: Re: [iPhone] weird crash (aren't they all?): ivar seems to be dynamically changing its type
  • From: Michael Babin <email@hidden>
  • Date: Fri, 20 Nov 2009 19:23:59 -0600

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 (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: [iPhone] weird crash (aren't they all?): ivar seems to be dynamically changing its type
      • From: Paul Archibald <email@hidden>
References: 
 >[iPhone] weird crash (aren't they all?): ivar seems to be dynamically changing its type (From: Paul Archibald <email@hidden>)

  • Prev by Date: [iPhone] weird crash (aren't they all?): ivar seems to be dynamically changing its type
  • Next by Date: Re: tiffs on pasteboard
  • Previous by thread: [iPhone] weird crash (aren't they all?): ivar seems to be dynamically changing its type
  • Next by thread: Re: [iPhone] weird crash (aren't they all?): ivar seems to be dynamically changing its type
  • Index(es):
    • Date
    • Thread