Re: NSBrowser background color
Re: NSBrowser background color
- Subject: Re: NSBrowser background color
- From: m <email@hidden>
- Date: Wed, 12 Sep 2007 20:38:58 -0700
Even easier than instrumenting your code is using F-Script.
<http://www.fscript.org/documentation/ExploringCocoaWithFScript/
index.htm>
_murat
On Sep 12, 2007, at 1:50 PM, Andy Lee wrote:
Hm. Well, for what it's worth, here's the internal view hierarchy
of an NSBrowser. The closest-looking thing to an NSScrollView is a
private class called _NSBrowserScrollView. Maybe you can do
something with the NSClipView.
[snip]
I printed this with a quick-and-dirty method I wrote just now:
+ (void)printViewHierarchy:(NSView *)view withIndent:(NSString *)
indent
{
NSLog(@"%@%@", indent, [view className]);
NSArray *subviews = [view subviews];
int i;
for (i = 0; i < [subviews count]; i++) {
[self printViewHierarchy:[subviews objectAtIndex:i]
withIndent:[indent stringByAppendingString:@" "]];
}
}
+ (void)printViewHierarchy:(NSView *)view
{
[self printViewHierarchy:view withIndent:@" "];
}
_______________________________________________
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