• 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: NSSplitView question - how to implement my own "adjustViews" style method
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSSplitView question - how to implement my own "adjustViews" style method


  • Subject: Re: NSSplitView question - how to implement my own "adjustViews" style method
  • From: Graham Cox <email@hidden>
  • Date: Tue, 03 Jul 2012 10:14:21 +1000

On 03/07/2012, at 12:21 AM, Motti Shneor wrote:

> I really need an advice here.


This will sound flippant but it's not meant to be: implement your own split view.

NSSplitView is the most bizarre piece of design and difficult to get to behave just how you want even in simple cases like having two views, one which should stay fixed when the overall view is resized. This behaviour is likely to be the most commonly needed but is not the default for NSSplitView. The delegate methods are weird and don't get called in every case. Once you add in the complexity of dynamic views, your head is going to be spinning.

Rolling your own is not that hard, and can be designed with your use-case in mind.

--Graham


_______________________________________________

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

  • Follow-Ups:
    • Re: NSSplitView question - how to implement my own "adjustViews" style method
      • From: Motti Shneor <email@hidden>
    • Re: NSSplitView question - how to implement my own "adjustViews" style method
      • From: Motti Shneor <email@hidden>
References: 
 >NSSplitView question - how to implement my own "adjustViews" style method (From: Motti Shneor <email@hidden>)

  • Prev by Date: Re: NSUndoManager setActionName: oddity
  • Next by Date: Re: NSDocument last document loading
  • Previous by thread: NSSplitView question - how to implement my own "adjustViews" style method
  • Next by thread: Re: NSSplitView question - how to implement my own "adjustViews" style method
  • Index(es):
    • Date
    • Thread