Re: NSBezierPath on iOS?

2017-05-22 Thread Steve Mills
On May 22, 2017, at 06:23:32, Dave wrote: > > I changed it to use UIBezierPath but now I get errors on the 3 + methods it > uses - fillRect, setDefaultLineWidth and strokeRect. It would really help if we knew what the errors were. > myPath = [UIBezierPath bezierPathWithRect:myRect]; >

Re: NSBezierPath on iOS?

2017-05-22 Thread Dave
Hi, I changed it to use UIBezierPath but now I get errors on the 3 + methods it uses - fillRect, setDefaultLineWidth and strokeRect. From looking at the documentation, I’m guessing that I need to create a path, I’ve added this code: -(void) drawRect:(CGRect) theRect { CGRect

Re: NSBezierPath on iOS?

2017-05-22 Thread Dave
Thanks a lot! All the Best Dave > On 22 May 2017, at 12:43, dangerwillrobinsondan...@gmail.com wrote: > > You want UI not NS BezierPath > > Sent from my iPhone > >> On May 22, 2017, at 19:23, Dave > > wrote: >> >> Sorry I should have said, this class is a Subvie

Re: NSBezierPath on iOS?

2017-05-22 Thread dangerwillrobinsondanger
You want UI not NS BezierPath Sent from my iPhone > On May 22, 2017, at 19:23, Dave wrote: > > Sorry I should have said, this class is a Subview of UIView. > > I’m also getting an error on: > > [self setNeedsDisplay:YES]; > > I’m so rusty on iOS and I’m finding hard to remember the differenc

Re: NSBezierPath on iOS?

2017-05-22 Thread Dave
Sorry I should have said, this class is a Subview of UIView. I’m also getting an error on: [self setNeedsDisplay:YES]; I’m so rusty on iOS and I’m finding hard to remember the differences. All the Best Dave > On 22 May 2017, at 12:09, Dave wrote: > > Hi, > > I’m converting a Class from Mac

NSBezierPath on iOS?

2017-05-22 Thread Dave
Hi, I’m converting a Class from Mac to iOS and I’ve got errors on the following code: if (self.pDrawPaneFlag == YES) { [self.pPaneColor set]; [NSBezierPath fillRect:myRect]; } if (self.pDrawFrameFlag == YES) { [self.pFrameColor set]; [NSBe