• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: slide nsimage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: slide nsimage
      • From: "Philip Q" <email@hidden>
References: 
 >slide nsimage (From: "Ahmet Taha Sakar" <email@hidden>)

  • Prev by Date: slide nsimage
  • Next by Date: Re: slide nsimage
  • Previous by thread: slide nsimage
  • Next by thread: Re: slide nsimage
  • Index(es):
    • Date
    • Thread