• 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
Problem on clearing points and paths on a NSView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem on clearing points and paths on a NSView


  • Subject: Problem on clearing points and paths on a NSView
  • From: JArod Wen <email@hidden>
  • Date: Tue, 22 Jul 2008 18:03:56 -0400

Hi,

I met a problem on clearing points and paths on a customized NSView. I set four NSBezierPath for drawing: pathForPositionMeasure, pathForDistanceMeasure, pathForAngleMeasure and selectedPath, and used the following code for clearing:

		[pathForPositionMeasure removeAllPoints];
		[pathForDistanceMeasure removeAllPoints];
		[pathForAngleMeasure removeAllPoints];
		[selectedPath removeAllPoints];
		[self setNeedsDisplay:YES];

And the drawRect is only contained the code to draw these four paths. But after these lines are executed, points and paths are still there on the view. Is there any way to clear them?

Thanks in advance!
---------------
JArod Wen




_______________________________________________

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: Problem on clearing points and paths on a NSView
      • From: Jens Alfke <email@hidden>
    • Re: Problem on clearing points and paths on a NSView
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: how to prevent baseline shift when using NSSuperscriptAttributeName on a NSTextView's NSAttributedString ?
  • Next by Date: CA: Are nested 3D transforms supported?
  • Previous by thread: Re: NSLog on releasebuild
  • Next by thread: Re: Problem on clearing points and paths on a NSView
  • Index(es):
    • Date
    • Thread