Select iPhoto images in cocoa

I was wondering what is the best way to select photos from iPhoto in the cocoa app? Right now, the open files dialog does not allow me to enter the iPhoto library. How can I let the user enter this folder? IKPictureTaker was one option, but it looks like it allows you to select one picture at a time. I would like the user to be able to select 1 image or more.

+1
source share
2 answers

Just use NSOpenPaneland set the allowed file types in public.imageUTI:

[panel setAllowedFileTypes:[NSArray arrayWithObject:@"public.image"]];

, iPhoto.

, Karelia iMedia Browser.

+8

API Apple, , ; ILMediaBrowserView , NSOpenDialog.

AppStore , , .

iLifeMediaBrowser.framework /System/Library/PrivateFrameworks.

, Apple IK.

0

All Articles