Re: Drawing a 5 Sided Star Shape

2017-06-02 Thread Jonathan Mitchell
> On 2 Jun 2017, at 12:56, Dave wrote: > > Hi, > > I want to draw a 5 sided Star Shape using UIBezierPath. I’ve search for a > general purpose algorithm, but I can’t find anything that I can get to work > with Cocoa/Objective-C. > You could take a peek at https://www.paintcodeapp.com

Drawing a 5 Sided Star Shape

2017-06-02 Thread Dave
Hi, I want to draw a 5 sided Star Shape using UIBezierPath. I’ve search for a general purpose algorithm, but I can’t find anything that I can get to work with Cocoa/Objective-C. This code is to go into a UIView subclass in the drawRect: method. If anyone has some code that will draw a decent

Re: KVO - deallocation with observers attached

2017-06-02 Thread Jonathan Mitchell
> On 1 Jun 2017, at 00:51, Ken Thomases wrote: > > On May 31, 2017, at 5:02 PM, Jonathan Mitchell wrote: >> >> It is common for deallocating objects to abort if they have observers still >> registered. >> >> The Data_Test object is deallocated with non nil -observationInfo and yet it >> doe

Re: Relative URLs, and string encodings

2017-06-02 Thread Jonathan Taylor
>> My attempt like: >> [NSURL URLWithString:[path >> stringByAddingPercentEscapesUsingEncoding:NSASCIIStringEncoding] >> relativeToURL:relativeTo]; > > Ah, you want NSUTF8StringEncoding instead. Generally speaking, URL encoding > always uses UTF-8 nowadays. Thankyou for your reply Jens. That's