Finder/iTunes Sidebar View?

  • Hi,

    I was wondering what kind of view object the finder/itunes sidebar is?
    I am interested in using a very dumbed down version of this. Basically
    I just want a list view with that bluish background, no header column,
    and selectable. For a picture, you can see this that I just uploaded:

    http://img.skitch.com/20080113-gj77tbahapgxxt4u1a25rdc35w.jpg

    Thanks,
    Mitchell
  • Hi Mitchell,

    maybe this helps:
    http://www.mere-mortal-software.com/blog/details.php?d=2006-12-21

    best,

    --Joeles

    Am 13.01.2008 um 18:37 schrieb Mitchell Hashimoto:

    > Hi,
    >
    > I was wondering what kind of view object the finder/itunes sidebar is?
    > I am interested in using a very dumbed down version of this. Basically
    > I just want a list view with that bluish background, no header column,
    > and selectable. For a picture, you can see this that I just uploaded:
    >
    > http://img.skitch.com/20080113-gj77tbahapgxxt4u1a25rdc35w.jpg
    >
    > Thanks,
    > Mitchell
  • On Jan 13, 2008, at 9:37 AM, Mitchell Hashimoto wrote:

    > I was wondering what kind of view object the finder/itunes sidebar is?
    > I am interested in using a very dumbed down version of this. Basically
    > I just want a list view with that bluish background, no header column,
    > and selectable.

    That would be a NSTableView using the
    NSTableViewSelectionHighlightStyleSourceList selection style.

    (At least it would have been had Finder and iTunes been Cocoa apps)

    j o a r
  • > I was wondering what kind of view object the finder/itunes sidebar is?

      In Leopard, this is a standard NSOutlineView or NSTableView with
    the "Highlight: Source List" option selected. To achieve the icons in
    each row, search for "ImageAndTextCell", for which there are a
    thousand examples.

      There are recent threads on this list that discuss how to achieve
    the more polished elements that iTunes and Finder use (the drop-caps
    headers, etc.

    --
    I.S.
  • Thank you everyone so much. I thought it was a normal style on one of
    the Outline, Scroll, etc. views but I was having a hard time finding
    it.

    Thank you!

    On Jan 13, 2008 9:52 AM, I. Savant <idiotsavant2005...> wrote:
    >> I was wondering what kind of view object the finder/itunes sidebar is?
    >
    > In Leopard, this is a standard NSOutlineView or NSTableView with
    > the "Highlight: Source List" option selected. To achieve the icons in
    > each row, search for "ImageAndTextCell", for which there are a
    > thousand examples.
    >
    > There are recent threads on this list that discuss how to achieve
    > the more polished elements that iTunes and Finder use (the drop-caps
    > headers, etc.
    >
    > --
    > I.S.
    >
    >
    >
    >
  • you could also go with NSCollectionView if you wanted.

    On Jan 13, 2008, at 12:52 PM, j o a r wrote:

    >
    > On Jan 13, 2008, at 9:37 AM, Mitchell Hashimoto wrote:
    >
    >> I was wondering what kind of view object the finder/itunes sidebar
    >> is?
    >> I am interested in using a very dumbed down version of this.
    >> Basically
    >> I just want a list view with that bluish background, no header
    >> column,
    >> and selectable.
    >
    >
    > That would be a NSTableView using the
    > NSTableViewSelectionHighlightStyleSourceList selection style.
    >
    > (At least it would have been had Finder and iTunes been Cocoa apps)
  • Mitchell,
    I just did an iTunes-like sidebar. Here are some notes I took:

    (1)
    The basic object is an NSOutlineView

    The backround blue color is:
    [NSColor colorWithDeviceRed:0.820 green:0.843 blue:0.886 alpha:1.0]
    == NSCalibratedRGBColorSpace 0.819608 0.843137 0.886275 1

    Row Height 13
    Text: [NSFont systemFontOfSize:11]

    There is a very subtle embossed text effect created by  a NSTextCell
    subclass that returns NSBackgroundStyleRaised for backgroundStyle and
    interiorBackgroundStyle

    (2) For a Finder-like sidebar (only), use
    "Source List" selection style in IB, or programmatically set to
    NSTableViewSelectionHighlightStyleSourceList
    Note that  the gradient used for the selection effect requires some
    vertical room
previous month january 2008 next month
MTWTFSS
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      
Go to today