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

Re: scribbling


  • Subject: Re: scribbling
  • From: "Alastair J.Houghton" <email@hidden>
  • Date: Wed, 13 Aug 2003 14:48:02 +0100

On Wednesday, August 13, 2003, at 12:45 pm, Richard Chamberlain wrote:

I tried drawing in the mouseDragged method but that doesn't seem to work.

This should work, but only if you remembered to do [self lockFocus] and [self unlockFocus] around your drawing. (Assuming, that is, that you're drawing in the view that received the -mouseDragged: message.)

After reading the docs the only way I can see of changing this is to just make a portion of the view dirty and then run through the array calculating whether that line is affected and if so redraw it.

This shouldn't actually be very difficult, because you can just ask for [bezierPath bounds] and see if that intersects with the dirty region.

Kind regards,

Alastair.
_______________________________________________
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.

  • Follow-Ups:
    • Re: scribbling
      • From: Richard Chamberlain <email@hidden>
References: 
 >scribbling (From: Richard Chamberlain <email@hidden>)

  • Prev by Date: Re: Localized Folders
  • Next by Date: Re: scribbling
  • Previous by thread: scribbling
  • Next by thread: Re: scribbling
  • Index(es):
    • Date
    • Thread