Re: Classy NSSplitViews in Cocoa
Re: Classy NSSplitViews in Cocoa
- Subject: Re: Classy NSSplitViews in Cocoa
- From: "John C. Randolph" <email@hidden>
- Date: Fri, 7 Oct 2005 06:12:38 -0700
On Oct 7, 2005, at 5:38 AM, Aaron Wallis wrote:
I've checked out the documentation and there doesn't seem to be
much there on customising the splitviews...
Umm, what more documentation do you need?
The third and fourth methods described in the NSSplitView docs are:
dividerThickness
- (float)dividerThickness
Returns the thickness of the divider. You can subclass NSSplitView
and override this method to change the divider’s size, if necessary.
See Also: – drawDividerInRect:
drawDividerInRect:
- (void)drawDividerInRect:(NSRect)aRect
Draws the divider between two of the receiver’s subviews. aRect
describes the entire divider rectangle in the receiver’s coordinates,
which are flipped. If you override this method and use a custom icon
to identify the divider, you may need to change the size of the divider.
See Also: – dividerThickness, – compositeToPoint:operation: (NSImage)
@implementation MySplitView
- (float)dividerThickness { return 1.0; }
- (void)drawDividerInRect:(NSRect)aRect
{
[[NSColor blueColor] set];
NSRectFill(aRect);
}
@end
-jcr
John C. Randolph <email@hidden> (408) 914-0013
Roaming Cocoa Engineer,
Available for your projects at great Expense and Inconvenience.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden