Re: deleting columns in a NSTableView - Fixed!
Re: deleting columns in a NSTableView - Fixed!
- Subject: Re: deleting columns in a NSTableView - Fixed!
- From: Martin Kautz <email@hidden>
- Date: Mon, 27 May 2002 11:04:15 +0200
Am 27.05.2002 10:45 Uhr schrieb "Martin Kautz" <email@hidden> :
>
Hello list,
>
>
since I'm using a NSTableView with dynamic generated amount of columns I
>
need to delete all columns before I start a new query (which could contain a
>
different result set with a different amount of columns).
>
What's wrong with that? My first result set contains 4 columns an this sort
>
of init code only deletes 2 columns instead of 4!
>
>
for (i=0; i<[table numberOfColumns]; i++) {
>
NSLog (@"Column %i to be removed: %d",
>
i, [[table tableColumns] objectAtIndex:i]);
>
>
[table removeTableColumn:[[table tableColumns] objectAtIndex:zz]];
>
NSLog (@"Now we do have %i columns", [table numberOfColumns]);
>
}
>
>
>
TIA,
>
Martin
Oops, kinda stupid error by being recursive! Ignore my question.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.