Mercurial > dwindows
comparison mac/dw.m @ 1335:44f8a846f3c1
A couple minor code cleanups on Mac.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sun, 13 Nov 2011 08:47:41 +0000 |
parents | 5e2ec37d1680 |
children | 890890c31ba6 |
comparison
equal
deleted
inserted
replaced
1334:5e2ec37d1680 | 1335:44f8a846f3c1 |
---|---|
6272 NSIndexSet *selected = [[NSIndexSet alloc] initWithIndex:(NSUInteger)x]; | 6272 NSIndexSet *selected = [[NSIndexSet alloc] initWithIndex:(NSUInteger)x]; |
6273 | 6273 |
6274 [cont selectRowIndexes:selected byExtendingSelection:YES]; | 6274 [cont selectRowIndexes:selected byExtendingSelection:YES]; |
6275 [selected release]; | 6275 [selected release]; |
6276 [cont scrollRowToVisible:x]; | 6276 [cont scrollRowToVisible:x]; |
6277 DW_MUTEX_UNLOCK; | |
6278 return; | |
6277 } | 6279 } |
6278 } | 6280 } |
6279 DW_MUTEX_UNLOCK; | 6281 DW_MUTEX_UNLOCK; |
6280 } | 6282 } |
6281 | 6283 |
6299 thistext = [cont getRowTitle:x]; | 6301 thistext = [cont getRowTitle:x]; |
6300 | 6302 |
6301 if((textcomp && thistext && strcmp(thistext, text) == 0) || (!textcomp && thistext == text)) | 6303 if((textcomp && thistext && strcmp(thistext, text) == 0) || (!textcomp && thistext == text)) |
6302 { | 6304 { |
6303 [cont removeRow:x]; | 6305 [cont removeRow:x]; |
6306 DW_MUTEX_UNLOCK; | |
6304 return; | 6307 return; |
6305 } | 6308 } |
6306 } | 6309 } |
6307 DW_MUTEX_UNLOCK; | 6310 DW_MUTEX_UNLOCK; |
6308 } | 6311 } |
6316 { | 6319 { |
6317 int _locked_by_me = FALSE; | 6320 int _locked_by_me = FALSE; |
6318 DW_MUTEX_LOCK; | 6321 DW_MUTEX_LOCK; |
6319 DWContainer *cont = handle; | 6322 DWContainer *cont = handle; |
6320 [cont optimize]; | 6323 [cont optimize]; |
6321 #if 0 | |
6322 /* All resizable columns should expand */ | |
6323 [cont setColumnAutoresizingStyle:NSTableViewUniformColumnAutoresizingStyle]; | |
6324 #endif | |
6325 DW_MUTEX_UNLOCK; | 6324 DW_MUTEX_UNLOCK; |
6326 } | 6325 } |
6327 | 6326 |
6328 /* | 6327 /* |
6329 * Inserts an icon into the taskbar. | 6328 * Inserts an icon into the taskbar. |