Overview
Comment: | Add +[new] to OFObject for compatibility and convenience. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
0319e89d4bb36fbe930cd1b6c46acfc6 |
User & Date: | js on 2011-07-06 17:44:32 |
Other Links: | manifest | tags |
Context
2011-07-06
| ||
22:32 | Retain blocks instead of copying them. check-in: cbdd00f28d user: js tags: trunk | |
17:44 | Add +[new] to OFObject for compatibility and convenience. check-in: 0319e89d4b user: js tags: trunk | |
2011-07-05
| ||
02:10 | Fix too big allocation size in OFDictionary. check-in: 3825c5fc9a user: js tags: trunk | |
Changes
Modified src/OFObject.h from [59c945a116] to [36dca16f39].
︙ | ︙ | |||
240 241 242 243 244 245 246 | /** * \brief Allocates memory for an instance of the class and sets up the memory * pool for the object. * * This method will never return nil, instead, it will throw an * OFAllocFailedException. * | | > > > > > > | 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 | /** * \brief Allocates memory for an instance of the class and sets up the memory * pool for the object. * * This method will never return nil, instead, it will throw an * OFAllocFailedException. * * \return The allocated object */ + alloc; /** * \brief Allocates memory for a new instance and calls -[init] on it. * \return An allocated and initialized object */ + new; /** * \brief Returns the class. * * \return The class */ + (Class)class; |
︙ | ︙ |
Modified src/OFObject.m from [1d0de2f3be] to [de19156e6d].
︙ | ︙ | |||
215 216 217 218 219 220 221 222 223 224 225 226 227 228 | last = construct; } else break; } return instance; } + (Class)class { return self; } + (OFString*)className | > > > > > | 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 | last = construct; } else break; } return instance; } + new { return [[self alloc] init]; } + (Class)class { return self; } + (OFString*)className |
︙ | ︙ |