Author: mlytwyn
Date: Mon Apr 18 16:53:58 2016
New Revision: 39678

URL: http://svn.gna.org/viewcvs/gnustep?rev=39678&view=rev
Log:
Property autosynthesize not working with our clang versions???

Modified:
    
libs/base/branches/gnustep_testplant_branch/Headers/Foundation/NSUserNotification.h
    libs/base/branches/gnustep_testplant_branch/Source/NSUserNotification.m

Modified: 
libs/base/branches/gnustep_testplant_branch/Headers/Foundation/NSUserNotification.h
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/base/branches/gnustep_testplant_branch/Headers/Foundation/NSUserNotification.h?rev=39678&r1=39677&r2=39678&view=diff
==============================================================================
--- 
libs/base/branches/gnustep_testplant_branch/Headers/Foundation/NSUserNotification.h
 (original)
+++ 
libs/base/branches/gnustep_testplant_branch/Headers/Foundation/NSUserNotification.h
 Mon Apr 18 16:53:58 2016
@@ -25,6 +25,8 @@
 #ifndef __NSUserNotification_h_INCLUDE
 #define __NSUserNotification_h_INCLUDE
 
+#define NSUserNotification_IVARS 1
+#define NSUserNotificationCenter_IVARS 1
 #import        <GNUstepBase/GSVersionMacros.h>
 
 #if OS_API_VERSION(MAC_OS_X_VERSION_10_8,GS_API_LATEST)
@@ -59,6 +61,26 @@
 #if    GS_EXPOSE(NSUserNotification)
   @public
   id _uniqueId;
+  NSString *title;
+  NSString *subtitle;
+  NSString *informativeText;
+  NSString *actionButtonTitle;
+  NSDictionary *userInfo;
+  NSDate *deliveryDate;
+  NSTimeZone *deliveryTimeZone;
+  NSDateComponents *deliveryRepeatInterval;
+  NSDate *actualDeliveryDate;
+  BOOL presented;
+  BOOL remote;
+  NSString *soundName;
+  BOOL hasActionButton;
+  NSUserNotificationActivationType activationType;
+  NSString *otherButtonTitle;
+  NSString *identifier;
+  NSImage *contentImage;
+  BOOL hasReplyButton;
+  NSString *responsePlaceholder;
+  NSAttributedString *response;
 #endif
 }
 
@@ -98,6 +120,7 @@
 #if    GS_EXPOSE(NSUserNotificationCenter)
   NSMutableArray *_scheduledNotifications;
   NSMutableArray *_deliveredNotifications;
+  id <NSUserNotificationCenterDelegate> _delegate;
 #endif
 }
 

Modified: 
libs/base/branches/gnustep_testplant_branch/Source/NSUserNotification.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/base/branches/gnustep_testplant_branch/Source/NSUserNotification.m?rev=39678&r1=39677&r2=39678&view=diff
==============================================================================
--- libs/base/branches/gnustep_testplant_branch/Source/NSUserNotification.m     
(original)
+++ libs/base/branches/gnustep_testplant_branch/Source/NSUserNotification.m     
Mon Apr 18 16:53:58 2016
@@ -49,6 +49,27 @@
 @end
 
 @implementation NSUserNotification
+
+@synthesize title;
+@synthesize subtitle;
+@synthesize informativeText;
+@synthesize actionButtonTitle;
+@synthesize userInfo;
+@synthesize deliveryDate;
+@synthesize deliveryTimeZone;
+@synthesize deliveryRepeatInterval;
+@synthesize actualDeliveryDate;
+@synthesize presented;
+@synthesize remote;
+@synthesize soundName;
+@synthesize hasActionButton;
+@synthesize activationType;
+@synthesize otherButtonTitle;
+@synthesize identifier;
+@synthesize contentImage;
+@synthesize hasReplyButton;
+@synthesize responsePlaceholder;
+@synthesize response;
 
 - (id) init
 {
@@ -104,17 +125,24 @@
 
 static NSUserNotificationCenter *defaultUserNotificationCenter = nil;
 
+@synthesize scheduledNotifications = _scheduledNotifications;
+@synthesize deliveredNotifications = _deliveredNotifications;
+@synthesize delegate = _delegate;
+
 + (Class) defaultUserNotificationCenterClass
 {
   NSBundle *bundle = [NSBundle bundleForClass: [self class]];
   NSString *bundlePath = [bundle pathForResource: @"NSUserNotification"
                                           ofType: @"bundle"
                                      inDirectory: nil];
+  NSLog(@"%s:bundle path: %@", __PRETTY_FUNCTION__, bundlePath);
   if (bundlePath)
     {
       bundle = [NSBundle bundleWithPath: bundlePath];
+      NSLog(@"%s:bundle: %@", __PRETTY_FUNCTION__, bundle);
       if (bundle)
         {
+          NSLog(@"%s:principal class: %@", __PRETTY_FUNCTION__, [bundle 
principalClass]);
           return [bundle principalClass];
         }
     }
@@ -128,6 +156,7 @@
 
 + (void) initialize
 {
+  NSLog(@"%s:", __PRETTY_FUNCTION__);
   if ([NSUserNotificationCenter class] == self)
     {
       Class uncClass = [self defaultUserNotificationCenterClass];


_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to