• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Recent menu items and SetSystemUIMode(kUIModeAllHidden, kUIOptionAutoShowMenuBar)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Speaking of tracking rects...
  • Next by Date: Re: Speaking of tracking rects...
  • Previous by thread: Re: clicking through
  • Next by thread: Newbie:initialize at app. startup?
  • Index(es):
    • Date
    • Thread