Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if sender == exportButtonDockICNS {
- // print("yes")
- // }
- // if sender == exportButtonStatusICNS {
- // print("no")
- // }
- // var testIconSet = Iconset()
- // let iconExportICNS = ExportImage()
- // var iconDirectoryURL = String()
- // if sender == exportButtonStatusICNS {
- // iconDirectoryURL = NSHomeDirectory() + "/Desktop/IconStatus/"
- // } else {
- // iconDirectoryURL = NSHomeDirectory() + "/Desktop/IconDock/"
- // }
- // let sizesArrayICNS = [32:"32.png",64:"64.png",128:"128.png",256:"256.png",512:"512.png",1024:"1024.png"]
- // for(itemInt,_) in sizesArrayICNS {
- // if sender == exportButtonStatusICNS {
- // iconExportICNS.image = imageStatusController.image
- // } else if sender == exportButtonDockICNS {
- // iconExportICNS.image = imageDockController.image
- // }
- // iconExportICNS.resize(sizeImage: itemInt/2)
- // let iconImage = IconImage.init(iconExportICNS.image, withSize: NSSize(width: itemInt/2, height: itemInt/2), andScale: .scale1x)
- // if sender == exportButtonStatusICNS {
- // iconExportICNS.image = imageStatusController.image
- // } else if sender == exportButtonDockICNS {
- // iconExportICNS.image = imageDockController.image
- // }
- // iconExportICNS.resize(sizeImage: itemInt)
- // let iconImage2x = IconImage.init(iconExportICNS.image, withSize: NSSize(width: itemInt, height: itemInt), andScale: .scale2x)
- // let filename1x = iconImage!.filename
- // let filename2x = iconImage2x!.filename
- //
- //
- // testIconSet[filename1x] = iconImage
- // testIconSet[filename2x] = iconImage2x
- // }
- // do {
- // try testIconSet.writeToURL(URL(fileURLWithPath: iconDirectoryURL) )
- // }catch _ {
- // print("The operation couldn't be executed")
- // }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement