Re: NSPathControl

2015-06-02 Thread Lee Ann Rucker
I just looked at what’s in my pathControl - the objectValue and URL are both the same, the initial file://localhost/Applications/ that you see in the nib. Makes sense - if you’re letting the PathControl make the components it builds them from the URL, but it doesn’t change the URL if you change

Re: NSPathControl

2015-06-01 Thread Quincey Morris
On Jun 1, 2015, at 17:56 , Graham Cox wrote: > > 4. The control represents a “path” that isn’t anything like a URL, such as a > tree node My point was that NSPathControl apparently constructs URLs out of the path components, regardless of what you’re really representing, and regardless of how

Re: NSPathControl

2015-06-01 Thread Graham Cox
> On 2 Jun 2015, at 7:39 am, Quincey Morris > wrote: > > What’s a non-URL path? AFAIK a URL** always contains a path, even if only > relative, and even if surrounded by other stuff. > If you look at the header file for NSPathControlItem, it has a URL property > that appears to URL-ify the pa

Re: NSPathControl

2015-06-01 Thread Lee Ann Rucker
On Jun 1, 2015, at 2:39 PM, Quincey Morris mailto:quinceymor...@rivergatesoftware.com>> wrote: On Jun 1, 2015, at 13:59 , Lee Ann Rucker mailto:lruc...@vmware.com>> wrote: Because I couldn’t possibly be the only person using that … What does that dangling “because” refer to? I can’t make it

Re: NSPathControl

2015-06-01 Thread Quincey Morris
On Jun 1, 2015, at 14:39 , Quincey Morris wrote: > > Doesn’t NSPathControl do some special things in case #3 Oops, I meant case #2. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to

Re: NSPathControl

2015-06-01 Thread Quincey Morris
On Jun 1, 2015, at 13:59 , Lee Ann Rucker wrote: > > Because I couldn’t possibly be the only person using that … What does that dangling “because” refer to? I can’t make it out. > for a non-URL path. What’s a non-URL path? AFAIK a URL** always contains a path, even if only relative, and even

Re: NSPathControl

2015-06-01 Thread Lee Ann Rucker
-dev-bounces+lrucker=vmware@lists.apple.com<mailto:cocoa-dev-bounces+lrucker=vmware@lists.apple.com>] on behalf of Jack Brindle [jackbrin...@me.com<mailto:jackbrin...@me.com>] Sent: Sunday, May 31, 2015 12:16 PM To: Cocoa Dev Subject: Re: NSPathControl Oops, not any more. cli

RE: NSPathControl

2015-06-01 Thread Lee Ann Rucker
+lrucker=vmware@lists.apple.com] on behalf of Jack Brindle [jackbrin...@me.com] Sent: Sunday, May 31, 2015 12:16 PM To: Cocoa Dev Subject: Re: NSPathControl Oops, not any more. clickedPathComponentCell was deprecated in Yosemite. Instead, look at the URL property. Valid back to 10.5. > On May 27, 201

Re: NSPathControl

2015-05-31 Thread Jack Brindle
Oops, not any more. clickedPathComponentCell was deprecated in Yosemite. Instead, look at the URL property. Valid back to 10.5. > On May 27, 2015, at 3:43 PM, Lee Ann Rucker wrote: > > > On May 27, 2015, at 2:55 PM, Jens Alfke wrote: > >> >>> On May 27, 2015, at 2:46 PM, Raglan T. Tiger

Re: NSPathControl

2015-05-28 Thread Raglan T. Tiger
> On May 27, 2015, at 4:43 PM, Lee Ann Rucker wrote: > > > On May 27, 2015, at 2:55 PM, Jens Alfke wrote: > >> >>> On May 27, 2015, at 2:46 PM, Raglan T. Tiger >>> wrote: >>> >>> I can setObjectValue: for the path; now I want to know what path component >>> the users selects. I am usin

Re: NSPathControl

2015-05-27 Thread Lee Ann Rucker
On May 27, 2015, at 2:55 PM, Jens Alfke wrote: > >> On May 27, 2015, at 2:46 PM, Raglan T. Tiger wrote: >> >> I can setObjectValue: for the path; now I want to know what path component >> the users selects. I am using Pop Up style. > > It’s an NSControl. Wire up the target/action to your

Re: NSPathControl

2015-05-27 Thread Jens Alfke
> On May 27, 2015, at 2:46 PM, Raglan T. Tiger wrote: > > I can setObjectValue: for the path; now I want to know what path component > the users selects. I am using Pop Up style. It’s an NSControl. Wire up the target/action to your IBAction method, either in IB or programmatically. —Jens _

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 > wrote: > >> On 17 Mar 2015, at 10:53, wrote: >> Also see the sample code. >> It's a lot easier to se

Re: NSPathControl (popup) - programatically show Choose dialog

2015-03-17 Thread Jonathan Taylor
On 17 Mar 2015, at 10:53, 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. > > https://developer.apple.com/library/mac/samplecode/ObjectPath/Introduction/Intro.html Thanks very much for pointi

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
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, dangerwillrobinsondan..

Re: NSPathControl (popup) - programatically show Choose dialog

2015-03-17 Thread Jonathan Taylor
On 17 Mar 2015, at 10:36, 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 preferring not to do it this way: - It r

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 > wrote: > > OK, I've got part of the way to a solution, but haven't got it fully working > yet. Pe

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 fil

Re: NSPathControl

2010-12-15 Thread Corbin Dunn
On Dec 15, 2010, at 10:21 AM, k...@highrolls.net wrote: > I would like to display a path control when the window title is cmd-clicked > or right-clicked. > > I am unsure how to receive this event. > > Can you point me to a doc that describes such? > In NSWindow.h /* setRepresentedURL: If ur

Re: NSPathControl w/ popups and icons

2010-08-09 Thread Kevin Perry
NSPathControl doesn't map submenus in its menu to the individual NSPathComponentCells, so that's not going to work. This will probably require some heavy subclassing of at least NSPathComponentCell, and perhaps NSPathCell (if the layout isn't quite how you need it). You'll need to provide some

Re: NSPathControl w/ popups and icons

2010-08-06 Thread Shane
On Sat, Jul 31, 2010 at 7:44 PM, Shane wrote: > I'm trying to create an NSPathControl where there are several items > (components) within the row and each item (component) is a popup menu. > And then I would populate each of those popups w/ items. But I'm > having a problem in understanding if tha

Re: NSPathControl w/ popups and icons

2010-07-31 Thread Shane
I'm trying to create an NSPathControl where there are several items (components) within the row and each item (component) is a popup menu. And then I would populate each of those popups w/ items. But I'm having a problem in understanding if that's how it really works. I'm playing around w/ the fol

Re: NSPathControl w/ popups and icons

2010-07-28 Thread Graham Cox
On 29/07/2010, at 12:54 PM, Shane wrote: > So my question is, is this control an NSPathControl? I like icons in > the beginning of it, then the path part. Though I'm not sure how this > is done yet, I hope I'm at the right starting place with this control. Dunno about Xcode, but you can use NSP

[Moderator] Re: NSPathControl w/ popups and icons

2010-07-28 Thread Scott Anguish
Moderator: Discussion of Xcode 4 (which is under NDA) is prohibited on this list. Or any public list. devforms.apple.com does have NDA forums if you qualify. Answerer: what you’re referring to is a ‘breadcrumb’ as we call it. i.e. a bits so you can find your way back. But, due to the NDA restr

Re: NSPathControl not displaying icons initially

2009-09-14 Thread Markus Spoettl
On Sep 15, 2009, at 12:32 AM, Quincey Morris wrote: Try: [myPathControl setURL:[NSURL fileURLWithPath:NSHomeDirectory()]]; IIRC, the path control needs to know that the URL is a file URL. Yes, exactly. I figured this out a few seconds too late. Sorry for the noise and thanks for he

Re: NSPathControl not displaying icons initially

2009-09-14 Thread Quincey Morris
On Sep 14, 2009, at 15:14, Markus Spoettl wrote: [myPathControl setURL:[NSURL URLWithString:NSHomeDirectory()]]; Try: [myPathControl setURL:[NSURL fileURLWithPath:NSHomeDirectory()]]; IIRC, the path control needs to know that the URL is a file URL.

Re: NSPathControl + PopUp style - is it a bug or feature?

2009-08-04 Thread I. Savant
You just posted (more or less) this same question yesterday. If someone has an answer for you, they'll post it. DON'T SPAM THE LIST. If you're not getting an answer it's only helpful to include *new* information when you post a followup. Have you tried the control on its own in a new