src/video/cocoa/SDL_cocoaevents.m
changeset 6836 b0ca1571caf3
parent 6832 156e608ec4ef
child 6848 478ecc8a58b3
equal deleted inserted replaced
6835:c259f0817583 6836:b0ca1571caf3
   105     serviceMenu = [[NSMenu alloc] initWithTitle:@""];
   105     serviceMenu = [[NSMenu alloc] initWithTitle:@""];
   106     menuItem = (NSMenuItem *)[appleMenu addItemWithTitle:@"Services" action:nil keyEquivalent:@""];
   106     menuItem = (NSMenuItem *)[appleMenu addItemWithTitle:@"Services" action:nil keyEquivalent:@""];
   107     [menuItem setSubmenu:serviceMenu];
   107     [menuItem setSubmenu:serviceMenu];
   108 
   108 
   109     [NSApp setServicesMenu:serviceMenu];
   109     [NSApp setServicesMenu:serviceMenu];
       
   110     [serviceMenu release];
   110 
   111 
   111     [appleMenu addItem:[NSMenuItem separatorItem]];
   112     [appleMenu addItem:[NSMenuItem separatorItem]];
   112 
   113 
   113     title = [@"Hide " stringByAppendingString:appName];
   114     title = [@"Hide " stringByAppendingString:appName];
   114     [appleMenu addItemWithTitle:title action:@selector(hide:) keyEquivalent:@"h"];
   115     [appleMenu addItemWithTitle:title action:@selector(hide:) keyEquivalent:@"h"];