Skip to content

Commit

Permalink
NSUserNotification and related classes
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Hyatt committed Jan 16, 2019
1 parent 6f6492b commit 3728924
Show file tree
Hide file tree
Showing 6 changed files with 80 additions and 23 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,6 @@ set(foundation_sources
src/NSURLDownload.m
src/NSXPCConnection.m
src/NSAppleEventManager.m
src/NSUserNotificationCenter.m
src/NSDateComponentsFormatter.m
src/NSMeasurementFormatter.m
src/NSAppleScript.m
Expand All @@ -226,6 +225,7 @@ set(foundation_sources
src/NSScriptObjectSpecifiers.m
src/NSScriptCommand.m
src/NSScriptCommandDescription.m
src/NSUserNotification.m
)

# Includes ObjC headers -> must be compiled as ObjC
Expand Down
1 change: 0 additions & 1 deletion include/Foundation/Foundation.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@
#import <Foundation/NSXMLNodeOptions.h>
#import <Foundation/NSURLDownload.h>
#import <Foundation/NSURLHandle.h>
#import <Foundation/NSUserNotificationCenter.h>

#endif

Expand Down
35 changes: 34 additions & 1 deletion include/Foundation/NSUserNotification.h
Original file line number Diff line number Diff line change
@@ -1 +1,34 @@
// TODO: NSUserNotification
/*
This file is part of Darling.
Copyright (C) 2019 Lubos Dolezel
Darling is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Darling is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Darling. If not, see <http://www.gnu.org/licenses/>.
*/

#import <Foundation/NSString.h>

@interface NSUserNotification : NSObject <NSCopying>
@end

@interface NSUserNotificationAction : NSObject <NSCopying>
@end

@interface NSUserNotificationCenter : NSObject
@end

@protocol NSUserNotificationCenterDelegate <NSObject>
@end

FOUNDATION_EXPORT NSString * const NSUserNotificationDefaultSoundName;
5 changes: 0 additions & 5 deletions include/Foundation/NSUserNotificationCenter.h

This file was deleted.

45 changes: 45 additions & 0 deletions src/NSUserNotification.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
/*
This file is part of Darling.
Copyright (C) 2019 Lubos Dolezel
Darling is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Darling is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Darling. If not, see <http://www.gnu.org/licenses/>.
*/

#import <Foundation/NSUserNotification.h>

@implementation NSUserNotification

- (id)copyWithZone:(NSZone *)zone
{
NSLog(@"[NSUserNotification copyWithZone:]");
return nil;
}

@end

@implementation NSUserNotificationAction

- (id)copyWithZone:(NSZone *)zone
{
NSLog(@"[NSUserNotificationAction copyWithZone:]");
return nil;
}

@end

@implementation NSUserNotificationCenter
@end

NSString * const NSUserNotificationDefaultSoundName = @"DefaultSoundName";
15 changes: 0 additions & 15 deletions src/NSUserNotificationCenter.m

This file was deleted.

0 comments on commit 3728924

Please sign in to comment.