On Jun 15, 2013, at 19:26 , Quincey Morris 
<quinceymor...@rivergatesoftware.com> wrote:

> On Jun 15, 2013, at 18:48 , Rick Mann <rm...@latencyzero.com> wrote:
> 
>> I can leave the view 23 pixels high, and adjust the outline view's row 
>> height, but I'd rather it size automatically in case I add views of a 
>> different heigh later.
> 
> It doesn't work like that. A table cell view [prototype] has no predetermined 
> height. Rather, a cell view is resized, just after being instantiated, for 
> the row height of the row it was created for. Note that this means that the 
> run-time height of each row must be known in advance of creating the cell 
> view for the row.
> 
> What you see in IB is the design-time height of the cell view, which is 
> deduced from the design-time row height of the table view. For the simplest 
> case, this matches the run-time row height, but this isn't necessarily so (if 
> you programmatically change the row height, or if you're going to use a 
> variable row height).
> 
> So you should probably just adjust the row height.

There's a setting for "Automatic"…where does it get it from then?

Also, is there no way, using bindings, and no delegate, to choose among 
multiple NSTableViewCell implementations? I thought the 2011 WWDC video said it 
was possible, but I didn't quite understand what it was referring to. 
Unfortunately, there's no straightforward pure-bindings example to look at.



-- 
Rick




_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to