Re: Design Advice - Bread Crumbs, NSPathControl
Re: Design Advice - Bread Crumbs, NSPathControl
- Subject: Re: Design Advice - Bread Crumbs, NSPathControl
- From: Mudi Dandan <email@hidden>
- Date: Wed, 7 Jan 2009 04:47:22 +0100
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
calling setframe:.
Mudi
On Jan 4, 2009, at 3:34 PM, Rob Evans wrote:
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 like structures, I
naturally thought I should subclass NSPathControl and provide my own
NSPathComponentCell to get the specific look I'm after.
I've written some code that seems to work but my NSPathControl
subclass, when drawn, isn't as tall as I'd like it to be.
Am I on the right track? Can the height of an NSPathControl be,
well... controlled.
[1] http://lpetr.org/blog/wp-content/uploads/2007/06/safari_webinspector1.png
[2] http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaFundamentals/Art/instruments_window.jpg
_______________________________________________
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
_______________________________________________
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