Re: NSView setFrameSize
Re: NSView setFrameSize
- Subject: Re: NSView setFrameSize
- From: "I. Savant" <email@hidden>
- Date: Wed, 25 Jan 2006 10:36:45 -0500
Hello:
For one thing, it's a bad idea to put this into a tight loop.
NSViewAnimation would be more suited for this purpose. A tight loop
will tie up your UI and possibly display the beachball -- a really
poor user experience.
I'm having a hard time visualizing exactly what you intend to
display, but it seems to me it'd be a lot easier just to swap
individual images (with the individual numbers in them) if you're
just doing a countdown type animation.
If this isn't the case, could you provide a more specific
description of the effect you're trying to accomplish?
--
I.S.
On Jan 25, 2006, at 10:28 AM, 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!
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com
This email sent to email@hidden
_______________________________________________
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