Help - what happened to my menu?
Help - what happened to my menu?
- Subject: Help - what happened to my menu?
- From: Denis Stanton <email@hidden>
- Date: Tue, 11 Mar 2003 21:46:35 +1300
My nice little Application has spontaneously developed a fatal error
that does not appear to be in my code.
I've been making small changes, recompiling and testing all day. I
added an apparently innocent line [self setSelectedGroupName: testItem];
to save a string and my next build-and-run crashed with the following
error:
2003-03-11 21:30:32.212 Contact[6701] *** Assertion failure in
-[NSMenuItem initWithTitle:action:keyEquivalent:],
Menus.subproj/NSMenuItem.m:83
2003-03-11 21:30:32.214 Contact[6701] An uncaught exception was raised
2003-03-11 21:30:32.214 Contact[6701] Invalid parameter not satisfying:
aString != nil
2003-03-11 21:30:32.214 Contact[6701] *** Uncaught exception:
<NSInternalInconsistencyException> Invalid parameter not satisfying:
aString != nil
Contact has exited due to signal 5 (SIGTRAP).
This doesn't seem to be at all related to the line I added. Taking it
out again makes no difference.
I have looked up [NSMenuItem initWithTitle:action:keyEquivalent:] and
found the method
- (id)initWithTitle:(NSString *)aString action:(SEL)aSelector
keyEquivalent:(NSString *)charCode; in NSMenuItem.h
It is apparently related to setting key equivalents for some of the
buttons in my app. I haven't changed the key equivalents I set in
Interface Builder many compiles ago so I do not understand why they are
suddenly suspect. I have now tried removing all key equivalents in
Interface Builder but it doesn't help. I get the same error and I can
no longer run my little application.
Does anybody have any clues as to what may have happened? If some
object is badly defined does the "83" in "NSMenuItem.m:83" identify the
faulty object?
thanks for any help or advice
Denis Stanton
_______________________________________________
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.