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:

  • NSImage

  • UIImage

  • NSImageView

  • UIImageView

  • CIImage

  • NSBitmapImageRep

See the figure in Image Class Types.

For CIImage, the Xcode target must be OS X Mavericks or later.

 

NSBitmapImageRep is supported in Xcode 5.1 or later.

Cursor class:

  • NSCursor

See the figure in Cursor Class Type.

 

Color classes:

  • NSColor

  • UIColor

See the figure in Color Class Types.

 

BezierPath classes:

  • NSBezierPath

  • UIBezierPath

See the figure in BezierPath Class Types.

 

Location classes:

  • CLLocation

See the figure in Location Class Type.

View classes:

  • NSView

  • UIView

See the figure in View Class Types.

UIView supported in Xcode 5.1 or later.

String class:

  • NSString

See the figure in String Class Type.

 

AttributedString class:

  • NSAttributedString

See the figure in AttributedString Class Type.

 

Data class:

  • NSData

See the figure in Data Class Type.

 

URL class:

  • NSURL

See the figure in URL Class Type.

 

SpriteKit classes:

  • SKSpriteNode

  • SKShapeNode

  • SKTexture

  • SKTextureAtlas

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.

../art/vvql-01.png

(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.

../art/vvql-02.png

(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.

../art/vvql-03a.png
../art/vvql-03b.png

(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.

../art/vvql-04.png

(Return to table: Returnable Types for debugQuickLookObject)

BezierPath Class Types

../art/vvql-05.png

(Return to table: Returnable Types for debugQuickLookObject)

Location Class Type

../art/vvql-06.png

(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.

../art/vvql-08a_2x.png
../art/vvql-08b_2x.png
../art/vvql-08c_2x.png

(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.

../art/vvql-09.png

(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.

../art/vvql-10.png

(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.

../art/vvql-11.png

(Return to table: Returnable Types for debugQuickLookObject)

URL Class Type

This example of an NSURL Quick Look is displayed from a web source.

../art/vvql-16.png

(Return to table: Returnable Types for debugQuickLookObject)

 

This example of an NSURL Quick Look is displayed from a local or system Quick Look source.

../art/vvql-17.png

(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:

../art/vvql-19b_2x.png

Example of an SKTexture:

../art/vvql-20b_2x.png

(Return to table: Returnable Types for debugQuickLookObject)