Re: NSPathControl (popup) - programatically show Choose dialog

2015-03-17 Thread dangerwillrobinsondanger
Have you tried just displaying an NSOpenPanel yourself then setting the selected URL returned to the path control's URL property? Sent from my iPhone On 2015/03/17, at 19:16, Jonathan Taylor jonathan.tay...@glasgow.ac.uk wrote: OK, I've got part of the way to a solution, but haven't got

Re: NSPathControl (popup) - programatically show Choose dialog

2015-03-17 Thread Jonathan Taylor
On 17 Mar 2015, at 10:36, dangerwillrobinsondan...@gmail.com wrote: Have you tried just displaying an NSOpenPanel yourself then setting the selected URL returned to the path control's URL property? I have now, and that certainly is one way of doing it. I have three (minor) reasons for

Re: NSPathControl (popup) - programatically show Choose dialog

2015-03-17 Thread dangerwillrobinsondanger
Also see the sample code. It's a lot easier to see how the API is expected to be used. The docs are a little thin in their descriptions. https://developer.apple.com/library/mac/samplecode/ObjectPath/Introduction/Intro.html Sent from my iPhone On 2015/03/17, at 19:36,

Re: NSPathControl (popup) - programatically show Choose dialog

2015-03-17 Thread Jonathan Taylor
On 17 Mar 2015, at 10:53, dangerwillrobinsondan...@gmail.com wrote: Also see the sample code. It's a lot easier to see how the API is expected to be used. The docs are a little thin in their descriptions.

Re: NSPathControl (popup) - programatically show Choose dialog

2015-03-17 Thread Jonathan Taylor
OK, I've got part of the way to a solution, but haven't got it fully working yet. Perhaps the weekday crowd here can advise? I've realised that I can get my path control to performClick: // When adding a new sequence we immediately prompt the user to select a folder to use for image

Re: NSPathControl (popup) - programatically show Choose dialog

2015-03-17 Thread dangerwillrobinsondanger
Well the sample code illustrates that the delegate method should be the place to configure the open panel. Beyond that you can subclass or set the action or double action to do what you wish. Remember to look at the class ancestors for more methods. NSControl wraps most of the cell methods on

Re: NSPathControl (popup) - programatically show Choose dialog

2015-03-17 Thread dangerwillrobinsondanger
They certainly could use the same if the both call through to the same method you implement. Depends on app design perhaps. Sent from my iPhone On 2015/03/17, at 20:00, Jonathan Taylor jonathan.tay...@glasgow.ac.uk wrote: On 17 Mar 2015, at 10:53, dangerwillrobinsondan...@gmail.com

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