Mac Developer Library

Developer

Media Library Constants Reference

Options
Deployment Target:

On This Page
Language:

Media Library Constants Reference

Constants

  • Specifies the source type associated with a particular media source. Source type reflects the primary type of media within the source. These constants are used to specify values for MLMediaLoadSourceTypesKey in the initWithOptions: method of MLMediaLibrary.

    Declaration

    Swift

    struct MLMediaSourceType : RawOptionSetType { init(_ rawValue: UInt) init(rawValue rawValue: UInt) static var Audio: MLMediaSourceType { get } static var Image: MLMediaSourceType { get } static var Movie: MLMediaSourceType { get } }

    Objective-C

    typedef NS_OPTIONS (NSUInteger, MLMediaSourceType ) { MLMediaSourceTypeAudio = 1 << 0, MLMediaSourceTypeImage = 1 << 1, MLMediaSourceTypeMovie = 1 << 2, };

    Constants

    • Audio

      MLMediaSourceTypeAudio

      Audio source type. Includes iTunes, GarageBand, and Logic.

      Available in OS X v10.9 and later.

    • Image

      MLMediaSourceTypeImage

      Image source type. Includes iPhoto, Aperture, and Photo Booth.

      Available in OS X v10.9 and later.

    • Movie

      MLMediaSourceTypeMovie

      Movie source type. Includes iMovie and Final Cut Pro.

      Available in OS X v10.9 and later.

    Import Statement

    Objective-C

    @import MediaLibrary;

    Swift

    import MediaLibrary

    Availability

    Available in OS X v10.9 and later.

  • Specifies the media type associated with a particular media object. These constants are used to specify a media object’s mediaType attribute.

    Declaration

    Swift

    enum MLMediaType : UInt { case Audio case Image case Movie }

    Objective-C

    typedef NS_ENUM (NSUInteger, MLMediaType ) { MLMediaTypeAudio = 1 << 0, MLMediaTypeImage = 1 << 1, MLMediaTypeMovie = 1 << 2, };

    Constants

    • Audio

      MLMediaTypeAudio

      Audio media type.

      Available in OS X v10.9 and later.

    • Image

      MLMediaTypeImage

      Image media type.

      Available in OS X v10.9 and later.

    • Movie

      MLMediaTypeMovie

      Video media type.

      Available in OS X v10.9 and later.

    Import Statement

    Objective-C

    @import MediaLibrary;

    Swift

    import MediaLibrary

    Availability

    Available in OS X v10.9 and later.

  • Identifiers for media group types in folder-based media sources. These constants are used to specify a media group’s typeIdentifier attribute.

    Declaration

    Swift

    let MLFolderRootGroupTypeIdentifier: NSString! let MLFolderGroupTypeIdentifier: NSString!

    Objective-C

    NSString* const MLFolderRootGroupTypeIdentifier; NSString* const MLFolderGroupTypeIdentifier;

    Constants

    • MLFolderRootGroupTypeIdentifier

      MLFolderRootGroupTypeIdentifier

      The root media group for folder-based media.

      Available in OS X v10.9 and later.

    • MLFolderGroupTypeIdentifier

      MLFolderGroupTypeIdentifier

      A media group that represents a folder in folder-based media.

      Available in OS X v10.9 and later.

  • Identifiers for media group types in the iTunes media source. These constants are used to specify a media group’s typeIdentifier attribute.

    Declaration

    Swift

    let MLiTunesRootGroupTypeIdentifier: NSString! let MLiTunesPlaylistTypeIdentifier: NSString! let MLiTunesSmartPlaylistTypeIdentifier: NSString! let MLiTunesGeniusPlaylistTypeIdentifier: NSString! let MLiTunesSavedGeniusPlaylistTypeIdentifier: NSString! let MLiTunesFolderPlaylistTypeIdentifier: NSString! let MLiTunesAudioBooksPlaylistTypeIdentifier: NSString! let MLiTunesiTunesUPlaylistTypeIdentifier: NSString! let MLiTunesMoviesPlaylistTypeIdentifier: NSString! let MLiTunesMusicPlaylistTypeIdentifier: NSString! let MLiTunesPodcastPlaylistTypeIdentifier: NSString! let MLiTunesPurchasedPlaylistTypeIdentifier: NSString! let MLiTunesTVShowsPlaylistTypeIdentifier: NSString!

    Objective-C

    NSString* const MLiTunesRootGroupTypeIdentifier; NSString* const MLiTunesPlaylistTypeIdentifier; NSString* const MLiTunesSmartPlaylistTypeIdentifier; NSString* const MLiTunesGeniusPlaylistTypeIdentifier; NSString* const MLiTunesSavedGeniusPlaylistTypeIdentifier; NSString* const MLiTunesFolderPlaylistTypeIdentifier; NSString* const MLiTunesAudioBooksPlaylistTypeIdentifier; NSString* const MLiTunesiTunesUPlaylistTypeIdentifier; NSString* const MLiTunesMoviesPlaylistTypeIdentifier; NSString* const MLiTunesMusicPlaylistTypeIdentifier; NSString* const MLiTunesPodcastPlaylistTypeIdentifier; NSString* const MLiTunesPurchasedPlaylistTypeIdentifier; NSString* const MLiTunesTVShowsPlaylistTypeIdentifier;

    Constants

    • MLiTunesRootGroupTypeIdentifier

      MLiTunesRootGroupTypeIdentifier

      The root media group for iTunes.

      Available in OS X v10.9 and later.

    • MLiTunesPlaylistTypeIdentifier

      MLiTunesPlaylistTypeIdentifier

      A media group that represents a user-created playlist in iTunes.

      Available in OS X v10.9 and later.

    • MLiTunesSmartPlaylistTypeIdentifier

      MLiTunesSmartPlaylistTypeIdentifier

      A media group that represents a smart playlist in iTunes.

      Available in OS X v10.9 and later.

    • MLiTunesGeniusPlaylistTypeIdentifier

      MLiTunesGeniusPlaylistTypeIdentifier

      A media group that represents a genius playlist in iTunes.

      Available in OS X v10.9 and later.

    • MLiTunesSavedGeniusPlaylistTypeIdentifier

      MLiTunesSavedGeniusPlaylistTypeIdentifier

      A media group that represents a saved genius playlist in iTunes.

      Available in OS X v10.9 and later.

    • MLiTunesFolderPlaylistTypeIdentifier

      MLiTunesFolderPlaylistTypeIdentifier

      A media group that represents a folder in iTunes.

      Available in OS X v10.9 and later.

    • MLiTunesAudioBooksPlaylistTypeIdentifier

      MLiTunesAudioBooksPlaylistTypeIdentifier

      The media group that represents the Audio Books playlist in iTunes.

      Available in OS X v10.9 and later.

    • MLiTunesiTunesUPlaylistTypeIdentifier

      MLiTunesiTunesUPlaylistTypeIdentifier

      The media group that represents the iTunes U playlist in iTunes.

      Available in OS X v10.9 and later.

    • MLiTunesMoviesPlaylistTypeIdentifier

      MLiTunesMoviesPlaylistTypeIdentifier

      The media group that represents the Movies playlist in iTunes.

      Available in OS X v10.9 and later.

    • MLiTunesMusicPlaylistTypeIdentifier

      MLiTunesMusicPlaylistTypeIdentifier

      The media group that represents the Music playlist in iTunes.

      Available in OS X v10.9 and later.

    • MLiTunesPodcastPlaylistTypeIdentifier

      MLiTunesPodcastPlaylistTypeIdentifier

      The media group that represents the Podcast playlist in iTunes.

      Available in OS X v10.9 and later.

    • MLiTunesPurchasedPlaylistTypeIdentifier

      MLiTunesPurchasedPlaylistTypeIdentifier

      The media group that represents the Purchased playlist in iTunes.

      Available in OS X v10.9 and later.

    • MLiTunesTVShowsPlaylistTypeIdentifier

      MLiTunesTVShowsPlaylistTypeIdentifier

      The media group that represents the TV Shows playlist in iTunes.

      Available in OS X v10.9 and later.

  • Identifiers for media group types in the iPhoto media source. These constants are used to specify a media group’s typeIdentifier attribute.

    Declaration

    Swift

    let MLiPhotoRootGroupTypeIdentifier: NSString! let MLiPhotoAlbumTypeIdentifier: NSString! let MLiPhotoSmartAlbumTypeIdentifier: NSString! let MLiPhotoLibraryAlbumTypeIdentifier: NSString! let MLiPhotoFolderAlbumTypeIdentifier: NSString! let MLiPhotoEventAlbumTypeIdentifier: NSString! let MLiPhotoEventsFolderTypeIdentifier: NSString! let MLiPhotoLastViewedEventAlbumTypeIdentifier: NSString! let MLiPhotoLastImportAlbumTypeIdentifier: NSString! let MLiPhotoLastNMonthsAlbumTypeIdentifier: NSString! let MLiPhotoFlaggedAlbumTypeIdentifier: NSString! let MLiPhotoSubscribedAlbumTypeIdentifier: NSString! let MLiPhotoSlideShowAlbumTypeIdentifier: NSString! let MLiPhotoPhotoStreamAlbumTypeIdentifier: NSString! let MLiPhotoFacesAlbumTypeIdentifier: NSString! let MLiPhotoPlacesAlbumTypeIdentifier: NSString! let MLiPhotoPlacesCountryAlbumTypeIdentifier: NSString! let MLiPhotoPlacesProvinceAlbumTypeIdentifier: NSString! let MLiPhotoPlacesCityAlbumTypeIdentifier: NSString! let MLiPhotoPlacesPointOfInterestAlbumTypeIdentifier: NSString! let MLiPhotoFacebookAlbumTypeIdentifier: NSString! let MLiPhotoFacebookGroupTypeIdentifier: NSString! let MLiPhotoFlickrAlbumTypeIdentifier: NSString! let MLiPhotoFlickrGroupTypeIdentifier: NSString!

    Objective-C

    NSString* const MLiPhotoRootGroupTypeIdentifier; NSString* const MLiPhotoAlbumTypeIdentifier; NSString* const MLiPhotoSmartAlbumTypeIdentifier; NSString* const MLiPhotoLibraryAlbumTypeIdentifier; NSString* const MLiPhotoFolderAlbumTypeIdentifier; NSString* const MLiPhotoEventAlbumTypeIdentifier; NSString* const MLiPhotoEventsFolderTypeIdentifier; NSString* const MLiPhotoLastViewedEventAlbumTypeIdentifier; NSString* const MLiPhotoLastImportAlbumTypeIdentifier; NSString* const MLiPhotoLastNMonthsAlbumTypeIdentifier; NSString* const MLiPhotoFlaggedAlbumTypeIdentifier; NSString* const MLiPhotoSubscribedAlbumTypeIdentifier; NSString* const MLiPhotoSlideShowAlbumTypeIdentifier; NSString* const MLiPhotoPhotoStreamAlbumTypeIdentifier; NSString* const MLiPhotoFacesAlbumTypeIdentifier; NSString* const MLiPhotoPlacesAlbumTypeIdentifier; NSString* const MLiPhotoPlacesCountryAlbumTypeIdentifier; NSString* const MLiPhotoPlacesProvinceAlbumTypeIdentifier; NSString* const MLiPhotoPlacesCityAlbumTypeIdentifier; NSString* const MLiPhotoPlacesPointOfInterestAlbumTypeIdentifier; NSString* const MLiPhotoFacebookAlbumTypeIdentifier; NSString* const MLiPhotoFacebookGroupTypeIdentifier; NSString* const MLiPhotoFlickrAlbumTypeIdentifier; NSString* const MLiPhotoFlickrGroupTypeIdentifier;

    Constants

    • MLiPhotoRootGroupTypeIdentifier

      MLiPhotoRootGroupTypeIdentifier

      The root media group for iPhoto.

      Available in OS X v10.9 and later.

    • MLiPhotoAlbumTypeIdentifier

      MLiPhotoAlbumTypeIdentifier

      A media group that represents an album in iPhoto.

      Available in OS X v10.9 and later.

    • MLiPhotoSmartAlbumTypeIdentifier

      MLiPhotoSmartAlbumTypeIdentifier

      A media group that represents a smart album in iPhoto.

      Available in OS X v10.9 and later.

    • MLiPhotoLibraryAlbumTypeIdentifier

      MLiPhotoLibraryAlbumTypeIdentifier

      The media group that represents the Photos album in iPhoto.

      Available in OS X v10.9 and later.

    • MLiPhotoFolderAlbumTypeIdentifier

      MLiPhotoFolderAlbumTypeIdentifier

      A media group that represents a folder in iPhoto.

      Available in OS X v10.9 and later.

    • MLiPhotoEventAlbumTypeIdentifier

      MLiPhotoEventAlbumTypeIdentifier

      A media group that represents an event in iPhoto.

      Available in OS X v10.9 and later.

    • MLiPhotoEventsFolderTypeIdentifier

      MLiPhotoEventsFolderTypeIdentifier

      The media group that represents the Events album in iPhoto.

      Available in OS X v10.9 and later.

    • MLiPhotoLastViewedEventAlbumTypeIdentifier

      MLiPhotoLastViewedEventAlbumTypeIdentifier

      The media group that represents the last viewed event in iPhoto.

      Available in OS X v10.9 and later.

    • MLiPhotoLastImportAlbumTypeIdentifier

      MLiPhotoLastImportAlbumTypeIdentifier

      The media group that represents the Last Import album in iPhoto.

      Available in OS X v10.9 and later.

    • MLiPhotoLastNMonthsAlbumTypeIdentifier

      MLiPhotoLastNMonthsAlbumTypeIdentifier

      The media group that represents the recent content album in iPhoto, known as the Last N Months album. The value for N is usually 12 (settable in iPhoto > Preferences > General).

      Available in OS X v10.9 and later.

    • MLiPhotoFlaggedAlbumTypeIdentifier

      MLiPhotoFlaggedAlbumTypeIdentifier

      The media group that represents the album of flagged media in iPhoto.

      Available in OS X v10.9 and later.

    • MLiPhotoSubscribedAlbumTypeIdentifier

      MLiPhotoSubscribedAlbumTypeIdentifier

      A media group that represents a subscribed album in iPhoto.

      Available in OS X v10.9 and later.

    • MLiPhotoSlideShowAlbumTypeIdentifier

      MLiPhotoSlideShowAlbumTypeIdentifier

      A media group that represents a slideshow album in iPhoto.

      Available in OS X v10.9 and later.

    • MLiPhotoPhotoStreamAlbumTypeIdentifier

      MLiPhotoPhotoStreamAlbumTypeIdentifier

      A media group that represents a photo stream in iPhoto.

      Available in OS X v10.9 and later.

    • MLiPhotoFacesAlbumTypeIdentifier

      MLiPhotoFacesAlbumTypeIdentifier

      A media group that represents a Faces album in iPhoto. Individual Faces albums are nested in the main Faces album.

      Available in OS X v10.9 and later.

    • MLiPhotoPlacesAlbumTypeIdentifier

      MLiPhotoPlacesAlbumTypeIdentifier

      The media group that represents the Places album in iPhoto.

      Available in OS X v10.9 and later.

    • MLiPhotoPlacesCountryAlbumTypeIdentifier

      MLiPhotoPlacesCountryAlbumTypeIdentifier

      A media group that represents a Places album for a country in iPhoto. A country album is nested in the main Places album.

      Available in OS X v10.9 and later.

    • MLiPhotoPlacesProvinceAlbumTypeIdentifier

      MLiPhotoPlacesProvinceAlbumTypeIdentifier

      A media group that represents a Places album for a province or state in iPhoto. A province or state album is nested in a country album.

      Available in OS X v10.9 and later.

    • MLiPhotoPlacesCityAlbumTypeIdentifier

      MLiPhotoPlacesCityAlbumTypeIdentifier

      A media group that represents a Places album for a city in iPhoto. A city album is nested in a province or state album.

      Available in OS X v10.9 and later.

    • MLiPhotoPlacesPointOfInterestAlbumTypeIdentifier

      MLiPhotoPlacesPointOfInterestAlbumTypeIdentifier

      A media group that represents a Places album for a point-of-interest in iPhoto. A point of interest album is nested in a city album.

      Available in OS X v10.9 and later.

    • MLiPhotoFacebookAlbumTypeIdentifier

      MLiPhotoFacebookAlbumTypeIdentifier

      A media group that represents a Facebook album that is visible in iPhoto.

      Available in OS X v10.9 and later.

    • MLiPhotoFacebookGroupTypeIdentifier

      MLiPhotoFacebookGroupTypeIdentifier

      A media group that represents a Facebook user account in iPhoto. A Facebook user account contains one or more Facebook albums.

      Available in OS X v10.9 and later.

    • MLiPhotoFlickrAlbumTypeIdentifier

      MLiPhotoFlickrAlbumTypeIdentifier

      A media group that represents a Flickr album that is visible in iPhoto.

      Available in OS X v10.9 and later.

    • MLiPhotoFlickrGroupTypeIdentifier

      MLiPhotoFlickrGroupTypeIdentifier

      A media group that represents a Flickr user account in iPhoto. A Flickr user account contains one or more Flickr albums.

      Available in OS X v10.9 and later.

  • Identifiers for media group types in the Aperture media source. These constants are used to specify a media group’s typeIdentifier attribute.

    Declaration

    Swift

    let MLApertureRootGroupTypeIdentifier: NSString! let MLApertureUserAlbumTypeIdentifier: NSString! let MLApertureUserSmartAlbumTypeIdentifier: NSString! let MLApertureProjectAlbumTypeIdentifier: NSString! let MLApertureFolderAlbumTypeIdentifier: NSString! let MLApertureProjectFolderAlbumTypeIdentifier: NSString! let MLApertureAllProjectsTypeIdentifier: NSString! let MLApertureAllPhotosTypeIdentifier: NSString! let MLApertureLastViewedEventAlbumTypeIdentifier: NSString! let MLApertureLastImportAlbumTypeIdentifier: NSString! let MLApertureLastNMonthsAlbumTypeIdentifier: NSString! let MLApertureFlaggedTypeIdentifier: NSString! let MLApertureLightTableTypeIdentifier: NSString! let MLApertureSlideShowTypeIdentifier: NSString! let MLAperturePhotoStreamAlbumTypeIdentifier: NSString! let MLApertureFacesAlbumTypeIdentifier: NSString! let MLAperturePlacesAlbumTypeIdentifier: NSString! let MLAperturePlacesCountryAlbumTypeIdentifier: NSString! let MLAperturePlacesProvinceAlbumTypeIdentifier: NSString! let MLAperturePlacesCityAlbumTypeIdentifier: NSString! let MLAperturePlacesPointOfInterestAlbumTypeIdentifier: NSString! let MLApertureFacebookAlbumTypeIdentifier: NSString! let MLApertureFacebookGroupTypeIdentifier: NSString! let MLApertureFlickrAlbumTypeIdentifier: NSString! let MLApertureFlickrGroupTypeIdentifier: NSString! let MLApertureSmugMugAlbumTypeIdentifier: NSString! let MLApertureSmugMugGroupTypeIdentifier: NSString!

    Objective-C

    NSString* const MLApertureRootGroupTypeIdentifier; NSString* const MLApertureUserAlbumTypeIdentifier; NSString* const MLApertureUserSmartAlbumTypeIdentifier; NSString* const MLApertureProjectAlbumTypeIdentifier; NSString* const MLApertureFolderAlbumTypeIdentifier; NSString* const MLApertureProjectFolderAlbumTypeIdentifier; NSString* const MLApertureAllProjectsTypeIdentifier; NSString* const MLApertureAllPhotosTypeIdentifier; NSString* const MLApertureLastViewedEventAlbumTypeIdentifier; NSString* const MLApertureLastImportAlbumTypeIdentifier; NSString* const MLApertureLastNMonthsAlbumTypeIdentifier; NSString* const MLApertureFlaggedTypeIdentifier; NSString* const MLApertureLightTableTypeIdentifier; NSString* const MLApertureSlideShowTypeIdentifier; NSString* const MLAperturePhotoStreamAlbumTypeIdentifier; NSString* const MLApertureFacesAlbumTypeIdentifier; NSString* const MLAperturePlacesAlbumTypeIdentifier; NSString* const MLAperturePlacesCountryAlbumTypeIdentifier; NSString* const MLAperturePlacesProvinceAlbumTypeIdentifier; NSString* const MLAperturePlacesCityAlbumTypeIdentifier; NSString* const MLAperturePlacesPointOfInterestAlbumTypeIdentifier; NSString* const MLApertureFacebookAlbumTypeIdentifier; NSString* const MLApertureFacebookGroupTypeIdentifier; NSString* const MLApertureFlickrAlbumTypeIdentifier; NSString* const MLApertureFlickrGroupTypeIdentifier; NSString* const MLApertureSmugMugGroupTypeIdentifier; NSString* const MLApertureSmugMugAlbumTypeIdentifier;

    Constants

    • MLApertureRootGroupTypeIdentifier

      MLApertureRootGroupTypeIdentifier

      The root media group for Aperture.

      Available in OS X v10.9 and later.

    • MLApertureUserAlbumTypeIdentifier

      MLApertureUserAlbumTypeIdentifier

      A media group that represents a user-created album in Aperture.

      Available in OS X v10.9 and later.

    • MLApertureUserSmartAlbumTypeIdentifier

      MLApertureUserSmartAlbumTypeIdentifier

      A media group that represents a user-created smart album in Aperture.

      Available in OS X v10.9 and later.

    • MLApertureProjectAlbumTypeIdentifier

      MLApertureProjectAlbumTypeIdentifier

      A media group that represents a project in Aperture.

      Available in OS X v10.9 and later.

    • MLApertureFolderAlbumTypeIdentifier

      MLApertureFolderAlbumTypeIdentifier

      A media group that represents a folder in Aperture.

      Available in OS X v10.9 and later.

    • MLApertureProjectFolderAlbumTypeIdentifier

      MLApertureProjectFolderAlbumTypeIdentifier

      A media group that represents a folder within a project in Aperture.

      Available in OS X v10.9 and later.

    • MLApertureAllProjectsTypeIdentifier

      MLApertureAllProjectsTypeIdentifier

      The media group that represents all projects in Aperture.

      Available in OS X v10.9 and later.

    • MLApertureAllPhotosTypeIdentifier

      MLApertureAllPhotosTypeIdentifier

      The media group that represents all photos in Aperture.

      Available in OS X v10.9 and later.

    • MLApertureLastViewedEventAlbumTypeIdentifier

      MLApertureLastViewedEventAlbumTypeIdentifier

      The media group that represents the last viewed event in Aperture.

      Available in OS X v10.9 and later.

    • MLApertureLastImportAlbumTypeIdentifier

      MLApertureLastImportAlbumTypeIdentifier

      The media group that represents the last import album in Aperture.

      Available in OS X v10.9 and later.

    • MLApertureLastNMonthsAlbumTypeIdentifier

      MLApertureLastNMonthsAlbumTypeIdentifier

      The media group that represents the recent content album in Aperture, known as the Last N Months album. The value for N is usually 12 (settable in Aperture > Preferences > General).

      Available in OS X v10.9 and later.

    • MLApertureFlaggedTypeIdentifier

      MLApertureFlaggedTypeIdentifier

      The media group that represents the album of flagged media in Aperture.

      Available in OS X v10.9 and later.

    • MLApertureLightTableTypeIdentifier

      MLApertureLightTableTypeIdentifier

      A media group that represents a light table in Aperture.

      Available in OS X v10.9 and later.

    • MLApertureSlideShowTypeIdentifier

      MLApertureSlideShowTypeIdentifier

      The media group that represents a slideshow in Aperture.

      Available in OS X v10.9 and later.

    • MLAperturePhotoStreamAlbumTypeIdentifier

      MLAperturePhotoStreamAlbumTypeIdentifier

      A media group that represents a photo stream in Aperture.

      Available in OS X v10.9 and later.

    • MLApertureFacesAlbumTypeIdentifier

      MLApertureFacesAlbumTypeIdentifier

      A media group that represents a Faces album in Aperture. Individual Faces albums are nested in the main Faces album.

      Available in OS X v10.9 and later.

    • MLAperturePlacesAlbumTypeIdentifier

      MLAperturePlacesAlbumTypeIdentifier

      The media group that represents the Places album in Aperture.

      Available in OS X v10.9 and later.

    • MLAperturePlacesCountryAlbumTypeIdentifier

      MLAperturePlacesCountryAlbumTypeIdentifier

      A media group that represents a Places album for a country in Aperture. A country album is nested in the main Places album.

      Available in OS X v10.9 and later.

    • MLAperturePlacesProvinceAlbumTypeIdentifier

      MLAperturePlacesProvinceAlbumTypeIdentifier

      A media group that represents a Places album for a province or state in Aperture. A province or state album is nested in a country album.

      Available in OS X v10.9 and later.

    • MLAperturePlacesCityAlbumTypeIdentifier

      MLAperturePlacesCityAlbumTypeIdentifier

      A media group that represents a Places album for a city in Aperture. A city album is nested in a province or state album.

      Available in OS X v10.9 and later.

    • MLAperturePlacesPointOfInterestAlbumTypeIdentifier

      MLAperturePlacesPointOfInterestAlbumTypeIdentifier

      A media group that represents a Places album for a point-of-interest in Aperture. A point of interest album is nested in a city album.

      Available in OS X v10.9 and later.

    • MLApertureFacebookAlbumTypeIdentifier

      MLApertureFacebookAlbumTypeIdentifier

      A media group that represents a Facebook album that is visible in Aperture.

      Available in OS X v10.9 and later.

    • MLApertureFacebookGroupTypeIdentifier

      MLApertureFacebookGroupTypeIdentifier

      A media group that represents a Facebook user account in Aperture. A Facebook user account contains one or more Facebook albums.

      Available in OS X v10.9 and later.

    • MLApertureFlickrAlbumTypeIdentifier

      MLApertureFlickrAlbumTypeIdentifier

      A media group that represents a Flickr album that is visible in Aperture.

      Available in OS X v10.9 and later.

    • MLApertureFlickrGroupTypeIdentifier

      MLApertureFlickrGroupTypeIdentifier

      A media group that represents a Flickr user account in Aperture. A Flickr user account contains one or more Flickr albums.

      Available in OS X v10.9 and later.

    • MLApertureSmugMugAlbumTypeIdentifier

      MLApertureSmugMugAlbumTypeIdentifier

      A media group that represents a SmugMug album that is visible in Aperture.

      Available in OS X v10.9 and later.

    • MLApertureSmugMugGroupTypeIdentifier

      MLApertureSmugMugGroupTypeIdentifier

      A media group that represents a SmugMug user account in Aperture. A SmugMug user account contains one or more SmugMug albums.

      Available in OS X v10.9 and later.

  • Identifiers for media group types in the GarageBand media source. These constants are used to specify a media group’s typeIdentifier attribute.

    Declaration

    Swift

    let MLGarageBandRootGroupTypeIdentifier: NSString! let MLGarageBandFolderGroupTypeIdentifier: NSString!

    Objective-C

    NSString* const MLGarageBandRootGroupTypeIdentifier; NSString* const MLGarageBandFolderGroupTypeIdentifier;

    Constants

    • MLGarageBandRootGroupTypeIdentifier

      MLGarageBandRootGroupTypeIdentifier

      The root media group for GarageBand.

      Available in OS X v10.9 and later.

    • MLGarageBandFolderGroupTypeIdentifier

      MLGarageBandFolderGroupTypeIdentifier

      A media group that represents a folder in GarageBand.

      Available in OS X v10.9 and later.

  • Identifiers for media group types in the Logic media source. These constants are used to specify a media group’s typeIdentifier attribute.

    Declaration

    Swift

    let MLLogicRootGroupTypeIdentifier: NSString! let MLLogicProjectTypeIdentifier: NSString! let MLLogicProjectsGroupTypeIdentifier: NSString! let MLLogicBouncesGroupTypeIdentifier: NSString!

    Objective-C

    NSString* const MLLogicRootGroupTypeIdentifier; NSString* const MLLogicProjectTypeIdentifier; NSString* const MLLogicProjectsGroupTypeIdentifier; NSString* const MLLogicBouncesGroupTypeIdentifier;

    Constants

    • MLLogicRootGroupTypeIdentifier

      MLLogicRootGroupTypeIdentifier

      The root media group for Logic.

      Available in OS X v10.9 and later.

    • MLLogicProjectTypeIdentifier

      MLLogicProjectTypeIdentifier

      A media group that represents a project in Logic. Projects may be nested.

      Available in OS X v10.9 and later.

    • MLLogicProjectsGroupTypeIdentifier

      MLLogicProjectsGroupTypeIdentifier

      The media group that represents all projects in Logic.

      Available in OS X v10.9 and later.

    • MLLogicBouncesGroupTypeIdentifier

      MLLogicBouncesGroupTypeIdentifier

      The media group that represents all bounces in Logic.

      Available in OS X v10.9 and later.

  • Identifiers for media group types in the iMovie media source. These constants are used to specify a media group’s typeIdentifier attribute.

    Declaration

    Swift

    let MLiMovieRootGroupTypeIdentifier: NSString! let MLiMovieProjectGroupTypeIdentifier: NSString! let MLiMovieFolderGroupTypeIdentifier: NSString! let MLiMovieEventGroupTypeIdentifier: NSString! let MLiMovieEventCalendarGroupTypeIdentifier: NSString! let MLiMovieEventLibraryGroupTypeIdentifier: NSString!

    Objective-C

    NSString* const MLiMovieRootGroupTypeIdentifier; NSString* const MLiMovieProjectGroupTypeIdentifier; NSString* const MLiMovieFolderGroupTypeIdentifier; NSString* const MLiMovieEventGroupTypeIdentifier; NSString* const MLiMovieEventCalendarGroupTypeIdentifier; NSString* const MLiMovieEventLibraryGroupTypeIdentifier;

    Constants

    • MLiMovieRootGroupTypeIdentifier

      MLiMovieRootGroupTypeIdentifier

      The root media group for iMovie.

      Available in OS X v10.9 and later.

    • MLiMovieProjectGroupTypeIdentifier

      MLiMovieProjectGroupTypeIdentifier

      A media group that represents a project in iMovie.

      Available in OS X v10.9 and later.

    • MLiMovieFolderGroupTypeIdentifier

      MLiMovieFolderGroupTypeIdentifier

      A media group that represents a folder in iMovie.

      Available in OS X v10.9 and later.

    • MLiMovieEventGroupTypeIdentifier

      MLiMovieEventGroupTypeIdentifier

      A media group that represents an event in iMovie.

      Available in OS X v10.9 and later.

    • MLiMovieEventCalendarGroupTypeIdentifier

      MLiMovieEventCalendarGroupTypeIdentifier

      A media group that represents a collection of events from a specific time period in iMovie.

      Available in OS X v10.9 and later.

    • MLiMovieEventLibraryGroupTypeIdentifier

      MLiMovieEventLibraryGroupTypeIdentifier

      The media group that represents the event library in iMovie. The event library contains all event calendar groups.

      Available in OS X v10.9 and later.

  • Identifiers for media group types in the Final Cut Pro media source. These constants are used to specify a media group’s typeIdentifier attribute.

    Declaration

    Swift

    let MLFinalCutRootGroupTypeIdentifier: NSString! let MLFinalCutProjectGroupTypeIdentifier: NSString! let MLFinalCutFolderGroupTypeIdentifier: NSString! let MLFinalCutEventGroupTypeIdentifier: NSString! let MLFinalCutEventCalendarGroupTypeIdentifier: NSString! let MLFinalCutEventLibraryGroupTypeIdentifier: NSString!

    Objective-C

    NSString* const MLFinalCutRootGroupTypeIdentifier; NSString* const MLFinalCutProjectGroupTypeIdentifier; NSString* const MLFinalCutFolderGroupTypeIdentifier; NSString* const MLFinalCutEventGroupTypeIdentifier; NSString* const MLFinalCutEventCalendarGroupTypeIdentifier; NSString* const MLFinalCutEventLibraryGroupTypeIdentifier;

    Constants

    • MLFinalCutRootGroupTypeIdentifier

      MLFinalCutRootGroupTypeIdentifier

      The root media group for Final Cut Pro.

      Available in OS X v10.9 and later.

    • MLFinalCutProjectGroupTypeIdentifier

      MLFinalCutProjectGroupTypeIdentifier

      A media group that represents a project in Final Cut Pro.

      Available in OS X v10.9 and later.

    • MLFinalCutFolderGroupTypeIdentifier

      MLFinalCutFolderGroupTypeIdentifier

      A media group that represents a folder in Final Cut Pro.

      Available in OS X v10.9 and later.

    • MLFinalCutEventGroupTypeIdentifier

      MLFinalCutEventGroupTypeIdentifier

      A media group that represents an event in Final Cut Pro.

      Available in OS X v10.9 and later.

    • MLFinalCutEventCalendarGroupTypeIdentifier

      MLFinalCutEventCalendarGroupTypeIdentifier

      A media group that represents a collection of events from a specific time period in Final Cut Pro.

      Available in OS X v10.9 and later.

    • MLFinalCutEventLibraryGroupTypeIdentifier

      MLFinalCutEventLibraryGroupTypeIdentifier

      The media group that represents the event library in Final Cut Pro. The event library contains all event calendar groups.

      Available in OS X v10.9 and later.

  • Attribute keys for a media object. These constants are used to specify keys within a media object’s attributes dictionary.

    Declaration

    Swift

    let MLMediaObjectDurationKey: NSString! let MLMediaObjectArtistKey: NSString! let MLMediaObjectAlbumKey: NSString! let MLMediaObjectGenreKey: NSString! let MLMediaObjectKindKey: NSString! let MLMediaObjectTrackNumberKey: NSString! let MLMediaObjectBitRateKey: NSString! let MLMediaObjectSampleRateKey: NSString! let MLMediaObjectChannelCountKey: NSString! let MLMediaObjectResolutionStringKey: NSString! let MLMediaObjectCommentsKey: NSString! let MLMediaObjectKeywordsKey: NSString! let MLMediaObjectProtectedKey: NSString!

    Objective-C

    NSString* const MLMediaObjectDurationKey; NSString* const MLMediaObjectArtistKey; NSString* const MLMediaObjectAlbumKey; NSString* const MLMediaObjectGenreKey; NSString* const MLMediaObjectKindKey; NSString* const MLMediaObjectTrackNumberKey; NSString* const MLMediaObjectBitRateKey; NSString* const MLMediaObjectSampleRateKey; NSString* const MLMediaObjectChannelCountKey; NSString* const MLMediaObjectResolutionKey; NSString* const MLMediaObjectCommentsKey; NSString* const MLMediaObjectKeywordsKey; NSString* const MLMediaObjectProtectedKey;

    Constants

    • MLMediaObjectDurationKey

      MLMediaObjectDurationKey

      Specifies the media object’s duration, in seconds. The value for this key is a number (NSNumber).

      Available in OS X v10.9 and later.

    • MLMediaObjectArtistKey

      MLMediaObjectArtistKey

      Specifies the media object’s artist. The value for this key is a string (NSString).

      Available in OS X v10.9 and later.

    • MLMediaObjectAlbumKey

      MLMediaObjectAlbumKey

      Specifies the media object’s album. The value for this key is a string (NSString).

      Available in OS X v10.9 and later.

    • MLMediaObjectGenreKey

      MLMediaObjectGenreKey

      Specifies the media object’s genre. The value for this key is a string (NSString).

      Available in OS X v10.9 and later.

    • MLMediaObjectKindKey

      MLMediaObjectKindKey

      Used by iTunes only. Specifies the media object’s file format (shown in the “Kind” column in iTunes). The value for this key is a string (NSString).

      Available in OS X v10.9 and later.

    • MLMediaObjectTrackNumberKey

      MLMediaObjectTrackNumberKey

      Specifies the media object’s track number. The value for this key is a number (NSNumber).

      Available in OS X v10.9 and later.

    • MLMediaObjectBitRateKey

      MLMediaObjectBitRateKey

      Specifies the media object’s bit rate, in kilobits per second. The value for this key is a number (NSNumber).

      Available in OS X v10.9 and later.

    • MLMediaObjectSampleRateKey

      MLMediaObjectSampleRateKey

      Specifies the media object’s sample rate, in samples per second (Hz). The value for this key is a number (NSNumber).

      Available in OS X v10.9 and later.

    • MLMediaObjectChannelCountKey

      MLMediaObjectChannelCountKey

      Specifies the media object’s channel count. The value for this key is a number (NSNumber).

      Available in OS X v10.9 and later.

    • MLMediaObjectResolutionStringKey

      MLMediaObjectResolutionStringKey

      Specifies the media object’s resolution. The value for this key is a string (NSString) intended to be converted to a size (NSSize) using the NSSizeFromString method.

      Available in OS X v10.9 and later.

    • MLMediaObjectCommentsKey

      MLMediaObjectCommentsKey

      Specifies the contents of the comments field associated with the media object. The value for this key is a string (NSString).

      Available in OS X v10.9 and later.

    • MLMediaObjectKeywordsKey

      MLMediaObjectKeywordsKey

      Specifies the keywords associated with the media object. The value for this key is an array (NSArray) of strings (NSString).

      Available in OS X v10.9 and later.

    • MLMediaObjectProtectedKey

      MLMediaObjectProtectedKey

      Specifies whether the media object is protected by DRM (Digital Rights Management). The value for this key is a number (NSNumber), 0 or 1, that represents a Boolean value.

      Available in OS X v10.9 and later.