Re: slide nsimage
Re: slide nsimage
- Subject: Re: slide nsimage
- From: John Stiles <email@hidden>
- Date: Thu, 15 Mar 2007 18:19:18 -0700
To draw an NSImage on a window at a specific point, use
compositeToPoint.
http://developer.apple.com/documentation/Cocoa/Reference/
ApplicationKit/Classes/NSImage_Class/Reference/Reference.html#//
apple_ref/occ/instm/NSImage/compositeToPoint:operation:
If you want to animate it, you will need to use an NSTimer to draw it
repeatedly.
(If you actually have an NSView, these can also be moved around;
again, just set up an NSTimer.)
On Mar 15, 2007, at 6:08 PM, Ahmet Taha Sakar wrote:
I have searched the archives, but I couldnt find a solution
still. How can
I make a nsimage slide from one point to another. is there such a
thing as
[myimage movetoX:5 y:30] so it would move to (5,30) of the window.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
40blizzard.com
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >slide nsimage (From: "Ahmet Taha Sakar" <email@hidden>) |