I’m going to create a Mac app with drawing function. There will be a drawing area which is in specific size, for example, (300,300) in the middle of the whole screen. The reason I use specific size of layer is that I only allow user to draw within this area and record the coordinate in this area.
I tried to setContentSize to (300,300) after the new method and before the init() function. But the contentSize is not (300,300) inside the init() function. What’s wrong with my method? Any suggestion? Thanks