Differences From Artifact [4c51fd299e]:
- File
tests/test.m
— part of check-in
[840e61d391]
at
2012-01-30 13:35:50
on branch trunk
— Remove the roster delegate if it gets deallocated.
Maybe it's not a good idea altogether to add/remove the roster
automatically? (user: js, size: 6283) [annotate] [blame] [check-ins using]
To Artifact [1465dc8600]:
- File tests/test.m — part of check-in [a77ad914f2] at 2012-01-30 17:45:43 on branch trunk — Make use of multicast delegates in XMPPRoster. (user: js, size: 6283) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
93 94 95 96 97 98 99 | [[stanza from] fullJID], [[stanza to] fullJID], [stanza type], [stanza ID]] isEqual: @"bob@localhost, alice@localhost, get, 42"])); conn = [[XMPPConnection alloc] init]; roster = [[XMPPRoster alloc] initWithConnection: conn]; [conn addDelegate: self]; | | | 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 | [[stanza from] fullJID], [[stanza to] fullJID], [stanza type], [stanza ID]] isEqual: @"bob@localhost, alice@localhost, get, 42"])); conn = [[XMPPConnection alloc] init]; roster = [[XMPPRoster alloc] initWithConnection: conn]; [conn addDelegate: self]; [roster addDelegate: self]; if ([arguments count] != 3) { of_log(@"Invalid count of command line arguments!"); [OFApplication terminateWithStatus: 1]; } [conn setDomain: [arguments objectAtIndex: 0]]; |
︙ | ︙ |