• 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: Scott Thompson <email@hidden>
  • Date: Wed, 12 Sep 2007 14:42:19 -0500


On Sep 12, 2007, at 2:35 PM, Cathy Shive 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?

Hmm... it doesn't look like the browser is contained within a scroll view. Rather the file browser itself contains it's own scrolling mechanism. I note, for example, that the NSBrowser class has a private member "NSScroller".


I suspect that in this case you are going to have to go through some other means to change the background color of the browser (if it's even possible to do so).

Scott

_______________________________________________

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>)

  • Prev by Date: Re: NSBrowser background color
  • Next by Date: Re: NSBrowser background color
  • Previous by thread: Re: NSBrowser background color
  • Next by thread: Re: NSBrowser background color
  • Index(es):
    • Date
    • Thread