RE: setFrame:display:animate bottom up instead of top down?
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.