Whew. It’s not showing up in the docs yet, but in the header there’s

/* The clicked NSPathControlItem, or nil, if no item has been clicked. The 
clickedPathItem is generally only valid while the action or doubleAction is 
being sent.
 */
@property (readonly) NSPathControlItem *clickedPathItem NS_AVAILABLE_MAC(10_10);

/* The array of NSPathControlItems currently being displayed.
    Each item must be an NSPathControlItem.  Do not subclass NSPathControlItem. 
You cannot set this value to nil, but should instead set it to an empty array.
 */
@property (copy) NSArray *pathItems NS_AVAILABLE_MAC(10_10);

Because I couldn’t possibly be the only person using that for a non-URL path. 
Even if I could URL-ify my data, I still need to tweak the icons to match it.

On Jun 1, 2015, at 12:28 AM, Lee Ann Rucker 
<lruc...@vmware.com<mailto:lruc...@vmware.com>> wrote:

That's very annoying, because we aren't using it on something that can be 
represented as an URL - it's the currently selected NSTreeController item.
________________________________________
From: 
cocoa-dev-bounces+lrucker=vmware....@lists.apple.com<mailto:cocoa-dev-bounces+lrucker=vmware....@lists.apple.com>
 
[cocoa-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. 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 
<lruc...@vmware.com<mailto:lruc...@vmware.com>> wrote:


On May 27, 2015, at 2:55 PM, Jens Alfke 
<j...@mooseyard.com<mailto:j...@mooseyard.com>> wrote:


On May 27, 2015, at 2:46 PM, Raglan T. Tiger 
<r...@crusaderrabbit.net<mailto:r...@crusaderrabbit.net>> 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.


And then look at clickedPathComponentCell


_______________________________________________

Cocoa-dev mailing list 
(Cocoa-dev@lists.apple.com<mailto:Cocoa-dev@lists.apple.com>)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at 
cocoa-dev-admins(at)lists.apple.com<http://lists.apple.com>

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/jackbrindle%40me.com

This email sent to jackbrin...@me.com


_______________________________________________

Cocoa-dev mailing list 
(Cocoa-dev@lists.apple.com<mailto:Cocoa-dev@lists.apple.com>)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at 
cocoa-dev-admins(at)lists.apple.com<http://lists.apple.com>

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/lrucker%40vmware.com

This email sent to lruc...@vmware.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/lrucker%40vmware.com

This email sent to lruc...@vmware.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to