Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: slide nsimage



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:
http://lists.apple.com/mailman/options/cocoa-dev/jstiles% 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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >slide nsimage (From: "Ahmet Taha Sakar" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.