davidmorford / NavigatorKit

The Navigator class cluster from separated from Three20 re-factored to bare minimum with complete support for Split View Controllers and the iPad user interface idiom. Supports UISplitViewController and MGSplitViewController
113 stars 17 forks source link

Crashes: self.windowClass = windowCls; #2

Closed rahimizad closed 13 years ago

rahimizad commented 13 years ago

Crashes: self.windowClass = windowCls;

-(id) initWithWindowClass:(Class)windowCls navigationControllerClass:(Class)navControllerCls { self = [super init]; if (!self) { return nil; } self.delegate = nil; self.navigationMap = [[NKNavigatorMap alloc] init];

self.windowClass = windowCls;
self.wantsNavigationControllerForRoot = TRUE;
self.navigationControllerClass  = navControllerCls;

2011-05-09 16:36:01.940 GAPS[11720:207] -[NKSplitViewNavigator setWindowClass:]: unrecognized selector sent to instance 0x4b35a60 2011-05-09 16:36:01.941 GAPS[11720:207] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NKSplitViewNavigator setWindowClass:]: unrecognized selector sent to instance 0x4b35a60' * Call stack at first throw: ( 0 CoreFoundation 0x00fc5be9 exceptionPreprocess + 185 1 libobjc.A.dylib 0x0111a5c2 objc_exception_throw + 47 2 CoreFoundation 0x00fc76fb -[NSObject(NSObject) doesNotRecognizeSelector:] + 187 3 CoreFoundation 0x00f37366 __forwarding + 966 4 CoreFoundation 0x00f36f22 _CF_forwarding_prep_0 + 50 5 GAPS 0x00010b98 -[NKNavigator initWithWindowClass:navigationControllerClass:] + 264 6 GAPS 0x00010a5c -[NKNavigator init] + 124 7 GAPS 0x00015bb1 -[NKSplitViewNavigator init] + 65 8 GAPS 0x00015af6 +[NKSplitViewNavigator splitViewNavigator] + 150 9 GAPS 0x00002a82 -[NVCApplicationDelegate application:didFinishLaunchingWithOptions:] + 578 10 UIKit 0x003161fa -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1163 11 UIKit 0x0031855e -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 439 12 UIKit 0x00322db2 -[UIApplication handleEvent:withNewEvent:] + 1533 13 UIKit 0x0031b202 -[UIApplication sendEvent:] + 71 14 UIKit 0x00320732 _UIApplicationHandleEvent + 7576 15 GraphicsServices 0x018fba36 PurpleEventCallback + 1550 16 CoreFoundation 0x00fa7064 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION + 52 17 CoreFoundation 0x00f076f7 CFRunLoopDoSource1 + 215 18 CoreFoundation 0x00f04983 CFRunLoopRun + 979 19 CoreFoundation 0x00f04240 CFRunLoopRunSpecific + 208 20 CoreFoundation 0x00f04161 CFRunLoopRunInMode + 97 21 UIKit 0x00317fa8 -[UIApplication _run] + 636 22 UIKit 0x0032442e UIApplicationMain + 1160 23 GAPS 0x00004277 main + 135 24 GAPS 0x00002705 start + 53 25 ??? 0x00000001 0x0 + 1 ) terminate called after throwing an instance of 'NSException' sharedlibrary apply-load-rules all Current language: auto; currently objective-c (gdb)

davidmorford commented 13 years ago

The NKNavigator class is missing the @synthesize for windowClass. Will fix and close this with an Xcode 4 build push soon. For now you can simply add @synthesize windowClass to the NKNavigator class.

rahimizad commented 13 years ago

Thanks I did add the @synthesize but there just too many other crashes. How did you capture the screen shots when there are around 10 other similar crashes after this line fixed?