• 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 with method in NSBezierPath?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem with method in NSBezierPath?


  • Subject: Problem with method in NSBezierPath?
  • From: André Benassi <email@hidden>
  • Date: Fri, 16 Nov 2001 19:38:26 -0600

I'm trying to wrap my mind around the NSBezierPath class and one method
has me stumped: It doesn't seem to do anything. The method is
appendBezierPathWithArcFromPoint:toPoint:radius:

Here is my code that doesn't seem to work:

- (void)drawRect:(NSRect)rect {
// Declare some points
NSPoint p1 = NSMakePoint(100, 100);
NSPoint p2 = NSMakePoint(200, 200);
NSPoint p3 = NSMakePoint(200, 100);

// Constructing the path
NSBezierPath *aPath = [NSBezierPath bezierPath];
[aPath moveToPoint:p1];
[aPath lineToPoint:p2];
[aPath appendBezierPathWithArcFromPoint:p2 toPoint:p3 radius:60];

// outline the path
[[NSColor blackColor] set];
[wall stroke];
}

The first line is drawn, but the arc is not. Any ideas? Is this a bug?

Andri

thx for your time, I am pretty new to this.


References: 
 >[ANN] Cocoa SIG meeting in Houston on Saturday (From: David Trevas <email@hidden>)

  • Prev by Date: Re: IB Palette with a Window
  • Next by Date: [ANN] MarshmallowLibrarian Public Beta 4
  • Previous by thread: [ANN] Cocoa SIG meeting in Houston on Saturday
  • Next by thread: Modifier keys
  • Index(es):
    • Date
    • Thread