]> err.no Git - sope/commitdiff
fixed a warning on OSX 10.4
authorhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Sat, 6 Aug 2005 18:00:02 +0000 (18:00 +0000)
committerhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Sat, 6 Aug 2005 18:00:02 +0000 (18:00 +0000)
git-svn-id: http://svn.opengroupware.org/SOPE/trunk@982 e4a50df8-12e2-0310-a44c-efbce7f8a7e3

sope-gdl1/GDLAccess/ChangeLog
sope-gdl1/GDLAccess/EOAdaptorContext.m
sope-gdl1/GDLAccess/EOFault.m
sope-gdl1/GDLAccess/Version
sope-gdl1/GDLAccess/common.h

index eb7f6f0466229b4102ceb91563f2c5bb51107540..e375d5d4dec5ee722a021bbbee96dc5962506cc8 100644 (file)
@@ -1,3 +1,8 @@
+2005-08-05  Helge Hess  <helge.hess@opengroupware.org>
+
+       * EOAdaptorContext.m, common.h: do not include NSUtilities.h on Cocoa
+         (v4.5.53)
+
 2005-06-02  Helge Hess  <helge.hess@skyrix.com>
 
        * EOJoinTypes.h: properly protect header against multiple inclusion
index 82026ee8046dc933757ac14bc4d6a8df7a304114..6ed80db10593e52c2dcc08ae1efce9cdb0edad2f 100644 (file)
@@ -24,7 +24,6 @@
    59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 */
 
-#import <Foundation/NSUtilities.h>
 #import <Foundation/NSValue.h>
 #import <Foundation/NSArray.h>
 
 
 @implementation EOAdaptorContext
 
-- (id)initWithAdaptor :(EOAdaptor*)_adaptor
-{
-    ASSIGN(self->adaptor, _adaptor);
-    self->channels = [[NSMutableArray alloc] initWithCapacity:2];
-    [self->adaptor contextDidInit:self];
-    return self;
+- (id)initWithAdaptor:(EOAdaptor *)_adaptor {
+  ASSIGN(self->adaptor, _adaptor);
+  self->channels = [[NSMutableArray alloc] initWithCapacity:2];
+  [self->adaptor contextDidInit:self];
+  return self;
 }
 
-- (void)dealloc
-{
-    [self->adaptor contextWillDealloc:self];
-    RELEASE(self->adaptor);
-    RELEASE(self->channels);
-    [super dealloc];
+- (void)dealloc {
+  [self->adaptor contextWillDealloc:self];
+  [self->adaptor  release];
+  [self->channels release];
+  [super dealloc];
 }
 
-- (EOAdaptorChannel*)createAdaptorChannel
-{
-    return AUTORELEASE([[[adaptor adaptorChannelClass] alloc]
-                           initWithAdaptorContext:self]);
+/* channels */
+
+- (EOAdaptorChannel *)createAdaptorChannel {
+  return [[[[adaptor adaptorChannelClass] alloc]
+           initWithAdaptorContext:self] autorelease];
 }
-- (NSArray *)channels
-{
+- (NSArray *)channels {
   NSMutableArray *ma;
   unsigned i, count;
   
   return ma;
 }
 
-- (void)channelDidInit:aChannel
-{
-    [self->channels addObject:[NSValue valueWithNonretainedObject:aChannel]];
+- (void)channelDidInit:aChannel {
+  [self->channels addObject:[NSValue valueWithNonretainedObject:aChannel]];
 }
 
-- (void)channelWillDealloc:(id)aChannel
-{
+- (void)channelWillDealloc:(id)aChannel {
     int i;
     
     for (i = [self->channels count] - 1; i >= 0; i--)
@@ -87,8 +82,7 @@
         }
 }
 
-- (BOOL)hasOpenChannels
-{
+- (BOOL)hasOpenChannels {
     int i, count = [channels count];
 
     for (i = 0; i < count; i++)
@@ -98,8 +92,7 @@
     return NO;
 }
 
-- (BOOL)hasBusyChannels
-{
+- (BOOL)hasBusyChannels {
     int i, count = [channels count];
 
     for (i = 0; i < count; i++)
     return NO;
 }
 
-- (BOOL)beginTransaction
-{
+/* transactions */
+
+- (BOOL)beginTransaction {
     if (transactionNestingLevel && ![self canNestTransactions])
         return NO;
 
     if ([self->channels count] == 0)
         return NO;
 
-    if(delegateRespondsTo.willBegin) {
+    if (delegateRespondsTo.willBegin) {
         EODelegateResponse response = [delegate adaptorContextWillBegin:self];
-        if(response == EODelegateRejects)
+        if (response == EODelegateRejects)
             return NO;
-        else if(response == EODelegateOverrides)
+        else if (response == EODelegateOverrides)
             return YES;
     }
-    if([self primaryBeginTransaction] == NO)
+    if ([self primaryBeginTransaction] == NO)
         return NO;
 
     [self transactionDidBegin];
 
-    if(delegateRespondsTo.didBegin)
+    if (delegateRespondsTo.didBegin)
         [delegate adaptorContextDidBegin:self];
     return YES;
 }
 
-- (BOOL)commitTransaction
-{
-    if(!transactionNestingLevel || [self hasBusyChannels])
+- (BOOL)commitTransaction {
+    if (!transactionNestingLevel || [self hasBusyChannels])
         return NO;
 
     if (![channels count])
         return NO;
 
-    if(delegateRespondsTo.willCommit) {
+    if (delegateRespondsTo.willCommit) {
         EODelegateResponse response = [delegate adaptorContextWillCommit:self];
-        if(response == EODelegateRejects)
+        if (response == EODelegateRejects)
             return NO;
-        else if(response == EODelegateOverrides)
+        else if (response == EODelegateOverrides)
             return YES;
     }
 
-    if([self primaryCommitTransaction] == NO)
+    if ([self primaryCommitTransaction] == NO)
         return NO;
 
     [self transactionDidCommit];
 
-    if(delegateRespondsTo.didCommit)
+    if (delegateRespondsTo.didCommit)
         [delegate adaptorContextDidCommit:self];
     return YES;
 }
 
-- (BOOL)rollbackTransaction
-{
-    if(!transactionNestingLevel || [self hasBusyChannels])
+- (BOOL)rollbackTransaction {
+    if (!transactionNestingLevel || [self hasBusyChannels])
         return NO;
 
     if (![channels count])
         return NO;
 
-    if(delegateRespondsTo.willRollback) {
+    if (delegateRespondsTo.willRollback) {
         EODelegateResponse response
                 = [delegate adaptorContextWillRollback:self];
-        if(response == EODelegateRejects)
+        if (response == EODelegateRejects)
             return NO;
-        else if(response == EODelegateOverrides)
+        else if (response == EODelegateOverrides)
             return YES;
     }
 
-    if([self primaryRollbackTransaction] == NO)
+    if ([self primaryRollbackTransaction] == NO)
         return NO;
 
     [self transactionDidRollback];
 
-    if(delegateRespondsTo.didRollback)
+    if (delegateRespondsTo.didRollback)
         [delegate adaptorContextDidRollback:self];
     return YES;
 }
 
-- (void)transactionDidBegin
-{
+- (void)transactionDidBegin {
     /* Increment the transaction scope */
     transactionNestingLevel++;
 }
 
-- (void)transactionDidCommit
-{
+- (void)transactionDidCommit {
     /* Decrement the transaction scope */
     transactionNestingLevel--;
 }
 
-- (void)transactionDidRollback
-{
+- (void)transactionDidRollback {
     /* Decrement the transaction scope */
     transactionNestingLevel--;
 }
 
+/* delegate */
+
 - (void)setDelegate:(id)_delegate {
     self->delegate = _delegate;
 
     return self->delegate;
 }
 
+/* adaptor */
+
 - (EOAdaptor *)adaptor {
   return self->adaptor;
 }
+
+/* transactions */
+
 - (BOOL)canNestTransactions {
   /* deprecated in WO 4.5 */
   return NO;
index c15e077a896d788e4ee8cf8611c5d55d7984c1dc..8570563d7e2ee75243eab3c9ab181e89b91bca27 100644 (file)
@@ -53,7 +53,7 @@ typedef struct {
 
 @implementation EOFault
 
-+ (void)makeObjectIntoFault:(id)_object withHandler:(EOFaultHandler *)_handler {
++ (void)makeObjectIntoFault:(id)_object withHandler:(EOFaultHandler *)_handler{
   [_handler setTargetClass:[_object class] extraData:((id *)_object)[1]];
 
   ((EOFault *)_object)->isa           = self;
index 063faafb4c27540a9ba0e6b8df743c7cf2c48e11..d124b50f26de387d248a94761fd62b6a22df310b 100644 (file)
@@ -1,3 +1,3 @@
 # version file
 
-SUBMINOR_VERSION:=52
+SUBMINOR_VERSION:=53
index bc474eaaef6501ce33e1b080bfbe86a619e4913d..c0c93cea701ce3b6822f52d4342c4716dedcad00 100644 (file)
 
 #import <Foundation/NSZone.h>
 #import <Foundation/Foundation.h>
-#import <Foundation/NSUtilities.h>
+
+#if !(COCOA_Foundation_LIBRARY || NeXT_Foundation_LIBRARY)
+#  import <Foundation/NSUtilities.h>
+#endif
+
 #import <Foundation/NSObjCRuntime.h>
 
 #if NeXT_RUNTIME || APPLE_RUNTIME