Porting libpurple plugin: newbie question

Matt Meissner meissnem at gmail.com
Wed Nov 4 22:32:58 UTC 2009


Hi,

It would be very helpful for my day job to have SIPE <http://sipe.sf.net/ 
 > in Adium.  So I'm attempting to port it -- never having used Cocoa  
before, there's no better way to learn I guess.

Here's my current state of affairs:
	<http://dl.getdropbox.com/u/535204/pidgin-sipe-1.7.0.zip> (545 KB)
My plugin is in pidgin-sipe-1.7.0/contrib/SIPEAdiumPlugin.  I'm  
building against Adium 1.4b12.

My problem right now is that after adding a SIPE account, Adium  
crashes hard.  Here's what's in system.log:

Nov  1 21:59:12 Scooter [0x0-0x1f06f05].com.adiumX.adiumX[24744]: **  
(process:24744): CRITICAL **: purple_accounts_add: assertion `account ! 
= NULL' failed
Nov  1 21:59:12 Scooter Adium[24744]: Account:
Nov  1 21:59:12 Scooter Adium[24744]: port: 443
Nov  1 21:59:12 Scooter Adium[24744]: server: ‡»ò†<U+F8FF>^G
Nov  1 21:59:15 Scooter com.apple.launchd.peruser.501[748]  
([0x0-0x1f06f05].com.adiumX.adiumX[24744]): Job appears to have  
crashed: Bus error

The Account, port, and server lines are NSLog calls from my code.

I'm at a loss as to how the port number is showing up fine but the  
server is gibberish and the account is blank.  Being new to Cocoa, I'm  
afraid I'm making a pretty newbie mistake but I'm just not sure what  
it is.

Can anyone offer any advice on where I should look -- or any decent  
examples of libpurple protocol plugins that I might be able to use as  
a reference?

Thanks in advance,
Matt

-- 
Matt Meissner
meissnem at gmail.com



-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3368 bytes
Desc: not available
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20091104/34da382f/attachment.p7s>


More information about the devel mailing list