Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Senor Cuete

macrumors 6502
Original poster
The Cocoa Framework automatically adds items that I don't want to my app's menus. For example it adds a character palette. I get rid of this by using this code in my AppController:
Code:
+ (void) initialize //override NSObject initialize so I can initialize the user defaults
{
    NSMutableDictionary *defaultValues = [NSMutableDictionary dictionary];
...
    
    //Get rid of Special characters menu item in edit menu:
    [defaultValues setObject: [NSNumber numberWithBool: YES] forKey:@"NSDisabledCharacterPaletteMenuItem"];
    [[NSUserDefaults standardUserDefaults] registerDefaults: defaultValues];
}

Is there some similar way to get rid of the "Start Dictation..." item that XCode 6.1 adds to the Edit menu? I can't find anything about this in XCode Help.
 
Is there some similar way to get rid of the "Start Dictation..." item that XCode 6.1 adds to the Edit menu? I can't find anything about this in XCode Help.

Google "Cocoa Objective-C how to remove "start dictation" menu item"
check out the stackoverflow post from 2014.
 
Thanks. There is also a thread about this on the Apple Developer Forums, which gives another way to do this.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.