Questions tagged [nspathcontrol]
24 questions
1
vote
2 answers
NSPathcontrol alternative
I am trying to customize an NSPathControl (custom look, menu on items) but after hours passed on it, I cannot achieve what I want.
Do you know an alternative control for representing a path?
Thanks in advance for your help,
Regards,

AP.
- 5,205
- 7
- 50
- 94
0
votes
1 answer
SwiftUI NSPathControl open finder location when clicking icons
I've wrapped NSPathControl for use in my Mac OS SwiftUI app but I can't work out how to make the sizes of the path smaller or how to get the individual paths to open the location in Finder when clicked.
Here is the wrapper:
struct PathView:…

mousebat
- 474
- 7
- 25
0
votes
1 answer
How do I detect and handle a drag from NSPathControl to the Trash dock icon?
The Finder can show an NSPathControl at the bottom of its windows. If the user drags an item from that path control to the Dock's Trash icon, the item gets trashed accordingly.
I like to achieve the same in my program. However, I cannot figure out…

Thomas Tempelmann
- 11,045
- 8
- 74
- 149
0
votes
1 answer
drop down nspathcontrol
Is there a way to get the default NSPathControl to have drop down like in xcode 4? by default i mean without subclassing

joels
- 7,249
- 11
- 53
- 94
0
votes
1 answer
How to set the URL of a NSPathComponentCell?
I have a couple of NSPathControls in my settings screen. I want to be able to retrieve stored settings from NSUserDefaults and and initialise the NSPathControl's NSPathComponentCell with the stored URL.
Currently I have the following code:
class…

Martin Velchevski
- 874
- 11
- 33
0
votes
1 answer
Cocoa: NSPathControl NSOpenPanel, get notification when user clicked OK
I have a NSPathControll set up in IB and I use this method when I set up the NSOpenPanel:
-(void)pathControl:(NSPathControl *)pathControl willDisplayOpenPanel:(NSOpenPanel *)openPanel
{
[openPanel setDelegate:self];
[openPanel…

Mikael
- 3,572
- 1
- 30
- 43
0
votes
1 answer
How to bind NSURL in plist to NSPathControl in sandboxed app?
My OS X app needs persistent access to a directory the user chooses. Before I turned on app sandbox the UI had a NSPathControl with a value binding to the data model. The data type in the model is NSData and the binding used a…

Steveo
- 2,238
- 1
- 21
- 34
0
votes
1 answer
NSPathControl equivalent for iOS
Is there a control on iOS (iPhone/iPad) that works like NSPathControl does in OSX? (to add dynamically a node to a root on event, that could go back, remove a node on event...)

Luigi Saggese
- 5,299
- 3
- 43
- 94
0
votes
1 answer
NSPathControl setDoubleAction does not work
I have added a NSPathControl to a View in my application.
In awakeFromNib I sets the double-click action:-
[currentPath setDoubleAction:@selector(dClickPath:)];
Unfortunately, double-click on the PathControl does not work, although I had first…

Milliways
- 1,265
- 1
- 12
- 26