Documentation Archive Developer
Search

Quartz Changes for Swift

Quartz

Declaration
From
class QCCompositionPickerView : NSView {
    func setCompositionsFromRepositoryWithProtocol(_ `protocol`: String!, andAttributes attributes: [NSObject : AnyObject]!)
    func compositions() -> [AnyObject]!
    func setDelegate(_ delegate: AnyObject!)
    func delegate() -> AnyObject!
    func setShowsCompositionNames(_ flag: Bool)
    func showsCompositionNames() -> Bool
    func setAllowsEmptySelection(_ flag: Bool)
    func allowsEmptySelection() -> Bool
    func setCompositionAspectRatio(_ ratio: NSSize)
    func compositionAspectRatio() -> NSSize
    func setDefaultValue(_ value: AnyObject!, forInputKey key: String!)
    func resetDefaultInputValues()
    func setSelectedComposition(_ composition: QCComposition!)
    func selectedComposition() -> QCComposition!
    func startAnimation(_ sender: AnyObject!)
    func stopAnimation(_ sender: AnyObject!)
    func isAnimating() -> Bool
    func setMaxAnimationFrameRate(_ maxFPS: Float)
    func maxAnimationFrameRate() -> Float
    func setBackgroundColor(_ color: NSColor!)
    func backgroundColor() -> NSColor!
    func setDrawsBackground(_ flag: Bool)
    func drawsBackground() -> Bool
    func numberOfColumns() -> Int
    func setNumberOfColumns(_ columns: Int)
    func numberOfRows() -> Int
    func setNumberOfRows(_ rows: Int)
}
To
class QCCompositionPickerView : NSView {
    func setCompositionsFromRepositoryWithProtocol(_ protocol: String!, andAttributes attributes: [NSObject : AnyObject]!)
    func compositions() -> [AnyObject]!
    func setDelegate(_ delegate: AnyObject!)
    func delegate() -> AnyObject!
    func setShowsCompositionNames(_ flag: Bool)
    func showsCompositionNames() -> Bool
    func setAllowsEmptySelection(_ flag: Bool)
    func allowsEmptySelection() -> Bool
    func setCompositionAspectRatio(_ ratio: NSSize)
    func compositionAspectRatio() -> NSSize
    func setDefaultValue(_ value: AnyObject!, forInputKey key: String!)
    func resetDefaultInputValues()
    func setSelectedComposition(_ composition: QCComposition!)
    func selectedComposition() -> QCComposition!
    func startAnimation(_ sender: AnyObject!)
    func stopAnimation(_ sender: AnyObject!)
    func isAnimating() -> Bool
    func setMaxAnimationFrameRate(_ maxFPS: Float)
    func maxAnimationFrameRate() -> Float
    func setBackgroundColor(_ color: NSColor!)
    func backgroundColor() -> NSColor!
    func setDrawsBackground(_ flag: Bool)
    func drawsBackground() -> Bool
    func numberOfColumns() -> Int
    func setNumberOfColumns(_ columns: Int)
    func numberOfRows() -> Int
    func setNumberOfRows(_ rows: Int)
}

Declaration
From
func setCompositionsFromRepositoryWithProtocol(_ `protocol`: String!, andAttributes attributes: [NSObject : AnyObject]!)
To
func setCompositionsFromRepositoryWithProtocol(_ protocol: String!, andAttributes attributes: [NSObject : AnyObject]!)