• 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: setFrame:display:animate bottom up instead of top down?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: setFrame:display:animate bottom up instead of top down?


  • Subject: RE: setFrame:display:animate bottom up instead of top down?
  • From: Francisco Tolmasky <email@hidden>
  • Date: Sun, 27 Apr 2003 16:20:32 -0700

setFrame:display:animate only works in this fashion. To make it go top
down simply move the y upwards:

NSSize mySize = [prefWindow frame].size;
NSPoint myPoint = [prefWindow frame].origin;

[prefWindow setFrame:NSMakeRect(myPoint.x,
myPoint.y-(432-mySize.height), mySize.width, 432)
display:YES animate:YES ];

so if mySize.height is 431, it gets bigger by one, and moves up by one,
thus what you see is that it just expands down and to the right.

Francisco Tolmasky
email@hidden
http://users.adelphia.net/~ftolmasky
_______________________________________________
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.

  • Prev by Date: Re: Embedding JPEG compressed images in PDF
  • Next by Date: Re: setFrame:display:animate bottom up instead of top down?
  • Previous by thread: Re: OSX EightyRes ?
  • Next by thread: Icon in NSButton
  • Index(es):
    • Date
    • Thread