Assertion failure
Assertion failure
- Subject: Assertion failure
- From: Darrin Cardani <email@hidden>
- Date: Wed, 3 Mar 2004 16:35:50 -0600
I'm seeing something really strange. When I attempt to open a
document in my application, it brings up the open panel, and I can
select a document. But once I hit "OK", the open panel goes away and
nothing happens. (My document's -loadDataRepresentation:ofType:
method is never called.) The console has this error message:
2004-02-17 14:31:17.710 App Name[8866] *** Assertion failure in
-[NSMenu itemAtIndex:], Menus.subproj/NSMenu.m:638
2004-02-17 14:31:17.710 App Name[8866] Invalid parameter not
satisfying: (index >= 0) && (index < (_itemArray ?
CFArrayGetCount(_itemArray) : 0))
I tried invoking the menu item manually by calling
[ theMenu performActionForItemAtIndex:1 ];
on the file menu, but it does the same thing. It almost seems like
it's trying to add the file name to the "Open Recent" sub menu and is
failing, or something like that.
Is there any way to figure out which menu is the one throwing the
assertion? Has anyone else run into this before?
Thanks,
Darrin
--
Darrin Cardani - email@hidden
President, Buena Software, Inc.
<
http://www.buena.com/>
Video, Image and Audio Processing Development
_______________________________________________
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.