Overview
Comment: | Remove -[finalize] as ARC will be implemented instead of a GC. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
972a3ee40d5a595d7d8c218ab9cb9b48 |
User & Date: | js on 2011-09-10 18:36:45 |
Other Links: | manifest | tags |
Context
2011-09-10
| ||
19:37 | Make OFStreamObserver an abstract class. check-in: b1ffd7732a user: js tags: trunk | |
18:36 | Remove -[finalize] as ARC will be implemented instead of a GC. check-in: 972a3ee40d user: js tags: trunk | |
17:46 | Add -[stringByReplacingOccurrencesOfString:withString:]. check-in: a8b61d68ae user: js tags: trunk | |
Changes
Modified src/OFAutoreleasePool.h from [490a0d1357] to [0009cc3f48].
︙ | ︙ | |||
69 70 71 72 73 74 75 | /** * \brief Releases all objects in the autorelease pool and deallocates the pool. */ - (void)release; /** | | < < < | 69 70 71 72 73 74 75 76 77 78 79 | /** * \brief Releases all objects in the autorelease pool and deallocates the pool. */ - (void)release; /** * \brief Releases all objects in the autorelease pool and deallocates the pool. */ - (void)drain; @end |
Modified src/OFFile.m from [072b46a026] to [478769a586].
︙ | ︙ | |||
679 680 681 682 683 684 685 | - (void)dealloc { if (closable && fileDescriptor != -1) close(fileDescriptor); [super dealloc]; } | < < < < < < < < | 679 680 681 682 683 684 685 686 687 688 689 690 691 692 | - (void)dealloc { if (closable && fileDescriptor != -1) close(fileDescriptor); [super dealloc]; } @end @implementation OFFileSingleton - initWithPath: (OFString*)path mode: (OFString*)mode { Class c = isa; |
︙ | ︙ |
Modified src/OFObject.h from [8c882f215e] to [786dbd8023].
︙ | ︙ | |||
551 552 553 554 555 556 557 | * \param pointer A pointer to the allocated memory */ - (void)freeMemory: (void*)pointer; /** * \brief Deallocates the object. * | | < < < < < < < < < < < < < | 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 | * \param pointer A pointer to the allocated memory */ - (void)freeMemory: (void*)pointer; /** * \brief Deallocates the object. * * It is automatically called when the retain count reaches zero. * * This also frees all memory in its memory pool. */ - (void)dealloc; @end /** * \brief A protocol for the creation of copies. */ @protocol OFCopying /** |
︙ | ︙ |
Modified src/OFObject.m from [b3a44692ae] to [02fc494c69].
︙ | ︙ | |||
1080 1081 1082 1083 1084 1085 1086 | if (PRE_IVAR->memoryChunks != NULL) free(PRE_IVAR->memoryChunks); free((char*)self - PRE_IVAR_ALIGN); } | < < < < < < < < < < < < < < < < < < < < < < < < < < < | 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 | if (PRE_IVAR->memoryChunks != NULL) free(PRE_IVAR->memoryChunks); free((char*)self - PRE_IVAR_ALIGN); } /* Required to use properties with the Apple runtime */ - copyWithZone: (void*)zone { if (zone != NULL) @throw [OFNotImplementedException newWithClass: isa selector: _cmd]; |
︙ | ︙ |
Modified src/OFPlugin.m from [0f2a144c82] to [ce104d5d58].
︙ | ︙ | |||
80 81 82 83 84 85 86 | { of_plugin_handle_t h = handle; [super dealloc]; dlclose(h); } | < < < < < < < | 80 81 82 83 84 85 86 87 | { of_plugin_handle_t h = handle; [super dealloc]; dlclose(h); } @end |
Modified src/OFStreamObserver.m from [741b860b9a] to [154bacad74].
︙ | ︙ | |||
152 153 154 155 156 157 158 | [FDToStream release]; [FDs release]; #endif [super dealloc]; } | < < < < < < < < | 152 153 154 155 156 157 158 159 160 161 162 163 164 165 | [FDToStream release]; [FDs release]; #endif [super dealloc]; } - (id <OFStreamObserverDelegate>)delegate { OF_GETTER(delegate, YES) } - (void)setDelegate: (id <OFStreamObserverDelegate>)delegate_ { |
︙ | ︙ |
Modified src/OFStreamSocket.m from [73e9748565] to [35ae964d9d].
︙ | ︙ | |||
164 165 166 167 168 169 170 | - (void)dealloc { if (sock != INVALID_SOCKET) [self close]; [super dealloc]; } | < < < < < < < < | 164 165 166 167 168 169 170 171 | - (void)dealloc { if (sock != INVALID_SOCKET) [self close]; [super dealloc]; } @end |
Modified src/OFThread.m from [8d6289db16] to [28529a39cf].
︙ | ︙ | |||
354 355 356 357 358 359 360 | of_thread_detach(thread); [object release]; [returnValue release]; [super dealloc]; } | < < < < < < < < < < < < < < < < | 354 355 356 357 358 359 360 361 362 363 364 365 366 367 | of_thread_detach(thread); [object release]; [returnValue release]; [super dealloc]; } @end @implementation OFTLSKey + (void)initialize { if (self == [OFTLSKey class]) TLSKeys = [[OFList alloc] init]; |
︙ | ︙ | |||
452 453 454 455 456 457 458 | @synchronized (TLSKeys) { [TLSKeys removeListObject: listObject]; } } [super dealloc]; } | < < < < < < < < < < < < < < < < < < | 436 437 438 439 440 441 442 443 444 445 446 447 448 449 | @synchronized (TLSKeys) { [TLSKeys removeListObject: listObject]; } } [super dealloc]; } @end @implementation OFMutex + mutex { return [[[self alloc] init] autorelease]; } |
︙ | ︙ | |||
521 522 523 524 525 526 527 | if (initialized) if (!of_mutex_free(&mutex)) @throw [OFMutexStillLockedException newWithClass: isa mutex: self]; [super dealloc]; } | < < < < < < < < < < | 487 488 489 490 491 492 493 494 495 496 497 498 499 500 | if (initialized) if (!of_mutex_free(&mutex)) @throw [OFMutexStillLockedException newWithClass: isa mutex: self]; [super dealloc]; } @end @implementation OFCondition + condition { return [[[self alloc] init] autorelease]; } |
︙ | ︙ | |||
585 586 587 588 589 590 591 | if (!of_condition_free(&condition)) @throw [OFConditionStillWaitingException newWithClass: isa condition: self]; [super dealloc]; } | < < < < < < < < < < < | 541 542 543 544 545 546 547 548 | if (!of_condition_free(&condition)) @throw [OFConditionStillWaitingException newWithClass: isa condition: self]; [super dealloc]; } @end |