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

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

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

Autolayout Problem/Question

2017-05-22 Thread Dave
iOS Hi, I have the following view layout in a Storyboard: StackView Vertical StackView Horizontal SquareColorView1 SquareColorView2 SquareColorView3 SquareColorView4

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 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 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]; >

View Controllers, Views and Storyboards

2017-05-22 Thread Dave
Hi All, I have a question about View Controllers in Storyboard’s. In the past I have handled Landscape and Portrait Views as two separate Hierarchies in XCode/IB. I defined the roots Views inside the View Controller but NOT in the main .view. I then hooked these up to the View Controller Class

Re: Autolayout Problem/Question

2017-05-22 Thread Dave
Hi, Thanks a lot - That’s what I was looking for! I added a 1:1 Aspect Ratio constraint to the Root StackView and it now works ok. I have another question regarding Auto Layout and XCode. In XCode/IB I’ve designed these views in Landscape. I started with the iPhone 4s which is the Smallest I c

Context leak detected, msgtracer returned -1 ?

2017-05-22 Thread Jonathan Mitchell
Hi On occasion I see the following in the Xcode console when running my Obj-C app: Context leak detected, msgtracer returned -1 I have tried setting symbolic breakpoints on NSLog etc but to no avail. Is the context in question a CGContext? Thanks J

Re: Context leak detected, msgtracer returned -1 ?

2017-05-22 Thread Greg Parker
> On May 22, 2017, at 8:52 AM, Jonathan Mitchell wrote: > > Hi > > On occasion I see the following in the Xcode console when running my Obj-C > app: > > Context leak detected, msgtracer returned -1 > > I have tried setting symbolic breakpoints on NSLog etc but to no avail. > > Is the contex

Re: Context leak detected, msgtracer returned -1 ?

2017-05-22 Thread Jonathan Mitchell
> On 22 May 2017, at 22:24, Greg Parker wrote: > > >> On May 22, 2017, at 8:52 AM, Jonathan Mitchell > > wrote: >> >> Context leak detected, msgtracer returned -1 >> > > The context is an IOAccelContext, which itself is deep in the graphics > machinery. The log