Mercurial > dwindows
changeset 855:0103a8751ab4
Removed an unnecessary method in the container (rowCount) and implemented container column alignment.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 31 Mar 2011 19:13:24 +0000 |
parents | d44bb4c4902d |
children | 9dc45928a75f |
files | mac/dw.m |
diffstat | 1 files changed, 9 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mac/dw.m Thu Mar 31 18:50:52 2011 +0000 +++ b/mac/dw.m Thu Mar 31 19:13:24 2011 +0000 @@ -1076,7 +1076,6 @@ -(int)lastAddPoint; -(int)lastQueryPoint; -(void)setLastQueryPoint:(int)input; --(int)rowCount; -(void)clear; -(void)setup; -(void)setForegroundColor:(NSColor *)input; @@ -1218,7 +1217,6 @@ -(int)lastAddPoint { return lastAddPoint; } -(int)lastQueryPoint { return lastQueryPoint; } -(void)setLastQueryPoint:(int)input { lastQueryPoint = input; } --(int)rowCount { return (int)[titles count]; } -(void)clear { if(data) { [data removeAllObjects]; while([titles count]) { [titles removePointerAtIndex:0]; } } lastAddPoint = 0; } -(void)setup { @@ -4713,6 +4711,14 @@ } [imagecell release]; } + else if(flags[z] & DW_CFA_RIGHT) + { + [(NSCell *)[column dataCell] setAlignment:NSRightTextAlignment]; + } + else if(flags[z] & DW_CFA_CENTER) + { + [(NSCell *)[column dataCell] setAlignment:NSCenterTextAlignment]; + } [column setEditable:NO]; [cont addTableColumn:column]; [cont addColumn:column andType:(int)flags[z]]; @@ -5088,7 +5094,7 @@ DWContainer *cont = handle; NSScrollView *sv = [cont scrollview]; NSScroller *scrollbar = [sv verticalScroller]; - int rowcount = [cont rowCount]; + int rowcount = (int)[cont numberOfRowsInTableView:cont]; float currpos = [scrollbar floatValue]; float change;