• 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: How do I display a path like in PathFinder 4, the file path bar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I display a path like in PathFinder 4, the file path bar


  • Subject: Re: How do I display a path like in PathFinder 4, the file path bar
  • From: "I. Savant" <email@hidden>
  • Date: Fri, 21 Jul 2006 23:27:01 -0400

Alan:

These things are usually created with a single-pixel-wide gradient image, stretched across your view.

To reproduce what you're seeing, I might subclass an NSMatrix, set to have one row and use an NSButtonCell with its -image and - alternateImage set (so you can get the separator line and reverse "pressed" gradient). That'd be simplest, IMO. Maybe someone else has a better suggestion.

Of course you can draw the gradient with code, but I find it easier to use an image. If you *do* use an image, make sure it is a vector-based format so it scales nicely -- that'll future-proof it for large/scaled displays.

  Hope this helps.

--
I.S.


On Jul 20, 2006, at 11:08 PM, Alan Smith wrote:

Hi y'all,

In PathFinder 4 there is a bar near the top of the file browsing
window, just below that tab bar. It is a pretty bar that looks a
little like a tab bar except it is continuous and the "tabs" are right
next to each other.

http://cocoatech.com/pf4/images/tabs.php

I would like to reproduce this. When the user continues to open
another folder, a button/tab will be added on to the end of the
existing items in the bar. When the user clicks on one of those
buttons I will be notified and act accordingly. Also the buttons from
the point of the clicked button on, would be taken off.

I know that PathFinder is "open source" but they don't release all of
it. How could they make it OS and Shareware?

I've never subclassed NSCell or anything like that before but I would
feel prepared to do so if someone could point me in the right
direction.

Many thanks, Alan

P.S. I want this code to run on 10.2 at least.

--
// Quotes from yours truly -------------------------
"You don't forget, you just don't remember."
"Maturity resides in the mind."
"Silence is the Universe's greatest gift."
"Don't waste your life doing things others have already done."
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: How do I display a path like in PathFinder 4, the file path bar
      • From: "Alan Smith" <email@hidden>
References: 
 >How do I display a path like in PathFinder 4, the file path bar (From: "Alan Smith" <email@hidden>)

  • Prev by Date: Re: Writing application without Interface Builder
  • Next by Date: How to track down this memory problem?
  • Previous by thread: How do I display a path like in PathFinder 4, the file path bar
  • Next by thread: Re: How do I display a path like in PathFinder 4, the file path bar
  • Index(es):
    • Date
    • Thread