File: gcc-synthesize.patch

package info (click to toggle)
gnustep-base 1.31.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 26,580 kB
  • sloc: objc: 239,446; ansic: 36,519; cpp: 122; sh: 112; makefile: 100; xml: 32
file content (102 lines) | stat: -rw-r--r-- 3,041 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
Description: Make NSUserNotification usable with GCC.
Author: Yavor Doganov <yavor@gnu.org>
Forwarded: https://savannah.gnu.org/bugs/?66071
Last-Update: 2025-02-12
---

--- gnustep-base.orig/Source/NSUserNotification.m
+++ gnustep-base/Source/NSUserNotification.m
@@ -38,15 +38,26 @@
 #import "Foundation/NSTimeZone.h"
 
 @interface NSUserNotification ()
-@property (readwrite) NSDate *actualDeliveryDate;
+@property (readwrite, assign) NSDate *actualDeliveryDate;
 @property (readwrite, getter=isPresented) BOOL presented;
 @property (readwrite, getter=isRemote) BOOL remote;
 @property (readwrite) NSUserNotificationActivationType activationType;
-@property (readwrite) NSAttributedString *response;
+@property (readwrite, assign) NSAttributedString *response;
 @end
 
 @implementation NSUserNotification
 
+#if !defined(__clang__)
+@synthesize title, subtitle, informativeText, actionButtonTitle, userInfo;
+@synthesize deliveryDate, deliveryTimeZone, deliveryRepeatInterval;
+@synthesize actualDeliveryDate, presented, remote, soundName;
+@synthesize hasActionButton, activationType, otherButtonTitle;
+#if OS_API_VERSION(MAC_OS_X_VERSION_10_9,GS_API_LATEST)
+@synthesize identifier, contentImage, hasReplyButton;
+@synthesize responsePlaceholder, response;
+#endif
+#endif
+
 - (id) init
 {
   if (nil != (self = [super init]))
@@ -88,7 +99,7 @@
 @end
 
 @interface NSUserNotificationCenter ()
-@property (readwrite) NSArray *deliveredNotifications;
+@property (readwrite, assign) NSArray *deliveredNotifications;
 @end
 
 @interface NSUserNotificationCenter (Private)
@@ -99,6 +110,9 @@
 @end
 
 @implementation NSUserNotificationCenter
+#if !defined(__clang__)
+@synthesize delegate, scheduledNotifications, deliveredNotifications;
+#endif
 
 static NSUserNotificationCenter *defaultUserNotificationCenter = nil;
 
--- gnustep-base.orig/Headers/Foundation/NSUserNotification.h
+++ gnustep-base/Headers/Foundation/NSUserNotification.h
@@ -59,6 +59,31 @@
 #if	GS_EXPOSE(NSUserNotification)
   @public
   id _uniqueId;
+#if !defined(__clang__)
+  @protected
+  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;
+#if OS_API_VERSION(MAC_OS_X_VERSION_10_9,GS_API_LATEST)
+  NSString *identifier;
+  NSImage *contentImage;
+  BOOL hasReplyButton;
+  NSString *responsePlaceholder;
+  NSAttributedString *response;
+#endif
+#endif
 #endif
 }
 
@@ -99,6 +124,11 @@
 #if	GS_EXPOSE(NSUserNotificationCenter)
   NSMutableArray *_scheduledNotifications;
   NSMutableArray *_deliveredNotifications;
+#if !defined(__clang__)
+  id <NSUserNotificationCenterDelegate> delegate;
+  NSArray *scheduledNotifications;
+  NSArray *deliveredNotifications;
+#endif
 #endif
 }