• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSPathControl
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSPathControl


  • Subject: Re: NSPathControl
  • From: Graham Cox <email@hidden>
  • Date: Tue, 02 Jun 2015 10:56:02 +1000

> On 2 Jun 2015, at 7:39 am, Quincey Morris <email@hidden> 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 path in spite of your data.
>
>> I still need to tweak the icons to match it.
>
> There are actually 3 cases, I 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.
>


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 it a lot more limited than its original design.

—Graham



_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden


  • Follow-Ups:
    • Re: NSPathControl
      • From: Quincey Morris <email@hidden>
References: 
 >RE: NSPathControl (From: Lee Ann Rucker <email@hidden>)
 >Re: NSPathControl (From: Lee Ann Rucker <email@hidden>)
 >Re: NSPathControl (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: Looking at self = [super init].
  • Next by Date: Re: Looking at self = [super init].
  • Previous by thread: Re: NSPathControl
  • Next by thread: Re: NSPathControl
  • Index(es):
    • Date
    • Thread