• 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: Best way to move an image in a custom view?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Best way to move an image in a custom view?


  • Subject: Re: Best way to move an image in a custom view?
  • From: Mark Dalrymple <email@hidden>
  • Date: Wed, 9 Jun 2004 18:50:02 -0400

> What's the best way of doing this? The way I have it right now is a
> Connect4BoardView (: NSView) object. Inside that object I was thinking of putting
> an NSImageView whose frame I'd change. Is there a better way?

I'd just use the NSImage and one of the image drawing calls (dissolveToPoint, compositeToPoint or drawAtPoint) to draw the image where it should go in your drawRect: rather than mucking around with nested views.

Cheers,
++Mark Dalrymple, email@hidden http://borkware.com
Live in Western Pennsylvania? Next CocoaHeads June 10. http://cocoaheads.org
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Best way to move an image in a custom view? (From: Ben Kazez <email@hidden>)

  • Prev by Date: Best way to move an image in a custom view?
  • Next by Date: Re: Best way to move an image in a custom view?
  • Previous by thread: Best way to move an image in a custom view?
  • Next by thread: Re: Best way to move an image in a custom view?
  • Index(es):
    • Date
    • Thread