• 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 13:15:08 +1100

On 6 Mar 2015, at 12:06 pm, Ken Thomases <email@hidden> wrote:
>
> I _think_ connections to File's Owner are restored when the cell view NIB is loaded, but the File's Owner of the sub-NIB may not be the same as the File's Owner of the outer NIB.  It may not even be the same class.  It may also work to connect to the Application placeholder; haven't checked.
>
> However, it doesn't seem to work to connect to the Shared User Defaults Controller, as you've discovered.

So you're saying it's a bug?

> Unfortunately, the solution is clumsy.  You have to use a separate view NIB for the table cell view.  That means you can't really design the view-based table in the NIB that contains the table view.  The table view is in one NIB and the cell views are in other NIBs.
>
<snip>
>
> Hopefully that works for you.

It does, thanks. It certainly makes something that was relatively simple a lot more complex.


On 6 Mar 2015, at 12:13 pm, Quincey Morris <email@hidden> wrote:

> However, I think there’s an easier workaround. It ought to be fairly straightforward to give the object that’s being used as the cell’s “objectValue” a KVO-compliant “fontSize" derived property that tracks the user defaults value, and to bind the text field font size to that.

Thanks, Quincey. That sounds much easier, but alas I got your email after I'd started implementing Ken's suggestion.

--
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>)

  • Prev by Date: Re: Bindings in view-based tables
  • Next by Date: Re: Bindings in view-based tables
  • Previous by thread: Re: Bindings in view-based tables
  • Next by thread: Re: Bindings in view-based tables
  • Index(es):
    • Date
    • Thread