Re: another question about view based NSTableViews

2015-03-15 Thread Graham Cox
> On 16 Mar 2015, at 12:24 pm, Patrick J. Collins > wrote: > > The docs say that with a view based table, the subviews (i.e. columns) > should handle their own behavior, but-- how does a NSTextField (my cell > view) know what row it's in, what column it is, etc... ? Each row view has a view c

Re: another question about view based NSTableViews

2015-03-15 Thread Ken Thomases
On Mar 15, 2015, at 8:24 PM, Patrick J. Collins wrote: > So, I have my NSTableView which is made up of NSTextFields as cells... > How do I handle knowing when the value of one of these text fields > change? > > The docs say that with a view based table, the subviews (i.e. columns) > should hand

Re: Trying to hide a NSProgressIndicator upon finishing of table rendering

2015-03-15 Thread Ken Thomases
On Mar 15, 2015, at 7:58 PM, Patrick J. Collins wrote: > And guess what? result is always false... Which makes me wonder why in their > documentation do they suggest that result == nil check? But, I am confused > why > it's recreating views from scratch anytime the table content changes? Is

Re: Trying to hide a NSProgressIndicator upon finishing of table rendering

2015-03-15 Thread Graham Cox
> On 16 Mar 2015, at 11:58 am, Patrick J. Collins > wrote: > > The problem is, there is quite an obnoxious lag between spinner being > hidden and table view contents actually updating. I am assuming because > this is a 13 column x several hundred rows, That's a big table... sure it's the righ

another question about view based NSTableViews

2015-03-15 Thread Patrick J. Collins
So, I have my NSTableView which is made up of NSTextFields as cells... How do I handle knowing when the value of one of these text fields change? The docs say that with a view based table, the subviews (i.e. columns) should handle their own behavior, but-- how does a NSTextField (my cell view) kno

Re: Trying to hide a NSProgressIndicator upon finishing of table rendering

2015-03-15 Thread Patrick J. Collins
> You probably want to rethink what you mean by "processing of data". > The table ALWAYS lazy loads, and only asks your data source for the > row it needs when it needs them. The user scrolls, more rows needed, > your data source supplies them. This is all VIEW stuff, nothing to do > with data pro

Re: highlight a nsview on click-drag?

2015-03-15 Thread Graham Cox
> On 15 Mar 2015, at 7:22 pm, Patrick J. Collins > wrote: > > This NSView is of an audio waveform. I currently have my drawRect: > method draw the lines of my waveform, Have you designed it so that it only draws the minimum it needs to? For example, if your audio waveform represents 5 minute

Re: highlight a nsview on click-drag?

2015-03-15 Thread Kyle Sluder
On Sun, Mar 15, 2015, at 02:22 AM, Patrick J. Collins wrote: > My next approach was to save my drawn waveform to an NSImage and use > that as a background for my view... If you have a better suggestion for > how I could handle this, I'd love to hear it. This is a good idea. It would be better yet

Re: highlight a nsview on click-drag?

2015-03-15 Thread Patrick J. Collins
> Why bother with a timer loop to animate the wiper when that functionality is > built-in through CoreAnimation? > Especially since you are using an image as the wave background. I guess because I like the playhead being tied to the actual current sample position, not a separate animation that is

Re: highlight a nsview on click-drag?

2015-03-15 Thread Robert Martin
Why bother with a timer loop to animate the wiper when that functionality is built-in through CoreAnimation? Especially since you are using an image as the wave background. CoreAnimation will move the wiper smoothly and accurately. All you have to do is provide the distance it must travel and th

NSPathControl (popup) - programatically show Choose dialog

2015-03-15 Thread Jonathan Taylor
I have a dialog which allows the user to select a folder containing data to be processed, set various parameters that affect the processing, and displays the result of the analysis. There is an NSPathControl (popup) to select the folder. Inevitably the first thing the user does is choose a folde

Re: highlight a nsview on click-drag?

2015-03-15 Thread Patrick J. Collins
> A fairly simple way to implement a selection rectangle is to use > CALayer, but that only gives you the visual aspect. What does it > select? Answer that question first and that will tend to lead you to > the appropriate way to implement it. This NSView is of an audio waveform. I currently have