• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Bindings in view-based tables
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bindings in view-based tables


  • Subject: Re: Bindings in view-based tables
  • From: Shane Stanley <email@hidden>
  • Date: Fri, 06 Mar 2015 17:23:46 +1100

On 6 Mar 2015, at 4:25 pm, Ken Thomases <email@hidden> wrote:

>> So you're saying it's a bug?
>
> I think the bug is that IB hides the existence of the sub-NIB.  If IB presented the sub-NIB with all of the usual placeholders and put a Shared User Defaults Controller into it when you set a binding on it, etc., that would help make this clear.
>
> Also, it's a bug that IB will blithely let you create connections from objects in the sub-NIB to objects outside the sub-NIB when those connections won't survive to runtime.

That's what I was getting at, I guess. There's no indication that one is doing anything wrong (other than failure to work, of course).
>
>> It also seems that the row height is based on its height.
>
> How so?  To my knowledge, Cocoa doesn't yet support determining row height automatically based on the height of cell views (presumably determined by auto layout).  UIKit has that, but AppKit does not.  And it's not clear to me if it makes sense for a table that can have multiple columns, since each column's cell view can be different.
>
> You set the table view's row height on the table view itself, on the Size inspector.  There is an Automatic mode, but that uses the row size style from System Preferences.

I had it set to automatic mode, and the unused table cell view was set to X points high. Each time I changed its height and ran it again, the height of the rows changed accordingly. No big deal because I needed to implement the delegate method anyway, but I was surprised.

--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden


References: 
 >Bindings in view-based tables (From: Shane Stanley <email@hidden>)
 >Re: Bindings in view-based tables (From: Quincey Morris <email@hidden>)
 >Re: Bindings in view-based tables (From: Shane Stanley <email@hidden>)
 >Re: Bindings in view-based tables (From: Ken Thomases <email@hidden>)
 >Re: Bindings in view-based tables (From: Shane Stanley <email@hidden>)
 >Re: Bindings in view-based tables (From: Ken Thomases <email@hidden>)

  • Prev by Date: Re: Bindings in view-based tables
  • Next by Date: Re: Mac OS X - Inter-Application Communications
  • Previous by thread: Re: Bindings in view-based tables
  • Next by thread: Re: All buttons lost focus ring on Yosemite
  • Index(es):
    • Date
    • Thread