I developed some app for iPhone/iPad, so I know the basic concepts of Cocoa programming. Now I need to write a Mac OS X application. If you help me to choose the right controls to use, I’ll study the Apple documentation reference for them.
I need:
-
a control to show a grid of thumbnails (png images); I’ll be able to change the order of the thumbnails by dragging and dropping them;
-
a control to show a single image (e.g. UIImageView of Cocoa Touch) with the possibility to drag and drop another image over the first one; besides I need to move and resize the second image by dragging its corners (as if corners were “anchors”);
-
a control to browse the media files on the Mac (possibly iPhoto images, iTunes DRM-free songs, or simply the content of a given folder), like the media browser of iMovie.
I use Xcode 4.2.
You can use
NSCollectionViewand co. for this. Xcode has a sample application somewhere in documentation (browsing various images) as well as tutorial on how to setupNSCollectionViewyourself.Check
NSImageView. You can basically find any Cocoa control alternative to Cocoa Touch just by changingUIprefix toNS.There is no such control per-se (unless
IKImageBrowserfor backgrounds), but using aforementionedNSCollectionViewand some API for media files you should get around pretty quickly.Also check
ImageKitframework for images (for browsing, viewing and modifying).