- ui = [[JubGtkUI alloc] initWithConnection: connection];
- rosterDelegate = [ui rosterDelegate];
-
- [connection addDelegate: rosterDelegate];
-
- roster = [[XMPPRoster alloc] initWithConnection: connection];
- [roster addDelegate: rosterDelegate];
- [roster addDelegate: self];
-
- [connection asyncConnectAndHandle];