Operating System Types Supporting debugQuickLookObject
Your custom Quick Look display method, debugQuickLookObject
(see Implement the Quick Look method), must return an object whose type is one of the operating system classes that supports rendering custom classes in Quick Look. The following table lists these iOS and OS X system classes, grouped by similar content.
The examples in Quick Look Examples for System Classes illustrate the standard Quick Look displays for these operating system object types.
Returnable Types for debugQuickLookObject
Object Type | Example | Implementation Notes |
---|---|---|
Default | See the figure in Default. | No custom Quick Look display available. |
Image classes:
| See the figure in Image Class Types. | For
|
Cursor class:
| See the figure in Cursor Class Type. |
|
Color classes:
| See the figure in Color Class Types. |
|
BezierPath classes:
| See the figure in BezierPath Class Types. |
|
Location classes:
| See the figure in Location Class Type. |
|
View classes:
| See the figure in View Class Types. |
|
String class:
| See the figure in String Class Type. |
|
AttributedString class:
| See the figure in AttributedString Class Type. |
|
Data class:
| See the figure in Data Class Type. |
|
URL class:
| See the figure in URL Class Type. |
|
SpriteKit classes:
| See the figure in SpriteKit Class Types. | SpriteKit classes are supported in Xcode 6 or later. The target must be iOS 8 or OS X Yosemite, or later. |
Quick Look Examples for System Classes
Default
The default Quick Look display is used when no Quick Look debug object is available.

(Return to table: Returnable Types for debugQuickLookObject)
Image Class Types
Image class types open in a Quick Look display with a button that allows you to open the rendering graphic in Preview.

(Return to table: Returnable Types for debugQuickLookObject)
Cursor Class Type
Cursor class types open into a Quick Look display with a button that allows you to view them in Preview.


(Return to table: Returnable Types for debugQuickLookObject)
Color Class Types
Color class types show a sample swatch with red, green, blue, and alpha channel values represented in the range from 0.0 to 1.0.

(Return to table: Returnable Types for debugQuickLookObject)
BezierPath Class Types

(Return to table: Returnable Types for debugQuickLookObject)
Location Class Type

(Return to table: Returnable Types for debugQuickLookObject)
View Class Types
View class types open in Quick Look displays with buttons that allow you to open the graphic displayed in Preview.



(Return to table: Returnable Types for debugQuickLookObject)
String Class Type
String class types open in a view equipped with a button that transfers the contents into TextEdit.

(Return to table: Returnable Types for debugQuickLookObject)
AttributedString Class Type
AttributedString class types open in a view equipped with a button that transfers the contents into TextEdit.

(Return to table: Returnable Types for debugQuickLookObject)
Data Class Type
The NSData
class type opens in a three-column view of offset, hexadecimal, and ASCII values.

(Return to table: Returnable Types for debugQuickLookObject)
URL Class Type
This example of an NSURL
Quick Look is displayed from a web source.

(Return to table: Returnable Types for debugQuickLookObject)
This example of an NSURL
Quick Look is displayed from a local or system Quick Look source.

(Return to table: Returnable Types for debugQuickLookObject)
SpriteKit Class Types
SpriteKit class types open in a Quick Look display with a button that allows you to open the rendered graphic in Preview.
Example of an SKSpriteNode
:

Example of an SKTexture
:

(Return to table: Returnable Types for debugQuickLookObject)
Copyright © 2014 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2014-09-17