Skip to content

Instantly share code, notes, and snippets.

View j4johnfox's full-sized avatar

John C Fox j4johnfox

View GitHub Profile
@import <AppKit/CPImageView.j>
@import <AppKit/CPGraphicsContext.j>
@import <AppKit/CGContext.j>
@import <AppKit/CPColor.j>
@implementation MMSImageAnnotationView : CPImageView
{
CPArray markerInfoDictArray;
BOOL showMarkers;
}
- (void)drawRect:(CGRect)aRect
{
[super drawRect:aRect];
CPLog("MMSImageAnnotationView here in drawRect");
//var myColor = CGColorCreateGenericRGB(1, .5, 1, .5);
var myRect = CGRectMake(0, 0, 320, 240);
var myContext = CGBitmapGraphicsContextCreate();