site_archiver@lists.apple.com Delivered-To: cocoa-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=Q21ESeUmfE4JRf3YA3TERXia+ckGXpo/XAZVqtmZOZc=; b=bDg7UgYO6DWZCU3XVsc/6fo9b2gIr9g2CSEeQ2asajRUZdI/LMFJyPkxT1BGuaRkVQ ccp3qrtKFsXZ4O72PCyMmdCaqv8hCK7x5mLbiXCfrQblvurkeCj4M1Fq0tdYyRHvZVS9 YVCXODbif+S7w/BcEJqVlm9LufjV4qfpvfjhs= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=ghpJ/yhQIV7BpXB+5+puxtRiH+OEw/fARrjpi0B09rQWV7WLd1T4d57Myj/SsJ+Izg 8D9dcQYEvWBcwVf2R/dnzTZqouz104N5AYdEqQizYzxwGgfHfLrIftchJmPaCokxGoBJ T0+gmWBOMVJguTLZLfNxjiV1GVNkrhiQxzFV4= Hi, I'm trying to add a new menu to the main menu of my application using Cocoa. I thought something like this would do the trick: NSMenu* menu = [[NSMenu alloc] initWithTitle:@"foo"]; NSMenuItem* item = [[NSApp mainMenu] addItemWithTitle:@"foo" action: nil keyEquivalent: @""]; [item setSubmenu:menu]; Unfortunately that doesn't seem to do anything at all. I thought that the top-level menus were actually menu items on the main menu, but perhaps I am misunderstanding? Matt _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/site_archiver%40lists.apple... This email sent to site_archiver@lists.apple.com