[Adium-devl] ESAddressBookPlugin personForListObject selector not found error

George Armah armahg at gmail.com
Tue Jan 22 15:22:57 UTC 2008


Hello Adium developers,
I was correcting bugs in my SMS plugin in addition to adding AddressBook 
support when I ran into the following problem.

I call
ABPerson * person = [[ESAddressBookIntegrationPlugin class] 
personForListObject:lo];
in a  - (void)showWindowForContact:(AIListObject *)lo  method
in one of my plugin classes (a subclass of AIWindowController).

The plugin compiles ok. When I initiate the action that should bring up 
the corresponding window,
it does not appear and I get the following console error message:

1/22/08 3:09:12 AM Adium[8626] *** +[ESAddressBookIntegrationPlugin 
personForListObject:]: unrecognized selector sent to class 0x148860


Here is what I have done so far in looking for a solution:
Checked for typos in my code
Double checked that personForListObject is a class method
I also called another class method -  NSLog(@"%@", 
[ESAddressBookIntegrationPlugin propertyFromService:[selectedBuddy 
service]]);
which executed just fine. The propertyFromService method is declared 
right before the personForListObject method.

At this point I am a bit stumped. My next step is to run Adium under 
debug mode and trace out what happens when
the personForListObject method is called. I would like to get the plugin 
complete before school starts so I'm putting the debugging on hold
and directly retrieving a contact's AddressBook information using AB's 
API rather than the plugin's method.

I wanted to bring this problem to your attention since you are probably 
in a better position to figure out  what is going on than
I am.


Thanks for a great app,

George Armah.




More information about the devel mailing list