mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 09:02:01 +00:00
Change finalization to match MacOS-X
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27581 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d304d9ee34
commit
f8441e1092
22 changed files with 116 additions and 95 deletions
|
@ -171,10 +171,13 @@ extern "C" {
|
|||
Class isa;
|
||||
}
|
||||
|
||||
#if OS_API_VERSION(GS_API_NONE, GS_API_NONE)
|
||||
#if GS_WITH_GC
|
||||
+ (BOOL) requiresTypedMemory;
|
||||
#endif
|
||||
#if OS_API_VERSION(MAC_OS_X_VERSION_10_5, GS_API_LATEST)
|
||||
/** On a system which performs garbage collection, you should implement
|
||||
* this method to execute code when the receiver is collected.<br />
|
||||
* You must not call this method yourself (except when a subclass
|
||||
* calls the superclass method within its own implementation).
|
||||
*/
|
||||
- (void) finalize;
|
||||
#endif
|
||||
|
||||
#if OS_API_VERSION(GS_API_MACOSX, GS_API_LATEST)
|
||||
|
@ -364,18 +367,6 @@ GS_EXPORT NSRecursiveLock *gnustep_global_lock;
|
|||
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Protocol for garbage collection finalization - same as libFoundation
|
||||
* for compatibility.
|
||||
*/
|
||||
@protocol GCFinalization
|
||||
/**
|
||||
* Called before receiver is deallocated by garbage collector. If you want
|
||||
* to do anything special before [NSObject -dealloc] is called, do it here.
|
||||
*/
|
||||
- (void) gcFinalize;
|
||||
@end
|
||||
|
||||
#import <Foundation/NSDate.h>
|
||||
/**
|
||||
* Declares some methods for sending messages to self after a fixed delay.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue