Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ranguvar

macrumors 6502
Original poster
Sep 18, 2009
318
2
Hi everybody,

I'm currently developing an app that allows the user to track where they have moved on a map. I'd like to create a CustomView, which is a subclass of NSImageView. The view should draw both the image of the map and NSBezierPaths that represent the track.
Now my questions are:
1. How do I create a subclass of NSImageView? Specifically, how can I customize the '- (void)drawRect:(NSRect)dirtyRect' while still drawing the image set in InterfaceBuilder?
2. How can I add instances of NSBezierPath to the view, on top of the image of the map?

Thanks for any input!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.