Skip to content

Commit

Permalink
Merge pull request #44 from flexzuu/patch-1
Browse files Browse the repository at this point in the history
Remove objc comment from NSPasteboard
  • Loading branch information
progrium authored Apr 13, 2021
2 parents af250a0 + dcf63ad commit b1e02b0
Showing 1 changed file with 1 addition and 31 deletions.
32 changes: 1 addition & 31 deletions cocoa/NSPasteboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,37 +9,7 @@ import (
// https://developer.apple.com/documentation/appkit/nspasteboardtype?language=objc
type NSPasteboardType string

/*
Code to get the values for those constants:
```objc
#import <Foundation/Foundation.h>
#import <AppKit/NSPasteboard.h>
int main(int argc, const char * argv[]) {
@autoreleasepool {
NSLog(@"NSPasteboardTypeURL:%@", NSPasteboardTypeURL);
NSLog(@"NSPasteboardTypeColor:%@", NSPasteboardTypeColor);
NSLog(@"NSPasteboardTypeFileURL:%@", NSPasteboardTypeFileURL);
NSLog(@"NSPasteboardTypeFont:%@", NSPasteboardTypeFont);
NSLog(@"NSPasteboardTypeHTML:%@", NSPasteboardTypeHTML);
NSLog(@"NSPasteboardTypeMultipleTextSelection:%@", NSPasteboardTypeMultipleTextSelection);
NSLog(@"NSPasteboardTypePDF:%@", NSPasteboardTypePDF);
NSLog(@"NSPasteboardTypePNG:%@", NSPasteboardTypePNG);
NSLog(@"NSPasteboardTypeRTF:%@", NSPasteboardTypeRTF);
NSLog(@"NSPasteboardTypeRTFD:%@", NSPasteboardTypeRTFD);
NSLog(@"NSPasteboardTypeRuler:%@", NSPasteboardTypeRuler);
NSLog(@"NSPasteboardTypeSound:%@", NSPasteboardTypeSound);
NSLog(@"NSPasteboardTypeString:%@", NSPasteboardTypeString);
NSLog(@"NSPasteboardTypeTabularText:%@", NSPasteboardTypeTabularText);
NSLog(@"NSPasteboardTypeTextFinderOptions:%@", NSPasteboardTypeTextFinderOptions);
NSLog(@"NSPasteboardTypeTIFF:%@", NSPasteboardTypeTIFF);
}
return 0;
}
```
*/

// check https://github.com/progrium/macdriver/wiki/How-to-pull-enum-constants for example on how to get these values from objc
const (
// NSPasteboardTypeURL holds URL data for one file or resource.
NSPasteboardTypeURL = NSPasteboardType("public.url")
Expand Down

0 comments on commit b1e02b0

Please sign in to comment.