Overview
Comment: | Remove the roster delegate if it gets deallocated.
Maybe it's not a good idea altogether to add/remove the roster |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
840e61d391580f3f43c5452ac9479574 |
User & Date: | js on 2012-01-30 13:35:50 |
Other Links: | manifest | tags |
Context
2012-01-30
| ||
17:45 | Make use of multicast delegates in XMPPRoster. check-in: a77ad914f2 user: js tags: trunk | |
13:35 | Remove the roster delegate if it gets deallocated. check-in: 840e61d391 user: js tags: trunk | |
2012-01-29
| ||
23:39 | Document the exceptions check-in: 528b341cdc user: florob@babelmonkeys.de tags: trunk | |
Changes
Modified src/XMPPRoster.m from [c1681b6fa8] to [299be9c4c8].
︙ | ︙ | |||
52 53 54 55 56 57 58 59 60 61 62 | } return self; } - (void)dealloc { [rosterItems release]; [super dealloc]; } | > < | 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | } return self; } - (void)dealloc { [connection removeDelegate: self]; [rosterItems release]; [super dealloc]; } - (OFDictionary*)rosterItems { return [[rosterItems copy] autorelease]; } - (void)requestRoster |
︙ | ︙ |
Modified tests/test.m from [7d5142abf4] to [4c51fd299e].
︙ | ︙ | |||
35 36 37 38 39 40 41 | #import "XMPPRoster.h" @interface AppDelegate: OFObject #ifdef OF_HAVE_OPTIONAL_PROTOCOLS <OFApplicationDelegate, XMPPConnectionDelegate, XMPPRosterDelegate> #endif { | | | 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | #import "XMPPRoster.h" @interface AppDelegate: OFObject #ifdef OF_HAVE_OPTIONAL_PROTOCOLS <OFApplicationDelegate, XMPPConnectionDelegate, XMPPRosterDelegate> #endif { XMPPConnection *conn; XMPPRoster *roster; } @end OF_APPLICATION_DELEGATE(AppDelegate) @implementation AppDelegate |
︙ | ︙ |