Yes .. but why did it like it prior to my upgrade? Hmmm, let me check the NIB. I realized that was what was wrong.. somewhere it is not getting PersonaDetailView.
Thanks James On Dec 2, 2010, at 6:26 AM, Roland King wrote: > 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 protected]) >>>> >>>> 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/rols%40rols.org >>>> >>>> This email sent to [email protected] >>> >> >> _______________________________________________ >> >> Cocoa-dev mailing list ([email protected]) >> >> 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/rols%40rols.org >> >> This email sent to [email protected] > _______________________________________________ Cocoa-dev mailing list ([email protected]) 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 [email protected]
