• 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: Classy NSSplitViews in Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Classy NSSplitViews in Cocoa (From: Aaron Wallis <email@hidden>)

  • Prev by Date: Re: Classy NSSplitViews in Cocoa
  • Next by Date: Re: nib opening from app
  • Previous by thread: Re: Classy NSSplitViews in Cocoa
  • Next by thread: Core Data Insert and editColumn:row:withEvent:select:
  • Index(es):
    • Date
    • Thread