Index: src/XMPPConnection.m ================================================================== --- src/XMPPConnection.m +++ src/XMPPConnection.m @@ -370,11 +370,12 @@ [_socket asyncReadIntoBuffer: buffer length: BUFFER_LENGTH target: self selector: @selector(stream:didReadIntoBuffer:length: - exception:)]; + exception:) + context: nil]; } - (void)asyncConnectAndHandle { void *pool = objc_autoreleasePoolPush(); @@ -458,11 +459,12 @@ [_socket asyncReadIntoBuffer: buffer length: BUFFER_LENGTH target: self selector: @selector(stream: didReadIntoBuffer:length: - exception:)]; + exception:) + context: nil]; return false; } return true; Index: src/XMPPDiscoIdentity.m ================================================================== --- src/XMPPDiscoIdentity.m +++ src/XMPPDiscoIdentity.m @@ -127,11 +127,11 @@ of_comparison_result_t typeResult; if (object == self) return OF_ORDERED_SAME; - if (![object isKindOfClass: [XMPPDiscoIdentity class]]) + if (![(id)object isKindOfClass: [XMPPDiscoIdentity class]]) @throw [OFInvalidArgumentException exception]; identity = (XMPPDiscoIdentity *)object; categoryResult = [_category compare: identity->_category]; Index: src/XMPPPresence.m ================================================================== --- src/XMPPPresence.m +++ src/XMPPPresence.m @@ -216,11 +216,11 @@ of_comparison_result_t priorityOrder; if (object == self) return OF_ORDERED_SAME; - if (![object isKindOfClass: [XMPPPresence class]]) + if (![(id)object isKindOfClass: [XMPPPresence class]]) @throw [OFInvalidArgumentException exception]; otherPresence = (XMPPPresence *)object; otherPriority = [otherPresence priority]; if (otherPriority == nil)