SECRETSOCKS(Modify “Secret Socks” to remember password)

发布时间:2025-12-10 19:42:19 浏览次数:3

Modify “Secret Socks” to remember password-

Modify “Secret Socks” to remember passwordOnMac,”secretsocks”isgoodchoiceforSSH.butitcannotrememberthepasswordintheview.Asthewriterprovideasourcecodeonhisblog,Idecidetodoitmyown.Iopenedtheprojectandfo…

On Mac, “secret socks” is good choice for SSH. but it can not remember the password in the view. As the writer provide a source code on his blog, I decide to do it my own.

I opened the project and found that the info are saved in an NSDictionary. So it is easy to do. just add 3 line code to do this.

firstly, open SecretSocksController.m. This is main file for this application.

1. add a line in the initial for *dict

2. add a line in loadPrefs functions

3. add a line in savePrefs

second, if you Xcode version is much higher, then you need to change the Base SDK version to 10.7. you can reference this snapshot below.

You can find the latest code in my github page http://billmoling.github.com/secretsocks/

转载于:https://www.cnblogs.com/billmo/archive/2013/01/23/2874016.html

需要做网站?需要网络推广?欢迎咨询客户经理 13272073477