[Adium-devl] ESAddressBookPlugin personForListObject selector not found error
Evan Schoenberg
evan.s at dreskin.net
Tue Jan 22 18:08:55 UTC 2008
There's your problem. That's a class method in trunk (1.3svn) but an
instance method in 1.2x and previous versions. Use respondsToSelector:
to cover both cases.
Be sure to reply-to-all when continuing a mailing-list based discussion!
Cheers,
Evan
On Jan 22, 2008, at 11:26 AM, George Armah <armahg at gmail.com> wrote:
> Sorry for omitting that information:
>
> I'm compiling against the latest svn release codebase (thats where I
> get my Adium, Fribdi and AIUtilities Frameworks from)
>
> The version of Adium that my plugin runs in is 1.2.1 (which I
> believe is your latest release).
>
> Hope that helps,
>
> George.
>
> Evan Schoenberg wrote:
>> In what version of Adium is your plugin running? Against what
>> codebase are you compiling it?
>>
>> Cheers,
>> Evan
>>
>> On Jan 22, 2008, at 10:22 AM, George Armah <armahg at gmail.com> wrote:
>>
>>> 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.
>>>
>>> _______________________________________________
>>> Adium-devl mailing list
>>> Adium-devl at adiumx.com
>>> http://adiumx.com/mailman/listinfo/adium-devl_adiumx.com
>>>
>>
>
More information about the devel
mailing list