Re: Drawing inside an NSImage?

2015-03-09 Thread Markus Spoettl
On 09/03/15 00:12, Patrick J. Collins wrote: [_image lockFocus]; [[NSColor blueColor] set]; NSBezierPath *line = [NSBezierPath bezierPath]; NSPoint pointA = NSMakePoint(0, 0); NSPoint pointB = NSMakePoint(self.bounds.size.width, 0);

Drawing inside an NSImage?

2015-03-08 Thread Patrick J. Collins
I have an NSView which has in its drawRect: method: NSColor *backgroundColor = [NSColor colorWithPatternImage:self.image]; [backgroundColor setFill]; ... the image method does: -(NSImage *)image { if (!_image) { _image = [[NSImage alloc]

Re: Drawing inside an NSImage?

2015-03-08 Thread Ken Thomases
On Mar 8, 2015, at 6:12 PM, Patrick J. Collins patr...@collinatorstudios.com wrote: I have an NSView which has in its drawRect: method: NSColor *backgroundColor = [NSColor colorWithPatternImage:self.image]; [backgroundColor setFill]; ... the image method does: -(NSImage