• 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: Tabs window autoresizing.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tabs window autoresizing.


  • Subject: Re: Tabs window autoresizing.
  • From: Ryan Bates <email@hidden>
  • Date: Mon, 9 Feb 2004 10:49:03 -0800

One way to do this programmatically is to implement the "tabView:didSelectTabViewItem:" NSTabView delegate method. In this method you can call something like [window setFrame:frame display:YES]. You can even have the window animate using [window setFrame:frame display:YES animate:YES]. If you want to change the speed of the animation you will need to subclass NSWindow and override the "animationResizeTime:" method.

Ryan

On Feb 9, 2004, at 10:07 AM, Antonio Carusone wrote:

Im writing an app with 4 tabs. Each tab is the same width but they all are different in height. Is there a way to make the window auto-resize when I click each tabs?

Thanks.

Antonio
_______________________________________________
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.

References: 
 >Tabs window autoresizing. (From: Antonio Carusone <email@hidden>)

  • Prev by Date: Tabs strange behavior...
  • Next by Date: Localizable.strings *just stop working*
  • Previous by thread: Re: Tabs window autoresizing.
  • Next by thread: Re: Tabs window autoresizing.
  • Index(es):
    • Date
    • Thread