remove some warnings
This commit is contained in:
parent
b9c2ea46ce
commit
141404356a
|
@ -82,7 +82,6 @@
|
||||||
//window location and size
|
//window location and size
|
||||||
NSPanel * window = (NSPanel *)[self window];
|
NSPanel * window = (NSPanel *)[self window];
|
||||||
|
|
||||||
#warning get working again
|
|
||||||
[window setFrameAutosaveName: @"InspectorWindowFrame"];
|
[window setFrameAutosaveName: @"InspectorWindowFrame"];
|
||||||
[window setFrameUsingName: @"InspectorWindowFrame"];
|
[window setFrameUsingName: @"InspectorWindowFrame"];
|
||||||
|
|
||||||
|
|
|
@ -378,7 +378,6 @@
|
||||||
item = [menu itemWithTag: ACTION_MENU_GLOBAL_TAG];
|
item = [menu itemWithTag: ACTION_MENU_GLOBAL_TAG];
|
||||||
[item setState: mode == NSMixedState ? NSOnState : NSOffState];
|
[item setState: mode == NSMixedState ? NSOnState : NSOffState];
|
||||||
}
|
}
|
||||||
#warning better way?
|
|
||||||
else if ([menu supermenu]) //assume the menu is part of the file list
|
else if ([menu supermenu]) //assume the menu is part of the file list
|
||||||
{
|
{
|
||||||
NSMenu * supermenu = [menu supermenu];
|
NSMenu * supermenu = [menu supermenu];
|
||||||
|
@ -440,13 +439,7 @@
|
||||||
|
|
||||||
- (void) checkFile: (id) sender
|
- (void) checkFile: (id) sender
|
||||||
{
|
{
|
||||||
#warning get working
|
NSIndexSet * indexSet = [[sender representedObject] objectForKey: @"Indexes"];
|
||||||
NSIndexSet * indexSet;
|
|
||||||
if ([[NSApp currentEvent] modifierFlags] & NSAlternateKeyMask)
|
|
||||||
indexSet = [NSIndexSet indexSetWithIndexesInRange: NSMakeRange(0, [fMenuTorrent fileCount])];
|
|
||||||
else
|
|
||||||
indexSet = [[sender representedObject] objectForKey: @"Indexes"];
|
|
||||||
|
|
||||||
[fMenuTorrent setFileCheckState: [sender state] != NSOnState ? NSOnState : NSOffState forIndexes: indexSet];
|
[fMenuTorrent setFileCheckState: [sender state] != NSOnState ? NSOnState : NSOffState forIndexes: indexSet];
|
||||||
|
|
||||||
[[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateStats" object: nil];
|
[[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateStats" object: nil];
|
||||||
|
|
Loading…
Reference in New Issue