Overview
Comment: | Add warning to doc about collections not retaining and autoreleasing. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
91ccd70c55cd244f12e1fa0116a2e8dd |
User & Date: | js on 2010-08-25 11:22:11 |
Other Links: | manifest | tags |
Context
2010-08-25
| ||
11:33 | -[setObject:forKey:] and -[removeObjectForKey:] now return void. check-in: eea73f8d37 user: js tags: trunk | |
11:22 | Add warning to doc about collections not retaining and autoreleasing. check-in: 91ccd70c55 user: js tags: trunk | |
2010-08-24
| ||
19:37 |
Prevent loss of data due to wrong encoding in -[readLine]. This allows reading again with the correct encoding. check-in: 508399eac1 user: js tags: trunk | |
Changes
Modified src/OFArray.h from [1188c860b8] to [8a7d786fed].
︙ | ︙ | |||
118 119 120 121 122 123 124 125 126 127 128 129 130 131 | /** * \return The objects of the array as a C array */ - (id*)cArray; /** * Returns a specific object of the array. * * \param index The number of the object to return * \return The specified object of the OFArray */ - (id)objectAtIndex: (size_t)index; /** | > > > | 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 | /** * \return The objects of the array as a C array */ - (id*)cArray; /** * Returns a specific object of the array. * * The returned object is <i>not</i> retained and autoreleased for performance * reasons! * * \param index The number of the object to return * \return The specified object of the OFArray */ - (id)objectAtIndex: (size_t)index; /** |
︙ | ︙ | |||
144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 | * \param obj The object whose index is returned * \return The index of the first object that has the same aaddress as * the specified object */ - (size_t)indexOfObjectIdenticalTo: (OFObject*)obj; /** * \return The first object of the array or nil */ - (id)firstObject; /** * \return The last object of the array or nil */ - (id)lastObject; /** * Creates a string by joining all objects of the array. * | > > > > > > > > > > | 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 | * \param obj The object whose index is returned * \return The index of the first object that has the same aaddress as * the specified object */ - (size_t)indexOfObjectIdenticalTo: (OFObject*)obj; /** * Returns the first object of the array or nil. * * The returned object is <i>not</i> retained and autoreleased for performance * reasons! * * \return The first object of the array or nil */ - (id)firstObject; /** * Returns the last object of the array or nil. * * The returned object is <i>not</i> retained and autoreleased for performance * reasons! * * \return The last object of the array or nil */ - (id)lastObject; /** * Creates a string by joining all objects of the array. * |
︙ | ︙ |
Modified src/OFDictionary.h from [a850d7ce1c] to [43cc867a38].
︙ | ︙ | |||
138 139 140 141 142 143 144 145 146 147 148 149 150 151 | * \param args A va_list of the other arguments * \return A new initialized OFDictionary */ - initWithKey: (OFObject <OFCopying>*)first argList: (va_list)args; /** * \param key The key whose object should be returned * \return The object for the given key or nil if the key was not found */ - (id)objectForKey: (OFObject <OFCopying>*)key; /** * \return The number of objects in the dictionary | > > > > > | 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 | * \param args A va_list of the other arguments * \return A new initialized OFDictionary */ - initWithKey: (OFObject <OFCopying>*)first argList: (va_list)args; /** * Returns the object for the given key or nil if the key was not found. * * The returned object is <i>not</i> retained and autoreleased for performance * reasons! * * \param key The key whose object should be returned * \return The object for the given key or nil if the key was not found */ - (id)objectForKey: (OFObject <OFCopying>*)key; /** * \return The number of objects in the dictionary |
︙ | ︙ |
Modified src/OFThread.h from [fb94c5b01e] to [5849ea0fbe].
︙ | ︙ | |||
88 89 90 91 92 93 94 95 96 97 98 99 100 101 | * \return The old object, autoreleased */ + (id)setObject: (OFObject*)obj forTLSKey: (OFTLSKey*)key; /** * Returns the object for the specified Thread Local Storage key. * * \param key The Thread Local Storage key */ + (id)objectForTLSKey: (OFTLSKey*)key; /** * \return The current thread or nil if we are in the main thread | > > > | 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 | * \return The old object, autoreleased */ + (id)setObject: (OFObject*)obj forTLSKey: (OFTLSKey*)key; /** * Returns the object for the specified Thread Local Storage key. * * The returned object is <i>not</i> retained and autoreleased for performance * reasons! * * \param key The Thread Local Storage key */ + (id)objectForTLSKey: (OFTLSKey*)key; /** * \return The current thread or nil if we are in the main thread |
︙ | ︙ |
Modified src/OFThread.m from [ddd40f7181] to [1dfee35b1d].
︙ | ︙ | |||
78 79 80 81 82 83 84 | selector: _cmd]; return [old autorelease]; } + (id)objectForTLSKey: (OFTLSKey*)key { | | | 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 | selector: _cmd]; return [old autorelease]; } + (id)objectForTLSKey: (OFTLSKey*)key { return of_tlskey_get(key->key); } + (OFThread*)currentThread { return of_tlskey_get(thread_self); } |
︙ | ︙ |