Set the title of a menu item's submenu

Correspond to Cocoa's behavior by automatically having CPMenuItem set the title of it's submenu
This commit is contained in:
Klaas Pieter Annema committed 2011-07-07 16:04:10 +02:00
1 parent 2b6fddf26c
commit 0318587f80
1 file changed
+1
+1
View File
@@ -496,6 +496,7 @@ CPOffState
if (_submenu)
{
[_submenu setSupermenu:_menu];
[_submenu setTitle:[self title]]
[self setTarget:_menu];
[self setAction:@selector(submenuAction:)];