Solved it by manually removing the submenus from code:
- (void)windowDidLoad {
[super windowDidLoad];
[self presentModalViewController:self.bookshelfController withData:nil];
[self removeLastMenuItemsOfRedigeraMenu];
}
-(void)removeLastMenuItemsOfRedigeraMenu
{
NSMenu *mainMenu = [NSApp mainMenu];
for (NSMenuItem* subMenu in mainMenu.itemArray)
{
if ([subMenu.title isEqualToString:@"Redigera"])
{
NSArray *array = subMenu.submenu.itemArray;
for (int i = (int)array.count-1; i >= 0; i--)
{
if (i >= 11)
{
[subMenu.submenu removeItem:[array objectAtIndex:i]];
}
}
}
}
}
Please post if you have a better answer