[Adium-devl] Problems With Storing Info. for Contact
George Armah
armahg at gmail.com
Wed Jun 4 16:40:19 UTC 2008
Hello,
One of the users of my Send Email/SMS plugin reported some problems with
saving
the phone number of a contact via the plugin. I investigated and here is
what I found:
My plugin saves three pieces of information:
#define KEY_GEMAIL @"User Email Address"
#define KEY_SMSPHONENUM @"User SMS"
#define KEY_SERVICEPROVIDER @"User Service Provider"
Saving a contact's email address works fine.
When I save a contact's phone number and service provider, they both
persist so long as adium is running.
After shutting down and restarting adium, the service provider is found
but there is
nothing saved for the phone number value.
Note that this behavior is not consistent. Out of about 20 tries for
about 5 different contacts, one of the
contacts had his phone number information saved permanently (after a
couple of tries).
The plugin source code is available for download from:
http://www.cs.lafayette.edu/%7Earmahg/AGAdiumSMSPluginSourceCode.zip
I also pasted the three .m classes of the plugin using lisppaste
http://paste.lisp.org/display/61710
EmailSMSPreferencesWindowController is the class that does the the saving
of the phone number information. This happens in the method
- (IBAction)smsSaveClicked:(id)sender.
I am really confused as to what could be causing this problem and would
appreciate any
help or pointers as to how to troubleshoot. Could it be that some other
plugin or section
of Adium code is using the same preference key? Where are the user
preference files
for Adium located? Knowing that could help in my troubleshooting.
Thanks in advance for any help,
George.
More information about the devel
mailing list