Being about to migrate a Cocoa document-based application of mine, which is under development, from Mac OS X 10.4.11 and Xcode 2.5 to Mac OS X 10.5.5 and Xcode 3.1.2 (on a PowerPC G5) the application crashes in the phase of – I think – setting up and displaying the main menu. This didn't happen before.

Here is an excerpt from the debugger console output ("Blotto" is the application's product name):

2008-12-13 12:57:33.701 Blotto[715:813] NSExceptionHandler has recorded the following exception: NSUnknownKeyException -- [<<CIMenuGenerator: 0xa0411d2c> 0x45fdd0> setValue:forUndefinedKey:]: this class is not key value coding- compliant for the key inputBarExtent. Stack trace: 0x5cdbc 0x93f1f4ec 0x90d8dabc 0x923a2b40 0x95d54d14 0x92297734 0x96450620 0x96442d6c 0x9644296c 0x9548c830 0x9548c210 0x9545ce94 0x2ebc 0x2e5c 2008-12-13 12:57:33.724 Blotto[715:813] [<BloAppDelegate: 0x43ef70> exceptionHandler:shouldHandleException:mask:] invoking at /Volumes/C/ Development/Projects/Blotto/BloAppDelegate.mm:392 2008-12-13 12:57:33.725 Blotto[715:813] NSExceptionHandler will now suspend the current thread and wait for debugger attachment
NSExceptionHandlerExceptionRaiser (in ExceptionHandling) + 208
objc_exception_throw (in libobjc.A.dylib) + 72
-[NSException init] (in CoreFoundation) + 0
-[CIFilter setValue:forUndefinedKey:] (in QuartzCore) + 200
-[NSObject(NSKeyValueCoding) setValue:forKey:] (in Foundation) + 264
-[CIFilter setValue:forKey:] (in QuartzCore) + 308
ResetMenuBarWindowFilter() (in HIToolbox) + 464
ShowBar(unsigned char, unsigned char) (in HIToolbox) + 312
SetSystemUIMode (in HIToolbox) + 284
-[NSApplication finishLaunching] (in AppKit) + 776
-[NSApplication run] (in AppKit) + 100
NSApplicationMain (in AppKit) + 444
main (in Blotto) (main.m:9)
start (in Blotto) + 68
(gdb) continue
2008-12-13 12:57:46.521 Blotto[715:813] [<<CIMenuGenerator: 0xa0411d2c> 0x45fdd0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key inputBarExtent.
(gdb) continue
2008-12-13 12:57:56.041 Blotto[715:813] An uncaught exception was raised
2008-12-13 12:57:56.042 Blotto[715:813] [<<CIMenuGenerator: 0xa0411d2c> 0x45fdd0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key inputImage. 2008-12-13 12:57:56.043 Blotto[715:813] [<BloAppDelegate: 0x43ef70> exceptionHandler:shouldLogException:mask:] invoking at /Volumes/C/ Development/Projects/Blotto/BloAppDelegate.mm:404 2008-12-13 12:57:56.048 Blotto[715:813] NSExceptionHandler has recorded the following exception: NSUnknownKeyException -- [<<CIMenuGenerator: 0xa0411d2c> 0x45fdd0> setValue:forUndefinedKey:]: this class is not key value coding- compliant for the key inputImage. Stack trace: 0x90d8de58 0x93f1f4ec 0x90d8dabc 0x923a2b40 0x95d54d14 0x92297734 0x92297f98 0x95d33bd4 0x9548caac 0x9548c210 0x9545ce94 0x2ebc 0x2e5c 2008-12-13 12:57:56.063 Blotto[715:813] [<BloAppDelegate: 0x43ef70> exceptionHandler:shouldHandleException:mask:] invoking at /Volumes/C/ Development/Projects/Blotto/BloAppDelegate.mm:392 2008-12-13 12:57:56.064 Blotto[715:813] NSExceptionHandler will now suspend the current thread and wait for debugger attachment
__raiseError (in CoreFoundation) + 188
objc_exception_throw (in libobjc.A.dylib) + 72
-[NSException init] (in CoreFoundation) + 0
-[CIFilter setValue:forUndefinedKey:] (in QuartzCore) + 200
-[NSObject(NSKeyValueCoding) setValue:forKey:] (in Foundation) + 264
-[CIFilter setValue:forKey:] (in QuartzCore) + 308
-[CIFilter dealloc] (in QuartzCore) + 184
NSPopAutoreleasePool (in Foundation) + 520
-[NSApplication finishLaunching] (in AppKit) + 1412
-[NSApplication run] (in AppKit) + 100
NSApplicationMain (in AppKit) + 444
main (in Blotto) (main.m:9)
start (in Blotto) + 68
[Switching to process 715 thread 0x3903]
[Switching to process 715 thread 0x3903]
kill
quit

I realize, that the functions SetSystemUIMode, ShowBar, and ResetMenuBarWindowFilter belong to Carbon (I have never done much with Carbon). I tried to find something relevant in the local documention and with google on the web using a lot of different search criterions, but got no useful result.

As one attempt to solve the problem I had deleted the old MainMenu.nib from the project, created a completely new MainMenu.xib – xib! –, and integrated it into the Xcode project. This didn't help.

Could someone please help?! This is the first time after years, that I don't know what to do :-(

Some more information:
- project format: Xcode 3.1 compatible
- architecture: native
- base SDK: Mac OS X 10.5
- compiler: GCC 4.0
- deployment target: Mac OS X 10.5
- garbage collection: off

Thanks in advance
Klaus

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to