loading...
Cover image for Day 13: Swift macOS password manager for people who hate the cloud

Day 13: Swift macOS password manager for people who hate the cloud

swlkr profile image Sean Walker ・2 min read

Making a swift MacOS password manager for people who hate the cloud (32 Part Series)

1) Day 1: Making a swift macOS password manager for people who hate the cloud 2) Day 2: Making a swift macOS password manager for people who hate the cloud 3 ... 30 3) Day 3: Making a swift macOS password manager for people who hate the cloud 4) Day 4: Making a swift macOS password manager for people who hate the cloud 5) Day 5: Making a swift macOS password manager for people who hate the cloud 6) Day 6: Making a swift macOS password manager for people who hate the cloud 7) Day 7: Making a swift macOS password manager for people who hate the cloud 8) Day 8: Making a swift MacOS password manager for people who hate the cloud 9) Day 9: Making a swift macOS password manager for people who hate the cloud 10) Day 10: Making a swift macOS password manager for people who hate the cloud 11) Day 11: Making a swift macOS password manager for people who hate the cloud 12) Day 12: Swift macOS password manager for people who hate the cloud 13) Day 13: Swift macOS password manager for people who hate the cloud 14) Day 14: Swift macOS password manager for people who hate the cloud 15) Day 15: Swift macOS password manager for people who hate the cloud 16) Day 16: Swift macOS password manager for people who hate the cloud 17) Day 17: Swift macOS password manager for people who hate the cloud 18) Day 18: Swift macOS password manager for people who hate the cloud 19) Day 19: Swift macOS password manager for people who hate the cloud 20) Day 20: Swift macOS password manager for people who hate the cloud 21) Day 21: Swift macOS password manager for people who hate the cloud 22) Day 22: Swift macOS password manager for people who hate the cloud 23) Day 23: Swift macOS password manager for people who hate the cloud 24) Day 24: Swift macOS password manager for people who hate the cloud 25) Day 25: Swift macOS password manager for people who hate the cloud 26) Day 26: Swift macOS password manager for people who hate the cloud 27) Day 27: Swift macOS password manager for people who hate the cloud 28) Day 28: Swift macOS password manager for people who hate the cloud 29) Day 29: Swift macOS password manager for people who hate the cloud 30) Day 30: Swift macOS password manager for people who hate the cloud 31) Day 31: Swift macOS password manager for people who hate the cloud 32) How did my password manager do after launch?

<- For Day 12 go here

πŸ“… 01/13/2019
πŸš€ 17 days until launch
πŸ”₯ 12 day streak
πŸ’° $4.99 price (this keeps changing)
πŸ€‘ $0 revenue
πŸ“ˆ 0 customers
⌚️ 8.5 hours spent
πŸ’» 19 files changed, 1068 insertions(+), 170 deletions(-)
🏁 Today's goals: Generate strong passwords

10:57 AM
Finally get around to stop consuming stuff on the twitter/youtube/hacker news and start working on this thing.

11:39 AM
Took me longer than it should, but I figured out how to get an NSSlider working in conjunction with a random string function and the password field. It's a pretty cool effect for not that much work: ~50 minutes. Take a look

Here's the code I mostly copy and pasted to get it working:

    @IBOutlet weak var passwordLengthSlider: NSSlider!
    @IBOutlet weak var passwordLengthLabel: NSTextField!

    func randomString(_ length: Int) -> String {
        let values = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
        return String((0...length-1).map{ _ in values.randomElement()! })
    }

    @IBAction func passwordLengthChanged(_ sender: NSSlider) {
        let passwordLength = passwordLengthSlider.integerValue
        let password = randomString(passwordLength)
        passwordLengthLabel.stringValue = "\(passwordLength)"
        passwordTextField.stringValue = password
    }

An app dev's job is kind of like a DJ or if you want to get classy, a composer. You do have to do things yourself and come up with bits of originality here or there, but it's mostly remixing and a lot of trial and error. Also the thing that took me the longest is in the xib (or storyboard or whatever apple's calling it this year) you have to check "Continuous mode"

I went searching around for a longer than I care to admit and then finally just decided to start trying random things and that was the thing that worked. I should keep going but I've got other things to do today. I might be back later, but I'll definitely be back tomorrow morning, 6 AM mountain time… hopefully.

Making a swift MacOS password manager for people who hate the cloud (32 Part Series)

1) Day 1: Making a swift macOS password manager for people who hate the cloud 2) Day 2: Making a swift macOS password manager for people who hate the cloud 3 ... 30 3) Day 3: Making a swift macOS password manager for people who hate the cloud 4) Day 4: Making a swift macOS password manager for people who hate the cloud 5) Day 5: Making a swift macOS password manager for people who hate the cloud 6) Day 6: Making a swift macOS password manager for people who hate the cloud 7) Day 7: Making a swift macOS password manager for people who hate the cloud 8) Day 8: Making a swift MacOS password manager for people who hate the cloud 9) Day 9: Making a swift macOS password manager for people who hate the cloud 10) Day 10: Making a swift macOS password manager for people who hate the cloud 11) Day 11: Making a swift macOS password manager for people who hate the cloud 12) Day 12: Swift macOS password manager for people who hate the cloud 13) Day 13: Swift macOS password manager for people who hate the cloud 14) Day 14: Swift macOS password manager for people who hate the cloud 15) Day 15: Swift macOS password manager for people who hate the cloud 16) Day 16: Swift macOS password manager for people who hate the cloud 17) Day 17: Swift macOS password manager for people who hate the cloud 18) Day 18: Swift macOS password manager for people who hate the cloud 19) Day 19: Swift macOS password manager for people who hate the cloud 20) Day 20: Swift macOS password manager for people who hate the cloud 21) Day 21: Swift macOS password manager for people who hate the cloud 22) Day 22: Swift macOS password manager for people who hate the cloud 23) Day 23: Swift macOS password manager for people who hate the cloud 24) Day 24: Swift macOS password manager for people who hate the cloud 25) Day 25: Swift macOS password manager for people who hate the cloud 26) Day 26: Swift macOS password manager for people who hate the cloud 27) Day 27: Swift macOS password manager for people who hate the cloud 28) Day 28: Swift macOS password manager for people who hate the cloud 29) Day 29: Swift macOS password manager for people who hate the cloud 30) Day 30: Swift macOS password manager for people who hate the cloud 31) Day 31: Swift macOS password manager for people who hate the cloud 32) How did my password manager do after launch?

Posted on by:

swlkr profile

Sean Walker

@swlkr

Takes hikes πŸ” Makes sites πŸ‘¨β€πŸ’»

Discussion

markdown guide