Index: src/XMPPExceptions.h ================================================================== --- src/XMPPExceptions.h +++ src/XMPPExceptions.h @@ -33,11 +33,11 @@ XMPPConnection *_connection; } #ifdef OF_HAVE_PROPERTIES /// \brief The connection the exception relates to -@property (readonly, assign) XMPPConnection *connection; +@property (readonly, retain) XMPPConnection *connection; #endif /** * \brief Creates a new XMPPException. * @@ -67,13 +67,13 @@ OFString *_condition, *_reason; } #ifdef OF_HAVE_PROPERTIES /// \brief The defined error condition specified by the stream error -@property (readonly, assign) OFString *condition; +@property (readonly, copy) OFString *condition; /// \brief The descriptive free-form text specified by the stream error -@property (readonly, assign) OFString *reason; +@property (readonly, copy) OFString *reason; #endif /** * \brief Creates a new XMPPStreamErrorException. * @@ -111,13 +111,13 @@ OFString *_profile, *_string; } #ifdef OF_HAVE_PROPERTIES /// \brief The name of the stringprep profile that did not apply -@property (readonly, assign) OFString *profile; +@property (readonly, copy) OFString *profile; /// \brief The string that failed the stringprep profile -@property (readonly, assign) OFString *string; +@property (readonly, copy) OFString *string; #endif /** * \brief Creates a new XMPPStringPrepFailedException. * @@ -154,13 +154,13 @@ OFString *_operation, *_string; } #ifdef OF_HAVE_PROPERTIES /// \brief The IDNA translation operation which failed -@property (readonly, assign) OFString *operation; +@property (readonly, copy) OFString *operation; /// \brief The string that could not be translated -@property (readonly, assign) OFString *string; +@property (readonly, copy) OFString *string; #endif /** * \brief Creates a new XMPPIDNATranslationFailedException. * @@ -197,11 +197,11 @@ OFString *_reason; } #ifdef OF_HAVE_PROPERTIES /// \brief The reason the authentication failed -@property (readonly, assign) OFString *reason; +@property (readonly, copy) OFString *reason; #endif /** * \brief Creates a new XMPPAuthFailedException. * Index: src/XMPPExceptions.m ================================================================== --- src/XMPPExceptions.m +++ src/XMPPExceptions.m @@ -68,11 +68,11 @@ [super dealloc]; } - (XMPPConnection*)connection { - OF_GETTER(_connection, false) + OF_GETTER(_connection, true) } @end @implementation XMPPStreamErrorException + (instancetype)exceptionWithConnection: (XMPPConnection*)connection @@ -127,16 +127,16 @@ @"Got stream error: %@. Reason: %@!", _condition, _reason]; } - (OFString*)condition { - OF_GETTER(_condition, false) + OF_GETTER(_condition, true) } - (OFString*)reason { - OF_GETTER(_reason, false) + OF_GETTER(_reason, true) } @end @implementation XMPPStringPrepFailedException + (instancetype)exceptionWithConnection: (XMPPConnection*)connection @@ -192,16 +192,16 @@ _profile, _string]; } - (OFString*)profile { - OF_GETTER(_profile, false) + OF_GETTER(_profile, true) } - (OFString*)string { - OF_GETTER(_string, false) + OF_GETTER(_string, true) } @end @implementation XMPPIDNATranslationFailedException + (instancetype)exceptionWithConnection: (XMPPConnection*)connection @@ -256,16 +256,16 @@ @"IDNA operation %@ failed on string '%@'!", _operation, _string]; } - (OFString*)operation { - OF_GETTER(_operation, false) + OF_GETTER(_operation, true) } - (OFString*)string { - OF_GETTER(_string, false) + OF_GETTER(_string, true) } @end @implementation XMPPAuthFailedException + (instancetype)exceptionWithConnection: (XMPPConnection*)connection @@ -315,8 +315,8 @@ @"Authentication failed. Reason: %@!", _reason]; } - (OFString*)reason { - OF_GETTER(_reason, false) + OF_GETTER(_reason, true) } @end