Skip to content

Commit

Permalink
[AppKit] Add [NullAllowed] to NSWorkspace.SharedWorkspace.OpenFile, f…
Browse files Browse the repository at this point in the history
…ixes bug 60821 (#3036)

https://bugzilla.xamarin.com/show_bug.cgi?id=60821

According to header definitions, `appName` is allowed to be null.

```
- (BOOL)openFile:(NSString *)fullPath withApplication:(nullable NSString *)appName;
- (BOOL)openFile:(NSString *)fullPath withApplication:(nullable NSString *)appName andDeactivate:(BOOL)flag;
```
  • Loading branch information
dalexsoto authored and spouliot committed Nov 24, 2017
1 parent 5a531bc commit 2aa2c59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/appkit.cs
Expand Up @@ -20700,10 +20700,10 @@ interface NSWorkspace : NSWorkspaceAccessibilityExtensions {
bool OpenFile (string fullPath);

[Export ("openFile:withApplication:"), ThreadSafe]
bool OpenFile (string fullPath, string appName);
bool OpenFile (string fullPath, [NullAllowed] string appName);

[Export ("openFile:withApplication:andDeactivate:"), ThreadSafe]
bool OpenFile (string fullPath, string appName, bool deactivate);
bool OpenFile (string fullPath, [NullAllowed] string appName, bool deactivate);

[Export ("openFile:fromImage:at:inView:"), ThreadSafe]
bool OpenFile (string fullPath, NSImage anImage, CGPoint point, NSView aView);
Expand Down

0 comments on commit 2aa2c59

Please sign in to comment.