Re: NSBrowser background color
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