• 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: Constraining a Split View (a different scenario)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Constraining a Split View (a different scenario)


  • Subject: Re: Constraining a Split View (a different scenario)
  • From: mw <email@hidden>
  • Date: Tue, 21 Jan 2003 06:38:45 -0500

Ah, okay. I'll be sure to try that. I have to finish actually layout out the
interface and such first, but then I'll be sure to try your suggestion and
post what happens.

Thanks, again!
mw


On 1/20/03 11:24 PM, "Mason Mark" <email@hidden> wrote:

>
> Hello,
>
> Make sure your window's min size is large enough to accomodate the minimum
> size of the split view, then see the NSSplitView class docs and look at the
> delegate method:
>
> - (void) splitView: (NSSplitView *) sender resizeSubviewsWithOldSize:
> (NSSize) oldSize
>
> --
> Mason
>
> --On Monday, January 20, 2003 6:54 PM -0500 mw
> <email@hidden> wrote:
>
>> Hello everyone,
>>
>> I have an NSSplitView in my main application window. It is a vertical
>> split view (the two views contained in the split view are side-by-side).
>> Now, I already know of the delegate method
>> splitView:constrainMinCoordinate:ofSubviewAt: which makes it so the split
>> view can't get any smaller on the x-axis than the value returned, which is
>> good.
>>
>> My split view resizes with the resizing of the window (on the right is an
>> NSTabView with an NSTextView inside of that, both of which have to
>> constrain to the size of the window). So, here is my question: how do I
>> get it so that the split view can NEVER become smaller than a given
>> number, whether that be by resizing the window or resizing the split view
>> itself? The problem I have come across is that, when the window is
>> resized too small, the contents of the right pane start to move over and
>> overlap the contents of the left pane because resizing the window
>> actually causes the split view to resize as well.
>>
>> Any suggestions?
>> mw
>> _______________________________________________
>> 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.

  • Prev by Date: Re: Horizontally centering NSButton in NSTableColumn
  • Next by Date: Changing editing behaviour of NSTableView
  • Previous by thread: Re: Constraining a Split View (a different scenario)
  • Next by thread: Right mouse button and NSMenu in NSImageView
  • Index(es):
    • Date
    • Thread