views:

133

answers:

2

Actually, almost exactly the same thing. A matrix of small views that would expand out when you click on them. I don't know if it makes more sense to take a snapshot of the view as an image and work with that, or if there is a way to keep the views "live". Thoughts on either approach are welcome!

+5  A: 
[[NSImage alloc] initWithData:[view dataWithPDFInsideRect:[view bounds]]];
Chuck
Don't forget to release the image (sooner or later) if you're not running under GC.
Peter Hosey
+1  A: 
NSBitmapImageRep *bitmap = [view bitmapImageRepForCachingDisplayInRect:[view bounds]];
[view cacheDisplayInRect:[view bounds] toBitmapImageRep:bitmap];

Then use that to draw elsewhere, perhaps by placing it into an NSImage. Or alternatively, use the PDF-based technique described by @Chuck.

Mike Abdullah