From 515e93007d444c33ca82f7c43b76cf8c228cb9d6 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Thu, 18 Jun 2009 21:34:51 +0000 Subject: =?UTF-8?q?=E2=80=A2=20added=20to=20SPArrayAdditions.h:=20NSArrayO?= =?UTF-8?q?bjectAtIndex()=20inline=20function=20-=20id=20o=20=3D=20NSArray?= =?UTF-8?q?ObjectAtIndex(anArray,=20index)=20:=3D=3D=20id=20o=20=3D=20[anA?= =?UTF-8?q?rray=20objectAtIndex:index]=20-=20this=20speed=20up=20it=20~3?= =?UTF-8?q?=C2=B5s=20per=20call=20-=20replaced=20that=20inline=20function?= =?UTF-8?q?=20for=20such=20calls=20within=20loops=20to=20speed=20up=20them?= =?UTF-8?q?=20=E2=80=A2=20used=20IMP=20function=20pointers=20for=20keepAli?= =?UTF-8?q?ve=20calls=20within=20queryString:=20=E2=80=A2=20set=20-O3=20(F?= =?UTF-8?q?astest)=20compiler=20option=20=E2=80=A2=20allow=20in=20preferen?= =?UTF-8?q?ce=20pane=20"Tables"=20to=20set=20the=20Limit=20up=20to=2050000?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/CMCopyTable.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/CMCopyTable.m') diff --git a/Source/CMCopyTable.m b/Source/CMCopyTable.m index 2f7bb929..85f8a20e 100644 --- a/Source/CMCopyTable.m +++ b/Source/CMCopyTable.m @@ -101,7 +101,7 @@ int MENU_EDIT_COPY_AS_SQL = 2002; if(withHeaders) { int i; for( i = 0; i < numColumns; i++ ){ - [result appendString:[NSString stringWithFormat:@"%@\t", [[[columns objectAtIndex:i] headerCell] stringValue]]]; + [result appendString:[NSString stringWithFormat:@"%@\t", [[NSArrayObjectAtIndex(columns, i) headerCell] stringValue]]]; } [result appendString:[NSString stringWithFormat:@"\n"]]; } @@ -119,7 +119,7 @@ int MENU_EDIT_COPY_AS_SQL = 2002; rowData = nil; for ( c = 0; c < numColumns; c++) { - col = [columns objectAtIndex:c]; + col = NSArrayObjectAtIndex(columns, c); rowData = [dataSource tableView:self objectValueForTableColumn:col row:[row intValue] ]; -- cgit v1.2.3