• 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: Design Advice - Bread Crumbs, NSPathControl
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Design Advice - Bread Crumbs, NSPathControl (From: "Rob Evans" <email@hidden>)

  • Prev by Date: Re: Graphics "playback" suggestion?
  • Next by Date: Re: setTextColor, display string, then set it back not working
  • Previous by thread: Design Advice - Bread Crumbs, NSPathControl
  • Next by thread: Cocoa Client/Server App
  • Index(es):
    • Date
    • Thread