• 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: Pasting NSImage problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Pasting NSImage problems


  • Subject: Re: Pasting NSImage problems
  • From: Erik Buck <email@hidden>
  • Date: Sun, 14 Oct 2007 20:19:12 -0700 (PDT)

Just subclass NSView directly, add an instance
variable or two to store the images you want to draw,
and implement -drawRect to draw them.  NSImageView
isn't doing anything magic, and it sounds like what
you want is sufficiently different from NSImageView
that a there is no point in starting with NSImageView.

If you are drawing multiple images or want to drag
images, you might as well jump in and learn how to do
it.  NSImageView is a simple class for use in simple
situations.  NSView is the general purpose base class
for drawing and responding to user input.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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: Pasting NSImage problems
      • From: Development <email@hidden>
  • Prev by Date: Pasting NSImage problems
  • Next by Date: Re: Pasting NSImage problems
  • Previous by thread: Re: Pasting NSImage problems
  • Next by thread: Re: Pasting NSImage problems
  • Index(es):
    • Date
    • Thread