Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 0 additions & 61 deletions docs/api/Foundation/NSObjectFlag.xml

This file was deleted.

28 changes: 0 additions & 28 deletions docs/api/Foundation/NSObservedChange.xml

This file was deleted.

2 changes: 1 addition & 1 deletion src/AppKit/NSColor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ public void GetComponents (out nfloat [] components)
/// <summary>To be added.</summary>
/// <returns>To be added.</returns>
/// <remarks>To be added.</remarks>
public override string ToString ()
public override string? ToString ()
{
try {
string name = this.ColorSpaceName;
Expand Down
2 changes: 1 addition & 1 deletion src/CoreBluetooth/CBUUID.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public unsafe bool Equals (CBUUID? obj)
/// <summary>To be added.</summary>
/// <returns>To be added.</returns>
/// <remarks>To be added.</remarks>
public override bool Equals (object obj)
public override bool Equals (object? obj)
{
return base.Equals (obj);
}
Expand Down
2 changes: 1 addition & 1 deletion src/CoreFoundation/CFException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public static CFException FromCFError (IntPtr cfErrorHandle, bool release)
using (var userInfo = new NSDictionary (cfUserInfo)) {
foreach (var i in userInfo) {
if (i.Key is not null)
e.Data.Add (i.Key.ToString (), i.Value?.ToString ());
e.Data.Add (i.Key.ToString () ?? "", i.Value?.ToString () ?? "");
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/CoreImage/CIDetectorOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,19 +89,19 @@ internal NSDictionary ToDictionary ()
// Tracking exists only in iOS6+, before this the field is null (and would throw if used)
if (CIDetector.Tracking is not null && TrackingEnabled is not null) {
keys.Add (CIDetector.Tracking);
values.Add (NSObject.FromObject (TrackingEnabled.Value));
values.Add (NSObject.FromObject (TrackingEnabled.Value)!);
}

// EyeBlink exists only in iOS7+, before this the field is null (and would throw if used)
if (CIDetector.EyeBlink is not null && EyeBlink is not null) {
keys.Add (CIDetector.EyeBlink);
values.Add (NSObject.FromObject (EyeBlink.Value));
values.Add (NSObject.FromObject (EyeBlink.Value)!);
}

// Smile exists only in iOS7+, before this the field is null (and would throw if used)
if (CIDetector.Smile is not null && Smile is not null) {
keys.Add (CIDetector.Smile);
values.Add (NSObject.FromObject (Smile.Value));
values.Add (NSObject.FromObject (Smile.Value)!);
}
// AspectRation exists only in iOS8+, before this the field is null (and would throw if used)
if (CIDetector.AspectRatio is not null && AspectRatio is not null) {
Expand Down
2 changes: 1 addition & 1 deletion src/Foundation/DictionaryContainer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ protected void SetArrayValue<T> (NSString key, T []? values)
if (NullCheckObjectAndRemoveKey (key, values)) {
var nsValues = new NSObject [values.Length];
for (var i = 0; i < values.Length; i++)
nsValues [i] = NSObject.FromObject (values [i]);
nsValues [i] = NSObject.FromObject (values [i])!;
Dictionary [key] = NSArray.FromNSObjects (nsValues);
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/Foundation/NSAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ public NSActionDispatcher (Action action)
[Register ("__MonoMac_NSSynchronizationContextDispatcher")]
internal sealed class NSSynchronizationContextDispatcher : NSDispatcher {
readonly SendOrPostCallback d;
readonly object state;
readonly object? state;

public NSSynchronizationContextDispatcher (SendOrPostCallback d, object state)
public NSSynchronizationContextDispatcher (SendOrPostCallback d, object? state)
{
if (d is null)
throw new ArgumentNullException (nameof (d));
Expand Down Expand Up @@ -149,7 +149,7 @@ internal sealed class NSAsyncSynchronizationContextDispatcher : NSAsyncDispatche
SendOrPostCallback? d;
object? state;

public NSAsyncSynchronizationContextDispatcher (SendOrPostCallback d, object state)
public NSAsyncSynchronizationContextDispatcher (SendOrPostCallback d, object? state)
{
if (d is null)
throw new ArgumentNullException (nameof (d));
Expand Down
Loading
Loading