<!--
{
  "availability" : [
    "macOS: 10.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Quartz",
  "identifier" : "/documentation/Quartz/IKSlideshowDataSource",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "Quartz"
    ],
    "preciseIdentifier" : "c:objc(pl)IKSlideshowDataSource"
  },
  "title" : "IKSlideshowDataSource"
}
-->

# IKSlideshowDataSource

The `IKSlideshowDataSource` protocol describes the methods that an [`IKSlideshow`](/documentation/Quartz/IKSlideshow) object uses to access the contents of its data source object.

```
protocol IKSlideshowDataSource
```

## Overview> Important:
> Slide show data source methods may be called on secondary threads. When you implement these methods, you must ensure that they are safe to run on threads other than the main thread.

## Topics

### Providing Slideshow Information

[`-  numberOfSlideshowItems`](/documentation/Quartz/IKSlideshowDataSource/numberOfSlideshowItems())

Returns the number of items in a slideshow.

[`-  slideshowItemAtIndex:`](/documentation/Quartz/IKSlideshowDataSource/slideshowItem(at:))

Returns the item for a given index

[`-  nameOfSlideshowItemAtIndex:`](/documentation/Quartz/IKSlideshowDataSource/nameOfSlideshowItem(at:))

Returns the display name for item at the specified index.

[`-  canExportSlideshowItemAtIndex:toApplication:`](/documentation/Quartz/IKSlideshowDataSource/canExportSlideshowItem(at:toApplication:))

Reports whether the export button should be enabled for a slideshow item.

### Performing Custom Tasks

[`-  slideshowWillStart`](/documentation/Quartz/IKSlideshowDataSource/slideshowWillStart())

Performs custom tasks when the slideshow is about to start.

[`-  slideshowDidStop`](/documentation/Quartz/IKSlideshowDataSource/slideshowDidStop())

Performs custom tasks when the slideshow stops.

[`-  slideshowDidChangeCurrentIndex:`](/documentation/Quartz/IKSlideshowDataSource/slideshowDidChangeCurrentIndex(_:))

Performs custom tasks when the slideshow changes to the item at the specified index.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)