Re: Custom NSPathControl
Re: Custom NSPathControl
- Subject: Re: Custom NSPathControl
- From: Graham Cox <email@hidden>
- Date: Thu, 6 May 2010 11:20:23 +1000
Thanks guys, I've made some progress - I can get it to display my "path", I just need to work on setting the icons which looks straightforward enough at this point.
--Graham
On 06/05/2010, at 4:50 AM, Corbin Dunn wrote:
>
> 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 things like fading overlong text within a subcell that I could use, as well as displaying an icon and a triangle for the next item. What about subclassing the subcell? I guess I'm just looking for some direction here or even better, some code out there I can use.
>>
>> If you don't need the icons, and you don't need any slashes in your text, setting a path string instead of a URL works just fine.
>
> ..and if you do need them, set the path string, then manually set the icons on the -pathComponentCells. If you need slashes in the text, use a URL with some custom prefix and escape the slashes.
>
> -corbin
_______________________________________________
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