NSMenuItem not responding to setIndentationLevel:
Posted
by dave-gennel
on Stack Overflow
See other posts from Stack Overflow
or by dave-gennel
Published on 2010-03-21T12:33:14Z
Indexed on
2010/03/21
12:41 UTC
Read the original article
Hit count: 375
If I call setIndentationLevel:
on an NSMenuItem then nothing happens, if I call indentationLevel
on it to return its current level I get the default, 0.
NSMenuItem *menuItem = [[NSMenuItem alloc] initWithTitle: @"title" action: nil keyEquivalent: @""];
[menuItem setIndentationLevel: 3];
[dockMenu addItem: menuItem];
© Stack Overflow or respective owner