• 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: draw and ... draw, not drawing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: draw and ... draw, not drawing


  • Subject: Re: draw and ... draw, not drawing
  • From: Scott Anguish <email@hidden>
  • Date: Sat, 25 Feb 2006 02:21:06 -0500

this is likely because of one of two things...


On Feb 24, 2006, at 3:24 PM, Michael Hanna wrote:

[dropImage drawAtPoint:drawLocation fromRect:NSZeroRect operation:NSCompositeSourceOver fraction:1.0];

1. You are specifying an empty rect as the source to draw from in the image.. that should be the size of the image. I can't seem to find a place in the doc that says that NSZeroRect means the entire image (if there is, please point it out and I'll make sure it gets mentioned in this method's doc)


my guess is that is the problem.. however...

2. You're immediately telling the view it needs to display. Unless you are storing that image reference someplace and drawing it as part of your drawRect: implementation it'll get erased pretty quickly after you draw it originally.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
References: 
 >draw and ... draw, not drawing (From: Michael Hanna <email@hidden>)

  • Prev by Date: Re: Mutable/non-mutable bindings in NSTextView
  • Next by Date: Re: draw and ... draw, not drawing
  • Previous by thread: Re: draw and ... draw, not drawing
  • Next by thread: Send key commands to other window...
  • Index(es):
    • Date
    • Thread