mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-19 09:30:56 +00:00
Identation & bracket position changes
This commit is contained in:
parent
50787359a5
commit
aea2b09d47
@ -69,22 +69,21 @@ void prefs_exit()
|
|||||||
|
|
||||||
- (id) tableView: (NSTableView *) table objectValueForTableColumn: (NSTableColumn *) col row: (int) row
|
- (id) tableView: (NSTableView *) table objectValueForTableColumn: (NSTableColumn *) col row: (int) row
|
||||||
{
|
{
|
||||||
DiskType *d = (DiskType*)[diskArray objectAtIndex:row];
|
DiskType *d = (DiskType*)[diskArray objectAtIndex:row];
|
||||||
|
|
||||||
if([[col identifier] isEqualTo:@"isCDROMcol"])
|
if([[col identifier] isEqualTo:@"isCDROMcol"]) {
|
||||||
{
|
return [NSString stringWithFormat:@"%d", [d isCDROM]];
|
||||||
return [NSString stringWithFormat:@"%d", [d isCDROM]];
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return [d path];
|
return [d path];
|
||||||
}
|
}
|
||||||
|
|
||||||
-(void)tableView:(NSTableView *)tableView setObjectValue:(id)object forTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row
|
-(void)tableView:(NSTableView *)tableView setObjectValue:(id)object forTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row
|
||||||
{
|
{
|
||||||
if ([[tableColumn identifier] isEqual:@"isCDROMcol"]) {
|
if ([[tableColumn identifier] isEqual:@"isCDROMcol"]) {
|
||||||
DiskType *d = (DiskType*)[diskArray objectAtIndex:row];
|
DiskType *d = (DiskType*)[diskArray objectAtIndex:row];
|
||||||
[d setIsCDROM:![d isCDROM]];
|
[d setIsCDROM:![d isCDROM]];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static NSString *getStringFromPrefs(const char *key)
|
static NSString *getStringFromPrefs(const char *key)
|
||||||
|
Loading…
Reference in New Issue
Block a user