Re: NSTableView and variable row height with core data
Re: NSTableView and variable row height with core data
- Subject: Re: NSTableView and variable row height with core data
- From: Steven Spencer <email@hidden>
- Date: Wed, 03 Aug 2005 17:02:10 +0100
Have a look at :
http://lists.apple.com/archives/cocoa-dev/2005/Jun/msg02182.html
All occurrences of the following line from the above archive :
[myTableView noteHeightOfRowsWithIndexesChanged:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(0, [myTableView numberOfRows] - 1)]];
should be replaced with :
[myTableView noteHeightOfRowsWithIndexesChanged:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(0, [myTableView numberOfRows])]];
However, I've since found that noteHeightOfRowsWithIndexesChanged doesn't always work unless it's used in a loop and called once for each index :
for (row=0; row< rowCount; row++) {
[myTableView noteHeightOfRowsWithIndexesChanged:[NSIndexSet indexSetWithIndex:row]];
}
If you're interested, I can post off-list a solution using NSTableView and NSTableColumn subclasses to do automatic row height calculation. This works with a dataSource or column binding.
- Steve Spencer
>Message: 12
>Date: Tue, 2 Aug 2005 20:06:00 -0700
>From: Ross Winn <email@hidden>
>Subject: NSTableView and variable row height with core data
>To: email@hidden
>Message-ID: <email@hidden>
>Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
>
>I have a NSTableView...
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden