• 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: Resizable NSTabView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Resizable NSTabView


  • Subject: Re: Resizable NSTabView
  • From: Jerry Krinock <email@hidden>
  • Date: Thu, 4 Nov 2010 09:10:58 -0700

On 2010 Nov 04, at 08:31, Keary Suska wrote:

> You have to do all the resizing yourself via code, and watch out for overlapping view gotchas.

Indeed.  For example, if the size is increasing, you'll want to resize first, then draw.  But if the size is decreasing, you'll want to draw first, then resize.  Otherwise subviews will be clipped during animation and/or permanently misplaced.

I've designed a window which has 6 tabs, resizes both height and width, and several tabs have sub-tabs, and some tab views' sizes depends on the content.  It took many, many hours to get it all working, and much of the knowledge and code ended up being ad hoc; not abstractable for re-use.  And there still may be a bug or two that I haven't exercised yet.

On 2010 Nov 04, at 08:27, Kyle Sluder wrote:

> Incidentally, this is one reason why I don't like the tabless tab view approach. I'd rather just swap NSViews in the view hierarchy.

Certainly worth considering!

_______________________________________________

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: 
 >Resizable NSTabView (From: Richard Somers <email@hidden>)
 >Re: Resizable NSTabView (From: Keary Suska <email@hidden>)

  • Prev by Date: Re: iPad frame-by-frame animation
  • Next by Date: Re: WebView NSURLProtocol Tiger problems.
  • Previous by thread: Re: Resizable NSTabView
  • Next by thread: WebView NSURLProtocol Tiger problems.
  • Index(es):
    • Date
    • Thread