简体   繁体   中英

Bug in Cocoa document-based app with the window's document icon popup menu

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菜单

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

在此输入图像描述

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM