[Quickies]IRCClient, IRC made easy
Mar 15
Programming Chat, Cocoa, IRC, Open Source No Comments
Have you ever needed/wanted to implement an IRC chat on your Cocoa application? It might be easier than you think! There’s a Cocoa “bridge” for the libircclient library. The lib was written by Georgy Yunaev. Get the files on this link. These few lines of code will make it work:
IRCClientSession *session = [[IRCClientSession alloc] init];
MyIRCClientSessionDelegate *controller = [[MyIRCClientSessionDelegate alloc] init];[session setDelegate:controller];
[controller setSession:session];[session setServer:@"irc.dal.net"];
[session setPort:@"6667"];
[session setNickname:@"test"];
[session setUsername:@"test"];
[session setRealname:@"test"];
[session connect];[session run]; //starts the thread
Twitter
Facebook