4

I have a document-based app that supports Versions and Autosave. When you click the proxy icon, a popup menu appears like in any other document app, too:

cocoduino menu

You notice this weird NSMenuItem item? It's not supposed to look like that. In Quartz Composer for example it looks like this:

enter image description here

I don't know why this happens, as I'm not doing anything with the window title or icon. There isn't even an API to customize this popup menu.
It would be great if somebody could help me to get this fixed or at least an idea of what could be the cause of this behavior.

Kind regards,
Fabian

NSGod
  • 22,699
  • 3
  • 58
  • 66
Fabian Kreiser
  • 8,307
  • 1
  • 34
  • 60
  • I guess you know the difference between locked and unlocked documents. In your case, your apps' document is not locked, QC's is locked. Maybe this can help how to create documents in locked status http://www.cocoabuilder.com/archive/cocoa/308521-locking-an-nsdocument.html – cocoafan Feb 26 '12 at 18:44
  • It happens for locked documents, too. Either way, showing "NSMenuItem" as a title is clearly a bug and not desired behavior. But thanks for the suggestion. – Fabian Kreiser Feb 27 '12 at 16:14
  • hope you filed the bug Fabian – valexa Feb 29 '12 at 15:35
  • The problem is that it's not reproducible when starting a new project. – Fabian Kreiser Feb 29 '12 at 16:53

1 Answers1

1

Found a blog post with the solution. This worked for me: Versions, validateMenuItem: and NSMenuItem

mhoeller
  • 530
  • 2
  • 9