UtilityBelt
UtilityBelt copied to clipboard
"Image (URL) to Layer Pattern Fill” needs error checking
Entering a URL for something that can’t be converted to an NSImage will crash Sketch. Not good.
I think the way you’re supposed to do it is checking to see if
var img = [[NSImage alloc] initWithData:imageData]
returns false. But that line crashes Sketch when imageData isn’t actually image data.