• 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: Works in 4.1 but not 4.2 ...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Works in 4.1 but not 4.2 ...


  • Subject: Re: Works in 4.1 but not 4.2 ...
  • From: Roland King <email@hidden>
  • Date: Thu, 2 Dec 2010 20:03:11 +0800

Runtime doesn't care about casts, you have what you have, it is what it is, that cast only shuts up the compiler.

What's the real error and real code.

On 02-Dec-2010, at 7:56 PM, James Cicenia wrote:

> ((PersonaDetailView*)self.view).controller = self;
>
> This fails at runtime but only in 4.2. Why ?
>
> It doesn't sense the typecast and thinks it is only a UIView.
>
> Thanks
> James
>
> _______________________________________________
>
> 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

_______________________________________________

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: Works in 4.1 but not 4.2 ...
      • From: James Cicenia <email@hidden>
References: 
 >Works in 4.1 but not 4.2 ... (From: James Cicenia <email@hidden>)

  • Prev by Date: Works in 4.1 but not 4.2 ...
  • Next by Date: Re: Works in 4.1 but not 4.2 ...
  • Previous by thread: Works in 4.1 but not 4.2 ...
  • Next by thread: Re: Works in 4.1 but not 4.2 ...
  • Index(es):
    • Date
    • Thread