Re: Moving SplitView Divider Position

2008-05-22 Thread Jens Alfke


On 21 May '08, at 10:45 PM, Apparao Mulpuri wrote:


Is there any provision to change the NSSplitView divider position
programmatically(with out using mouse).


Yes, in 10.5:

- (void)setPosition:(CGFloat)position ofDividerAtIndex: 
(NSInteger)dividerIndex;


You can do it in 10.4, but you have to use the Accessibility API to  
adjust a property (sorry, I don't have any code handy that does this,  
but I'm sure it's been discussed here in the past.)


—Jens

smime.p7s
Description: S/MIME cryptographic signature
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Moving SplitView Divider Position

2008-05-21 Thread Apparao Mulpuri
Hi,

Is there any provision to change the NSSplitView divider position
programmatically(with out using mouse).

I have two splitViews with two subviews each. While dragging on one
divider in one splitView, i have to move the divider in second
splitview. Both splitviews dividers are in sync, while dragging any
one of splitview's divider.

I have tried with NSSplitView and RBSplitView, but didn't find any
support to do this.

Thanks,
- Apparao M.
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]