CIGloom defaults not applied after calling setDefaults

Originator:ktam64
Number:rdar://22390931 Date Originated:22-Aug-2015 09:57 AM
Status:Open Resolved:
Product:OS X Product Version:10.11
Classification:Serious Bug Reproducible:Always
 
Summary:
The following code should not result in an EXC_BAD_INSTRUCTION as I try to force unwrap. inputRadius should be set. Also inputIntensity is set to the wrong value.

import Cocoa
import QuartzCore
import XCPlayground

let theFrame = NSRect(x: 0, y: 0, width: 568, height: 426)

let theFilter = CIFilter(name: "CIGloom")!
theFilter.setDefaults()

let radius = theFilter.valueForKey("inputRadius")!

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!