Re: NSView setFrameSize
Re: NSView setFrameSize
- Subject: Re: NSView setFrameSize
- From: Camillo Lugaresi <email@hidden>
- Date: Wed, 25 Jan 2006 19:52:21 +0100
On 25/gen/06, at 16:28, haym37 wrote:
Suppose that I had an NSView, with an image in it the same size of
the NSView. Now, I start the NSView with a width of 0. I want to
animate this image opening, so I have a for loop, pause in it for
about 5 milliseconds, and set the frame size (setFrameSize) of the
NSView to be i (i increments each time). Now, this slowly "opens
up" to the right. For instance, if my image just had the numbers
"1, 2, 3, 4, 5" from left to right, it would slowly show "1" then
"2" then "3", etc. But, I want it to "open up" to the left, so
that it first shows "5" then "4" then "3", etc. How would I do
this? Any help would be greatly appreciated. Thanks!
Use setFrame instead of setFrameSize.
Camillo
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden