> On Apr 5, 2017, at 5:19 PM, Daryle Walker <dary...@mac.com> wrote: > >> On Apr 5, 2017, at 5:08 PM, Daryle Walker <dary...@mac.com> wrote: >> >>> On Apr 5, 2017, at 12:19 PM, Charles Srstka <cocoa...@charlessoft.com> >>> wrote: >>> >>> Actually, while NSTableCellView won’t bind to *most* things outside of the >>> table view, there is an exception for the table’s delegate. So, if you set >>> the table’s delegate to File’s Owner, and then bind the NSTableCellView’s >>> ‘font’ binding to File’s Owner, it should work.* >>> >>> *But only in a XIB file. In a storyboard, the XIB compiler will get stuck >>> in an infinite loop which will continue even after you click the “Stop” >>> button, grabbing more and more RAM surreptitiously in the background until >>> your Mac runs out of swap space and you’re forced to do a hard reboot. >>> Hooray for Xcode! >> >> I am using a storyboard. And this hang upon XIB-compilation is what happens >> whenever I try font-binding. > > Hmm, I wonder if I can do this binding at run-time, within the view > controller’s “viewDidLoad” or whatever. But I need to get references to each > columns’ prototype cell. Can I control-drag from the cell to create an outlet > for those?!
You can control-drag from a prototype cell to the source file to create an outlet, but IB flags an error soon afterwards, proclaiming the connection to be invalid. Makes sense, since I’m connecting a prototype and not actual table cells, and the actual cells are too transient for an outlet connection. Does anyone have any ideas how to do this a runtime? I need to intercept when a table cell is created so I can either change its font property or set a font binding. (If we do the latter, we also need to intercept the cell’s destruction so I can unbind.) — Daryle Walker Mac, Internet, and Video Game Junkie darylew AT mac DOT com _______________________________________________ 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