ObjXMPP  Check-in [134ef1fe81]

Overview
Comment:Implement isEqual: for XMPPJID
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 134ef1fe816794b0511cbde72e138708e474d8306cd128d08026d88945a57930
User & Date: florob@babelmonkeys.de on 2013-01-06 18:42:00
Other Links: manifest | tags
Context
2013-01-08
23:36
Make status/show/priority of XMPPPresence properties check-in: 1d031d8de7 user: florob@babelmonkeys.de tags: trunk
2013-01-06
18:42
Implement isEqual: for XMPPJID check-in: 134ef1fe81 user: florob@babelmonkeys.de tags: trunk
18:38
Fix XMPPJID's domain getter check-in: 300e4b90c0 user: florob@babelmonkeys.de tags: trunk
Changes

Modified src/XMPPJID.m from [c820b9500f] to [9d821ca63e].

221
222
223
224
225
226
227




















228
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248







+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+

		       domain, resource];
}

- (OFString*)description
{
	return [self fullJID];
}

- (BOOL)isEqual: (id)object
{
	XMPPJID *otherJID;

	if (object == self)
		return YES;

	if (![object isKindOfClass: [XMPPJID class]])
		return NO;

	otherJID = object;

	if ([node isEqual: [otherJID node]] &&
	    [domain isEqual: [otherJID domain]] &&
	    [resource isEqual: [otherJID resource]])
		return YES;

	return NO;
}
@end