Re: Auto-sized table cells, for macOS

2017-03-17 Thread Daryle Walker
> On Mar 14, 2017, at 11:33 PM, Quincey Morris > wrote: > > On Mar 14, 2017, at 18:26 , Daryle Walker > wrote: >> >> You’d think that this would be a solved problem…. > > It sort of is. I think you can find a solution on stackoverflow.com >

Re: NSTableView column sizes

2017-03-17 Thread Daryle Walker
The effect I don’t like about the default code is that when the last column’s width is set to fill out the table, it’s only set for the current set of widths. As soon as you narrow an earlier column, the last column’s right border becomes visible. I want the last column to always max out, no mat

programmatically tell when spotlight/mds is indexing

2017-03-17 Thread sqwarqDev
I have an app that uses MSMetadataQuery. As expected, this returns very fast results. However, there is an edge case when Spotlight chooses to re-index the whole disk (indicated in Spotlight's GUI by the blue progress bar underneath during a search). When this happens my app’s search is severel

Calculating intrinsicContentSize for a NSTextField

2017-03-17 Thread Jeremy Hughes
I have a text field that I want to grow and shrink while it is being edited. In order to do that, I have overridden intrinsicContentSize and textDidChange in a subclass of NSTextField: override var intrinsicContentSize: NSSize { if let cell = cell, cell.wraps

Re: Auto-sized table cells, for macOS

2017-03-17 Thread Quincey Morris
On Mar 17, 2017, at 01:45 , Daryle Walker wrote: > > Besides those who intentionally want truncating behavior, wouldn’t “expand to > show all text” be the expected default? The current default isn’t friendly to > end users. I’m a bit puzzled about what you’re expecting. You asked about determi

Re: Menu Item Shortcuts Without Menu Items?

2017-03-17 Thread Frank D. Engel, Jr.
Thanks to those who answered; the "alternate" property is doing what I need it to. The delegate method sounds good too, but I wasn't able to get that to work for some reason - I may go back and look at that more closely in the future but for now I think I'm content with the possible limitation

Re: Calculating intrinsicContentSize for a NSTextField

2017-03-17 Thread Daryle Walker
> On Mar 17, 2017, at 1:18 PM, Jeremy Hughes > wrote: > > I have a text field that I want to grow and shrink while it is being edited. > > In order to do that, I have overridden intrinsicContentSize and textDidChange > in a subclass of NSTextField: > [SNIP] > > This works, but if I remove t

Re: Auto-sized table cells, for macOS

2017-03-17 Thread Daryle Walker
— Daryle Walker Mac, Internet, and Video Game Junkie darylew AT mac DOT com > On Mar 17, 2017, at 2:24 PM, Quincey Morris > wrote: > > On Mar 17, 2017, at 01:45 , Daryle Walker > wrote: >> >> I made my first attempt after reading >>