Re: How to make NSSplitView not dragable
Re: How to make NSSplitView not dragable
- Subject: Re: How to make NSSplitView not dragable
- From: Benjamin Dobson <email@hidden>
- Date: Wed, 29 Apr 2009 07:30:40 +0100
On 28 Apr 2009, at 17:44:38, Ashish Tiwari wrote:
Hi All,
I have a horizontal NSSplitView, I want the splitter bar should
remain in a fixed postion and user should not be able to change size
of upper subview or lower subview by dragging it.
Note: Split bar should be visible but not be drag able.
Thanks,
Ashish
@implementation DisabledSplitView
- (void)awakeFromNib
{
[self setDelegate:self];
}
- (NSRect)splitView:(NSSplitView *)theSplitView effectiveRect:
(NSRect)proposedEffectiveRect forDrawnRect:(NSRect)drawnRect
ofDividerAtIndex:(NSInteger)dividerIndex
{
// Effectively disables splitter
return NSZeroRect;
}
- (void)drawDividerInRect:(NSRect)aRect
{
// Do nothing
}
@end
_______________________________________________
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