Advertisement
frentzy

ICNS export

Sep 14th, 2018
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.99 KB | None | 0 0
  1. if sender == exportButtonDockICNS {
  2. // print("yes")
  3. // }
  4. // if sender == exportButtonStatusICNS {
  5. // print("no")
  6. // }
  7. // var testIconSet = Iconset()
  8. // let iconExportICNS = ExportImage()
  9. // var iconDirectoryURL = String()
  10. // if sender == exportButtonStatusICNS {
  11. // iconDirectoryURL = NSHomeDirectory() + "/Desktop/IconStatus/"
  12. // } else {
  13. // iconDirectoryURL = NSHomeDirectory() + "/Desktop/IconDock/"
  14. // }
  15. // let sizesArrayICNS = [32:"32.png",64:"64.png",128:"128.png",256:"256.png",512:"512.png",1024:"1024.png"]
  16. // for(itemInt,_) in sizesArrayICNS {
  17. // if sender == exportButtonStatusICNS {
  18. // iconExportICNS.image = imageStatusController.image
  19. // } else if sender == exportButtonDockICNS {
  20. // iconExportICNS.image = imageDockController.image
  21. // }
  22. // iconExportICNS.resize(sizeImage: itemInt/2)
  23. // let iconImage = IconImage.init(iconExportICNS.image, withSize: NSSize(width: itemInt/2, height: itemInt/2), andScale: .scale1x)
  24. // if sender == exportButtonStatusICNS {
  25. // iconExportICNS.image = imageStatusController.image
  26. // } else if sender == exportButtonDockICNS {
  27. // iconExportICNS.image = imageDockController.image
  28. // }
  29. // iconExportICNS.resize(sizeImage: itemInt)
  30. // let iconImage2x = IconImage.init(iconExportICNS.image, withSize: NSSize(width: itemInt, height: itemInt), andScale: .scale2x)
  31. // let filename1x = iconImage!.filename
  32. // let filename2x = iconImage2x!.filename
  33. //
  34. //
  35. // testIconSet[filename1x] = iconImage
  36. // testIconSet[filename2x] = iconImage2x
  37. // }
  38. // do {
  39. // try testIconSet.writeToURL(URL(fileURLWithPath: iconDirectoryURL) )
  40. // }catch _ {
  41. // print("The operation couldn't be executed")
  42. // }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement