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 you originally configured them. From NSPathControl.h:
/* Gets and sets the path value displayed. When sett
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 rega
trol’s URL is a file URL for a file that doesn’t exist.
>
4. The control represents a “path” that isn’t anything like a URL, such as a
tree node (e.g. a NSIndexPath or something equivalent).
Like Lee Ann, I use a NSPathControl for this. Forcing the data it represents to
be a URL is making
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
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 comme
think:
1. The control’s URL is not a file URL.
2. The control’s URL is a file URL for a file that exists.
3. The control’s URL is a file URL for a file that doesn’t exist.
Doesn’t NSPathControl do some special things in case #3, for things like the
user’s home folder etc? Does this mess you up
-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
+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
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
> 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
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
> 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
_
How do I get called by NSPathControl ?
I can setObjectValue: for the path; now I want to know what path component the
users selects. I am using Pop Up style.
-rags
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post
d 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 files
>>>> simulatingPathControlClick = true;
>>>> [folderSelectPopu
new sequence we immediately prompt the user to select a
>>> folder to use for image files
>>> simulatingPathControlClick = true;
>>> [folderSelectPopup performClick:self];
>>> simulatingPathControlClick = false;
>>>
>>> This is a good start,
gt;
>>> 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 files
>>> simulatingPathControlClick = true;
>>> [folderS
iately prompt the user to select a
>> folder to use for image files
>> simulatingPathControlClick = true;
>> [folderSelectPopup performClick:self];
>> simulatingPathControlClick = false;
>>
>> This is a good start, because I see my delegate function
[folderSelectPopup performClick:self];
>> simulatingPathControlClick = false;
>>
>> This is a good start, because I see my delegate function being called:
>>
>> -(void)pathControl:(NSPathControl*)pathControl willPopUpMenu:(NSMenu*)menu
>> {
>> i
atingPathControlClick = true;
>[folderSelectPopup performClick:self];
>simulatingPathControlClick = false;
>
> This is a good start, because I see my delegate function being called:
>
> -(void)pathControl:(NSPathControl*)pathControl willPopUpMenu:(NSMenu*)menu
> {
>if (si
o use for image files
simulatingPathControlClick = true;
[folderSelectPopup performClick:self];
simulatingPathControlClick = false;
This is a good start, because I see my delegate function being called:
-(void)pathControl:(NSPathControl*)pathControl willPopUpMenu:(NSMenu*)me
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
On 10 Oct 2012, at 17:57, Uli Kusterer wrote:
> On Oct 10, 2012, at 6:39 PM, Mike Abdullah wrote:
>> * NSPathControl is more aware of the sandbox, and doesn't try to fetch icons
>> it doesn't have access to
>
> Not if NSPathControl runs out-of-process. The
On Oct 10, 2012, at 6:39 PM, Mike Abdullah wrote:
> * NSPathControl is more aware of the sandbox, and doesn't try to fetch icons
> it doesn't have access to
Not if NSPathControl runs out-of-process. The NSPathControl you create could
just be an IOSurface drawn into your pro
all *work*, but the first option sucks for developers making other
>> similar things.
>
> I'm pretty sure it already is a 'privileged UI component like NSOpenPanel'.
> In the early seeds of 10.7, there were all sorts of sandbox violations
> related to NSPathCo
vileged UI component like NSOpenPanel'. In
the early seeds of 10.7, there were all sorts of sandbox violations related to
NSPathControl trying to draw the icons of the file hierarchy, and failing to
have access to those icons.
Cheers,
--
_
On 10 Oct 2012, at 00:16, Sean McBride wrote:
> On Sat, 6 Oct 2012 10:59:46 +0100, Mike Abdullah said:
>
>> Sandboxed apps can resolve aliases and follow symlinks, but unless the
>> destination is within their sandbox already they do not gain access to
>> it, sadly. I recommend filing a radar r
On Sat, 6 Oct 2012 10:59:46 +0100, Mike Abdullah said:
>Sandboxed apps can resolve aliases and follow symlinks, but unless the
>destination is within their sandbox already they do not gain access to
>it, sadly. I recommend filing a radar requesting this.
I will.
Do you agree with me that pathCon
s care of resolving aliases/symlinks for you, which is
> important with App Sandbox since you want access to the target not the alias
> file itself.
>
> But NSPathControl, in its pathControl:acceptDrop: method, does not resolve
> the alias for you, and try as I may, I can't f
Hi all,
NSOpenPanal takes care of resolving aliases/symlinks for you, which is
important with App Sandbox since you want access to the target not the alias
file itself.
But NSPathControl, in its pathControl:acceptDrop: method, does not resolve the
alias for you, and try as I may, I can't
Tried doing the same with the value bindings and it seemed to work.
On Oct 3, 2011, at 8:41 PM, Quincey Morris wrote:
> On Oct 3, 2011, at 20:20 , Sandeep Mohan Bhandarkar wrote:
>
>> Can some one let me know if it is possible to set a NSPathControl using a
>> NSString. I
On Oct 3, 2011, at 10:20 PM, Sandeep Mohan Bhandarkar wrote:
> Hi All,
>
> Can some one let me know if it is possible to set a NSPathControl using a
> NSString. I tried the follwong.
>
> NSString *Node1 = @"Test1";
> NSString *Node2 = @"Test2&q
On Oct 3, 2011, at 20:20 , Sandeep Mohan Bhandarkar wrote:
> Can some one let me know if it is possible to set a NSPathControl using a
> NSString. I tried the follwong.
>
> NSString *Node1 = @"Test1";
> NSString *Node2 = @"Test2";
>
> [rootSubRootP
Hi All,
Can some one let me know if it is possible to set a NSPathControl using a
NSString. I tried the follwong.
NSString *Node1 = @"Test1";
NSString *Node2 = @"Test2";
[rootSubRootPath setURL:[NSURL URLWithString:[NSString
stringWithFormat:@"/%@/%@"
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
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?
Thanks.
-koko
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com
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
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 probl
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 p
> You're missing -framework AppKit here. I believe there's something in the
> Xcode 4 release notes about specifying linked frameworks that might explain
> why this flag has gone missing.
Thanks, I'll go looking for that.
>
> But the fact that you're trying
7;re missing -framework AppKit here. I believe there's something in the Xcode
4 release notes about specifying linked frameworks that might explain why this
flag has gone missing.
But the fact that you're trying to use NSPathControl in a Spotlight importer is
quite troubling. ;-)
--Ky
I'm having trouble getting my app to build again. For some reason,
when I add a file subclassed from NSView, like say an NSPathControl,
it doesn't seem to be able to find these classes. This problem started
happening after I loaded my application in a certain "preview release&quo
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 Xco
hat make up the branch of a hierarchy, very much like
> a search tree for my application. And I'd like for each of these
> "parts" of the path to be popup menus.
>
> Then I saw this control in XCode4. If you can open XCode4 w/o it
> crashing, there is what looks to be
these
"parts" of the path to be popup menus.
Then I saw this control in XCode4. If you can open XCode4 w/o it
crashing, there is what looks to be an NSPathControl along the very
top of the editor pane. Within that "NSPathControl" there is the
"Recent Files/Unsaved Files&quo
ood to know. Might we be able to get some mention of this in the
>> NSPathControl documentation? rdar://problem/8182284
>
> I don’t suppose a sample application was included with that bug?
It's a bit difficult to write a sample application that shows how a
feature hasn't been c
On Jul 12, 2010, at 6:13 PM, Kyle Sluder wrote:
> On Mon, Jul 12, 2010 at 2:12 PM, Kevin Perry wrote:
>> Yeah, this is an unfortunate bug that we didn't catch until Snow Leopard.
>
> Good to know. Might we be able to get some mention of this in the
> NSPathControl docume
On Mon, Jul 12, 2010 at 2:12 PM, Kevin Perry wrote:
> Yeah, this is an unfortunate bug that we didn't catch until Snow Leopard.
Good to know. Might we be able to get some mention of this in the
NSPathControl documentation? rdar://problem/8182284
--Kyl
, at 2:45 PM, Dave DeLong wrote:
>>
>>> Fair enough; How can I retrieve which item was clicked? The sender of the
>>> action is the actual NSPathControl, and -clickedPathComponentCell:, which
>>> works on 10.6, returns nil on 10.5.
>>>
>>> Dave
>
?
>
> Dave
>
> On Jul 12, 2010, at 2:45 PM, Dave DeLong wrote:
>
>> Fair enough; How can I retrieve which item was clicked? The sender of the
>> action is the actual NSPathControl, and -clickedPathComponentCell:, which
>> works on 10.6, returns nil on 10.5.
Or do I have to do something wonky like altering the target/action of menuitems
before they show up?
Dave
On Jul 12, 2010, at 2:45 PM, Dave DeLong wrote:
> Fair enough; How can I retrieve which item was clicked? The sender of the
> action is the actual NSPathContro
Fair enough; How can I retrieve which item was clicked? The sender of the
action is the actual NSPathControl, and -clickedPathComponentCell:, which works
on 10.6, returns nil on 10.5.
Dave
On Jul 12, 2010, at 2:39 PM, Kevin Perry wrote:
> Dave,
>
> I believe what you're
Dave,
I believe what you're seeing is the intended behavior.
There are cases where developers have not wanted the URL to change when an item
in the pop-up menu is selected. Instead of doing this automatically and forcing
developers to prevent or undo this behavior, NSPathControl in
Hi everyone,
I have an NSPathControl set to the Pop Up style, with an initial path of
"/Users/dave". It's restricted to items of type "public.folder". When I run
this project and interact with the path control, I see a menu like this:
Choose
--
Thanks Uli, though I found NSPathControl quite easy to get to do what I wanted
in the end - I guess I got too hung up on the 'URL' APIs and overlooked the
usual -setStringValue: that it inherits.
Elsewhere, I have a very heavily modded UKDistributedView we could talk
about... ;-)
On 05.05.2010, at 13:20, Graham Cox wrote:
> So is using NSPathControl even possible for this, or would I just be better
> off writing a complete new control from scratch? NSPathControl does some neat
> things like fading overlong text within a subcell that I could use, as well
> a
wrote:
>
>> On May 5, 2010, at 04:20, Graham Cox wrote:
>>
>>> So is using NSPathControl even possible for this, or would I just be better
>>> off writing a complete new control from scratch? NSPathControl does some
>>> neat things like fading overlong tex
On May 5, 2010, at 10:20 AM, Quincey Morris wrote:
> On May 5, 2010, at 04:20, Graham Cox wrote:
>
>> So is using NSPathControl even possible for this, or would I just be better
>> off writing a complete new control from scratch? NSPathControl does some
>> neat thi
On May 5, 2010, at 04:20, Graham Cox wrote:
> So is using NSPathControl even possible for this, or would I just be better
> off writing a complete new control from scratch? NSPathControl does some neat
> things like fading overlong text within a subcell that I could use, as w
gt; of its location on disk, which is irrelevant, but its place in the whole big
> collection of objects which is vaguely analogous to a file path.
>
> I was looking at NSPathControl as a way to neatly show which item was
> selected including its hierarchical information, but quickl
the whole big
collection of objects which is vaguely analogous to a file path.
I was looking at NSPathControl as a way to neatly show which item was selected
including its hierarchical information, but quickly realised that this control
is very strongly tied to NSURLs as a specific form of path a
I figured out how to get the NSPathControl to "resize" after changing an
NSPathComponentCell URL.
I realize that the description I gave is vague, so here is a better
explanation..
I am changing the URL of a NSPathComponent in the middle of NSPathControl's
overall URL.
By makin
Yeah, I did.. that didn't work either.
Tried:
[myPathControl sizeToFit];
bob.
On Mar 9, 2010, at 12:33 PM, Sean McBride wrote:
> On Tue, 9 Mar 2010 12:26:14 -0800, Robert Monaghan said:
>
>> I am changing the NSURL of a path, that drives NSPathControl.
>> If I edit t
On Tue, 9 Mar 2010 12:26:14 -0800, Robert Monaghan said:
>I am changing the NSURL of a path, that drives NSPathControl.
>If I edit the path so that the new text element of that path is longer
>or shorter than the original path,
>I would need to have NSPathControl redraw itself..
Hi Everyone,
I am changing the NSURL of a path, that drives NSPathControl.
If I edit the path so that the new text element of that path is longer or
shorter than the original path,
I would need to have NSPathControl redraw itself..
Here is an example of what I am doing:
(myPathControl is a
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
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.
I'm using an NSPathControl which is bound to the window controller's
path property. The path control uses NSPathStylePopUp as style
(statically set up in IB). The setup works correctly except that the
path control does not display any directory icons initially. The icons
are al
n
its own in a new XIB? Does it be have the same? Are you able to upload
your project / test case somewhere for others to see?
--
I.S.
On Aug 4, 2009, at 6:25 AM, Alexander Bokovikov wrote:
Hi, All,
I'm using NSPathControl with Popup style. The question is - why
can't
Hi, All,
I'm using NSPathControl with Popup style. The question is - why can't
I change the path by selecting existing paths in the popup paths list
panel? I click the control, panel appears with the target path and all
its parent paths below. I click on any of parent paths a
hese changes will be
saved. But none of other items in the popup panel work. Why? I don't
see any options in the Inspector, which could help here. NSPathControl
has style set to "PopUp". Please help.
Thanks.
___
Cocoa-dev mailing list (Co
How can I be notified when a user selects an item from the menu in
popup menu mode? All I can get is the double click action. The example
I'm looking "ObjectPath" seems to not have this functionality either.
Thanks.
Regards,
Josef
___
Co
Hi Rob,
Yes, you can do it by subclassing NSPathControl and providing a
custom NSPathComponentCell.
I have done it that way too, see the result here: http://www.binarynights.com/blog/wp-content/uploads/picture-9.png
.
Though the height cannot be set from IB you can change it runtime
Folks,
I'd like to include a "Bread Crumbs" control in my application and
wonder if extending NSPathControl would be appropriate. I'd like my
control to look something like what you see in Apple's Instruments [1]
or WebKits WebInspector [2]. Since these are path lik
On Dec 14, 2008, at 09:59, Keith Lander wrote:
I am fairly new to Cocoa (but not programming). I have a data model
containing an entity with a String attribute representing a path to
a folder. I am trying to use IB to bind an NSPathControl widget to
the attribute in the window controller
I am fairly new to Cocoa (but not programming). I have a data model
containing an entity with a String attribute representing a path to a
folder. I am trying to use IB to bind an NSPathControl widget to the
attribute in the window controller. I assume I need a value
transformer to convert
work around given to me was to subclass and override NSPathCell:
- (void)setURL:(NSURL*)url
{
[super setURL:url];
// Workround for on Mac OS X 10.5.x.
NSPathControl* pathControl = (NSPathControl*)[self controlView];
(void)[pathControl sendAction
The NSPathControl.h file says that when in Popup mode, the control
will send a action message. However, I cannot get it to work. I've
tried using no types, and a type of "public.folder".
Is this a known problem?
I was able to create a hack work-around: use the NSPathControl
Anyone out there binding multiple NSPathControls in IB?
I can do it programatically, but when I attempt to use multiple
NSPathControls the only item that ends up in the users' plist is the
most recent one modified...
I'm using a "newer" version of Xcode Tools, but the same thing happens
u
On May 1, 2008, at 6:47 PM, Mike Rossetti wrote:
So I've discovered an interesting behavior in NSPathControl and am
wondering if it warrants a Radar.
I'm building up my own presentation of the file path to be shown in
the NSPathControl. Specifically, if the file for which t
On Thu, May 1, 2008 at 9:47 PM, Mike Rossetti <[EMAIL PROTECTED]> wrote:
> So I've discovered an interesting behavior in NSPathControl and am wondering
> if it warrants a Radar.
Since you are overriding -setObjectValue: it's pretty much necessary
for you to post your
So I've discovered an interesting behavior in NSPathControl and am
wondering if it warrants a Radar.
I'm building up my own presentation of the file path to be shown in
the NSPathControl. Specifically, if the file for which the path is
being presented is in some standard locatio
81 matches
Mail list logo