cocoa.m (9d227f194dc7d3f9c8fee48444e7a1db38b33500) | cocoa.m (cb8d4c8f54b8271f642f02382eec29d468bb1c77) |
---|---|
1/* 2 * QEMU Cocoa CG display driver 3 * 4 * Copyright (c) 2008 Mike Kronenberg 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights --- 1380 unchanged lines hidden (view full) --- 1389 [attString addAttribute:NSUnderlineStyleAttributeName value:[NSNumber numberWithInt: 1] range:NSMakeRange(0, [titleString length])]; 1390 1391 // Add the "Removable Media" menu item 1392 menuItem = [NSMenuItem new]; 1393 [menuItem setAttributedTitle: attString]; 1394 [menuItem setEnabled: NO]; 1395 [menu addItem: menuItem]; 1396 | 1/* 2 * QEMU Cocoa CG display driver 3 * 4 * Copyright (c) 2008 Mike Kronenberg 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights --- 1380 unchanged lines hidden (view full) --- 1389 [attString addAttribute:NSUnderlineStyleAttributeName value:[NSNumber numberWithInt: 1] range:NSMakeRange(0, [titleString length])]; 1390 1391 // Add the "Removable Media" menu item 1392 menuItem = [NSMenuItem new]; 1393 [menuItem setAttributedTitle: attString]; 1394 [menuItem setEnabled: NO]; 1395 [menu addItem: menuItem]; 1396 |
1397 /* Loop thru all the block devices in the emulator */ | 1397 /* Loop through all the block devices in the emulator */ |
1398 while (currentDevice) { 1399 deviceName = [[NSString stringWithFormat: @"%s", currentDevice->value->device] retain]; 1400 1401 if(currentDevice->value->removable) { 1402 menuItem = [[NSMenuItem alloc] initWithTitle: [NSString stringWithFormat: @"Change %s...", currentDevice->value->device] 1403 action: @selector(changeDeviceMedia:) 1404 keyEquivalent: @""]; 1405 [menu addItem: menuItem]; --- 45 unchanged lines hidden --- | 1398 while (currentDevice) { 1399 deviceName = [[NSString stringWithFormat: @"%s", currentDevice->value->device] retain]; 1400 1401 if(currentDevice->value->removable) { 1402 menuItem = [[NSMenuItem alloc] initWithTitle: [NSString stringWithFormat: @"Change %s...", currentDevice->value->device] 1403 action: @selector(changeDeviceMedia:) 1404 keyEquivalent: @""]; 1405 [menu addItem: menuItem]; --- 45 unchanged lines hidden --- |