Re: NSBrowser background color
Re: NSBrowser background color
- Subject: Re: NSBrowser background color
- From: "Cathy Shive" <email@hidden>
- Date: Wed, 12 Sep 2007 15:35:34 -0400
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?
On 9/12/07, Cathy Shive <email@hidden> wrote:
> Duh yes, thank you :)
>
> On 9/12/07, Scott Thompson <email@hidden> wrote:
> >
> >
> >
> > On Sep 12, 2007, at 1:15 PM, Cathy Shive wrote:
> > Hi,
> >
> > I'm trying to get my NSBrowser subclass to draw with a grey background
> > instead of the default white background. From what I understand, I
> > need to set the background color of the browser's NSScrollView but the
> > API doesn't seem to give me access to that object. Can anyone help me
> > with this?
> >
> > NSBrowser is a subclass of NSView and NSView defines the method:
> >
> >
> > - (NSScrollView *)enclosingScrollView;
> >
> > Does that help?
> >
> > 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