• 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: Window resizing with animation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Window resizing with animation


  • Subject: Re: Window resizing with animation
  • From: Stéphane Sudre <email@hidden>
  • Date: Tue, 19 Aug 2003 19:01:50 +0200

On mardi, ao{ 19, 2003, at 18:27 Europe/Paris, Jesus De Meyer wrote:

I'm trying to implement a window with a toolbar, when you click on a
toolbar item the window changes its content view and should resize so
that the content view is fully visible. However, with the code I wrote
(see below) the window resizes AND moves. The resize isn't correct
either. What am I doing wrong?

[window setContentView:subView];
[window setFrame:[subView bounds] display:YES animate:YES];

You may need to recompute the origin of the window.

Side note: [subView bounds].origin==NSZeroPoint
_______________________________________________
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: 
 >Window resizing with animation (From: Jesus De Meyer <email@hidden>)

  • Prev by Date: Re: Help!
  • Next by Date: Re: NSSearchField searching on a table
  • Previous by thread: Re: Window resizing with animation
  • Next by thread: Re: Window resizing with animation
  • Index(es):
    • Date
    • Thread