Hi all-
I'm beginning work on my app, and, at the moment, am doing a lot of prototyping. What I'm trying to do is draw a 3x3 Matrix on the screen. To draw the brackets, I'm using Quartz 2D. Being a complete newbie to Quartz 2D, I was wondering how I'd go about drawing the left and right brackets together? I've read up on the Paths principle and had no problem drawing the left side bracket.. my question is, is it possible to split the path? I'd like my matrix-brackets to be one single drawing. Everything I read indicates lines are just appended to existing points with no mechanism to break up a path.
If not, if I draw the right side bracket independently, I assume it becomes its own drawing component and therefore any operations I perform on the left bracket (for example rotating it) I'd have to do the same on the right side?
I suppose I could also draw a rectangle and apply a mask to get the bracket effect. Ultimately I want to be able to write text (numbers) into the matrix elements.
Does my question make sense?
I'm beginning work on my app, and, at the moment, am doing a lot of prototyping. What I'm trying to do is draw a 3x3 Matrix on the screen. To draw the brackets, I'm using Quartz 2D. Being a complete newbie to Quartz 2D, I was wondering how I'd go about drawing the left and right brackets together? I've read up on the Paths principle and had no problem drawing the left side bracket.. my question is, is it possible to split the path? I'd like my matrix-brackets to be one single drawing. Everything I read indicates lines are just appended to existing points with no mechanism to break up a path.
If not, if I draw the right side bracket independently, I assume it becomes its own drawing component and therefore any operations I perform on the left bracket (for example rotating it) I'd have to do the same on the right side?
I suppose I could also draw a rectangle and apply a mask to get the bracket effect. Ultimately I want to be able to write text (numbers) into the matrix elements.
Does my question make sense?