• 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: NSBrowser background color
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSBrowser background color


  • Subject: Re: NSBrowser background color
  • From: "Cathy Shive" <email@hidden>
  • Date: Wed, 12 Sep 2007 16:12:07 -0400

Thanks!  I'm having a difficult time getting my head around this class.

So, right now I'm confused because this:
[mFileBrowser setHasHorizontalScroller:YES];

results in a horizontal scroller being displayed under the browser,
which makes me feel like NSBrowser is already living inside of an
NSScrollView.

If it isn't, does anyone know what I should be doing to change the
background color of the browser?  I'm not displaying any data yet, so
I'm not looking into the NSMatrix class or NSBrowserCell.



On 9/12/07, Shawn Erickson <email@hidden> wrote:
> On 9/12/07, Cathy Shive <email@hidden> wrote:
> > Actually, that method is returning nothing!
> >
> > // I'm making the browser:
> > mFileBrowser = [[BWBrowser alloc] initWithFrame:aFrame];
> >
> > // configuring it
> > [mFileBrowser setMaxVisibleColumns:4];
> > [mFileBrowser setHasHorizontalScroller:YES];
> > [mFileBrowser setDelegate:self];
> >
> > // and asking for the scroll view
> > NSScrollView * aScrollView = [mFileBrowser enclosingScrollView];
> >
> > and after that -  aScrollView is 0x0
> >
> > Is there anything obvious that I'm doing wrong here?
>
> NSBrowser doesn't live inside of an NSScrollView so what was suggested
> wasn't correct (unless you put it inside of one of course).
>
> Anyway I have never tried to do what you are attempting so I cannot be
> of any "further help".
>
> -Shawn
>
_______________________________________________

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: 
 >NSBrowser background color (From: "Cathy Shive" <email@hidden>)
 >Re: NSBrowser background color (From: Scott Thompson <email@hidden>)
 >Re: NSBrowser background color (From: "Cathy Shive" <email@hidden>)
 >Re: NSBrowser background color (From: "Cathy Shive" <email@hidden>)
 >Re: NSBrowser background color (From: "Shawn Erickson" <email@hidden>)

  • Prev by Date: Re: NSBrowser background color
  • Next by Date: Re: Problem with bindings/tableView/NSImageCell
  • Previous by thread: Re: NSBrowser background color
  • Next by thread: Re: NSBrowser background color
  • Index(es):
    • Date
    • Thread