NSApplication subclass and NSTabView
NSApplication subclass and NSTabView
- Subject: NSApplication subclass and NSTabView
- From: Bruno Blondeau <email@hidden>
- Date: Fri, 21 Feb 2003 19:06:59 +0100
My application is crashing everytime a NSTabView is in my main window.
2003-02-21 18:59:27.935 [3971] *** Assertion failure in -[NSApplication
init], AppKit.subproj/NSApplication.m:908
2003-02-21 18:59:27.936 [3971] An uncaught exception was raised
2003-02-21 18:59:27.937 [3971] Creating more than one Application
2003-02-21 18:59:27.937 [3971] *** Uncaught exception:
<NSInternalInconsistencyException> Creating more than one Application
My application uses a NSApplication subclass and it seems the NSTabView
tries to access NSApp directly instead of my subclass.
#0 0x90844988 in _NSRaiseError
#1 0x9085b32c in -[NSAssertionHandler
handleFailureInMethod:object:file:lineNumber:description:]
#2 0x9313a28c in -[NSApplication init]
#3 0x93139500 in +[NSApplication sharedApplication]
#4 0x931d5d08 in -[NSTabViewItem _canAutoGenerateKeyboardLoops]
#5 0x931d5ca4 in -[NSTabViewItem _canAutoGenerateKeyboardLoops]
#6 0x93177098 in -[NSTabViewItem
_setDefaultKeyViewLoopAndInitialFirstResponder]
#7 0x93176f9c in -[NSTabView
_switchInitialFirstResponder:lastKeyView:forTabViewItem:]
#8 0x907e2e14 in -[NSArray makeObjectsPerformSelector:withObject:]
#9 0x931f05a8 in -[NSTabView _finishedMakingConnections]
#10 0x9081d348 in -[NSSet makeObjectsPerformSelector:]
#11 0x930acf38 in -[NSIBObjectData
nibInstantiateWithOwner:topLevelObjects:]
#12 0x93123c70 in -[NSMenuItem keyEquivalentModifierMask]
#13 0x930e9e58 in +[NSBundle(NSNibLoading)
_loadNibFile:nameTable:withZone:ownerBundle:]
#14 0x93149098 in +[NSBundle(NSNibLoading)
loadNibFile:externalNameTable:withZone:]
#15 0x93148e58 in +[NSBundle(NSNibLoading) loadNibNamed:owner:]
Can anyone help me? Is this a bug in Cocoa?
Thanks,
Bruno
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.