• 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:26:28 +0800

ok. so UIView doesn't have a setController method (according to my developer docs) and you're sending it that message so it doesn't like it. Can I assume that setController is a method you defined on PersonaDetailView? If so it seems the thing you're sending it to isn't actually a  PersonaDetailView, it's just a plain old common or garden UIView. in PersonaDetailView viewDidLoad what object are you actually sending that message to, where does it come from? You're expecting self.view to be a PersonaDetailView* but it's not, it's just a UIView .. have you checked the NIB and possibly forced it to recompile?

On 02-Dec-2010, at 8:12 PM, James Cicenia wrote:

> hmm, yes... but still it works with my XCode3.2.4 with 4.1 vs now with 3.3.5 and 4.2
>
>
> 2010-12-02 06:11:40.705 CoinStar[31673:207] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIView setController:]: unrecognized selector sent to instance 0x9814950'
> *** Call stack at first throw:
> (
> 	0   CoreFoundation                      0x01b7fbe9 __exceptionPreprocess + 185
> 	1   libobjc.A.dylib                     0x01cd45c2 objc_exception_throw + 47
> 	2   CoreFoundation                      0x01b816fb -[NSObject(NSObject) doesNotRecognizeSelector:] + 187
> 	3   CoreFoundation                      0x01af1366 ___forwarding___ + 966
> 	4   CoreFoundation                      0x01af0f22 _CF_forwarding_prep_0 + 50
> 	5   CoinStar                            0x000e4006 -[PersonaDetailViewController viewDidLoad] + 69
> 	6   UIKit                               0x00a6165e -[UIViewController view] + 179
> 	7   CoinStar                            0x00039d68 -[RootViewController visibleMosaic] + 214
> 	8   CoinStar                            0x00030c12 -[FillHomeScreenService fillHomeScreen:] + 60
> 	9   CoinStar                            0x00010de4 -[BasicService invokeWithArgs:] + 125
> 	10  CoinStar                            0x00010af5 -[ServiceRegistry invokeService:withArgs:] + 99
> 	11  CoinStar                            0x00010c86 +[ServiceRegistry invokeService:withArgs:] + 79
> 	12  CoinStar                            0x00045614 -[WonderbarView setViewState:animated:] + 424
> 	13  CoinStar                            0x000453d1 -[WonderbarView setViewState:] + 51
> 	14  CoinStar                            0x000445f7 -[WonderbarView didMoveToWindow] + 328
>
>
> Thanks
>
> On Dec 2, 2010, at 6:03 AM, Roland King wrote:
>
>> 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

_______________________________________________

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

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