-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed login window size and background image
- Loading branch information
Showing
7 changed files
with
91 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// | ||
// UIImage+String.swift | ||
// XCreds | ||
// | ||
// Created by Timothy Perfitt on 2/23/23. | ||
// | ||
|
||
|
||
import AppKit | ||
extension NSImage { | ||
|
||
static func imageFromPathOrURL(pathURLString:String) -> NSImage? { | ||
var pathURL:URL? | ||
if pathURLString.hasPrefix("file://") == true { | ||
let pathOnly = pathURLString.dropFirst(7) | ||
pathURL = URL(fileURLWithPath: String(pathOnly)) | ||
} | ||
else { | ||
pathURL = URL(string: pathURLString) | ||
|
||
} | ||
|
||
if let pathURL = pathURL { | ||
let image = NSImage.init(contentsOf: pathURL) | ||
|
||
if let image = image { | ||
return image | ||
// image.size=screenRect.size | ||
// backgroundImageView.image = image | ||
} | ||
} | ||
|
||
return nil | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+3.89 KB
(100%)
...deproj/project.xcworkspace/xcuserdata/tperfitt.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.