Recent menu items and SetSystemUIMode(kUIModeAllHidden, kUIOptionAutoShowMenuBar)
Recent menu items and SetSystemUIMode(kUIModeAllHidden, kUIOptionAutoShowMenuBar)
- Subject: Recent menu items and SetSystemUIMode(kUIModeAllHidden, kUIOptionAutoShowMenuBar)
- From: Jesse Grosjean <email@hidden>
- Date: Sun, 10 Sep 2006 10:51:46 -0400
I have a NSDocument based application that goes into full screen mode
using:
SetSystemUIMode(kUIModeAllHidden, kUIOptionAutoShowMenuBar);
The problem is that when in full screen mode the "Open Recent" menu
stops working. It's populated OK, but selecting a file from the menu
throws this assertion:
2006-09-10 10:46:06.039 WriteRoom[3585] *** Assertion failure in -
[NSMenu itemAtIndex:], Menus.subproj/NSMenu.m:713
2006-09-10 10:46:06.039 WriteRoom[3585] Invalid parameter not
satisfying: (index >= 0) && (index < (_itemArray ? CFArrayGetCount
((CFArrayRef)_itemArray) : 0))
and the document is never opened. Does anyone know why this would be
the case, or a way to work around the problem? No other menu items
seem to have trouble, and this exception seems to be happening before
even the private NSDocumentController selector:
@interface NSDocumentController (NSPrivate)
- (void)_openRecentDocument:(id)fp8;
@end
gets called.
Thanks,
Jesse
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden