• 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: How to make NSSplitView not dragable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >How to make NSSplitView not dragable (From: Ashish Tiwari <email@hidden>)

  • Prev by Date: Re: Storing a table view in user defaults
  • Next by Date: Re: C string constant->NSString constant without defining twice?
  • Previous by thread: Re: How to make NSSplitView not dragable
  • Next by thread: Re: NSDateFormatter for ISO8601
  • Index(es):
    • Date
    • Thread