• 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: Forcing NSSplitView to constrain position?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Forcing NSSplitView to constrain position?


  • Subject: Re: Forcing NSSplitView to constrain position?
  • From: Mike Ferris <email@hidden>
  • Date: Thu, 24 Jun 2004 07:45:38 -0700

Unfortunately NSSplitView does not deal with constraints very well. As
has been noted, when the split view itself changes size (because of
window resizing or nested splits, or whatever) the constraints won't be
consulted. By taking over splitView:resizeSubviewsWithOldSize: it is
possible to at least partially overcome this first problem. Also,
NSSplitView provides no API for programmatically moving the splits
(besides making carefully synchronized changes to the actual frames of
the subviews).

Where I work, we just finished rewriting NSSplitView entirely to
address these problems... and a whole host of other problems. We did
not make a subclass, we made a whole new implementation subclassed from
NSView. Subclassing NSSplitView really was not sufficient to fix the
problems since the biggest problems with NSSplitView are actually with
its API...

Mike


Begin forwarded message:

> From: Andreas Mayer <email@hidden>
> Date: June 24, 2004 1:00:05 AM PDT
> To: email@hidden
> Subject: Re: Forcing NSSplitView to constrain position?
>
> Am 24.06.2004 um 01:24 schrieb Nick Zitzmann:
>
>> Is there any way to force the split view to comply with its
>> constraint programmatically, and if there is, how do I do it? I
>> already tried calling -adjustSubviews and nothing happened. The
>> constraint also seems to be ignored when the split view is resized.
>
> I'm controlling a split view with these delegate methods:
>
> - (void)splitView:(NSSplitView *)sender
> resizeSubviewsWithOldSize:(NSSize)oldSize
>
> - (float)splitView:(NSSplitView *)sender
> constrainMaxCoordinate:(float)proposedMax ofSubviewAt:(int)offset
>
>
> Andreas
> _______________________________________________
> 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.


  • Follow-Ups:
    • Re: Forcing NSSplitView to constrain position?
      • From: Stéphane Sudre <email@hidden>
References: 
 >Forcing NSSplitView to constrain position? (From: Nick Zitzmann <email@hidden>)
 >Re: Forcing NSSplitView to constrain position? (From: Andreas Mayer <email@hidden>)

  • Prev by Date: Re: How to implement a ProjectBuilder's tabview?
  • Next by Date: Re: multiple windowcontrollers
  • Previous by thread: Re: Forcing NSSplitView to constrain position?
  • Next by thread: Re: Forcing NSSplitView to constrain position?
  • Index(es):
    • Date
    • Thread