• 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: 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


  • Follow-Ups:
    • Re: NSBrowser background color
      • From: Andy Lee <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: Andy Lee <email@hidden>)
 >Re: NSBrowser background color (From: "Cathy Shive" <email@hidden>)
 >Re: NSBrowser background color (From: Andy Lee <email@hidden>)

  • Prev by Date: Re: resetting ivars safely
  • 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