Hi guys. I am new to Cocoa programming. I am working on my first Cocoa program and I am running into some trouble. It would be awesome if you can give me some pointers on how to proceed with the following.
Part of my program needs to crop an image in a subclass of NSImageView. I am trying to imitate what you can do in iPhoto. The image is scaled to fit in the NSImageView. How do I get my selectedImage to draw the correct portion of the sourceImage if I have a selectedRect with the coordinates in NSImageView? I've been playing with NSAffineTransform for a few days and all I can get is the bottom left portion of the image.
Help in any way is greatly appreciated. Happy Holidays!