Re: NSSplitView hacking
Re: NSSplitView hacking
- Subject: Re: NSSplitView hacking
- From: Nicholas Francis <email@hidden>
- Date: Sat, 27 Dec 2003 02:08:40 +0100
Thanks a lot!
For the record, I made a LOT of breakpoints in some subviews in order
to get the callstacks through the NSSplitView, and AFAICS there were no
public methods called during the dragging of a divider (and hence
nowhere to override and implement a hack for the positioninig)
Cheers,
Nicholas Francis
On Dec 23, 2003, at 3:17 AM, Ken Ferry wrote:
Hi Nicholas,
If it's a help, I was also hacking on NSSplitView (I wanted to
programmatically collapse and uncollapse subviews), and I ended up
reimplementing almost all of it. It's probably easier to hack on my
reimplementation, which you can find here:
<http://homepage.mac.com/kenferry/software.html>.
-Ken
On Dec 17, 2003, at 6:20 PM, Nicholas Francis wrote:
Thanks for the tip, but I've already tried it ;-)
My problem is that I want the divider to appear to be only 1 pixel
thick, but have a grabbable area of 6 pixels. If I set
dividerThickness to 6, and only draw a 1px line, I get a few pixels
of pinstripe around the subviews. If I set my dividerThickness to 1,
the subviews place correctly, but Its very hard to get hold of the
divider.
cheers,
Nicholas
On Dec 17, 2003, at 5:44 PM, email@hidden wrote:
Override drawDividerInRect() and put your own drawing code in it.
You will also
need to override dividerThickness() with the size of your new
divider.
Robert La Ferla
OSX Cocoa Consultant
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.