Re: Fonts in TableView

2016-11-06 Thread Gerriet M. Denkmann
> On 6 Nov 2016, at 13:18, Quincey Morris > wrote: > > On Nov 5, 2016, at 21:44 , Gerriet M. Denkmann wrote: >> >> NSRect boundingRect = tableFont.boundingRectForFont; >> self.outlineView.rowHeight = ceil( boundingRect.size.height ) > > This is probably a poor choice, for reasons

Re: NSCollectionView isn't playing nicely with selection binding

2016-11-06 Thread Rob Petrovec
The NSIndexSet variants are (soft) deprecated. They will likely be hard deprecated (e.g. produce compiler warnings/errors) in a future release. You should only use the NSIndexPath versions going forward. Using a mix of the two variants of API is not supported. To bind NSCollectionView -sele

Re: Is NSCollectionView size not controllable in 10.10?

2016-11-06 Thread Rob Petrovec
I haven’t seen Jean-Daniel’s reply (he likely replied directly to you), but I think he is correct. Your best bet is to subclass NSCollectionViewFlowLayout and override -collectionViewContentSize: to specify what width you want the collection view to be and let NSCollectionViewFlowLayout figure

Re: Is NSCollectionView size not controllable in 10.10?

2016-11-06 Thread じょいすじょん
If this is on 10.10 as was noted earlier, NSCollectionViewFlowLayout is not available is it? > On 2016 Nov 7, at 11:34, Rob Petrovec wrote: > > I haven’t seen Jean-Daniel’s reply (he likely replied directly to you), but I > think he is correct. Your best bet is to subclass NSCollectionViewFl

Re: Is NSCollectionView size not controllable in 10.10?

2016-11-06 Thread Steve Mills
On Nov 6, 2016, at 20:39:50, じょいすじょん wrote: > > If this is on 10.10 as was noted earlier, NSCollectionViewFlowLayout is not > available is it? No, it's not. That's the problem. The "legacy" version of NSCollectionView is barely customizable. I'll probably move to the app being 10.11 or later.