Re: Works in 4.1 but not 4.2 ...
Re: Works in 4.1 but not 4.2 ...
- Subject: Re: Works in 4.1 but not 4.2 ...
- From: James Cicenia <email@hidden>
- Date: Thu, 2 Dec 2010 06:12:38 -0600
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