summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatthewsotoudeh <matthewsot@outlook.com>2015-01-24 17:23:26 -0800
committermatthewsotoudeh <matthewsot@outlook.com>2015-01-24 17:23:26 -0800
commitbfd2eab6e904ec09612c14b5a14a68b55d0a55bf (patch)
treeeb09c0afc2f5c9d51620cc14e90d04f325829d28
parent8ada920038b94bc67179087aab71e8b543b40bcb (diff)
Foundation using the new stubgen
-rw-r--r--CocoaSharp/CocoaSharp.sln8
-rw-r--r--CocoaSharp/CoreGraphics/CGFloat.cs8
-rw-r--r--CocoaSharp/CoreGraphics/CGFontIndex.cs8
-rw-r--r--CocoaSharp/CoreGraphics/CGGlyph.cs3
-rw-r--r--CocoaSharp/CoreGraphics/CGVector.cs11
-rw-r--r--CocoaSharp/CoreGraphics/CoreGraphics.csproj7
-rw-r--r--CocoaSharp/Foundation/Constants.cs2
-rw-r--r--CocoaSharp/Foundation/DataTypes.cs1
-rw-r--r--CocoaSharp/Foundation/Foundation.csproj44
-rw-r--r--CocoaSharp/Foundation/Missing.txt2
-rw-r--r--CocoaSharp/Foundation/NSArray.cs2
-rw-r--r--CocoaSharp/Foundation/NSAssertionHandler.cs2
-rw-r--r--CocoaSharp/Foundation/NSAttributedString.cs2
-rw-r--r--CocoaSharp/Foundation/NSAutoreleasePool.cs2
-rw-r--r--CocoaSharp/Foundation/NSBlockOperation.cs2
-rw-r--r--CocoaSharp/Foundation/NSBundle.cs2
-rw-r--r--CocoaSharp/Foundation/NSByteCountFormatter.cs2
-rw-r--r--CocoaSharp/Foundation/NSCache.cs2
-rw-r--r--CocoaSharp/Foundation/NSCachedURLResponse.cs2
-rw-r--r--CocoaSharp/Foundation/NSCalendar.cs2
-rw-r--r--CocoaSharp/Foundation/NSCharacterSet.cs2
-rw-r--r--CocoaSharp/Foundation/NSCoder.cs532
-rw-r--r--CocoaSharp/Foundation/NSComparisonPredicate.cs2
-rw-r--r--CocoaSharp/Foundation/NSCompoundPredicate.cs2
-rw-r--r--CocoaSharp/Foundation/NSCondition.cs2
-rw-r--r--CocoaSharp/Foundation/NSConditionLock.cs2
-rw-r--r--CocoaSharp/Foundation/NSCountedSet.cs2
-rw-r--r--CocoaSharp/Foundation/NSData.cs445
-rw-r--r--CocoaSharp/Foundation/NSDataDetector.cs2
-rw-r--r--CocoaSharp/Foundation/NSDate.cs2
-rw-r--r--CocoaSharp/Foundation/NSDateComponents.cs2
-rw-r--r--CocoaSharp/Foundation/NSDateFormatter.cs2
-rw-r--r--CocoaSharp/Foundation/NSDecimalNumber.cs2
-rw-r--r--CocoaSharp/Foundation/NSDecimalNumberHandler.cs2
-rw-r--r--CocoaSharp/Foundation/NSDictionary.cs2
-rw-r--r--CocoaSharp/Foundation/NSDirectoryEnumerator.cs2
-rw-r--r--CocoaSharp/Foundation/NSEnergyFormatter.cs1
-rw-r--r--CocoaSharp/Foundation/NSEnumerator.cs2
-rw-r--r--CocoaSharp/Foundation/NSError.cs2
-rw-r--r--CocoaSharp/Foundation/NSException.cs2
-rw-r--r--CocoaSharp/Foundation/NSExpression.cs2
-rw-r--r--CocoaSharp/Foundation/NSExtensionContext.cs2
-rw-r--r--CocoaSharp/Foundation/NSExtensionItem.cs2
-rw-r--r--CocoaSharp/Foundation/NSFileAccessIntent.cs2
-rw-r--r--CocoaSharp/Foundation/NSFileCoordinator.cs2
-rw-r--r--CocoaSharp/Foundation/NSFileHandle.cs2
-rw-r--r--CocoaSharp/Foundation/NSFileManager.cs2
-rw-r--r--CocoaSharp/Foundation/NSFileSecurity.cs2
-rw-r--r--CocoaSharp/Foundation/NSFileVersion.cs2
-rw-r--r--CocoaSharp/Foundation/NSFileWrapper.cs2
-rw-r--r--CocoaSharp/Foundation/NSFormatter.cs2
-rw-r--r--CocoaSharp/Foundation/NSHTTPCookie.cs2
-rw-r--r--CocoaSharp/Foundation/NSHTTPCookieStorage.cs2
-rw-r--r--CocoaSharp/Foundation/NSHTTPURLResponse.cs2
-rw-r--r--CocoaSharp/Foundation/NSHashTable.cs2
-rw-r--r--CocoaSharp/Foundation/NSIndexPath.cs2
-rw-r--r--CocoaSharp/Foundation/NSIndexSet.cs2
-rw-r--r--CocoaSharp/Foundation/NSInputStream.cs2
-rw-r--r--CocoaSharp/Foundation/NSInvocation.cs2
-rw-r--r--CocoaSharp/Foundation/NSInvocationOperation.cs2
-rw-r--r--CocoaSharp/Foundation/NSItemProvider.cs2
-rw-r--r--CocoaSharp/Foundation/NSJSONSerialization.cs2
-rw-r--r--CocoaSharp/Foundation/NSKeyedArchiver.cs2
-rw-r--r--CocoaSharp/Foundation/NSKeyedUnarchiver.cs2
-rw-r--r--CocoaSharp/Foundation/NSLengthFormatter.cs1
-rw-r--r--CocoaSharp/Foundation/NSLinguisticTagger.cs2
-rw-r--r--CocoaSharp/Foundation/NSLocale.cs2
-rw-r--r--CocoaSharp/Foundation/NSLock.cs2
-rw-r--r--CocoaSharp/Foundation/NSMachPort.cs2
-rw-r--r--CocoaSharp/Foundation/NSMapTable.cs2
-rw-r--r--CocoaSharp/Foundation/NSMassFormatter.cs1
-rw-r--r--CocoaSharp/Foundation/NSMessagePort.cs2
-rw-r--r--CocoaSharp/Foundation/NSMetadataItem.cs2
-rw-r--r--CocoaSharp/Foundation/NSMetadataQuery.cs2
-rw-r--r--CocoaSharp/Foundation/NSMetadataQueryAttributeValueTuple.cs2
-rw-r--r--CocoaSharp/Foundation/NSMetadataQueryResultGroup.cs2
-rw-r--r--CocoaSharp/Foundation/NSMethodSignature.cs2
-rw-r--r--CocoaSharp/Foundation/NSMutableArray.cs2
-rw-r--r--CocoaSharp/Foundation/NSMutableAttributedString.cs2
-rw-r--r--CocoaSharp/Foundation/NSMutableCharacterSet.cs2
-rw-r--r--CocoaSharp/Foundation/NSMutableData.cs2
-rw-r--r--CocoaSharp/Foundation/NSMutableDictionary.cs2
-rw-r--r--CocoaSharp/Foundation/NSMutableIndexSet.cs2
-rw-r--r--CocoaSharp/Foundation/NSMutableOrderedSet.cs2
-rw-r--r--CocoaSharp/Foundation/NSMutableSet.cs2
-rw-r--r--CocoaSharp/Foundation/NSMutableString.cs2
-rw-r--r--CocoaSharp/Foundation/NSMutableURLRequest.cs2
-rw-r--r--CocoaSharp/Foundation/NSNetService.cs2
-rw-r--r--CocoaSharp/Foundation/NSNetServiceBrowser.cs2
-rw-r--r--CocoaSharp/Foundation/NSNotification.cs2
-rw-r--r--CocoaSharp/Foundation/NSNotificationCenter.cs2
-rw-r--r--CocoaSharp/Foundation/NSNotificationQueue.cs2
-rw-r--r--CocoaSharp/Foundation/NSNull.cs2
-rw-r--r--CocoaSharp/Foundation/NSNumber.cs2
-rw-r--r--CocoaSharp/Foundation/NSNumberFormatter.cs2
-rw-r--r--CocoaSharp/Foundation/NSObject.cs4
-rw-r--r--CocoaSharp/Foundation/NSObjectProtocol.cs6
-rw-r--r--CocoaSharp/Foundation/NSOperation.cs2
-rw-r--r--CocoaSharp/Foundation/NSOperationQueue.cs2
-rw-r--r--CocoaSharp/Foundation/NSOrderedSet.cs2
-rw-r--r--CocoaSharp/Foundation/NSOrthography.cs2
-rw-r--r--CocoaSharp/Foundation/NSOutputStream.cs2
-rw-r--r--CocoaSharp/Foundation/NSPipe.cs2
-rw-r--r--CocoaSharp/Foundation/NSPointerArray.cs2
-rw-r--r--CocoaSharp/Foundation/NSPointerFunctions.cs2
-rw-r--r--CocoaSharp/Foundation/NSPort.cs2
-rw-r--r--CocoaSharp/Foundation/NSPredicate.cs2
-rw-r--r--CocoaSharp/Foundation/NSProcessInfo.cs2
-rw-r--r--CocoaSharp/Foundation/NSProgress.cs2
-rw-r--r--CocoaSharp/Foundation/NSPropertyListSerialization.cs2
-rw-r--r--CocoaSharp/Foundation/NSProxy.cs2
-rw-r--r--CocoaSharp/Foundation/NSPurgeableData.cs2
-rw-r--r--CocoaSharp/Foundation/NSRecursiveLock.cs2
-rw-r--r--CocoaSharp/Foundation/NSRegularExpression.cs2
-rw-r--r--CocoaSharp/Foundation/NSRunLoop.cs2
-rw-r--r--CocoaSharp/Foundation/NSScanner.cs2
-rw-r--r--CocoaSharp/Foundation/NSSet.cs2
-rw-r--r--CocoaSharp/Foundation/NSSortDescriptor.cs2
-rw-r--r--CocoaSharp/Foundation/NSStream.cs2
-rw-r--r--CocoaSharp/Foundation/NSString.cs2
-rw-r--r--CocoaSharp/Foundation/NSTextCheckingResult.cs2
-rw-r--r--CocoaSharp/Foundation/NSThread.cs2
-rw-r--r--CocoaSharp/Foundation/NSTimeZone.cs2
-rw-r--r--CocoaSharp/Foundation/NSTimer.cs2
-rw-r--r--CocoaSharp/Foundation/NSURL.cs2
-rw-r--r--CocoaSharp/Foundation/NSURLAuthenticationChallenge.cs2
-rw-r--r--CocoaSharp/Foundation/NSURLCache.cs2
-rw-r--r--CocoaSharp/Foundation/NSURLComponents.cs2
-rw-r--r--CocoaSharp/Foundation/NSURLConnection.cs2
-rw-r--r--CocoaSharp/Foundation/NSURLCredential.cs2
-rw-r--r--CocoaSharp/Foundation/NSURLCredentialStorage.cs2
-rw-r--r--CocoaSharp/Foundation/NSURLProtectionSpace.cs2
-rw-r--r--CocoaSharp/Foundation/NSURLProtocol.cs2
-rw-r--r--CocoaSharp/Foundation/NSURLQueryItem.cs1
-rw-r--r--CocoaSharp/Foundation/NSURLRequest.cs2
-rw-r--r--CocoaSharp/Foundation/NSURLResponse.cs2
-rw-r--r--CocoaSharp/Foundation/NSURLSession.cs2
-rw-r--r--CocoaSharp/Foundation/NSURLSessionConfiguration.cs2
-rw-r--r--CocoaSharp/Foundation/NSURLSessionDataTask.cs2
-rw-r--r--CocoaSharp/Foundation/NSURLSessionDownloadTask.cs2
-rw-r--r--CocoaSharp/Foundation/NSURLSessionTask.cs2
-rw-r--r--CocoaSharp/Foundation/NSURLSessionUploadTask.cs2
-rw-r--r--CocoaSharp/Foundation/NSUUID.cs2
-rw-r--r--CocoaSharp/Foundation/NSUbiquitousKeyValueStore.cs2
-rw-r--r--CocoaSharp/Foundation/NSUndoManager.cs2
-rw-r--r--CocoaSharp/Foundation/NSUserActivity.cs2
-rw-r--r--CocoaSharp/Foundation/NSUserDefaults.cs2
-rw-r--r--CocoaSharp/Foundation/NSValue.cs200
-rw-r--r--CocoaSharp/Foundation/NSValueTransformer.cs2
-rw-r--r--CocoaSharp/Foundation/NSXMLParser.cs2
-rw-r--r--CocoaSharp/Foundation/ObjectiveC/NSObject.cs293
-rw-r--r--CocoaSharp/Foundation/Protocols/Delegates/NSCacheDelegate.cs2
-rw-r--r--CocoaSharp/Foundation/Protocols/Delegates/NSFileManagerDelegate.cs2
-rw-r--r--CocoaSharp/Foundation/Protocols/Delegates/NSKeyedArchiverDelegate.cs2
-rw-r--r--CocoaSharp/Foundation/Protocols/Delegates/NSKeyedUnarchiverDelegate.cs2
-rw-r--r--CocoaSharp/Foundation/Protocols/Delegates/NSMachPortDelegate.cs2
-rw-r--r--CocoaSharp/Foundation/Protocols/Delegates/NSMetadataQueryDelegate.cs2
-rw-r--r--CocoaSharp/Foundation/Protocols/Delegates/NSNetServiceBrowserDelegate.cs2
-rw-r--r--CocoaSharp/Foundation/Protocols/Delegates/NSNetServiceDelegate.cs2
-rw-r--r--CocoaSharp/Foundation/Protocols/Delegates/NSPortDelegate.cs2
-rw-r--r--CocoaSharp/Foundation/Protocols/Delegates/NSStreamDelegate.cs2
-rw-r--r--CocoaSharp/Foundation/Protocols/Delegates/NSURLConnectionDataDelegate.cs2
-rw-r--r--CocoaSharp/Foundation/Protocols/Delegates/NSURLConnectionDelegate.cs2
-rw-r--r--CocoaSharp/Foundation/Protocols/Delegates/NSURLConnectionDownloadDelegate.cs2
-rw-r--r--CocoaSharp/Foundation/Protocols/Delegates/NSURLSessionDataDelegate.cs2
-rw-r--r--CocoaSharp/Foundation/Protocols/Delegates/NSURLSessionDelegate.cs2
-rw-r--r--CocoaSharp/Foundation/Protocols/Delegates/NSURLSessionDownloadDelegate.cs2
-rw-r--r--CocoaSharp/Foundation/Protocols/Delegates/NSURLSessionTaskDelegate.cs2
-rw-r--r--CocoaSharp/Foundation/Protocols/Delegates/NSUserActivityDelegate.cs2
-rw-r--r--CocoaSharp/Foundation/Protocols/Delegates/NSXMLParserDelegate.cs2
-rw-r--r--CocoaSharp/Foundation/Protocols/NSCoding.cs2
-rw-r--r--CocoaSharp/Foundation/Protocols/NSCopying.cs2
-rw-r--r--CocoaSharp/Foundation/Protocols/NSDecimalNumberBehaviors.cs2
-rw-r--r--CocoaSharp/Foundation/Protocols/NSDiscardableContent.cs2
-rw-r--r--CocoaSharp/Foundation/Protocols/NSErrorRecoveryAttempting.cs2
-rw-r--r--CocoaSharp/Foundation/Protocols/NSExtensionRequestHandling.cs2
-rw-r--r--CocoaSharp/Foundation/Protocols/NSFastEnumeration.cs2
-rw-r--r--CocoaSharp/Foundation/Protocols/NSFilePresenter.cs2
-rw-r--r--CocoaSharp/Foundation/Protocols/NSKeyValueCoding.cs2
-rw-r--r--CocoaSharp/Foundation/Protocols/NSKeyValueObserving.cs2
-rw-r--r--CocoaSharp/Foundation/Protocols/NSLocking.cs2
-rw-r--r--CocoaSharp/Foundation/Protocols/NSMutableCopying.cs2
-rw-r--r--CocoaSharp/Foundation/Protocols/NSSecureCoding.cs2
-rw-r--r--CocoaSharp/Foundation/Protocols/NSURLAuthenticationChallengeSender.cs2
-rw-r--r--CocoaSharp/Foundation/Protocols/NSURLProtocolClient.cs2
-rw-r--r--CocoaSharp/Foundation/Unknown/AutoreleasingUnsafeMutablePointer.cs11
-rw-r--r--CocoaSharp/Foundation/Unknown/CLLocationCoordinate2D.cs12
-rw-r--r--CocoaSharp/Foundation/Unknown/CMTime.cs (renamed from CocoaSharp/Foundation/Unknown/NSLengthFormatter.cs)2
-rw-r--r--CocoaSharp/Foundation/Unknown/CMTimeMapping.cs (renamed from CocoaSharp/Foundation/Unknown/NSFormattingContext.cs)2
-rw-r--r--CocoaSharp/Foundation/Unknown/CMTimeRange.cs11
-rw-r--r--CocoaSharp/Foundation/Unknown/IMP.cs11
-rw-r--r--CocoaSharp/Foundation/Unknown/MKCoordinateSpan.cs12
-rw-r--r--CocoaSharp/Foundation/Unknown/SCNMatrixes.cs23
-rw-r--r--CocoaSharp/Foundation/Unknown/SCNVectors.cs23
-rw-r--r--CocoaSharp/Foundation/Unknown/UnsafeMutablePointer.cs14
-rw-r--r--CocoaSharp/Foundation/Unknown/UnsafePointer.cs3
-rw-r--r--CocoaSharp/ObjectiveC/AnyClass.cs (renamed from CocoaSharp/Foundation/ObjectiveC/AnyClass.cs)0
-rw-r--r--CocoaSharp/ObjectiveC/AnyObject.cs (renamed from CocoaSharp/Foundation/ObjectiveC/AnyObject.cs)0
-rw-r--r--CocoaSharp/ObjectiveC/COpaquePointer.cs (renamed from CocoaSharp/Foundation/ObjectiveC/COpaquePointer.cs)0
-rw-r--r--CocoaSharp/ObjectiveC/ConstUnsafePointer.cs (renamed from CocoaSharp/Foundation/ObjectiveC/ConstUnsafePointer.cs)0
-rw-r--r--CocoaSharp/ObjectiveC/NSAutoreleasePool.cs (renamed from CocoaSharp/Foundation/ObjectiveC/NSAutoreleasePool.cs)0
-rw-r--r--CocoaSharp/ObjectiveC/NSMessageSignature.cs (renamed from CocoaSharp/Foundation/ObjectiveC/NSMessageSignature.cs)0
-rw-r--r--CocoaSharp/ObjectiveC/ObjCBool.cs (renamed from CocoaSharp/Foundation/ObjectiveC/ObjCBool.cs)0
-rw-r--r--CocoaSharp/ObjectiveC/ObjectiveC.csproj59
-rw-r--r--CocoaSharp/ObjectiveC/Properties/AssemblyInfo.cs30
-rw-r--r--CocoaSharp/ObjectiveC/Protocol.cs (renamed from CocoaSharp/Foundation/ObjectiveC/Protocol.cs)0
-rw-r--r--CocoaSharp/ObjectiveC/Selector.cs (renamed from CocoaSharp/Foundation/ObjectiveC/Selector.cs)0
-rw-r--r--CocoaSharp/SharpSwift.Attributes/InheritOptional.cs12
-rw-r--r--CocoaSharp/SharpSwift.Attributes/Optional.cs4
-rw-r--r--CocoaSharp/SharpSwift.Attributes/SharpSwift.Attributes.csproj3
-rw-r--r--CocoaSharp/SharpSwift.Attributes/Unwrapped.cs13
-rw-r--r--CocoaSharp/UIKit/NSOperation.cs2
-rw-r--r--CocoaSharp/UIKit/Protocols/Delegates/UIApplicationDelegate.cs2
-rw-r--r--CocoaSharp/UIKit/UIKit.csproj6
-rw-r--r--CocoaSharp/UIKit/UIView.cs2
-rw-r--r--StubGen/StubGen/FrameworkURLData.cs11
-rw-r--r--StubGen/StubGen/ScrapeFramework.cs13
-rw-r--r--StubGen/StubGen/Scrapers/Finals/ClassFinal.cs19
-rw-r--r--StubGen/StubGen/Scrapers/Finals/MethodFinal.cs29
-rw-r--r--StubGen/StubGen/Scrapers/Finals/PropertyFinal.cs4
-rw-r--r--StubGen/StubGen/Scrapers/Finals/StructFinal.cs53
-rw-r--r--StubGen/StubGen/Scrapers/ScrapedClass.cs17
-rw-r--r--StubGen/StubGen/Scrapers/ScrapedMember.cs15
-rw-r--r--StubGen/StubGen/Scrapers/ScrapedMethod.cs14
-rw-r--r--StubGen/StubGen/Scrapers/ScrapedParameter.cs4
-rw-r--r--StubGen/StubGen/Scrapers/ScrapedProperty.cs10
-rw-r--r--StubGen/StubGen/Scrapers/ScrapedStruct.cs88
-rw-r--r--StubGen/StubGen/Scrapers/Types.cs10
-rw-r--r--StubGen/StubGen/StubGen.csproj3
229 files changed, 1469 insertions, 986 deletions
diff --git a/CocoaSharp/CocoaSharp.sln b/CocoaSharp/CocoaSharp.sln
index 8fbbb3be..45ca614b 100644
--- a/CocoaSharp/CocoaSharp.sln
+++ b/CocoaSharp/CocoaSharp.sln
@@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
-VisualStudioVersion = 12.0.30723.0
+VisualStudioVersion = 12.0.31101.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Foundation", "Foundation\Foundation.csproj", "{02CF305F-5260-4C6E-9D33-7EE7877DEC20}"
EndProject
@@ -11,6 +11,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CoreGraphics", "CoreGraphic
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SharpSwift.Attributes", "SharpSwift.Attributes\SharpSwift.Attributes.csproj", "{58101AEA-7251-4D1B-AB33-6A3BBF70B6DB}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ObjectiveC", "ObjectiveC\ObjectiveC.csproj", "{01E1B613-3DDB-4233-BA6E-1DF4B05307E7}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -33,6 +35,10 @@ Global
{58101AEA-7251-4D1B-AB33-6A3BBF70B6DB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{58101AEA-7251-4D1B-AB33-6A3BBF70B6DB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{58101AEA-7251-4D1B-AB33-6A3BBF70B6DB}.Release|Any CPU.Build.0 = Release|Any CPU
+ {01E1B613-3DDB-4233-BA6E-1DF4B05307E7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {01E1B613-3DDB-4233-BA6E-1DF4B05307E7}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {01E1B613-3DDB-4233-BA6E-1DF4B05307E7}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {01E1B613-3DDB-4233-BA6E-1DF4B05307E7}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
diff --git a/CocoaSharp/CoreGraphics/CGFloat.cs b/CocoaSharp/CoreGraphics/CGFloat.cs
index b052cd25..8a2ce509 100644
--- a/CocoaSharp/CoreGraphics/CGFloat.cs
+++ b/CocoaSharp/CoreGraphics/CGFloat.cs
@@ -1,8 +1,12 @@
-using Foundation;
-using SharpSwift.Attributes;
+using SharpSwift.Attributes;
namespace CoreGraphics
{
+ public class CFloat
+ {
+
+ }
+
/// <summary>
/// The basic type for all floating-point values.
/// </summary>
diff --git a/CocoaSharp/CoreGraphics/CGFontIndex.cs b/CocoaSharp/CoreGraphics/CGFontIndex.cs
index 722d9abe..05acdc31 100644
--- a/CocoaSharp/CoreGraphics/CGFontIndex.cs
+++ b/CocoaSharp/CoreGraphics/CGFontIndex.cs
@@ -1,8 +1,12 @@
-using Foundation;
-using SharpSwift.Attributes;
+using SharpSwift.Attributes;
namespace CoreGraphics
{
+ public class CUnsignedShort
+ {
+
+ }
+
/// <summary>
/// The amount of acceleration in a single linear direction.
/// </summary>
diff --git a/CocoaSharp/CoreGraphics/CGGlyph.cs b/CocoaSharp/CoreGraphics/CGGlyph.cs
index a1630041..d0ee71ff 100644
--- a/CocoaSharp/CoreGraphics/CGGlyph.cs
+++ b/CocoaSharp/CoreGraphics/CGGlyph.cs
@@ -1,5 +1,4 @@
-using Foundation;
-using SharpSwift.Attributes;
+using SharpSwift.Attributes;
namespace CoreGraphics
{
diff --git a/CocoaSharp/CoreGraphics/CGVector.cs b/CocoaSharp/CoreGraphics/CGVector.cs
new file mode 100644
index 00000000..479a5d1d
--- /dev/null
+++ b/CocoaSharp/CoreGraphics/CGVector.cs
@@ -0,0 +1,11 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace CoreGraphics
+{
+ public class CGVector
+ {
+ }
+}
diff --git a/CocoaSharp/CoreGraphics/CoreGraphics.csproj b/CocoaSharp/CoreGraphics/CoreGraphics.csproj
index e492548e..94cff383 100644
--- a/CocoaSharp/CoreGraphics/CoreGraphics.csproj
+++ b/CocoaSharp/CoreGraphics/CoreGraphics.csproj
@@ -35,9 +35,9 @@
</PropertyGroup>
<ItemGroup>
<!-- A reference to the entire .NET Framework is automatically included -->
- <ProjectReference Include="..\Foundation\Foundation.csproj">
- <Project>{02cf305f-5260-4c6e-9d33-7ee7877dec20}</Project>
- <Name>Foundation</Name>
+ <ProjectReference Include="..\ObjectiveC\ObjectiveC.csproj">
+ <Project>{01e1b613-3ddb-4233-ba6e-1df4b05307e7}</Project>
+ <Name>ObjectiveC</Name>
</ProjectReference>
<ProjectReference Include="..\SharpSwift.Attributes\SharpSwift.Attributes.csproj">
<Project>{58101aea-7251-4d1b-ab33-6a3bbf70b6db}</Project>
@@ -50,6 +50,7 @@
<Compile Include="CGFloat.cs" />
<Compile Include="CGFontIndex.cs" />
<Compile Include="CGGlyph.cs" />
+ <Compile Include="CGVector.cs" />
<Compile Include="CGPath.cs" />
<Compile Include="CGPoint.cs" />
<Compile Include="CGRect.cs" />
diff --git a/CocoaSharp/Foundation/Constants.cs b/CocoaSharp/Foundation/Constants.cs
index a84d6a03..e21ab9f1 100644
--- a/CocoaSharp/Foundation/Constants.cs
+++ b/CocoaSharp/Foundation/Constants.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_Constants/index.html#//apple_ref/doc/uid/TP40003793"/> public class Constants { /// <summary> /// NSError codes in the Cocoa error domain. /// </summary> public int NSFileNoSuchFileError { get; set; } /// <summary> /// These values are returned as the error code property of an NSError object with the domain “NSURLErrorDomain”. /// </summary> public int NSURLErrorUnknown { get; set; } /// <summary> /// These error codes are used by error objects associated with the NSURLUbiquitousItemDownloadingErrorKey on an NSURL object when an iCloud-related error occurs. /// </summary> public int NSUbiquitousFileErrorMinimum { get; set; } /// <summary> /// Errors returned by XPC connections. Note that these are not currently available on iOS. /// </summary> public int NSXPCConnectionInterrupted { get; set; } /// <summary> /// Constants used by NSDecimal. /// </summary> public int NSDecimalMaxSize { get; set; } /// <summary> /// Constants representing the maximum and minimum values of NSInteger and NSUInteger. /// </summary> public int NSIntegerMax { get; set; } /// <summary> /// Version of the Foundation framework in the current environment. /// </summary> public Double NSFoundationVersionNumber { get; set; } /// <summary> /// Constants to define Foundation Framework version numbers. /// </summary> public Double NSFoundationVersionNumber10_0 { get; set; } } /// <summary> /// Options for Block enumeration operations. /// </summary> [iOSVersion(4)] public enum NSEnumerationOptions { /// <summary> /// Specifies that the Block enumeration should be concurrent. /// The order of invocation is nondeterministic and undefined; this flag is a hint and may be ignored by the implementation under some circumstances; the code of the Block must be safe against concurrent invocation. /// </summary> [iOSVersion(4)] Concurrent, /// <summary> /// Specifies that the enumeration should be performed in reverse. /// This option is available for NSArray and NSIndexSet classes; its behavior is undefined for NSDictionary and NSSet classes, or when combined with the NSEnumerationConcurrent flag. /// </summary> [iOSVersion(4)] Reverse, } /// <summary> /// These constants are used to indicate how items in a request are ordered. /// </summary> [iOSVersion(2)] public enum NSComparisonResult { /// <summary> /// The left operand is smaller than the right operand. /// </summary> [iOSVersion(2)] OrderedAscending, /// <summary> /// The two operands are equal. /// </summary> [iOSVersion(2)] OrderedSame, /// <summary> /// The left operand is greater than the right operand. /// </summary> [iOSVersion(2)] OrderedDescending, } /// <summary> /// Options for Block sorting operations. /// </summary> [iOSVersion(4)] public enum NSSortOptions { /// <summary> /// Specifies that the Block sort operation should be concurrent. /// This option is a hint and may be ignored by the implementation under some circumstances; the code of the Block must be safe against concurrent invocation. /// </summary> [iOSVersion(4)] Concurrent, /// <summary> /// Specifies that the sorted results should return compared items have equal value in the order they occurred originally. /// If this option is unspecified equal objects may, or may not, be returned in their original order. /// </summary> [iOSVersion(4)] Stable, } /// <summary> /// These constants specify the location of a variety of directories by the URLsForDirectory:inDomains: and URLForDirectory:inDomain:appropriateForURL:create:error: NSFileManager methods. /// </summary> [iOSVersion(2)] public enum NSSearchPathDirectory { /// <summary> /// Supported applications (/Applications). /// </summary> [iOSVersion(2)] ApplicationDirectory, /// <summary> /// Unsupported applications and demonstration versions. /// </summary> [iOSVersion(2)] DemoApplicationDirectory, /// <summary> /// Developer applications (/Developer/Applications). /// Deprecated: As of Xcode 4.3, there is no longer a Developer Application directory directory; instead, Xcode.app is a self-contained application that gets installed in the user’s Applications directory, by default, although it can be put anywhere. /// </summary> [iOSVersion(2)] [Obsolete] DeveloperApplicationDirectory, /// <summary> /// System and network administration applications. /// </summary> [iOSVersion(2)] AdminApplicationDirectory, /// <summary> /// Various user-visible documentation, support, and configuration files (/Library). /// </summary> [iOSVersion(2)] LibraryDirectory, /// <summary> /// Developer resources (/Developer). /// Deprecated: As of Xcode 4.3, there is no longer a Developer directory; instead, Xcode.app is a self-contained application that gets installed in the user’s Applications directory, by default, although it can be put anywhere. /// </summary> [iOSVersion(2)] [Obsolete] DeveloperDirectory, /// <summary> /// User home directories (/Users). /// </summary> [iOSVersion(2)] UserDirectory, /// <summary> /// Documentation. /// </summary> [iOSVersion(2)] DocumentationDirectory, /// <summary> /// Document directory. /// </summary> [iOSVersion(2)] DocumentDirectory, /// <summary> /// Location of core services (System/Library/CoreServices). /// </summary> [iOSVersion(2)] CoreServiceDirectory, /// <summary> /// Location of user’s autosaved documents Library/Autosave Information /// </summary> [iOSVersion(4)] AutosavedInformationDirectory, /// <summary> /// Location of user’s desktop directory. /// </summary> [iOSVersion(2)] DesktopDirectory, /// <summary> /// Location of discardable cache files (Library/Caches). /// </summary> [iOSVersion(2)] CachesDirectory, /// <summary> /// Location of application support files (Library/Application Support). /// </summary> [iOSVersion(2)] ApplicationSupportDirectory, /// <summary> /// Location of the user’s downloads directory. /// The NSDownloadsDirectory flag will only produce a path only when the NSUserDomainMask is provided. /// </summary> [iOSVersion(2)] DownloadsDirectory, /// <summary> /// Location of Input Methods (Library/Input Methods) /// </summary> [iOSVersion(4)] InputMethodsDirectory, /// <summary> /// Location of user's Movies directory (~/Movies) /// </summary> [iOSVersion(4)] MoviesDirectory, /// <summary> /// Location of user's Music directory (~/Music) /// </summary> [iOSVersion(4)] MusicDirectory, /// <summary> /// Location of user's Pictures directory (~/Pictures) /// </summary> [iOSVersion(4)] PicturesDirectory, /// <summary> /// Location of system's PPDs directory (Library/Printers/PPDs) /// </summary> [iOSVersion(4)] PrinterDescriptionDirectory, /// <summary> /// Location of user's Public sharing directory (~/Public) /// </summary> [iOSVersion(4)] SharedPublicDirectory, /// <summary> /// Location of the PreferencePanes directory for use with System Preferences (Library/PreferencePanes) /// </summary> [iOSVersion(4)] PreferencePanesDirectory, /// <summary> /// /// </summary> ApplicationScriptsDirectory, /// <summary> /// For use with NSFileManager method URLForDirectory:inDomain:appropriateForURL:create:error: /// </summary> [iOSVersion(4)] ItemReplacementDirectory, /// <summary> /// All directories where applications can occur. /// </summary> [iOSVersion(2)] AllApplicationsDirectory, /// <summary> /// All directories where resources can occur. /// </summary> [iOSVersion(2)] AllLibrariesDirectory, /// <summary> /// /// </summary> TrashDirectory, } /// <summary> /// Search path domain constants specifying base locations for the NSSearchPathDirectory type. These constants are used by the URLsForDirectory:inDomains: and URLForDirectory:inDomain:appropriateForURL:create:error: NSFileManager methods. /// </summary> [iOSVersion(2)] public enum NSSearchPathDomainMask { /// <summary> /// The user’s home directory—the place to install user’s personal items (~). /// </summary> [iOSVersion(2)] UserDomainMask, /// <summary> /// Local to the current machine—the place to install items available to everyone on this machine. /// </summary> [iOSVersion(2)] LocalDomainMask, /// <summary> /// Publicly available location in the local area network—the place to install items available on the network (/Network). /// </summary> [iOSVersion(2)] NetworkDomainMask, /// <summary> /// Provided by Apple—can’t be modified (/System) . /// </summary> [iOSVersion(2)] SystemDomainMask, /// <summary> /// All domains. /// Includes all of the above and future items. /// </summary> [iOSVersion(2)] AllDomainsMask, } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_Constants/index.html#//apple_ref/doc/uid/TP40003793"/> [Export("")] public class FoundationConstants//: { public FoundationConstants() { } /// <summary> /// NSError codes in the Cocoa error domain. /// </summary> public int NSFileNoSuchFileError { get; private set; } /// <summary> /// These values are returned as the error code property of an NSError object with the domain “NSURLErrorDomain”. /// </summary> public int NSURLErrorUnknown { get; private set; } /// <summary> /// These error codes are used by error objects associated with the NSURLUbiquitousItemDownloadingErrorKey on an NSURL object when an iCloud-related error occurs. /// </summary> public int NSUbiquitousFileErrorMinimum { get; private set; } /// <summary> /// Errors returned by XPC connections. Note that these are not currently available on iOS. /// </summary> public int NSXPCConnectionInterrupted { get; private set; } /// <summary> /// Constants used by NSDecimal. /// </summary> public int NSDecimalMaxSize { get; private set; } /// <summary> /// Constants representing the maximum and minimum values of NSInteger and NSUInteger. /// </summary> public int NSIntegerMax { get; private set; } /// <summary> /// Version of the Foundation framework in the current environment. /// </summary> public Double NSFoundationVersionNumber { get; set; } /// <summary> /// Constants to define Foundation Framework version numbers. /// </summary> public Double NSFoundationVersionNumber10_0 { get; private set; } } /// <summary> /// Options for Block enumeration operations. /// </summary> public enum NSEnumerationOptions { /// <summary> /// Specifies that the Block enumeration should be concurrent. /// The order of invocation is nondeterministic and undefined; this flag is a hint and may be ignored by the implementation under some circumstances; the code of the Block must be safe against concurrent invocation. /// </summary> [iOSVersion(4)] Concurrent, /// <summary> /// Specifies that the enumeration should be performed in reverse. /// This option is available for NSArray and NSIndexSet classes; its behavior is undefined for NSDictionary and NSSet classes, or when combined with the NSEnumerationConcurrent flag. /// </summary> [iOSVersion(4)] Reverse, } /// <summary> /// These constants are used to indicate how items in a request are ordered. /// </summary> public enum NSComparisonResult { /// <summary> /// The left operand is smaller than the right operand. /// </summary> [iOSVersion(2)] OrderedAscending, /// <summary> /// The two operands are equal. /// </summary> [iOSVersion(2)] OrderedSame, /// <summary> /// The left operand is greater than the right operand. /// </summary> [iOSVersion(2)] OrderedDescending, } /// <summary> /// Options for Block sorting operations. /// </summary> public enum NSSortOptions { /// <summary> /// Specifies that the Block sort operation should be concurrent. /// This option is a hint and may be ignored by the implementation under some circumstances; the code of the Block must be safe against concurrent invocation. /// </summary> [iOSVersion(4)] Concurrent, /// <summary> /// Specifies that the sorted results should return compared items have equal value in the order they occurred originally. /// If this option is unspecified equal objects may, or may not, be returned in their original order. /// </summary> [iOSVersion(4)] Stable, } /// <summary> /// These constants specify the location of a variety of directories by the URLsForDirectory:inDomains: and URLForDirectory:inDomain:appropriateForURL:create:error: NSFileManager methods. /// </summary> public enum NSSearchPathDirectory { /// <summary> /// Supported applications (/Applications). /// </summary> [iOSVersion(2)] ApplicationDirectory, /// <summary> /// Unsupported applications and demonstration versions. /// </summary> [iOSVersion(2)] DemoApplicationDirectory, /// <summary> /// Developer applications (/Developer/Applications). /// Deprecated: As of Xcode 4.3, there is no longer a Developer Application directory directory; instead, Xcode.app is a self-contained application that gets installed in the user’s Applications directory, by default, although it can be put anywhere. /// </summary> [iOSVersion(2)] [Obsolete] DeveloperApplicationDirectory, /// <summary> /// System and network administration applications. /// </summary> [iOSVersion(2)] AdminApplicationDirectory, /// <summary> /// Various user-visible documentation, support, and configuration files (/Library). /// </summary> [iOSVersion(2)] LibraryDirectory, /// <summary> /// Developer resources (/Developer). /// Deprecated: As of Xcode 4.3, there is no longer a Developer directory; instead, Xcode.app is a self-contained application that gets installed in the user’s Applications directory, by default, although it can be put anywhere. /// </summary> [iOSVersion(2)] [Obsolete] DeveloperDirectory, /// <summary> /// User home directories (/Users). /// </summary> [iOSVersion(2)] UserDirectory, /// <summary> /// Documentation. /// </summary> [iOSVersion(2)] DocumentationDirectory, /// <summary> /// Document directory. /// </summary> [iOSVersion(2)] DocumentDirectory, /// <summary> /// Location of core services (System/Library/CoreServices). /// </summary> [iOSVersion(2)] CoreServiceDirectory, /// <summary> /// Location of user’s autosaved documents Library/Autosave Information /// </summary> [iOSVersion(4)] AutosavedInformationDirectory, /// <summary> /// Location of user’s desktop directory. /// </summary> [iOSVersion(2)] DesktopDirectory, /// <summary> /// Location of discardable cache files (Library/Caches). /// </summary> [iOSVersion(2)] CachesDirectory, /// <summary> /// Location of application support files (Library/Application Support). /// </summary> [iOSVersion(2)] ApplicationSupportDirectory, /// <summary> /// Location of the user’s downloads directory. /// The NSDownloadsDirectory flag will only produce a path only when the NSUserDomainMask is provided. /// </summary> [iOSVersion(2)] DownloadsDirectory, /// <summary> /// Location of Input Methods (Library/Input Methods) /// </summary> [iOSVersion(4)] InputMethodsDirectory, /// <summary> /// Location of user&#39;s Movies directory (~/Movies) /// </summary> [iOSVersion(4)] MoviesDirectory, /// <summary> /// Location of user&#39;s Music directory (~/Music) /// </summary> [iOSVersion(4)] MusicDirectory, /// <summary> /// Location of user&#39;s Pictures directory (~/Pictures) /// </summary> [iOSVersion(4)] PicturesDirectory, /// <summary> /// Location of system&#39;s PPDs directory (Library/Printers/PPDs) /// </summary> [iOSVersion(4)] PrinterDescriptionDirectory, /// <summary> /// Location of user&#39;s Public sharing directory (~/Public) /// </summary> [iOSVersion(4)] SharedPublicDirectory, /// <summary> /// Location of the PreferencePanes directory for use with System Preferences (Library/PreferencePanes) /// </summary> [iOSVersion(4)] PreferencePanesDirectory, /// <summary> /// /// </summary> ApplicationScriptsDirectory, /// <summary> /// For use with NSFileManager method URLForDirectory:inDomain:appropriateForURL:create:error: /// </summary> [iOSVersion(4)] ItemReplacementDirectory, /// <summary> /// All directories where applications can occur. /// </summary> [iOSVersion(2)] AllApplicationsDirectory, /// <summary> /// All directories where resources can occur. /// </summary> [iOSVersion(2)] AllLibrariesDirectory, /// <summary> /// /// </summary> TrashDirectory, } /// <summary> /// Search path domain constants specifying base locations for the NSSearchPathDirectory type. These constants are used by the URLsForDirectory:inDomains: and URLForDirectory:inDomain:appropriateForURL:create:error: NSFileManager methods. /// </summary> public enum NSSearchPathDomainMask { /// <summary> /// The user’s home directory—the place to install user’s personal items (~). /// </summary> [iOSVersion(2)] UserDomainMask, /// <summary> /// Local to the current machine—the place to install items available to everyone on this machine. /// </summary> [iOSVersion(2)] LocalDomainMask, /// <summary> /// Publicly available location in the local area network—the place to install items available on the network (/Network). /// </summary> [iOSVersion(2)] NetworkDomainMask, /// <summary> /// Provided by Apple—can’t be modified (/System) . /// </summary> [iOSVersion(2)] SystemDomainMask, /// <summary> /// All domains. /// Includes all of the above and future items. /// </summary> [iOSVersion(2)] AllDomainsMask, } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/DataTypes.cs b/CocoaSharp/Foundation/DataTypes.cs
new file mode 100644
index 00000000..ce9b8ea3
--- /dev/null
+++ b/CocoaSharp/Foundation/DataTypes.cs
@@ -0,0 +1 @@
+//using ObjectiveC; //using System; //using SharpSwift.Attributes; //using System.Collections.Generic; //namespace Foundation //{ // /// <summary> // /// // /// </summary> // /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/index.html#//apple_ref/doc/uid/TP40003794"/> // [Export("")] // public class FoundationDataTypes//: // { // public FoundationDataTypes() { } // } // /// <summary> // /// Defines the signature for a block object used for comparison operations. // /// </summary> // [iOSVersion(4)] // public struct NSComparator // { // static public implicit operator NSComparator(WEIRD value) // { // return default(NSComparator); // } // static public implicit operator WEIRD(NSComparator value) // { // return default(WEIRD); // } // } // /// <summary> // /// Specifies a bitfield used to configure the behavior of elements in an instance of NSHashTable. // /// </summary> // [iOSVersion(6)] // public struct NSHashTableOptions // { // static public implicit operator NSHashTableOptions(int value) // { // return default(NSHashTableOptions); // } // static public implicit operator int(NSHashTableOptions value) // { // return default(int); // } // } // /// <summary> // /// Used to describe an integer. // /// </summary> // [iOSVersion(2)] // public struct NSInteger // { // static public implicit operator NSInteger(int value) // { // return default(NSInteger); // } // static public implicit operator int(NSInteger value) // { // return default(int); // } // } // /// <summary> // /// Specifies a bitfield used to configure the behavior of elements in an instance of NSMapTable. // /// </summary> // [iOSVersion(6)] // public struct NSMapTableOptions // { // static public implicit operator NSMapTableOptions(int value) // { // return default(NSMapTableOptions); // } // static public implicit operator int(NSMapTableOptions value) // { // return default(int); // } // } // /// <summary> // /// A structure used to describe a portion of a series—such as characters in a string or objects in an NSArray object. // /// </summary> // [iOSVersion(2)] // public struct NSRange // { // static public implicit operator NSRange(NSRange value) // { // return default(NSRange); // } // static public implicit operator NSRange(NSRange value) // { // return default(NSRange); // } // } // /// <summary> // /// Type indicating a parameter is a pointer to an NSRange structure. // /// </summary> // [iOSVersion(2)] // public struct NSRangePointer // { // static public implicit operator NSRangePointer(UnsafeMutablePointer<NSRange> value) // { // return default(NSRangePointer); // } // static public implicit operator UnsafeMutablePointer<NSRange>(NSRangePointer value) // { // return default(UnsafeMutablePointer<NSRange>); // } // } // /// <summary> // /// Type for the platform-specific native socket handle. // /// </summary> // [iOSVersion(2)] // public struct NSSocketNativeHandle // { // static public implicit operator NSSocketNativeHandle(int value) // { // return default(NSSocketNativeHandle); // } // static public implicit operator int(NSSocketNativeHandle value) // { // return default(int); // } // } // /// <summary> // /// Used to specify a time interval, in seconds. // /// </summary> // [iOSVersion(2)] // public struct NSTimeInterval // { // static public implicit operator NSTimeInterval(Double value) // { // return default(NSTimeInterval); // } // static public implicit operator Double(NSTimeInterval value) // { // return default(Double); // } // } // /// <summary> // /// Opaque structure containing endian-independent double value. // /// </summary> // public struct NSSwappedDouble // { // /// <summary> // /// // /// </summary> // [Export("v")] // public UInt64 V { get; set; } // } // /// <summary> // /// Opaque type containing an endian-independent float value. // /// </summary> // public struct NSSwappedFloat // { // /// <summary> // /// // /// </summary> // [Export("v")] // public uint V { get; set; } // } //} \ No newline at end of file
diff --git a/CocoaSharp/Foundation/Foundation.csproj b/CocoaSharp/Foundation/Foundation.csproj
index 508e0e54..332f3b60 100644
--- a/CocoaSharp/Foundation/Foundation.csproj
+++ b/CocoaSharp/Foundation/Foundation.csproj
@@ -35,10 +35,22 @@
</PropertyGroup>
<ItemGroup>
<!-- A reference to the entire .NET Framework is automatically included -->
+ <ProjectReference Include="..\CoreGraphics\CoreGraphics.csproj">
+ <Project>{c5f16b43-a040-4e1b-81f2-74a99196d319}</Project>
+ <Name>CoreGraphics</Name>
+ </ProjectReference>
+ <ProjectReference Include="..\ObjectiveC\ObjectiveC.csproj">
+ <Project>{01e1b613-3ddb-4233-ba6e-1df4b05307e7}</Project>
+ <Name>ObjectiveC</Name>
+ </ProjectReference>
<ProjectReference Include="..\SharpSwift.Attributes\SharpSwift.Attributes.csproj">
<Project>{58101aea-7251-4d1b-ab33-6a3bbf70b6db}</Project>
<Name>SharpSwift.Attributes</Name>
</ProjectReference>
+ <ProjectReference Include="..\UIKit\UIKit.csproj">
+ <Project>{b8fb6e7a-66b3-40a8-af5d-34e8c9921787}</Project>
+ <Name>UIKit</Name>
+ </ProjectReference>
</ItemGroup>
<ItemGroup>
<Compile Include="CClasses\CFunctionPointer.cs" />
@@ -62,6 +74,7 @@
<Compile Include="CClasses\CUnsignedShort.cs" />
<Compile Include="CClasses\CVaListPointer.cs" />
<Compile Include="Constants.cs" />
+ <Compile Include="DataTypes.cs" />
<Compile Include="DataTypes\DataTypes.cs" />
<Compile Include="DataTypes\NSComparator.cs" />
<Compile Include="DataTypes\NSExtensionBackgroundTaskIdentifier.cs" />
@@ -78,6 +91,7 @@
<Compile Include="NSAutoreleasePool.cs" />
<Compile Include="NSData.cs" />
<Compile Include="NSDictionary.cs" />
+ <Compile Include="NSEnergyFormatter.cs" />
<Compile Include="NSExtensionItem.cs" />
<Compile Include="NSFileAccessIntent.cs" />
<Compile Include="NSFileCoordinator.cs" />
@@ -86,14 +100,18 @@
<Compile Include="NSFileWrapper.cs" />
<Compile Include="NSHashTable.cs" />
<Compile Include="NSInvocation.cs" />
+ <Compile Include="NSLengthFormatter.cs" />
+ <Compile Include="NSMassFormatter.cs" />
<Compile Include="NSMessagePort.cs" />
<Compile Include="NSMutableArray.cs" />
<Compile Include="NSMutableData.cs" />
<Compile Include="NSMutableDictionary.cs" />
<Compile Include="NSNull.cs" />
<Compile Include="NSNumber.cs" />
+ <Compile Include="NSObject.cs" />
+ <Compile Include="NSObjectProtocol.cs" />
<Compile Include="NSPurgeableData.cs" />
- <Compile Include="ObjectiveC\ConstUnsafePointer.cs" />
+ <Compile Include="NSURLQueryItem.cs" />
<Compile Include="Protocols\Delegates\NSCacheDelegate.cs" />
<Compile Include="Protocols\NSCopying.cs" />
<Compile Include="Protocols\NSDecimalNumberBehaviors.cs" />
@@ -150,7 +168,6 @@
<Compile Include="NSURLSessionUploadTask.cs" />
<Compile Include="NSUserActivity.cs" />
<Compile Include="NSUUID.cs" />
- <Compile Include="ObjectiveC\NSAutoreleasePool.cs" />
<Compile Include="NSBundle.cs" />
<Compile Include="NSCachedURLResponse.cs" />
<Compile Include="NSCalendar.cs" />
@@ -226,10 +243,17 @@
<Compile Include="NSValue.cs" />
<Compile Include="NSValueTransformer.cs" />
<Compile Include="NSXMLParser.cs" />
+ <Compile Include="Unknown\AutoreleasingUnsafeMutablePointer.cs" />
+ <Compile Include="Unknown\CLLocationCoordinate2D.cs" />
+ <Compile Include="Unknown\MKCoordinateSpan.cs" />
+ <Compile Include="Unknown\SCNMatrixes.cs" />
+ <Compile Include="Unknown\SCNVectors.cs" />
+ <Compile Include="Unknown\CMTimeRange.cs" />
+ <Compile Include="Unknown\CMTimeMapping.cs" />
+ <Compile Include="Unknown\CMTime.cs" />
+ <Compile Include="Unknown\IMP.cs" />
<Compile Include="Unknown\NSCalendarOptions.cs" />
<Compile Include="Unknown\SSLProtocol.cs" />
- <Compile Include="Unknown\NSFormattingContext.cs" />
- <Compile Include="Unknown\NSLengthFormatter.cs" />
<Compile Include="Unknown\NSQualityOfService.cs" />
<Compile Include="Unknown\dispatch_queue_t.cs" />
<Compile Include="Unknown\OSType.cs" />
@@ -243,15 +267,7 @@
<Compile Include="NSKeyedUnarchiver.cs" />
<Compile Include="NSMutableAttributedString.cs" />
<Compile Include="NSURL.cs" />
- <Compile Include="ObjectiveC\ObjCBool.cs" />
- <Compile Include="ObjectiveC\AnyClass.cs" />
- <Compile Include="ObjectiveC\AnyObject.cs" />
- <Compile Include="ObjectiveC\COpaquePointer.cs" />
- <Compile Include="ObjectiveC\NSMessageSignature.cs" />
<Compile Include="NSMethodSignature.cs" />
- <Compile Include="ObjectiveC\NSObject.cs" />
- <Compile Include="ObjectiveC\Protocol.cs" />
- <Compile Include="ObjectiveC\Selector.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="NSBlockOperation.cs" />
<Compile Include="NSByteCountFormatter.cs" />
@@ -269,9 +285,13 @@
<Compile Include="Unknown\NSPropertyListWriteOptions.cs" />
<Compile Include="Unknown\UInt8.cs" />
<Compile Include="Unknown\unichar.cs" />
+ <Compile Include="Unknown\UnsafeMutablePointer.cs" />
<Compile Include="Unknown\UnsafePointer.cs" />
<Compile Include="Unknown\UTF32Char.cs" />
</ItemGroup>
+ <ItemGroup>
+ <Content Include="Missing.txt" />
+ </ItemGroup>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
diff --git a/CocoaSharp/Foundation/Missing.txt b/CocoaSharp/Foundation/Missing.txt
new file mode 100644
index 00000000..1334082e
--- /dev/null
+++ b/CocoaSharp/Foundation/Missing.txt
@@ -0,0 +1,2 @@
+NSDateComponentsFormatter
+NSDateIntervalFormatter
diff --git a/CocoaSharp/Foundation/NSArray.cs b/CocoaSharp/Foundation/NSArray.cs
index 833de63b..fe9fe773 100644
--- a/CocoaSharp/Foundation/NSArray.cs
+++ b/CocoaSharp/Foundation/NSArray.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSArray and its subclass NSMutableArray manage ordered collections of objects called arrays. NSArray creates static arrays, and NSMutableArray creates dynamic arrays. You can use arrays when you need an ordered collection of objects. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSArray_Class/index.html#//apple_ref/occ/cl/NSArray"/> [iOSVersion(2)] public class NSArray : NSObject//, AnyObject, ArrayLiteralConvertible, NSCoding, NSCopying, NSFastEnumeration, NSMutableCopying, NSObjectProtocol, NSSecureCoding, Reflectable, Sequence { /// <summary> /// Creates and returns an array containing a given object. /// </summary> /// <param name="@object">An object.</param> [iOSVersion(2)] [Export("convenience init")] public NSArray(AnyObject @object) { } /// <summary> /// Initializes a newly allocated array. /// </summary> [iOSVersion(2)] public NSArray() { } /// <summary> /// Initializes a newly allocated array by placing in it the objects contained in a given array. /// </summary> /// <param name="array">An array.</param> [iOSVersion(2)] [Export("convenience init")] public NSArray(AnyObject[] array) { } /// <summary> /// Initializes a newly allocated array using anArray as the source of data objects for the array. /// </summary> /// <param name="array">An array containing the objects with which to initialize the new array.</param> /// <param name="copyItems">If true, each object in array receives a copyWithZone: message to create a copy of the object—objects must conform to the NSCopying protocol. In a managed memory environment, this is instead of the retain message the object would otherwise receive. The object copy is then added to the returned array. /// If false, then in a managed memory environment each object in array simply receives a retain message when it is added to the returned array.</param> [iOSVersion(2)] [Export("convenience init")] public NSArray(AnyObject[] array, bool copyItems) { } /// <summary> /// Initializes a newly allocated array with the contents of the file specified by a given path. /// </summary> /// <param name="contentsOfFile">The path to a file containing a representation of an array produced by the writeToFile:atomically: method.</param> [iOSVersion(2)] [Export("convenience init")] public NSArray(string contentsOfFile) { } /// <summary> /// Initializes a newly allocated array with the contents of the location specified by a given URL. /// </summary> /// <param name="contentsOfURL">The location of a file containing a string representation of an array produced by the writeToURL:atomically: method.</param> [iOSVersion(2)] [Export("convenience init")] public NSArray(NSURL contentsOfURL) { } /// <summary> /// Initializes a newly allocated array to include a given number of objects from a given C array. /// </summary> /// <param name="objects">A C array of objects.</param> /// <param name="count">The number of values from the objects C array to include in the new array. This number will be the count of the new array—it must not be negative or greater than the number of elements in objects.</param> [iOSVersion(2)] public NSArray(ConstUnsafePointer<AnyObject> objects, int count) { } /// <summary> /// Returns a Boolean value that indicates whether a given object is present in the array. /// </summary> /// <param name="anObject">An object.</param> [iOSVersion(2)] [Export("containsObject")] public bool ContainsObject(AnyObject anObject) { return default(bool); } /// <summary> /// Copies all the objects contained in the array to aBuffer. /// </summary> /// <param name="aBuffer">A C array of objects of size at least the count of the array.</param> [iOSVersion(2)] [Export("getObjects")] public void GetObjects(AutoreleasingUnsafePointer<AnyObject> aBuffer) { } /// <summary> /// Copies the objects contained in the array that fall within the specified range to aBuffer. /// </summary> /// <param name="aBuffer">A C array of objects of size at least the length of the range specified by aRange.</param> /// <param name="range">A range within the bounds of the array. /// If the location plus the length of the range is greater than the count of the array, this method raises an NSRangeException.</param> [iOSVersion(2)] [Export("getObjects")] public void GetObjects(AutoreleasingUnsafePointer<AnyObject> aBuffer, NSRange range) { } /// <summary> /// Returns the object located at the specified index. /// </summary> /// <param name="index">An index within the bounds of the array.</param> [iOSVersion(2)] [Export("objectAtIndex")] public AnyObject ObjectAtIndex(int index) { return default(AnyObject); } /// <summary> /// Returns the object at the specified index. /// </summary> /// <param name="idx">An index within the bounds of the array.</param> [iOSVersion(6)] [Export("objectAtIndexedSubscript")] public AnyObject ObjectAtIndexedSubscript(int idx) { return default(AnyObject); } /// <summary> /// Returns an array containing the objects in the array at the indexes specified by a given index set. /// </summary> /// <param name="indexes"></param> [iOSVersion(2)] [Export("objectsAtIndexes")] public AnyObject[] ObjectsAtIndexes(NSIndexSet indexes) { return default(AnyObject[]); } /// <summary> /// Returns an enumerator object that lets you access each object in the array. /// </summary> [iOSVersion(2)] [Export("objectEnumerator")] public NSEnumerator ObjectEnumerator() { return default(NSEnumerator); } /// <summary> /// Returns an enumerator object that lets you access each object in the array, in reverse order. /// </summary> [iOSVersion(2)] [Export("reverseObjectEnumerator")] public NSEnumerator ReverseObjectEnumerator() { return default(NSEnumerator); } /// <summary> /// Returns the lowest index whose corresponding array value is equal to a given object. /// </summary> /// <param name="anObject">An object.</param> [iOSVersion(2)] [Export("indexOfObject")] public int IndexOfObject(AnyObject anObject) { return default(int); } /// <summary> /// Returns the lowest index within a specified range whose corresponding array value is equal to a given object . /// </summary> /// <param name="anObject">An object.</param> /// <param name="inRange">The range of indexes in the array within which to search for anObject.</param> [iOSVersion(2)] [Export("indexOfObject")] public int IndexOfObject(AnyObject anObject, NSRange inRange) { return default(int); } /// <summary> /// Returns the lowest index whose corresponding array value is identical to a given object. /// </summary> /// <param name="anObject">An object.</param> [iOSVersion(2)] [Export("indexOfObjectIdenticalTo")] public int IndexOfObjectIdenticalTo(AnyObject anObject) { return default(int); } /// <summary> /// Returns the lowest index within a specified range whose corresponding array value is equal to a given object . /// </summary> /// <param name="anObject">An object.</param> /// <param name="inRange">The range of indexes in the array within which to search for anObject.</param> [iOSVersion(2)] [Export("indexOfObjectIdenticalTo")] public int IndexOfObjectIdenticalTo(AnyObject anObject, NSRange inRange) { return default(int); } /// <summary> /// Returns the index of the first object in the array that passes a test in a given Block. /// </summary> /// <param name="predicate">The block to apply to elements in the array. /// The block takes three arguments: /// obj /// The element in the array. /// idx /// The index of the element in the array. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the array. The stop argument is an out-only argument. You should only ever set this Boolean to true within the Block. /// The Block returns a Boolean value that indicates whether obj passed the test. Returning true will stop further processing of the array.</param> [iOSVersion(4)] [Export("indexOfObjectPassingTest")] public int IndexOfObjectPassingTest(Func<AnyObject, int, UnsafePointer<ObjCBool>, bool> predicate) { return default(int); } /// <summary> /// Returns the index of an object in the array that passes a test in a given Block for a given set of enumeration options. /// </summary> /// <param name="opts">A bit mask that specifies the options for the enumeration (whether it should be performed concurrently and whether it should be performed in reverse order).</param> /// <param name="passingTest">The block to apply to elements in the array. /// The block takes three arguments: /// obj /// The element in the array. /// idx /// The index of the element in the array. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the array. The stop argument is an out-only argument. You should only ever set this Boolean to true within the Block. /// The Block returns a Boolean value that indicates whether obj passed the test.</param> [iOSVersion(4)] [Export("indexOfObjectWithOptions")] public int IndexOfObjectWithOptions(NSEnumerationOptions opts, Func<AnyObject, int, UnsafePointer<ObjCBool>, bool> passingTest) { return default(int); } /// <summary> /// Returns the index, from a given set of indexes, of the first object in the array that passes a test in a given Block for a given set of enumeration options. /// </summary> /// <param name="indexSet">The indexes of the objects over which to enumerate.</param> /// <param name="options">A bit mask that specifies the options for the enumeration (whether it should be performed concurrently and whether it should be performed in reverse order).</param> /// <param name="passingTest">The block to apply to elements in the array. /// The block takes three arguments: /// obj /// The element in the array. /// idx /// The index of the element in the array. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the array. The stop argument is an out-only argument. You should only ever set this Boolean to true within the Block. /// The Block returns a Boolean value that indicates whether obj passed the test.</param> [iOSVersion(4)] [Export("indexOfObjectAtIndexes")] public int IndexOfObjectAtIndexes(NSIndexSet indexSet, NSEnumerationOptions options, Func<AnyObject, int, UnsafePointer<ObjCBool>, bool> passingTest) { return default(int); } /// <summary> /// Returns the indexes of objects in the array that pass a test in a given Block. /// </summary> /// <param name="predicate">The block to apply to elements in the array. /// The block takes three arguments: /// obj /// The element in the array. /// idx /// The index of the element in the array. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the array. The stop argument is an out-only argument. You should only ever set this Boolean to true within the Block. /// The Block returns a Boolean value that indicates whether obj passed the test.</param> [iOSVersion(4)] [Export("indexesOfObjectsPassingTest")] public NSIndexSet IndexesOfObjectsPassingTest(Func<AnyObject, int, UnsafePointer<ObjCBool>, bool> predicate) { return default(NSIndexSet); } /// <summary> /// Returns the indexes of objects in the array that pass a test in a given Block for a given set of enumeration options. /// </summary> /// <param name="opts">A bit mask that specifies the options for the enumeration (whether it should be performed concurrently and whether it should be performed in reverse order).</param> /// <param name="passingTest">The block to apply to elements in the array. /// The block takes three arguments: /// obj /// The element in the array. /// idx /// The index of the element in the array. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the array. The stop argument is an out-only argument. You should only ever set this Boolean to true within the Block. /// The Block returns a Boolean value that indicates whether obj passed the test.</param> [iOSVersion(4)] [Export("indexesOfObjectsWithOptions")] public NSIndexSet IndexesOfObjectsWithOptions(NSEnumerationOptions opts, Func<AnyObject, int, UnsafePointer<ObjCBool>, bool> passingTest) { return default(NSIndexSet); } /// <summary> /// Returns the indexes, from a given set of indexes, of objects in the array that pass a test in a given Block for a given set of enumeration options. /// </summary> /// <param name="indexSet">The indexes of the objects over which to enumerate.</param> /// <param name="options">A bit mask that specifies the options for the enumeration (whether it should be performed concurrently and whether it should be performed in reverse order).</param> /// <param name="passingTest">The block to apply to elements in the array. /// The block takes three arguments: /// obj /// The element in the array. /// idx /// The index of the element in the array. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the array. The stop argument is an out-only argument. You should only ever set this Boolean to true within the Block. /// The Block returns a Boolean value that indicates whether obj passed the test.</param> [iOSVersion(4)] [Export("indexesOfObjectsAtIndexes")] public NSIndexSet IndexesOfObjectsAtIndexes(NSIndexSet indexSet, NSEnumerationOptions options, Func<AnyObject, int, UnsafePointer<ObjCBool>, bool> passingTest) { return default(NSIndexSet); } /// <summary> /// Returns the index, within a specified range, of an object compared with elements in the array using a given NSComparator block. /// </summary> /// <param name="obj">An object for which to search in the array. /// If this value is nil, throws an NSInvalidArgumentException.</param> /// <param name="inSortedRange">The range within the array to search for obj. /// If r exceeds the bounds of the array (if the location plus length of the range is greater than the count of the array), throws an NSRangeException.</param> /// <param name="options">Options for the search. For possible values, see NSBinarySearchingOptions. /// If you specify both NSBinarySearchingFirstEqual and NSBinarySearchingLastEqual, throws an NSInvalidArgumentException.</param> /// <param name="usingComparator">A comparator block used to compare the object obj with elements in the array. /// If this value is NULL, throws an NSInvalidArgumentException.</param> [iOSVersion(4)] [Export("indexOfObject")] public int IndexOfObject(AnyObject obj, NSRange inSortedRange, NSBinarySearchingOptions options, NSComparator usingComparator) { return default(int); } /// <summary> /// Sends to each object in the array the message identified by a given selector, starting with the first object and continuing through the array to the last object. /// </summary> /// <param name="aSelector">A selector that identifies the message to send to the objects in the array. The method must not take any arguments, and must not have the side effect of modifying the receiving array.</param> [iOSVersion(2)] [Export("makeObjectsPerformSelector")] public void MakeObjectsPerformSelector(Selector aSelector) { } /// <summary> /// Sends the aSelector message to each object in the array, starting with the first object and continuing through the array to the last object. /// </summary> /// <param name="aSelector">A selector that identifies the message to send to the objects in the array. The method must take a single argument of type id, and must not have the side effect of modifying the receiving array.</param> /// <param name="withObject">The object to send as the argument to each invocation of the aSelector method.</param> [iOSVersion(2)] [Export("makeObjectsPerformSelector")] public void MakeObjectsPerformSelector(Selector aSelector, AnyObject withObject) { } /// <summary> /// Executes a given block using each object in the array, starting with the first object and continuing through the array to the last object. /// </summary> /// <param name="block">The block to apply to elements in the array. /// The block takes three arguments: /// obj /// The element in the array. /// idx /// The index of the element in the array. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the array. The stop argument is an out-only argument. You should only ever set this Boolean to true within the Block.</param> [iOSVersion(4)] [Export("enumerateObjectsUsingBlock")] public void EnumerateObjectsUsingBlock(Action<AnyObject, int, UnsafePointer<ObjCBool>> block) { } /// <summary> /// Executes a given block using each object in the array. /// </summary> /// <param name="opts">A bit mask that specifies the options for the enumeration (whether it should be performed concurrently and whether it should be performed in reverse order).</param> /// <param name="usingBlock">The block to apply to elements in the array. /// The block takes three arguments: /// obj /// The element in the array. /// idx /// The index of the element in the array. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the array. The stop argument is an out-only argument. You should only ever set this Boolean to true within the Block.</param> [iOSVersion(4)] [Export("enumerateObjectsWithOptions")] public void EnumerateObjectsWithOptions(NSEnumerationOptions opts, Action<AnyObject, int, UnsafePointer<ObjCBool>> usingBlock) { } /// <summary> /// Executes a given block using the objects in the array at the specified indexes. /// </summary> /// <param name="indexSet">The indexes of the objects over which to enumerate.</param> /// <param name="options">A bit mask that specifies the options for the enumeration (whether it should be performed concurrently and whether it should be performed in reverse order).</param> /// <param name="usingBlock">The block to apply to elements in the array. /// The block takes three arguments: /// obj /// The element in the array. /// idx /// The index of the element in the array. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the array. The stop argument is an out-only argument. You should only ever set this Boolean to true within the Block.</param> [iOSVersion(4)] [Export("enumerateObjectsAtIndexes")] public void EnumerateObjectsAtIndexes(NSIndexSet indexSet, NSEnumerationOptions options, Action<AnyObject, int, UnsafePointer<ObjCBool>> usingBlock) { } /// <summary> /// Returns the first object contained in the receiving array that’s equal to an object in another given array. /// </summary> /// <param name="otherArray">An array.</param> [iOSVersion(2)] [Export("firstObjectCommonWithArray")] public AnyObject FirstObjectCommonWithArray(AnyObject[] otherArray) { return default(AnyObject); } /// <summary> /// Compares the receiving array to another array. /// </summary> /// <param name="otherArray">An array.</param> [iOSVersion(2)] [Export("isEqualToArray")] public bool IsEqualToArray(AnyObject[] otherArray) { return default(bool); } /// <summary> /// Returns a new array that is a copy of the receiving array with a given object added to the end. /// </summary> /// <param name="anObject">An object.</param> [iOSVersion(2)] [Export("arrayByAddingObject")] public AnyObject[] ArrayByAddingObject(AnyObject anObject) { return default(AnyObject[]); } /// <summary> /// Returns a new array that is a copy of the receiving array with the objects contained in another array added to the end. /// </summary> /// <param name="otherArray">An array.</param> [iOSVersion(2)] [Export("arrayByAddingObjectsFromArray")] public AnyObject[] ArrayByAddingObjectsFromArray(AnyObject[] otherArray) { return default(AnyObject[]); } /// <summary> /// Evaluates a given predicate against each object in the receiving array and returns a new array containing the objects for which the predicate returns true. /// </summary> /// <param name="predicate">The predicate against which to evaluate the receiving array’s elements.</param> [iOSVersion(3)] [Export("filteredArrayUsingPredicate")] public AnyObject[] FilteredArrayUsingPredicate(NSPredicate predicate) { return default(AnyObject[]); } /// <summary> /// Returns a new array containing the receiving array’s elements that fall within the limits specified by a given range. /// </summary> /// <param name="range">A range within the receiving array’s range of elements.</param> [iOSVersion(2)] [Export("subarrayWithRange")] public AnyObject[] SubarrayWithRange(NSRange range) { return default(AnyObject[]); } /// <summary> /// Returns a new array that lists the receiving array’s elements in ascending order as defined by the comparison function comparator. /// </summary> /// <param name="comparator"></param> /// <param name="context"></param> [iOSVersion(2)] [Export("sortedArrayUsingFunction")] public AnyObject[] SortedArrayUsingFunction(CFunctionPointer<Func<AnyObject, AnyObject, UnsafePointer<Action>, int>> comparator, UnsafePointer<Action> context) { return default(AnyObject[]); } /// <summary> /// Returns a new array that lists the receiving array’s elements in ascending order as defined by the comparison function comparator. /// </summary> /// <param name="comparator"></param> /// <param name="context"></param> /// <param name="hint"></param> [iOSVersion(2)] [Export("sortedArrayUsingFunction")] public AnyObject[] SortedArrayUsingFunction(CFunctionPointer<Func<AnyObject, AnyObject, UnsafePointer<Action>, int>> comparator, UnsafePointer<Action> context, NSData hint) { return default(AnyObject[]); } /// <summary> /// Returns a copy of the receiving array sorted as specified by a given array of sort descriptors. /// </summary> /// <param name="sortDescriptors">An array of NSSortDescriptor objects.</param> [iOSVersion(2)] [Export("sortedArrayUsingDescriptors")] public AnyObject[] SortedArrayUsingDescriptors(AnyObject[] sortDescriptors) { return default(AnyObject[]); } /// <summary> /// Returns an array that lists the receiving array’s elements in ascending order, as determined by the comparison method specified by a given selector. /// </summary> /// <param name="comparator">A selector that identifies the method to use to compare two elements at a time. The method should return NSOrderedAscending if the receiving array is smaller than the argument, NSOrderedDescending if the receiving array is larger than the argument, and NSOrderedSame if they are equal.</param> [iOSVersion(2)] [Export("sortedArrayUsingSelector")] public AnyObject[] SortedArrayUsingSelector(Selector comparator) { return default(AnyObject[]); } /// <summary> /// Returns an array that lists the receiving array’s elements in ascending order, as determined by the comparison method specified by a given NSComparator Block. /// </summary> /// <param name="cmptr">A comparator block.</param> [iOSVersion(4)] [Export("sortedArrayUsingComparator")] public AnyObject[] SortedArrayUsingComparator(NSComparator cmptr) { return default(AnyObject[]); } /// <summary> /// Returns an array that lists the receiving array’s elements in ascending order, as determined by the comparison method specified by a given NSComparator Block. /// </summary> /// <param name="opts">A bit mask that specifies the options for the sort (whether it should be performed concurrently and whether it should be performed stably).</param> /// <param name="usingComparator">A comparator block.</param> [iOSVersion(4)] [Export("sortedArrayWithOptions")] public AnyObject[] SortedArrayWithOptions(NSSortOptions opts, NSComparator usingComparator) { return default(AnyObject[]); } /// <summary> /// Constructs and returns an NSString object that is the result of interposing a given separator between the elements of the array. /// </summary> /// <param name="separator">The string to interpose between the elements of the array.</param> [iOSVersion(2)] [Export("componentsJoinedByString")] public string ComponentsJoinedByString(string separator) { return default(string); } /// <summary> /// Returns a string that represents the contents of the array, formatted as a property list. /// </summary> /// <param name="locale">An NSLocale object or an NSDictionary object that specifies options used for formatting each of the array’s elements (where recognized). Specify nil if you don’t want the elements formatted.</param> [iOSVersion(2)] [Export("descriptionWithLocale")] public string DescriptionWithLocale(AnyObject locale) { return default(string); } /// <summary> /// Returns a string that represents the contents of the array, formatted as a property list. /// </summary> /// <param name="locale">An NSLocale object or an NSDictionary object that specifies options used for formatting each of the array’s elements (where recognized). Specify nil if you don’t want the elements formatted.</param> /// <param name="indent">A level of indent, to make the output more readable: set level to 0 to use four spaces to indent, or 1 to indent the output with a tab character.</param> [iOSVersion(2)] [Export("descriptionWithLocale")] public string DescriptionWithLocale(AnyObject locale, int indent) { return default(string); } /// <summary> /// Writes the contents of the array to a file at a given path. /// </summary> /// <param name="path">The path at which to write the contents of the array. /// If path contains a tilde (~) character, you must expand it with stringByExpandingTildeInPath before invoking this method.</param> /// <param name="atomically">If true, the array is written to an auxiliary file, and then the auxiliary file is renamed to path. If false, the array is written directly to path. The true option guarantees that path, if it exists at all, won’t be corrupted even if the system should crash during writing.</param> [iOSVersion(2)] [Export("writeToFile")] public bool WriteToFile(string path, bool atomically) { return default(bool); } /// <summary> /// Writes the contents of the array to the location specified by a given URL. /// </summary> /// <param name="aURL">The location at which to write the array.</param> /// <param name="atomically">If true, the array is written to an auxiliary location, and then the auxiliary location is renamed to aURL. If false, the array is written directly to aURL. The true option guarantees that aURL, if it exists at all, won’t be corrupted even if the system should crash during writing.</param> [iOSVersion(2)] [Export("writeToURL")] public bool WriteToURL(NSURL aURL, bool atomically) { return default(bool); } /// <summary> /// Returns an array containing all the pathname elements in the receiving array that have filename extensions from a given array. /// </summary> /// <param name="filterTypes">An array of NSString objects containing filename extensions. The extensions should not include the dot (“.”) character.</param> [iOSVersion(2)] [Export("pathsMatchingExtensions")] public AnyObject[] PathsMatchingExtensions(AnyObject[] filterTypes) { return default(AnyObject[]); } /// <summary> /// Raises an exception. /// </summary> /// <param name="observer">The object to register for KVO notifications. The observer must implement the key-value observing method observeValueForKeyPath:ofObject:change:context:.</param> /// <param name="forKeyPath">The key path, relative to the array, of the property to observe. This value must not be nil.</param> /// <param name="options">A combination of NSKeyValueObservingOptions values that specifies what is included in observation notifications.</param> /// <param name="context">Arbitrary data that is passed to observer in observeValueForKeyPath:ofObject:change:context:.</param> [iOSVersion(2)] [Export("addObserver")] public void AddObserver(NSObject observer, string forKeyPath, NSKeyValueObservingOptions options, UnsafePointer<Action> context) { } /// <summary> /// Raises an exception. /// </summary> /// <param name="observer">The object to remove as an observer.</param> /// <param name="forKeyPath">A key-path, relative to the array, for which observer is registered to receive KVO change notifications. This value must not be nil.</param> [iOSVersion(2)] [Export("removeObserver")] public void RemoveObserver(NSObject observer, string forKeyPath) { } /// <summary> /// Raises an exception. /// </summary> /// <param name="observer">The object to remove as an observer.</param> /// <param name="forKeyPath">A key-path, relative to the set, for which observer is registered to receive KVO change notifications. This value must not be nil.</param> /// <param name="context">The context passed to the notifications.</param> [iOSVersion(5)] [Export("removeObserver")] public void RemoveObserver(NSObject observer, string forKeyPath, UnsafePointer<Action> context) { } /// <summary> /// Raises an exception. /// </summary> /// <param name="observer">The object to remove as an observer.</param> /// <param name="fromObjectsAtIndexes">The index set.</param> /// <param name="forKeyPath">A key-path, relative to the array, for which observer is registered to receive KVO change notifications. This value must not be nil.</param> /// <param name="context">The context passed to the notifications.</param> [iOSVersion(5)] [Export("removeObserver")] public void RemoveObserver(NSObject observer, NSIndexSet fromObjectsAtIndexes, string forKeyPath, UnsafePointer<Action> context) { } /// <summary> /// Registers an observer to receive key value observer notifications for the specified key-path relative to the objects at the indexes. /// </summary> /// <param name="anObserver">The observer.</param> /// <param name="toObjectsAtIndexes">The index set.</param> /// <param name="forKeyPath">The key path, relative to the array, to be observed.</param> /// <param name="options">The options to be included in the notification.</param> /// <param name="context">The context passed to the notifications.</param> [iOSVersion(2)] [Export("addObserver")] public void AddObserver(NSObject anObserver, NSIndexSet toObjectsAtIndexes, string forKeyPath, NSKeyValueObservingOptions options, UnsafePointer<Action> context) { } /// <summary> /// Removes anObserver from all key value observer notifications associated with the specified keyPath relative to the array’s objects at indexes. /// </summary> /// <param name="anObserver">The observer.</param> /// <param name="fromObjectsAtIndexes">The index set.</param> /// <param name="forKeyPath">The key path, relative to the array, to be observed.</param> [iOSVersion(2)] [Export("removeObserver")] public void RemoveObserver(NSObject anObserver, NSIndexSet fromObjectsAtIndexes, string forKeyPath) { } /// <summary> /// Invokes setValue:forKey: on each of the array's items using the specified value and key. /// </summary> /// <param name="value">The object value.</param> /// <param name="forKey">The key to store the value.</param> [iOSVersion(2)] [Export("setValue")] public void SetValue(AnyObject value, string forKey) { } /// <summary> /// Returns an array containing the results of invoking valueForKey: using key on each of the array's objects. /// </summary> /// <param name="key">The key to retrieve.</param> [iOSVersion(2)] [Export("valueForKey")] public AnyObject ValueForKey(string key) { return default(AnyObject); } /// <summary> /// The number of objects in the array. /// </summary> [iOSVersion(2)] [Export("count")] public int Count { get; private set; } /// <summary> /// The first object in the array. (read-only) /// </summary> [iOSVersion(4)] [Export("firstObject")] public AnyObject FirstObject { get; private set; } /// <summary> /// The last object in the array. (read-only) /// </summary> [iOSVersion(2)] [Export("lastObject")] public AnyObject LastObject { get; private set; } /// <summary> /// Analyzes the array and returns a “hint” that speeds the sorting of the array when the hint is supplied to sortedArrayUsingFunction:context:hint:. (read-only) /// </summary> [iOSVersion(2)] [Export("sortedArrayHint")] public NSData SortedArrayHint { get; private set; } /// <summary> /// A string that represents the contents of the array, formatted as a property list. (read-only) /// </summary> [iOSVersion(2)] [Export("description")] public string Description { get; private set; } } /// <summary> /// Options for searches and insertions using indexOfObject:inSortedRange:options:usingComparator:. /// </summary> [iOSVersion(4)] public enum NSBinarySearchingOptions { /// <summary> /// Specifies that the search should return the first object in the range that is equal to the given object. /// </summary> [iOSVersion(4)] FirstEqual, /// <summary> /// Specifies that the search should return the last object in the range that is equal to the given object. /// </summary> [iOSVersion(4)] LastEqual, /// <summary> /// Returns the index at which you should insert the object in order to maintain a sorted array. /// </summary> [iOSVersion(4)] InsertionIndex, } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSArray and its subclass NSMutableArray manage ordered collections of objects called arrays. NSArray creates static arrays, and NSMutableArray creates dynamic arrays. You can use arrays when you need an ordered collection of objects. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSArray_Class/index.html#//apple_ref/occ/cl/NSArray"/> [iOSVersion(2)] [Export("")] public class NSArray : NSObject//, AnyObject, ArrayLiteralConvertible, CKRecordValue, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSFastEnumeration, NSMutableCopying, NSObjectProtocol, NSSecureCoding, Printable, Reflectable, SequenceType { /// <summary> /// Creates and returns an array containing a given object. /// </summary> /// <param name="@object">An object.</param> [iOSVersion(2)] [Export("convenience init")] public NSArray(AnyObject @object) { } /// <summary> /// Initializes a newly allocated array. /// </summary> [iOSVersion(2)] public NSArray() { } /// <summary> /// Initializes a newly allocated array by placing in it the objects contained in a given array. /// </summary> /// <param name="array">An array.</param> [iOSVersion(2)] [Export("convenience init")] public NSArray(AnyObject[] array) { } /// <summary> /// Initializes a newly allocated array using anArray as the source of data objects for the array. /// </summary> /// <param name="array">An array containing the objects with which to initialize the new array.</param> /// <param name="copyItems">If true, each object in array receives a copyWithZone: message to create a copy of the object—objects must conform to the NSCopying protocol. In a managed memory environment, this is instead of the retain message the object would otherwise receive. The object copy is then added to the returned array. /// If false, then in a managed memory environment each object in array simply receives a retain message when it is added to the returned array.</param> [iOSVersion(2)] [Export("convenience init")] public NSArray(AnyObject[] array, bool copyItems) { } /// <summary> /// Initializes a newly allocated array to include a given number of objects from a given C array. /// </summary> /// <param name="objects">A C array of objects.</param> /// <param name="count">The number of values from the objects C array to include in the new array. This number will be the count of the new array—it must not be negative or greater than the number of elements in objects.</param> [iOSVersion(2)] public NSArray(UnsafePointer<AnyObject> objects, int count) { } /// <summary> /// Returns a Boolean value that indicates whether a given object is present in the array. /// </summary> /// <param name="anObject">An object.</param> [iOSVersion(2)] [Export("containsObject")] public virtual bool ContainsObject(AnyObject anObject) { return default(bool); } /// <summary> /// Copies all the objects contained in the array to aBuffer. /// </summary> /// <param name="aBuffer">A C array of objects of size at least the count of the array.</param> [iOSVersion(2)] [Export("getObjects")] public virtual void GetObjects(AutoreleasingUnsafeMutablePointer<AnyObject> aBuffer) { } /// <summary> /// Copies the objects contained in the array that fall within the specified range to aBuffer. /// </summary> /// <param name="aBuffer">A C array of objects of size at least the length of the range specified by aRange.</param> /// <param name="range">A range within the bounds of the array. /// If the location plus the length of the range is greater than the count of the array, this method raises an NSRangeException.</param> [iOSVersion(2)] [Export("getObjects")] public virtual void GetObjects(AutoreleasingUnsafeMutablePointer<AnyObject> aBuffer, NSRange range) { } /// <summary> /// Returns the object located at the specified index. /// </summary> /// <param name="index">An index within the bounds of the array.</param> [iOSVersion(2)] [Export("objectAtIndex")] public virtual AnyObject ObjectAtIndex(int index) { return default(AnyObject); } /// <summary> /// Returns an array containing the objects in the array at the indexes specified by a given index set. /// </summary> /// <param name="indexes"></param> [iOSVersion(2)] [Export("objectsAtIndexes")] public virtual AnyObject[] ObjectsAtIndexes(NSIndexSet indexes) { return default(AnyObject[]); } /// <summary> /// Returns an enumerator object that lets you access each object in the array. /// </summary> [iOSVersion(2)] [Export("objectEnumerator")] public virtual NSEnumerator ObjectEnumerator() { return default(NSEnumerator); } /// <summary> /// Returns an enumerator object that lets you access each object in the array, in reverse order. /// </summary> [iOSVersion(2)] [Export("reverseObjectEnumerator")] public virtual NSEnumerator ReverseObjectEnumerator() { return default(NSEnumerator); } /// <summary> /// Returns the lowest index whose corresponding array value is equal to a given object. /// </summary> /// <param name="anObject">An object.</param> [iOSVersion(2)] [Export("indexOfObject")] public virtual int IndexOfObject(AnyObject anObject) { return default(int); } /// <summary> /// Returns the lowest index within a specified range whose corresponding array value is equal to a given object . /// </summary> /// <param name="anObject">An object.</param> /// <param name="inRange">The range of indexes in the array within which to search for anObject.</param> [iOSVersion(2)] [Export("indexOfObject")] public virtual int IndexOfObject(AnyObject anObject, NSRange inRange) { return default(int); } /// <summary> /// Returns the lowest index whose corresponding array value is identical to a given object. /// </summary> /// <param name="anObject">An object.</param> [iOSVersion(2)] [Export("indexOfObjectIdenticalTo")] public virtual int IndexOfObjectIdenticalTo(AnyObject anObject) { return default(int); } /// <summary> /// Returns the lowest index within a specified range whose corresponding array value is equal to a given object . /// </summary> /// <param name="anObject">An object.</param> /// <param name="inRange">The range of indexes in the array within which to search for anObject.</param> [iOSVersion(2)] [Export("indexOfObjectIdenticalTo")] public virtual int IndexOfObjectIdenticalTo(AnyObject anObject, NSRange inRange) { return default(int); } /// <summary> /// Returns the index of the first object in the array that passes a test in a given Block. /// </summary> /// <param name="predicate">The block to apply to elements in the array. /// The block takes three arguments: /// obj /// The element in the array. /// idx /// The index of the element in the array. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the array. The stop argument is an out-only argument. You should only ever set this Boolean to true within the Block. /// The Block returns a Boolean value that indicates whether obj passed the test. Returning true will stop further processing of the array.</param> [iOSVersion(4)] [Export("indexOfObjectPassingTest")] public virtual int IndexOfObjectPassingTest(Func<AnyObject, int, UnsafeMutablePointer<ObjCBool>, bool> predicate) { return default(int); } /// <summary> /// Returns the index of an object in the array that passes a test in a given Block for a given set of enumeration options. /// </summary> /// <param name="opts">A bit mask that specifies the options for the enumeration (whether it should be performed concurrently and whether it should be performed in reverse order).</param> /// <param name="passingTest">The block to apply to elements in the array. /// The block takes three arguments: /// obj /// The element in the array. /// idx /// The index of the element in the array. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the array. The stop argument is an out-only argument. You should only ever set this Boolean to true within the Block. /// The Block returns a Boolean value that indicates whether obj passed the test.</param> [iOSVersion(4)] [Export("indexOfObjectWithOptions")] public virtual int IndexOfObjectWithOptions(NSEnumerationOptions opts, Func<AnyObject, int, UnsafeMutablePointer<ObjCBool>, bool> passingTest) { return default(int); } /// <summary> /// Returns the index, from a given set of indexes, of the first object in the array that passes a test in a given Block for a given set of enumeration options. /// </summary> /// <param name="indexSet">The indexes of the objects over which to enumerate.</param> /// <param name="options">A bit mask that specifies the options for the enumeration (whether it should be performed concurrently and whether it should be performed in reverse order).</param> /// <param name="passingTest">The block to apply to elements in the array. /// The block takes three arguments: /// obj /// The element in the array. /// idx /// The index of the element in the array. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the array. The stop argument is an out-only argument. You should only ever set this Boolean to true within the Block. /// The Block returns a Boolean value that indicates whether obj passed the test.</param> [iOSVersion(4)] [Export("indexOfObjectAtIndexes")] public virtual int IndexOfObjectAtIndexes(NSIndexSet indexSet, NSEnumerationOptions options, Func<AnyObject, int, UnsafeMutablePointer<ObjCBool>, bool> passingTest) { return default(int); } /// <summary> /// Returns the indexes of objects in the array that pass a test in a given Block. /// </summary> /// <param name="predicate">The block to apply to elements in the array. /// The block takes three arguments: /// obj /// The element in the array. /// idx /// The index of the element in the array. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the array. The stop argument is an out-only argument. You should only ever set this Boolean to true within the Block. /// The Block returns a Boolean value that indicates whether obj passed the test.</param> [iOSVersion(4)] [Export("indexesOfObjectsPassingTest")] public virtual NSIndexSet IndexesOfObjectsPassingTest(Func<AnyObject, int, UnsafeMutablePointer<ObjCBool>, bool> predicate) { return default(NSIndexSet); } /// <summary> /// Returns the indexes of objects in the array that pass a test in a given Block for a given set of enumeration options. /// </summary> /// <param name="opts">A bit mask that specifies the options for the enumeration (whether it should be performed concurrently and whether it should be performed in reverse order).</param> /// <param name="passingTest">The block to apply to elements in the array. /// The block takes three arguments: /// obj /// The element in the array. /// idx /// The index of the element in the array. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the array. The stop argument is an out-only argument. You should only ever set this Boolean to true within the Block. /// The Block returns a Boolean value that indicates whether obj passed the test.</param> [iOSVersion(4)] [Export("indexesOfObjectsWithOptions")] public virtual NSIndexSet IndexesOfObjectsWithOptions(NSEnumerationOptions opts, Func<AnyObject, int, UnsafeMutablePointer<ObjCBool>, bool> passingTest) { return default(NSIndexSet); } /// <summary> /// Returns the indexes, from a given set of indexes, of objects in the array that pass a test in a given Block for a given set of enumeration options. /// </summary> /// <param name="indexSet">The indexes of the objects over which to enumerate.</param> /// <param name="options">A bit mask that specifies the options for the enumeration (whether it should be performed concurrently and whether it should be performed in reverse order).</param> /// <param name="passingTest">The block to apply to elements in the array. /// The block takes three arguments: /// obj /// The element in the array. /// idx /// The index of the element in the array. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the array. The stop argument is an out-only argument. You should only ever set this Boolean to true within the Block. /// The Block returns a Boolean value that indicates whether obj passed the test.</param> [iOSVersion(4)] [Export("indexesOfObjectsAtIndexes")] public virtual NSIndexSet IndexesOfObjectsAtIndexes(NSIndexSet indexSet, NSEnumerationOptions options, Func<AnyObject, int, UnsafeMutablePointer<ObjCBool>, bool> passingTest) { return default(NSIndexSet); } /// <summary> /// Returns the index, within a specified range, of an object compared with elements in the array using a given NSComparator block. /// </summary> /// <param name="obj">An object for which to search in the array. /// If this value is nil, throws an NSInvalidArgumentException.</param> /// <param name="inSortedRange">The range within the array to search for obj. /// If r exceeds the bounds of the array (if the location plus length of the range is greater than the count of the array), throws an NSRangeException.</param> /// <param name="options">Options for the search. For possible values, see NSBinarySearchingOptions. /// If you specify both NSBinarySearchingFirstEqual and NSBinarySearchingLastEqual, throws an NSInvalidArgumentException.</param> /// <param name="usingComparator">A comparator block used to compare the object obj with elements in the array. /// If this value is NULL, throws an NSInvalidArgumentException.</param> [iOSVersion(4)] [Export("indexOfObject")] public virtual int IndexOfObject(AnyObject obj, NSRange inSortedRange, NSBinarySearchingOptions options, NSComparator usingComparator) { return default(int); } /// <summary> /// Executes a given block using each object in the array, starting with the first object and continuing through the array to the last object. /// </summary> /// <param name="block">The block to apply to elements in the array. /// The block takes three arguments: /// obj /// The element in the array. /// idx /// The index of the element in the array. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the array. The stop argument is an out-only argument. You should only ever set this Boolean to true within the Block.</param> [iOSVersion(4)] [Export("enumerateObjectsUsingBlock")] public virtual void EnumerateObjectsUsingBlock(Action<AnyObject, int, UnsafeMutablePointer<ObjCBool>> block) { } /// <summary> /// Executes a given block using each object in the array. /// </summary> /// <param name="opts">A bit mask that specifies the options for the enumeration (whether it should be performed concurrently and whether it should be performed in reverse order).</param> /// <param name="usingBlock">The block to apply to elements in the array. /// The block takes three arguments: /// obj /// The element in the array. /// idx /// The index of the element in the array. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the array. The stop argument is an out-only argument. You should only ever set this Boolean to true within the Block.</param> [iOSVersion(4)] [Export("enumerateObjectsWithOptions")] public virtual void EnumerateObjectsWithOptions(NSEnumerationOptions opts, Action<AnyObject, int, UnsafeMutablePointer<ObjCBool>> usingBlock) { } /// <summary> /// Executes a given block using the objects in the array at the specified indexes. /// </summary> /// <param name="indexSet">The indexes of the objects over which to enumerate.</param> /// <param name="options">A bit mask that specifies the options for the enumeration (whether it should be performed concurrently and whether it should be performed in reverse order).</param> /// <param name="usingBlock">The block to apply to elements in the array. /// The block takes three arguments: /// obj /// The element in the array. /// idx /// The index of the element in the array. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the array. The stop argument is an out-only argument. You should only ever set this Boolean to true within the Block.</param> [iOSVersion(4)] [Export("enumerateObjectsAtIndexes")] public virtual void EnumerateObjectsAtIndexes(NSIndexSet indexSet, NSEnumerationOptions options, Action<AnyObject, int, UnsafeMutablePointer<ObjCBool>> usingBlock) { } /// <summary> /// Returns the first object contained in the receiving array that’s equal to an object in another given array. /// </summary> /// <param name="otherArray">An array.</param> [iOSVersion(2)] [Export("firstObjectCommonWithArray")] [return:Optional] public virtual AnyObject FirstObjectCommonWithArray(AnyObject[] otherArray) { return default(AnyObject); } /// <summary> /// Compares the receiving array to another array. /// </summary> /// <param name="otherArray">An array.</param> [iOSVersion(2)] [Export("isEqualToArray")] public virtual bool IsEqualToArray(AnyObject[] otherArray) { return default(bool); } /// <summary> /// Returns a new array that is a copy of the receiving array with a given object added to the end. /// </summary> /// <param name="anObject">An object.</param> [iOSVersion(2)] [Export("arrayByAddingObject")] public virtual AnyObject[] ArrayByAddingObject(AnyObject anObject) { return default(AnyObject[]); } /// <summary> /// Returns a new array that is a copy of the receiving array with the objects contained in another array added to the end. /// </summary> /// <param name="otherArray">An array.</param> [iOSVersion(2)] [Export("arrayByAddingObjectsFromArray")] public virtual AnyObject[] ArrayByAddingObjectsFromArray(AnyObject[] otherArray) { return default(AnyObject[]); } /// <summary> /// Evaluates a given predicate against each object in the receiving array and returns a new array containing the objects for which the predicate returns true. /// </summary> /// <param name="predicate">The predicate against which to evaluate the receiving array’s elements.</param> [iOSVersion(3)] [Export("filteredArrayUsingPredicate")] public virtual AnyObject[] FilteredArrayUsingPredicate(NSPredicate predicate) { return default(AnyObject[]); } /// <summary> /// Returns a new array containing the receiving array’s elements that fall within the limits specified by a given range. /// </summary> /// <param name="range">A range within the receiving array’s range of elements.</param> [iOSVersion(2)] [Export("subarrayWithRange")] public virtual AnyObject[] SubarrayWithRange(NSRange range) { return default(AnyObject[]); } /// <summary> /// Returns a new array that lists the receiving array’s elements in ascending order as defined by the comparison function comparator. /// </summary> /// <param name="comparator"></param> /// <param name="context"></param> [iOSVersion(2)] [Export("sortedArrayUsingFunction")] public virtual AnyObject[] SortedArrayUsingFunction(CFunctionPointer<Func<AnyObject, AnyObject, UnsafeMutablePointer, int>> comparator, UnsafeMutablePointer context) { return default(AnyObject[]); } /// <summary> /// Returns a new array that lists the receiving array’s elements in ascending order as defined by the comparison function comparator. /// </summary> /// <param name="comparator"></param> /// <param name="context"></param> /// <param name="hint"></param> [iOSVersion(2)] [Export("sortedArrayUsingFunction")] public virtual AnyObject[] SortedArrayUsingFunction(CFunctionPointer<Func<AnyObject, AnyObject, UnsafeMutablePointer, int>> comparator, UnsafeMutablePointer context, [Optional] NSData hint) { return default(AnyObject[]); } /// <summary> /// Returns a copy of the receiving array sorted as specified by a given array of sort descriptors. /// </summary> /// <param name="sortDescriptors">An array of NSSortDescriptor objects.</param> [iOSVersion(2)] [Export("sortedArrayUsingDescriptors")] public virtual AnyObject[] SortedArrayUsingDescriptors(AnyObject[] sortDescriptors) { return default(AnyObject[]); } /// <summary> /// Returns an array that lists the receiving array’s elements in ascending order, as determined by the comparison method specified by a given selector. /// </summary> /// <param name="comparator">A selector that identifies the method to use to compare two elements at a time. The method should return NSOrderedAscending if the receiving array is smaller than the argument, NSOrderedDescending if the receiving array is larger than the argument, and NSOrderedSame if they are equal.</param> [iOSVersion(2)] [Export("sortedArrayUsingSelector")] public virtual AnyObject[] SortedArrayUsingSelector(Selector comparator) { return default(AnyObject[]); } /// <summary> /// Returns an array that lists the receiving array’s elements in ascending order, as determined by the comparison method specified by a given NSComparator Block. /// </summary> /// <param name="cmptr">A comparator block.</param> [iOSVersion(4)] [Export("sortedArrayUsingComparator")] public virtual AnyObject[] SortedArrayUsingComparator(NSComparator cmptr) { return default(AnyObject[]); } /// <summary> /// Returns an array that lists the receiving array’s elements in ascending order, as determined by the comparison method specified by a given NSComparator Block. /// </summary> /// <param name="opts">A bit mask that specifies the options for the sort (whether it should be performed concurrently and whether it should be performed stably).</param> /// <param name="usingComparator">A comparator block.</param> [iOSVersion(4)] [Export("sortedArrayWithOptions")] public virtual AnyObject[] SortedArrayWithOptions(NSSortOptions opts, NSComparator usingComparator) { return default(AnyObject[]); } /// <summary> /// Constructs and returns an NSString object that is the result of interposing a given separator between the elements of the array. /// </summary> /// <param name="separator">The string to interpose between the elements of the array.</param> [iOSVersion(2)] [Export("componentsJoinedByString")] public virtual string ComponentsJoinedByString(string separator) { return default(string); } /// <summary> /// Returns a string that represents the contents of the array, formatted as a property list. /// </summary> /// <param name="locale">An NSLocale object or an NSDictionary object that specifies options used for formatting each of the array’s elements (where recognized). Specify nil if you don’t want the elements formatted.</param> [iOSVersion(2)] [Export("descriptionWithLocale")] public virtual string DescriptionWithLocale([Optional] AnyObject locale) { return default(string); } /// <summary> /// Returns a string that represents the contents of the array, formatted as a property list. /// </summary> /// <param name="locale">An NSLocale object or an NSDictionary object that specifies options used for formatting each of the array’s elements (where recognized). Specify nil if you don’t want the elements formatted.</param> /// <param name="indent">A level of indent, to make the output more readable: set level to 0 to use four spaces to indent, or 1 to indent the output with a tab character.</param> [iOSVersion(2)] [Export("descriptionWithLocale")] public virtual string DescriptionWithLocale([Optional] AnyObject locale, int indent) { return default(string); } /// <summary> /// Writes the contents of the array to a file at a given path. /// </summary> /// <param name="path">The path at which to write the contents of the array. /// If path contains a tilde (~) character, you must expand it with stringByExpandingTildeInPath before invoking this method.</param> /// <param name="atomically">If true, the array is written to an auxiliary file, and then the auxiliary file is renamed to path. If false, the array is written directly to path. The true option guarantees that path, if it exists at all, won’t be corrupted even if the system should crash during writing.</param> [iOSVersion(2)] [Export("writeToFile")] public virtual bool WriteToFile(string path, bool atomically) { return default(bool); } /// <summary> /// Writes the contents of the array to the location specified by a given URL. /// </summary> /// <param name="aURL">The location at which to write the array.</param> /// <param name="atomically">If true, the array is written to an auxiliary location, and then the auxiliary location is renamed to aURL. If false, the array is written directly to aURL. The true option guarantees that aURL, if it exists at all, won’t be corrupted even if the system should crash during writing.</param> [iOSVersion(2)] [Export("writeToURL")] public virtual bool WriteToURL(NSURL aURL, bool atomically) { return default(bool); } /// <summary> /// Returns an array containing all the pathname elements in the receiving array that have filename extensions from a given array. /// </summary> /// <param name="filterTypes">An array of NSString objects containing filename extensions. The extensions should not include the dot (“.”) character.</param> [iOSVersion(2)] [Export("pathsMatchingExtensions")] public virtual AnyObject[] PathsMatchingExtensions(AnyObject[] filterTypes) { return default(AnyObject[]); } /// <summary> /// Raises an exception. /// </summary> /// <param name="observer">The object to register for KVO notifications. The observer must implement the key-value observing method observeValueForKeyPath:ofObject:change:context:.</param> /// <param name="forKeyPath">The key path, relative to the array, of the property to observe. This value must not be nil.</param> /// <param name="options">A combination of NSKeyValueObservingOptions values that specifies what is included in observation notifications.</param> /// <param name="context">Arbitrary data that is passed to observer in observeValueForKeyPath:ofObject:change:context:.</param> [iOSVersion(2)] [Export("addObserver")] public virtual void AddObserver(NSObject observer, string forKeyPath, NSKeyValueObservingOptions options, UnsafeMutablePointer context) { } /// <summary> /// Raises an exception. /// </summary> /// <param name="observer">The object to remove as an observer.</param> /// <param name="forKeyPath">A key-path, relative to the array, for which observer is registered to receive KVO change notifications. This value must not be nil.</param> [iOSVersion(2)] [Export("removeObserver")] public virtual void RemoveObserver(NSObject observer, string forKeyPath) { } /// <summary> /// Raises an exception. /// </summary> /// <param name="observer">The object to remove as an observer.</param> /// <param name="forKeyPath">A key-path, relative to the set, for which observer is registered to receive KVO change notifications. This value must not be nil.</param> /// <param name="context">The context passed to the notifications.</param> [iOSVersion(5)] [Export("removeObserver")] public virtual void RemoveObserver(NSObject observer, string forKeyPath, UnsafeMutablePointer context) { } /// <summary> /// Raises an exception. /// </summary> /// <param name="observer">The object to remove as an observer.</param> /// <param name="fromObjectsAtIndexes">The index set.</param> /// <param name="forKeyPath">A key-path, relative to the array, for which observer is registered to receive KVO change notifications. This value must not be nil.</param> /// <param name="context">The context passed to the notifications.</param> [iOSVersion(5)] [Export("removeObserver")] public virtual void RemoveObserver(NSObject observer, NSIndexSet fromObjectsAtIndexes, string forKeyPath, UnsafeMutablePointer context) { } /// <summary> /// Registers an observer to receive key value observer notifications for the specified key-path relative to the objects at the indexes. /// </summary> /// <param name="anObserver">The observer.</param> /// <param name="toObjectsAtIndexes">The index set.</param> /// <param name="forKeyPath">The key path, relative to the array, to be observed.</param> /// <param name="options">The options to be included in the notification.</param> /// <param name="context">The context passed to the notifications.</param> [iOSVersion(2)] [Export("addObserver")] public virtual void AddObserver(NSObject anObserver, NSIndexSet toObjectsAtIndexes, string forKeyPath, NSKeyValueObservingOptions options, UnsafeMutablePointer context) { } /// <summary> /// Removes anObserver from all key value observer notifications associated with the specified keyPath relative to the array’s objects at indexes. /// </summary> /// <param name="anObserver">The observer.</param> /// <param name="fromObjectsAtIndexes">The index set.</param> /// <param name="forKeyPath">The key path, relative to the array, to be observed.</param> [iOSVersion(2)] [Export("removeObserver")] public virtual void RemoveObserver(NSObject anObserver, NSIndexSet fromObjectsAtIndexes, string forKeyPath) { } /// <summary> /// Invokes setValue:forKey: on each of the array&#39;s items using the specified value and key. /// </summary> /// <param name="value">The object value.</param> /// <param name="forKey">The key to store the value.</param> [iOSVersion(2)] [Export("setValue")] public virtual void SetValue([Optional] AnyObject value, string forKey) { } /// <summary> /// Returns an array containing the results of invoking valueForKey: using key on each of the array&#39;s objects. /// </summary> /// <param name="key">The key to retrieve.</param> [iOSVersion(2)] [Export("valueForKey")] [return:Optional] public virtual AnyObject ValueForKey(string key) { return default(AnyObject); } /// <summary> /// The number of objects in the array. /// </summary> [iOSVersion(2)] [Export("count")] public int Count { get; private set; } /// <summary> /// The first object in the array. (read-only) /// </summary> [iOSVersion(4)] [Export("firstObject")] [Optional] public AnyObject FirstObject { get; private set; } /// <summary> /// The last object in the array. (read-only) /// </summary> [iOSVersion(2)] [Export("lastObject")] [Optional] public AnyObject LastObject { get; private set; } /// <summary> /// Analyzes the array and returns a “hint” that speeds the sorting of the array when the hint is supplied to sortedArrayUsingFunction:context:hint:. (read-only) /// </summary> [iOSVersion(2)] [Export("sortedArrayHint")] public NSData SortedArrayHint { get; private set; } /// <summary> /// A string that represents the contents of the array, formatted as a property list. (read-only) /// </summary> [iOSVersion(2)] [Export("description")] public string Description { get; private set; } } /// <summary> /// Options for searches and insertions using indexOfObject:inSortedRange:options:usingComparator:. /// </summary> public enum NSBinarySearchingOptions { /// <summary> /// Specifies that the search should return the first object in the range that is equal to the given object. /// </summary> [iOSVersion(4)] FirstEqual, /// <summary> /// Specifies that the search should return the last object in the range that is equal to the given object. /// </summary> [iOSVersion(4)] LastEqual, /// <summary> /// Returns the index at which you should insert the object in order to maintain a sorted array. /// </summary> [iOSVersion(4)] InsertionIndex, } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSAssertionHandler.cs b/CocoaSharp/Foundation/NSAssertionHandler.cs
index eb9e00db..11a56f00 100644
--- a/CocoaSharp/Foundation/NSAssertionHandler.cs
+++ b/CocoaSharp/Foundation/NSAssertionHandler.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSAssertionHandler objects are automatically created to handle false assertions. Assertion macros, such as NSAssert and NSCAssert, are used to evaluate a condition, and, if the condition evaluates to false, the macros pass a string to an NSAssertionHandler object describing the failure. Each thread has its own NSAssertionHandler object. When invoked, an assertion handler prints an error message that includes the method and class (or function) containing the assertion and raises an NSInternalInconsistencyException. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSAssertionHandler_Class/index.html#//apple_ref/occ/cl/NSAssertionHandler"/> [iOSVersion(2)] public class NSAssertionHandler : NSObject//, AnyObject, NSObjectProtocol { /// <summary> /// Returns the NSAssertionHandler object associated with the current thread. /// </summary> [iOSVersion(2)] [Export("currentHandler")] public static NSAssertionHandler CurrentHandler() { return default(NSAssertionHandler); } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSAssertionHandler objects are automatically created to handle false assertions. Assertion macros, such as NSAssert and NSCAssert, are used to evaluate a condition, and, if the condition evaluates to false, the macros pass a string to an NSAssertionHandler object describing the failure. Each thread has its own NSAssertionHandler object. When invoked, an assertion handler prints an error message that includes the method and class (or function) containing the assertion and raises an NSInternalInconsistencyException. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSAssertionHandler_Class/index.html#//apple_ref/occ/cl/NSAssertionHandler"/> [iOSVersion(2)] [Export("")] public class NSAssertionHandler : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSObjectProtocol, Printable { public NSAssertionHandler() { } /// <summary> /// Returns the NSAssertionHandler object associated with the current thread. /// </summary> [iOSVersion(2)] [Export("currentHandler")] public static NSAssertionHandler CurrentHandler() { return default(NSAssertionHandler); } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSAttributedString.cs b/CocoaSharp/Foundation/NSAttributedString.cs
index 57e4dea6..e5d3c4c8 100644
--- a/CocoaSharp/Foundation/NSAttributedString.cs
+++ b/CocoaSharp/Foundation/NSAttributedString.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// An NSAttributedString object manages character strings and associated sets of attributes (for example, font and kerning) that apply to individual characters or ranges of characters in the string. An association of characters and their attributes is called an attributed string. The cluster’s two public classes, NSAttributedString and NSMutableAttributedString, declare the programmatic interface for read-only attributed strings and modifiable attributed strings, respectively. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSAttributedString_Class/index.html#//apple_ref/occ/cl/NSAttributedString"/> [iOSVersion(3.2)] public class NSAttributedString : NSObject//, AnyObject, NSCoding, NSCopying, NSMutableCopying, NSObjectProtocol, NSSecureCoding { /// <summary> /// Returns an NSAttributedString object initialized with the characters of a given string and no attribute information. /// </summary> /// <param name="@string">The characters for the new object.</param> [iOSVersion(3.2)] public NSAttributedString(string @string) { } /// <summary> /// Returns an NSAttributedString object initialized with the characters and attributes of another given attributed string. /// </summary> /// <param name="attributedString">An attributed string.</param> [iOSVersion(3.2)] public NSAttributedString(NSAttributedString attributedString) { } /// <summary> /// Returns an NSAttributedString object initialized with a given string and attributes. /// </summary> /// <param name="@string">The string for the new attributed string.</param> /// <param name="attributes">The attributes for the new attributed string. For information about where to find the attribute keys you can include in this dictionary, see the overview section of this document.</param> [iOSVersion(3.2)] public NSAttributedString(string @string, Dictionary<NSObject, AnyObject> attributes) { } /// <summary> /// Returns the attributes for the character at a given index. /// </summary> /// <param name="index">The index for which to return attributes. This value must lie within the bounds of the receiver.</param> /// <param name="effectiveRange">Upon return, the range over which the attributes and values are the same as those at index. This range isn’t necessarily the maximum range covered, and its extent is implementation-dependent. If you need the maximum range, use attributesAtIndex:longestEffectiveRange:inRange:. If you don't need this value, pass NULL.</param> [iOSVersion(3.2)] [Export("attributesAtIndex")] public Dictionary<NSObject, AnyObject> AttributesAtIndex(int index, NSRangePointer effectiveRange) { return default(Dictionary<NSObject, AnyObject>); } /// <summary> /// Returns the attributes for the character at a given index, and by reference the range over which the attributes apply. /// </summary> /// <param name="index">The index for which to return attributes. This value must not exceed the bounds of the receiver.</param> /// <param name="longestEffectiveRange">If non-NULL, upon return contains the maximum range over which the attributes and values are the same as those at index, clipped to rangeLimit.</param> /// <param name="inRange">The range over which to search for continuous presence of the attributes at index. This value must not exceed the bounds of the receiver.</param> [iOSVersion(3.2)] [Export("attributesAtIndex")] public Dictionary<NSObject, AnyObject> AttributesAtIndex(int index, NSRangePointer longestEffectiveRange, NSRange inRange) { return default(Dictionary<NSObject, AnyObject>); } /// <summary> /// Returns the value for an attribute with a given name of the character at a given index, and by reference the range over which the attribute applies. /// </summary> /// <param name="attributeName">The name of an attribute.</param> /// <param name="atIndex">The index for which to return attributes. This value must not exceed the bounds of the receiver.</param> /// <param name="effectiveRange">If non-NULL: /// If the named attribute exists at index, upon return aRange contains a range over which the named attribute’s value applies. /// If the named attribute does not exist at index, upon return aRange contains the range over which the attribute does not exist. /// The range isn’t necessarily the maximum range covered by attributeName, and its extent is implementation-dependent. If you need the maximum range, use attribute:atIndex:longestEffectiveRange:inRange:. If you don't need this value, pass NULL.</param> [iOSVersion(3.2)] [Export("attribute")] public AnyObject Attribute(string attributeName, int atIndex, NSRangePointer effectiveRange) { return default(AnyObject); } /// <summary> /// Returns the value for the attribute with a given name of the character at a given index, and by reference the range over which the attribute applies. /// </summary> /// <param name="attributeName">The name of an attribute.</param> /// <param name="atIndex">The index at which to test for attributeName.</param> /// <param name="longestEffectiveRange">If non-NULL: /// If the named attribute exists at index, upon return aRange contains the full range over which the value of the named attribute is the same as that at index, clipped to rangeLimit. /// If the named attribute does not exist at index, upon return aRange contains the full range over which the attribute does not exist, clipped to rangeLimit. /// If you don't need this value, pass NULL.</param> /// <param name="inRange">The range over which to search for continuous presence of attributeName. This value must not exceed the bounds of the receiver.</param> [iOSVersion(3.2)] [Export("attribute")] public AnyObject Attribute(string attributeName, int atIndex, NSRangePointer longestEffectiveRange, NSRange inRange) { return default(AnyObject); } /// <summary> /// Returns a Boolean value that indicates whether the receiver is equal to another given attributed string. /// </summary> /// <param name="otherString">The attributed string with which to compare the receiver.</param> [iOSVersion(3.2)] [Export("isEqualToAttributedString")] public bool IsEqualToAttributedString(NSAttributedString otherString) { return default(bool); } /// <summary> /// Returns an NSAttributedString object consisting of the characters and attributes within a given range in the receiver. /// </summary> /// <param name="aRange">The range from which to create a new attributed string. aRange must lie within the bounds of the receiver.</param> [iOSVersion(3.2)] [Export("attributedSubstringFromRange")] public NSAttributedString AttributedSubstringFromRange(NSRange aRange) { return default(NSAttributedString); } /// <summary> /// Executes the Block for the specified attribute run in the specified range. /// </summary> /// <param name="attrName">The name of an attribute.</param> /// <param name="inRange">If non-NULL, contains the maximum range over which the attributes and values are enumerated, clipped to enumerationRange.</param> /// <param name="options">The options used by the enumeration. The values can be combined using C-bitwise OR. The values are described in NSAttributedStringEnumerationOptions.</param> /// <param name="usingBlock">The Block to apply to ranges of the attribute in the attributed string. /// The Block takes three arguments: /// value /// The attrName value. /// range /// An NSRange indicating the run of the attribute. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the set. The stop argument is an out-only argument. You should only ever set this Boolean to YES within the Block.</param> [iOSVersion(4)] [Export("enumerateAttribute")] public void EnumerateAttribute(string attrName, NSRange inRange, NSAttributedStringEnumerationOptions options, Action<AnyObject, NSRange, UnsafePointer<ObjCBool>> usingBlock) { } /// <summary> /// Executes the Block for each attribute in the range. /// </summary> /// <param name="enumerationRange">If non-NULL, contains the maximum range over which the attributes and values are enumerated, clipped to enumerationRange.</param> /// <param name="options">The options used by the enumeration. The values can be combined using C-bitwise OR. The values are described in NSAttributedStringEnumerationOptions.</param> /// <param name="usingBlock">The Block to apply to ranges of the attribute in the attributed string. /// The Block takes three arguments: /// attrs /// An NSDictionary that contains the attributes for the range. /// range /// An NSRange indicating the run of the attribute. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the set. The stop argument is an out-only argument. You should only ever set this Boolean to true within the Block.</param> [iOSVersion(4)] [Export("enumerateAttributesInRange")] public void EnumerateAttributesInRange(NSRange enumerationRange, NSAttributedStringEnumerationOptions options, Action<Dictionary<NSObject, AnyObject>, NSRange, UnsafePointer<ObjCBool>> usingBlock) { } /// <summary> /// The character contents of the receiver as an NSString object. (read-only) /// </summary> [iOSVersion(3.2)] [Export("string")] public string String { get; private set; } /// <summary> /// The length of the receiver’s string object. (read-only) /// </summary> [iOSVersion(3.2)] [Export("length")] public int Length { get; private set; } } /// <summary> /// These constants describe the options available to the enumerateAttribute:inRange:options:usingBlock: and enumerateAttributesInRange:options:usingBlock: methods. /// </summary> [iOSVersion(4)] public enum NSAttributedStringEnumerationOptions { /// <summary> /// Causes the enumeration to occur in reverse. /// </summary> [iOSVersion(4)] Reverse, /// <summary> /// If NSAttributedStringEnumerationLongestEffectiveRangeNotRequired option is supplied, then the longest effective range computation is not performed; the blocks may be invoked with consecutive attribute runs that have the same value. /// </summary> [iOSVersion(4)] LongestEffectiveRangeNotRequired, } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// An NSAttributedString object manages character strings and associated sets of attributes (for example, font and kerning) that apply to individual characters or ranges of characters in the string. An association of characters and their attributes is called an attributed string. The cluster’s two public classes, NSAttributedString and NSMutableAttributedString, declare the programmatic interface for read-only attributed strings and modifiable attributed strings, respectively. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSAttributedString_Class/index.html#//apple_ref/occ/cl/NSAttributedString"/> [iOSVersion(3.2)] [Export("")] public class NSAttributedString : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSMutableCopying, NSObjectProtocol, NSSecureCoding, Printable { public NSAttributedString() { } /// <summary> /// Returns an NSAttributedString object initialized with the characters of a given string and no attribute information. /// </summary> /// <param name="@string">The characters for the new object.</param> [iOSVersion(3.2)] public NSAttributedString(string @string) { } /// <summary> /// Returns an NSAttributedString object initialized with the characters and attributes of another given attributed string. /// </summary> /// <param name="attributedString">An attributed string.</param> [iOSVersion(3.2)] public NSAttributedString(NSAttributedString attributedString) { } /// <summary> /// Returns an NSAttributedString object initialized with a given string and attributes. /// </summary> /// <param name="@string">The string for the new attributed string.</param> /// <param name="attributes">The attributes for the new attributed string. For information about where to find the attribute keys you can include in this dictionary, see the overview section of this document.</param> [iOSVersion(3.2)] public NSAttributedString(string @string, Dictionary<NSObject, AnyObject> attributes) { } /// <summary> /// Returns the attributes for the character at a given index. /// </summary> /// <param name="index">The index for which to return attributes. This value must lie within the bounds of the receiver.</param> /// <param name="effectiveRange">Upon return, the range over which the attributes and values are the same as those at index. This range isn’t necessarily the maximum range covered, and its extent is implementation-dependent. If you need the maximum range, use attributesAtIndex:longestEffectiveRange:inRange:. If you don&#39;t need this value, pass NULL.</param> [iOSVersion(3.2)] [Export("attributesAtIndex")] public virtual Dictionary<NSObject, AnyObject> AttributesAtIndex(int index, NSRangePointer effectiveRange) { return default(Dictionary<NSObject, AnyObject>); } /// <summary> /// Returns the attributes for the character at a given index, and by reference the range over which the attributes apply. /// </summary> /// <param name="index">The index for which to return attributes. This value must not exceed the bounds of the receiver.</param> /// <param name="longestEffectiveRange">If non-NULL, upon return contains the maximum range over which the attributes and values are the same as those at index, clipped to rangeLimit.</param> /// <param name="inRange">The range over which to search for continuous presence of the attributes at index. This value must not exceed the bounds of the receiver.</param> [iOSVersion(3.2)] [Export("attributesAtIndex")] public virtual Dictionary<NSObject, AnyObject> AttributesAtIndex(int index, NSRangePointer longestEffectiveRange, NSRange inRange) { return default(Dictionary<NSObject, AnyObject>); } /// <summary> /// Returns the value for an attribute with a given name of the character at a given index, and by reference the range over which the attribute applies. /// </summary> /// <param name="attributeName">The name of an attribute.</param> /// <param name="atIndex">The index for which to return attributes. This value must not exceed the bounds of the receiver.</param> /// <param name="effectiveRange">If non-NULL: /// If the named attribute exists at index, upon return aRange contains a range over which the named attribute’s value applies. /// If the named attribute does not exist at index, upon return aRange contains the range over which the attribute does not exist. /// The range isn’t necessarily the maximum range covered by attributeName, and its extent is implementation-dependent. If you need the maximum range, use attribute:atIndex:longestEffectiveRange:inRange:. If you don&#39;t need this value, pass NULL.</param> [iOSVersion(3.2)] [Export("attribute")] [return:Optional] public virtual AnyObject Attribute(string attributeName, int atIndex, NSRangePointer effectiveRange) { return default(AnyObject); } /// <summary> /// Returns the value for the attribute with a given name of the character at a given index, and by reference the range over which the attribute applies. /// </summary> /// <param name="attributeName">The name of an attribute.</param> /// <param name="atIndex">The index at which to test for attributeName.</param> /// <param name="longestEffectiveRange">If non-NULL: /// If the named attribute exists at index, upon return aRange contains the full range over which the value of the named attribute is the same as that at index, clipped to rangeLimit. /// If the named attribute does not exist at index, upon return aRange contains the full range over which the attribute does not exist, clipped to rangeLimit. /// If you don&#39;t need this value, pass NULL.</param> /// <param name="inRange">The range over which to search for continuous presence of attributeName. This value must not exceed the bounds of the receiver.</param> [iOSVersion(3.2)] [Export("attribute")] [return:Optional] public virtual AnyObject Attribute(string attributeName, int atIndex, NSRangePointer longestEffectiveRange, NSRange inRange) { return default(AnyObject); } /// <summary> /// Returns a Boolean value that indicates whether the receiver is equal to another given attributed string. /// </summary> /// <param name="otherString">The attributed string with which to compare the receiver.</param> [iOSVersion(3.2)] [Export("isEqualToAttributedString")] public virtual bool IsEqualToAttributedString(NSAttributedString otherString) { return default(bool); } /// <summary> /// Returns an NSAttributedString object consisting of the characters and attributes within a given range in the receiver. /// </summary> /// <param name="aRange">The range from which to create a new attributed string. aRange must lie within the bounds of the receiver.</param> [iOSVersion(3.2)] [Export("attributedSubstringFromRange")] public virtual NSAttributedString AttributedSubstringFromRange(NSRange aRange) { return default(NSAttributedString); } /// <summary> /// Executes the Block for the specified attribute run in the specified range. /// </summary> /// <param name="attrName">The name of an attribute.</param> /// <param name="inRange">If non-NULL, contains the maximum range over which the attributes and values are enumerated, clipped to enumerationRange.</param> /// <param name="options">The options used by the enumeration. The values can be combined using C-bitwise OR. The values are described in NSAttributedStringEnumerationOptions.</param> /// <param name="usingBlock">The Block to apply to ranges of the attribute in the attributed string. /// The Block takes three arguments: /// value /// The attrName value. /// range /// An NSRange indicating the run of the attribute. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the set. The stop argument is an out-only argument. You should only ever set this Boolean to YES within the Block.</param> [iOSVersion(4)] [Export("enumerateAttribute")] public virtual void EnumerateAttribute(string attrName, NSRange inRange, NSAttributedStringEnumerationOptions options, Action<AnyObject, NSRange, UnsafeMutablePointer<ObjCBool>> usingBlock) { } /// <summary> /// Executes the Block for each attribute in the range. /// </summary> /// <param name="enumerationRange">If non-NULL, contains the maximum range over which the attributes and values are enumerated, clipped to enumerationRange.</param> /// <param name="options">The options used by the enumeration. The values can be combined using C-bitwise OR. The values are described in NSAttributedStringEnumerationOptions.</param> /// <param name="usingBlock">The Block to apply to ranges of the attribute in the attributed string. /// The Block takes three arguments: /// attrs /// An NSDictionary that contains the attributes for the range. /// range /// An NSRange indicating the run of the attribute. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the set. The stop argument is an out-only argument. You should only ever set this Boolean to true within the Block.</param> [iOSVersion(4)] [Export("enumerateAttributesInRange")] public virtual void EnumerateAttributesInRange(NSRange enumerationRange, NSAttributedStringEnumerationOptions options, Action<Dictionary<NSObject, AnyObject>, NSRange, UnsafeMutablePointer<ObjCBool>> usingBlock) { } /// <summary> /// The character contents of the receiver as an NSString object. (read-only) /// </summary> [iOSVersion(3.2)] [Export("string")] public string String { get; private set; } /// <summary> /// The length of the receiver’s string object. (read-only) /// </summary> [iOSVersion(3.2)] [Export("length")] public int Length { get; private set; } } /// <summary> /// These constants describe the options available to the enumerateAttribute:inRange:options:usingBlock: and enumerateAttributesInRange:options:usingBlock: methods. /// </summary> public enum NSAttributedStringEnumerationOptions { /// <summary> /// Causes the enumeration to occur in reverse. /// </summary> [iOSVersion(4)] Reverse, /// <summary> /// If NSAttributedStringEnumerationLongestEffectiveRangeNotRequired option is supplied, then the longest effective range computation is not performed; the blocks may be invoked with consecutive attribute runs that have the same value. /// </summary> [iOSVersion(4)] LongestEffectiveRangeNotRequired, } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSAutoreleasePool.cs b/CocoaSharp/Foundation/NSAutoreleasePool.cs
index 7c82c6ca..e65ef93b 100644
--- a/CocoaSharp/Foundation/NSAutoreleasePool.cs
+++ b/CocoaSharp/Foundation/NSAutoreleasePool.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSAutoreleasePool class is used to support Cocoa’s reference-counted memory management system. An autorelease pool stores objects that are sent a release message when the pool itself is drained. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSAutoreleasePool_Class/index.html#//apple_ref/occ/cl/NSAutoreleasePool"/> [iOSVersion(2)] public class NSAutoreleasePool//: { } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSAutoreleasePool class is used to support Cocoa’s reference-counted memory management system. An autorelease pool stores objects that are sent a release message when the pool itself is drained. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSAutoreleasePool_Class/index.html#//apple_ref/occ/cl/NSAutoreleasePool"/> [iOSVersion(2)] [Export("")] public class NSAutoreleasePool//: { public NSAutoreleasePool() { } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSBlockOperation.cs b/CocoaSharp/Foundation/NSBlockOperation.cs
index b23fd535..cece219d 100644
--- a/CocoaSharp/Foundation/NSBlockOperation.cs
+++ b/CocoaSharp/Foundation/NSBlockOperation.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSBlockOperation class is a concrete subclass of NSOperation that manages the concurrent execution of one or more blocks. You can use this object to execute several blocks at once without having to create separate operation objects for each. When executing more than one block, the operation itself is considered finished only when all blocks have finished executing. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/NSBlockOperation_class/index.html#//apple_ref/occ/cl/NSBlockOperation"/> [iOSVersion(4)] public class NSBlockOperation : NSOperation//, AnyObject, NSObjectProtocol { /// <summary> /// Creates and returns an NSBlockOperation object and adds the specified block to it. /// </summary> /// <param name="block">The block to add to the new block operation object’s list. The block should take no parameters and have no return value.</param> [iOSVersion(4)] [Export("convenience init")] public NSBlockOperation(Action block) { } /// <summary> /// Adds the specified block to the receiver’s list of blocks to perform. /// </summary> /// <param name="block">The block to add to the receiver’s list. The block should take no parameters and have no return value.</param> [iOSVersion(4)] [Export("addExecutionBlock")] public void AddExecutionBlock(Action block) { } /// <summary> /// The blocks associated with the receiver. (read-only) /// </summary> [iOSVersion(4)] [Export("executionBlocks")] public AnyObject[] ExecutionBlocks { get; private set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSBlockOperation class is a concrete subclass of NSOperation that manages the concurrent execution of one or more blocks. You can use this object to execute several blocks at once without having to create separate operation objects for each. When executing more than one block, the operation itself is considered finished only when all blocks have finished executing. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/NSBlockOperation_class/index.html#//apple_ref/occ/cl/NSBlockOperation"/> [iOSVersion(4)] [Export("")] public class NSBlockOperation : NSOperation//, AnyObject, CVarArgType, Equatable, Hashable, NSObjectProtocol, Printable { public NSBlockOperation() { } /// <summary> /// Creates and returns an NSBlockOperation object and adds the specified block to it. /// </summary> /// <param name="block">The block to add to the new block operation object’s list. The block should take no parameters and have no return value.</param> [iOSVersion(4)] [Export("convenience init")] public NSBlockOperation(Action block) { } /// <summary> /// Adds the specified block to the receiver’s list of blocks to perform. /// </summary> /// <param name="block">The block to add to the receiver’s list. The block should take no parameters and have no return value.</param> [iOSVersion(4)] [Export("addExecutionBlock")] public virtual void AddExecutionBlock(Action block) { } /// <summary> /// The blocks associated with the receiver. (read-only) /// </summary> [iOSVersion(4)] [Export("executionBlocks")] public AnyObject[] ExecutionBlocks { get; private set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSBundle.cs b/CocoaSharp/Foundation/NSBundle.cs
index 327ba944..a41a253a 100644
--- a/CocoaSharp/Foundation/NSBundle.cs
+++ b/CocoaSharp/Foundation/NSBundle.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// An NSBundle object represents a location in the file system that groups code and resources that can be used in a program. NSBundle objects locate program resources, dynamically load and unload executable code, and assist in localization. You build a bundle in Xcode using one of these project types: Application, Framework, plug-ins. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSBundle_Class/index.html#//apple_ref/occ/cl/NSBundle"/> [iOSVersion(2)] public class NSBundle : NSObject//, AnyObject, NSObjectProtocol { /// <summary> /// Returns an NSBundle object initialized to correspond to the specified file URL. /// </summary> /// <param name="URL">The file URL to a directory. This must be a full URL for a directory; if it contains any symbolic links, they must be resolvable.</param> [iOSVersion(4)] [Export("convenience init")] public NSBundle(NSURL URL) { } /// <summary> /// Returns an NSBundle object initialized to correspond to the specified directory. /// </summary> /// <param name="path">The path to a directory. This must be a full pathname for a directory; if it contains any symbolic links, they must be resolvable.</param> [iOSVersion(2)] public NSBundle(string path) { } /// <summary> /// Returns the NSBundle object with which the specified class is associated. /// </summary> /// <param name="forClass">A class.</param> [iOSVersion(2)] public NSBundle(AnyClass forClass) { } /// <summary> /// Returns the previously created NSBundle instance that has the specified bundle identifier. /// </summary> /// <param name="identifier">The identifier for an existing NSBundle instance.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [IgnoreParameter("NAME_YOUR_PARAMS")] public NSBundle(string identifier, bool NAME_YOUR_PARAMS = false) { } /// <summary> /// Returns the NSBundle object that corresponds to the directory where the current application executable is located. /// </summary> [iOSVersion(2)] [Export("mainBundle")] public static NSBundle MainBundle() { return default(NSBundle); } /// <summary> /// Returns an array of all the application’s non-framework bundles. /// </summary> [iOSVersion(2)] [Export("allBundles")] public static AnyObject[] AllBundles() { return default(AnyObject[]); } /// <summary> /// Returns an array of all of the application’s bundles that represent frameworks. /// </summary> [iOSVersion(2)] [Export("allFrameworks")] public static AnyObject[] AllFrameworks() { return default(AnyObject[]); } /// <summary> /// Returns the Class object for the specified name. /// </summary> /// <param name="className">The name of a class.</param> [iOSVersion(2)] [Export("classNamed")] public AnyClass ClassNamed(string className) { return default(AnyClass); } /// <summary> /// Returns the file URL for the resource file identified by the specified name and extension and residing in a given bundle directory. /// </summary> /// <param name="name">The name of a resource file contained in the directory specified by bundleURL.</param> /// <param name="withExtension">If extension is an empty string or nil, the extension is assumed not to exist and the file URL is the first file encountered that exactly matches name.</param> /// <param name="subdirectory">The path of a top-level bundle directory. This must be a valid path. For example, to specify the bundle directory for a Mac app, you might specify the path /Applications/MyApp.app.</param> [iOSVersion(4)] public NSURL URLForResource(string name, string withExtension, string subdirectory) { return default(NSURL); } /// <summary> /// Returns the full pathname for the resource file identified by the specified name and extension and residing in a given bundle directory. /// </summary> /// <param name="name">The name of a resource file contained in the directory specified by bundlePath.</param> /// <param name="ofType">If extension is an empty string or nil, the extension is assumed not to exist and the file is the first file encountered that exactly matches name.</param> /// <param name="inDirectory">The path of a top-level bundle directory. This must be a valid path. For example, to specify the bundle directory for a Mac app, you might specify the path /Applications/MyApp.app.</param> [iOSVersion(2)] [Export("pathForResource")] public static string PathForResource(string name, string ofType, string inDirectory) { return default(string); } /// <summary> /// Returns the file URL for the resource identified by the specified name and file extension. /// </summary> /// <param name="name">The name of the resource file.</param> /// <param name="withExtension">If extension is an empty string or nil, the extension is assumed not to exist and the file URL is the first file encountered that exactly matches name.</param> [iOSVersion(4)] public NSURL URLForResource(string name, string withExtension) { return default(NSURL); } /// <summary> /// Returns the full pathname for the resource identified by the specified name and file extension. /// </summary> /// <param name="name">The name of the resource file. If name is an empty string or nil, returns the first file encountered of the supplied type.</param> /// <param name="ofType">If extension is an empty string or nil, the extension is assumed not to exist and the file is the first file encountered that exactly matches name.</param> [iOSVersion(2)] [Export("pathForResource")] public string PathForResource(string name, string ofType) { return default(string); } /// <summary> /// Returns an array of file URLs for all resources identified by the specified file extension and located in the specified bundle subdirectory. /// </summary> /// <param name="extension">The file extension of the files to locate.</param> /// <param name="subdirectory">The name of the bundle subdirectory.</param> [iOSVersion(4)] public AnyObject[] URLsForResourcesWithExtension(string extension, string subdirectory) { return default(AnyObject[]); } /// <summary> /// Returns the full pathname for the resource identified by the specified name and file extension and located in the specified bundle subdirectory. /// </summary> /// <param name="name">The name of the resource file.</param> /// <param name="ofType">If extension is an empty string or nil, all the files in subpath and its subdirectories are returned. If an extension is provided the subdirectories are not searched.</param> /// <param name="inDirectory">The name of the bundle subdirectory. Can be nil.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [Export("pathForResource")] [IgnoreParameter("NAME_YOUR_PARAMS")] public string PathForResource(string name, string ofType, string inDirectory, bool NAME_YOUR_PARAMS = false) { return default(string); } /// <summary> /// Returns the file URL for the resource identified by the specified name and file extension, located in the specified bundle subdirectory, and limited to global resources and those associated with the specified localization. /// </summary> /// <param name="name">The name of the resource file.</param> /// <param name="withExtension">If extension is an empty string or nil, the extension is assumed not to exist and the file URL is the first file encountered that exactly matches name.</param> /// <param name="subdirectory">The name of the bundle subdirectory to search.</param> /// <param name="localization">The language ID for the localization. This parameter should correspond to the name of one of the bundle's language-specific resource directories without the .lproj extension.</param> [iOSVersion(4)] public NSURL URLForResource(string name, string withExtension, string subdirectory, string localization) { return default(NSURL); } /// <summary> /// Returns the full pathname for the resource identified by the specified name and file extension, located in the specified bundle subdirectory, and limited to global resources and those associated with the specified localization. /// </summary> /// <param name="name">The name of the resource file.</param> /// <param name="ofType">If extension is an empty string or nil, the extension is assumed not to exist and the file is the first file encountered that exactly matches name.</param> /// <param name="inDirectory">The name of the bundle subdirectory to search.</param> /// <param name="forLocalization">The language ID for of the localization. This parameter should correspond to the name of one of the bundle's language-specific resource directories without the .lproj extension.</param> [iOSVersion(2)] [Export("pathForResource")] public string PathForResource(string name, string ofType, string inDirectory, string forLocalization) { return default(string); } /// <summary> /// Returns an array containing the pathnames for all bundle resources having the specified extension and residing in the bundle directory at the specified path. /// </summary> /// <param name="extension">The file extension. If extension is an empty string or nil, the extension is assumed not to exist, all the files in bundlePath are returned.</param> /// <param name="inDirectory">The top-level directory of a bundle. This must represent a valid path.</param> [iOSVersion(2)] [Export("pathsForResourcesOfType")] public static AnyObject[] PathsForResourcesOfType(string extension, string inDirectory) { return default(AnyObject[]); } /// <summary> /// Returns an array containing the pathnames for all bundle resources having the specified filename extension and residing in the resource subdirectory. /// </summary> /// <param name="extension">The file extension. If extension is an empty string or nil, the extension is assumed not to exist, all the files in subpath are returned.</param> /// <param name="inDirectory">The name of the bundle subdirectory to search.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [Export("pathsForResourcesOfType")] [IgnoreParameter("NAME_YOUR_PARAMS")] public AnyObject[] PathsForResourcesOfType(string extension, string inDirectory, bool NAME_YOUR_PARAMS = false) { return default(AnyObject[]); } /// <summary> /// Returns an array containing the file URLs for all bundle resources having the specified filename extension, residing in the specified resource subdirectory, and limited to global resources and those associated with the specified localization. /// </summary> /// <param name="extension">The file extension of the files to locate.</param> /// <param name="subdirectory">The name of the bundle subdirectory to search.</param> /// <param name="localization">The language ID for the localization. This parameter should correspond to the name of one of the bundle's language-specific resource directories without the .lproj extension.</param> [iOSVersion(4)] public AnyObject[] URLsForResourcesWithExtension(string extension, string subdirectory, string localization) { return default(AnyObject[]); } /// <summary> /// Returns an array containing the file for all bundle resources having the specified filename extension, residing in the specified resource subdirectory, and limited to global resources and those associated with the specified localization. /// </summary> /// <param name="extension">The file extension of the files to retrieve.</param> /// <param name="inDirectory">The name of the bundle subdirectory to search.</param> /// <param name="forLocalization">The language ID for the localization. This parameter should correspond to the name of one of the bundle's language-specific resource directories without the .lproj extension.</param> [iOSVersion(2)] [Export("pathsForResourcesOfType")] public AnyObject[] PathsForResourcesOfType(string extension, string inDirectory, string forLocalization) { return default(AnyObject[]); } /// <summary> /// Creates and returns a file URL for the resource with the specified name and extension in the specified bundle. /// </summary> /// <param name="name">The name of the resource file.</param> /// <param name="withExtension">If extension is an empty string or nil, the extension is assumed not to exist and the file URL is the first file encountered that exactly matches name.</param> /// <param name="subdirectory">The name of the bundle subdirectory to search.</param> /// <param name="inBundleWithURL">The file URL of the bundle to search.</param> [iOSVersion(4)] public static NSURL URLForResource(string name, string withExtension, string subdirectory, NSURL inBundleWithURL) { return default(NSURL); } /// <summary> /// Returns an array containing the file URLs for all bundle resources having the specified filename extension, residing in the specified resource subdirectory, within the specified bundle. /// </summary> /// <param name="extension">The file extension of the files to locate.</param> /// <param name="subdirectory">The name of the bundle subdirectory to search.</param> /// <param name="inBundleWithURL">The file URL of the bundle to search.</param> [iOSVersion(4)] public static AnyObject[] URLsForResourcesWithExtension(string extension, string subdirectory, NSURL inBundleWithURL) { return default(AnyObject[]); } /// <summary> /// Returns the value associated with the specified key in the receiver's information property list. /// </summary> /// <param name="key">A key in the receiver's property list.</param> [iOSVersion(2)] [Export("objectForInfoDictionaryKey")] public AnyObject ObjectForInfoDictionaryKey(string key) { return default(AnyObject); } /// <summary> /// Returns the file URL of the executable with the specified name in the receiver’s bundle. /// </summary> /// <param name="executableName">The name of an executable file.</param> [iOSVersion(4)] public NSURL URLForAuxiliaryExecutable(string executableName) { return default(NSURL); } /// <summary> /// Returns the full pathname of the executable with the specified name in the receiver’s bundle. /// </summary> /// <param name="executableName">The name of an executable file.</param> [iOSVersion(2)] [Export("pathForAuxiliaryExecutable")] public string PathForAuxiliaryExecutable(string executableName) { return default(string); } /// <summary> /// Returns a localized version of the string designated by the specified key and residing in the specified table. /// </summary> /// <param name="key">The key for a string in the table identified by tableName.</param> /// <param name="value">The value to return if key is nil or if a localized string for key can’t be found in the table.</param> /// <param name="table">The receiver’s string table to search. If tableName is nil or is an empty string, the method attempts to use the table in Localizable.strings.</param> [iOSVersion(2)] [Export("localizedStringForKey")] public string LocalizedStringForKey(string key, string value, string table) { return default(string); } /// <summary> /// Returns a Boolean value indicating whether the bundle’s executable code could be loaded successfully. /// </summary> /// <param name="error">On input, a pointer to an error object variable. On output, this variable may contain an error object indicating why the bundle’s executable could not be loaded. If no error would occur, this parameter is left unmodified. You may specify nil for this parameter if you are not interested in the error information.</param> [iOSVersion(2)] [Export("preflightAndReturnError")] public bool PreflightAndReturnError(NSErrorPointer error) { return default(bool); } /// <summary> /// Dynamically loads the bundle’s executable code into a running program, if the code has not already been loaded. /// </summary> [iOSVersion(2)] [Export("load")] public bool Load() { return default(bool); } /// <summary> /// Loads the bundle’s executable code and returns any errors. /// </summary> /// <param name="error">On input, a pointer to an error object variable. On output, this variable may contain an error object indicating why the bundle’s executable could not be loaded. If no error occurred, this parameter is left unmodified. You may specify nil for this parameter if you are not interested in the error information.</param> [iOSVersion(2)] [Export("loadAndReturnError")] public bool LoadAndReturnError(NSErrorPointer error) { return default(bool); } /// <summary> /// Unloads the code associated with the receiver. /// </summary> [iOSVersion(2)] [Export("unload")] public bool Unload() { return default(bool); } /// <summary> /// Returns one or more localizations from the specified list that a bundle object would use to locate resources for the current user. /// </summary> /// <param name="localizationsArray">An array of NSString objects, each of which specifies the language ID for a localization that the bundle supports.</param> [iOSVersion(2)] [Export("preferredLocalizationsFromArray")] public static AnyObject[] PreferredLocalizationsFromArray(AnyObject[] localizationsArray) { return default(AnyObject[]); } /// <summary> /// Returns the localizations that a bundle object would prefer, given the specified bundle and user’s language preferences. /// </summary> /// <param name="localizationsArray">An array of NSString objects, each of which specifies the language ID for a localization that the bundle supports.</param> /// <param name="forPreferences">An array of NSString objects containing the user's preferred localizations. If this parameter is nil, the method uses the user's localization preferences.</param> [iOSVersion(2)] [Export("preferredLocalizationsFromArray")] public static AnyObject[] PreferredLocalizationsFromArray(AnyObject[] localizationsArray, AnyObject[] forPreferences) { return default(AnyObject[]); } /// <summary> /// The bundle’s principal class. (read-only) /// </summary> [iOSVersion(2)] [Export("principalClass")] public AnyClass PrincipalClass { get; private set; } /// <summary> /// The full pathname of the bundle’s subdirectory containing resources. (read-only) /// </summary> [iOSVersion(2)] [Export("resourcePath")] public string ResourcePath { get; private set; } /// <summary> /// The file URL for the bundle’s App Store receipt. (read-only) /// </summary> [iOSVersion(7)] [Export("appStoreReceiptURL")] public NSURL AppStoreReceiptURL { get; private set; } /// <summary> /// The full URL of the receiver’s bundle directory. (read-only) /// </summary> [iOSVersion(4)] [Export("bundleURL")] public NSURL BundleURL { get; private set; } /// <summary> /// The full pathname of the receiver’s bundle directory. (read-only) /// </summary> [iOSVersion(2)] [Export("bundlePath")] public string BundlePath { get; private set; } /// <summary> /// The receiver’s bundle identifier. (read-only) /// </summary> [iOSVersion(2)] [Export("bundleIdentifier")] public string BundleIdentifier { get; private set; } /// <summary> /// A dictionary, constructed from the bundle's Info.plist file, that contains information about the receiver. (read-only) /// </summary> [iOSVersion(2)] [Export("infoDictionary")] public Dictionary<NSObject, AnyObject> InfoDictionary { get; private set; } /// <summary> /// The file URL of the receiver's subdirectory containing plug-ins. (read-only) /// </summary> [iOSVersion(4)] [Export("builtInPlugInsURL")] public NSURL BuiltInPlugInsURL { get; private set; } /// <summary> /// The full pathname of the receiver's subdirectory containing plug-ins. (read-only) /// </summary> [iOSVersion(2)] [Export("builtInPlugInsPath")] public string BuiltInPlugInsPath { get; private set; } /// <summary> /// The file URL of the receiver's executable file. (read-only) /// </summary> [iOSVersion(4)] [Export("executableURL")] public NSURL ExecutableURL { get; private set; } /// <summary> /// The full pathname of the receiver's executable file. (read-only) /// </summary> [iOSVersion(2)] [Export("executablePath")] public string ExecutablePath { get; private set; } /// <summary> /// The file URL of the bundle’s subdirectory containing private frameworks. (read-only) /// </summary> [iOSVersion(4)] [Export("privateFrameworksURL")] public NSURL PrivateFrameworksURL { get; private set; } /// <summary> /// The full pathname of the bundle’s subdirectory containing private frameworks. (read-only) /// </summary> [iOSVersion(2)] [Export("privateFrameworksPath")] public string PrivateFrameworksPath { get; private set; } /// <summary> /// The file URL of the receiver's subdirectory containing shared frameworks. (read-only) /// </summary> [iOSVersion(4)] [Export("sharedFrameworksURL")] public NSURL SharedFrameworksURL { get; private set; } /// <summary> /// The full pathname of the bundle’s subdirectory containing shared frameworks. (read-only) /// </summary> [iOSVersion(2)] [Export("sharedFrameworksPath")] public string SharedFrameworksPath { get; private set; } /// <summary> /// The file URL of the bundle’s subdirectory containing shared support files. (read-only) /// </summary> [iOSVersion(4)] [Export("sharedSupportURL")] public NSURL SharedSupportURL { get; private set; } /// <summary> /// The full pathname of the bundle’s subdirectory containing shared support files. (read-only) /// </summary> [iOSVersion(2)] [Export("sharedSupportPath")] public string SharedSupportPath { get; private set; } /// <summary> /// The file URL of the bundle’s subdirectory containing resource files. (read-only) /// </summary> [iOSVersion(4)] [Export("resourceURL")] public NSURL ResourceURL { get; private set; } /// <summary> /// An array of numbers indicating the architecture types supported by the bundle’s executable. (read-only) /// </summary> [iOSVersion(2)] [Export("executableArchitectures")] public AnyObject[] ExecutableArchitectures { get; private set; } /// <summary> /// The load status of a bundle. /// </summary> [iOSVersion(8)] [Export("loaded")] public bool Loaded { get; private set; } /// <summary> /// An ordered list of preferred localizations contained in the bundle. (read-only) /// </summary> [iOSVersion(2)] [Export("preferredLocalizations")] public AnyObject[] PreferredLocalizations { get; private set; } /// <summary> /// The localization for the development language. (read-only) /// </summary> [iOSVersion(2)] [Export("developmentLocalization")] public string DevelopmentLocalization { get; private set; } /// <summary> /// A list of all the localizations contained in the bundle. (read-only) /// </summary> [iOSVersion(2)] [Export("localizations")] public AnyObject[] Localizations { get; private set; } /// <summary> /// A dictionary with the keys from the bundle’s localized property list. (read-only) /// </summary> [iOSVersion(2)] [Export("localizedInfoDictionary")] public Dictionary<NSObject, AnyObject> LocalizedInfoDictionary { get; private set; } /// <summary> /// These constants describe the CPU types that a bundle’s executable code may support. /// </summary> public int NSBundleExecutableArchitectureI386 { get; set; } } /// <summary> /// The notification object is the NSBundle instance that dynamically loads classes. The userInfo dictionary contains an NSLoadedClasses key. /// </summary> [iOSVersion(2)] public class NSBundleDidLoadNotification : NSNotification { public NSBundleDidLoadNotification() : base("", null) { } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// An NSBundle object represents a location in the file system that groups code and resources that can be used in a program. NSBundle objects locate program resources, dynamically load and unload executable code, and assist in localization. You build a bundle in Xcode using one of these project types: Application, Framework, plug-ins. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSBundle_Class/index.html#//apple_ref/occ/cl/NSBundle"/> [iOSVersion(2)] [Export("")] public class NSBundle : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSObjectProtocol, Printable { public NSBundle() { } /// <summary> /// Returns the NSBundle object with which the specified class is associated. /// </summary> /// <param name="forClass">A class.</param> [iOSVersion(2)] public NSBundle(AnyClass forClass) { } /// <summary> /// Returns the NSBundle object that corresponds to the directory where the current application executable is located. /// </summary> [iOSVersion(2)] [Export("mainBundle")] public static NSBundle MainBundle() { return default(NSBundle); } /// <summary> /// Returns an array of all the application’s non-framework bundles. /// </summary> [iOSVersion(2)] [Export("allBundles")] public static AnyObject[] AllBundles() { return default(AnyObject[]); } /// <summary> /// Returns an array of all of the application’s bundles that represent frameworks. /// </summary> [iOSVersion(2)] [Export("allFrameworks")] public static AnyObject[] AllFrameworks() { return default(AnyObject[]); } /// <summary> /// Returns the Class object for the specified name. /// </summary> /// <param name="className">The name of a class.</param> [iOSVersion(2)] [Export("classNamed")] [return:Optional] public virtual AnyClass ClassNamed(string className) { return default(AnyClass); } /// <summary> /// Returns the file URL for the resource file identified by the specified name and extension and residing in a given bundle directory. /// </summary> /// <param name="name">The name of a resource file contained in the directory specified by bundleURL.</param> /// <param name="withExtension">If extension is an empty string or nil, the extension is assumed not to exist and the file URL is the first file encountered that exactly matches name.</param> /// <param name="subdirectory">The path of a top-level bundle directory. This must be a valid path. For example, to specify the bundle directory for a Mac app, you might specify the path /Applications/MyApp.app.</param> [iOSVersion(4)] [return:Optional] public virtual NSURL URLForResource(string name, [Optional] string withExtension, [Optional] string subdirectory) { return default(NSURL); } /// <summary> /// Returns the full pathname for the resource file identified by the specified name and extension and residing in a given bundle directory. /// </summary> /// <param name="name">The name of a resource file contained in the directory specified by bundlePath.</param> /// <param name="ofType">If extension is an empty string or nil, the extension is assumed not to exist and the file is the first file encountered that exactly matches name.</param> /// <param name="inDirectory">The path of a top-level bundle directory. This must be a valid path. For example, to specify the bundle directory for a Mac app, you might specify the path /Applications/MyApp.app.</param> [iOSVersion(2)] [Export("pathForResource")] [return:Optional] public static string PathForResource([Optional] string name, [Optional] string ofType, string inDirectory) { return default(string); } /// <summary> /// Returns the file URL for the resource identified by the specified name and file extension. /// </summary> /// <param name="name">The name of the resource file.</param> /// <param name="withExtension">If extension is an empty string or nil, the extension is assumed not to exist and the file URL is the first file encountered that exactly matches name.</param> [iOSVersion(4)] [return:Optional] public virtual NSURL URLForResource(string name, [Optional] string withExtension) { return default(NSURL); } /// <summary> /// Returns the full pathname for the resource identified by the specified name and file extension. /// </summary> /// <param name="name">The name of the resource file. If name is an empty string or nil, returns the first file encountered of the supplied type.</param> /// <param name="ofType">If extension is an empty string or nil, the extension is assumed not to exist and the file is the first file encountered that exactly matches name.</param> [iOSVersion(2)] [Export("pathForResource")] [return:Optional] public virtual string PathForResource([Optional] string name, [Optional] string ofType) { return default(string); } /// <summary> /// Returns an array of file URLs for all resources identified by the specified file extension and located in the specified bundle subdirectory. /// </summary> /// <param name="extension">The file extension of the files to locate.</param> /// <param name="subdirectory">The name of the bundle subdirectory.</param> [iOSVersion(4)] public virtual AnyObject[] URLsForResourcesWithExtension([Optional] string extension, [Optional] string subdirectory) { return default(AnyObject[]); } /// <summary> /// Returns the full pathname for the resource identified by the specified name and file extension and located in the specified bundle subdirectory. /// </summary> /// <param name="name">The name of the resource file.</param> /// <param name="ofType">If extension is an empty string or nil, all the files in subpath and its subdirectories are returned. If an extension is provided the subdirectories are not searched.</param> /// <param name="inDirectory">The name of the bundle subdirectory. Can be nil.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [Export("pathForResource")] [return:Optional] [IgnoreParameter("NAME_YOUR_PARAMS")] public virtual string PathForResource([Optional] string name, [Optional] string ofType, [Optional] string inDirectory, bool NAME_YOUR_PARAMS = false) { return default(string); } /// <summary> /// Returns the file URL for the resource identified by the specified name and file extension, located in the specified bundle subdirectory, and limited to global resources and those associated with the specified localization. /// </summary> /// <param name="name">The name of the resource file.</param> /// <param name="withExtension">If extension is an empty string or nil, the extension is assumed not to exist and the file URL is the first file encountered that exactly matches name.</param> /// <param name="subdirectory">The name of the bundle subdirectory to search.</param> /// <param name="localization">The language ID for the localization. This parameter should correspond to the name of one of the bundle&#39;s language-specific resource directories without the .lproj extension.</param> [iOSVersion(4)] [return:Optional] public virtual NSURL URLForResource(string name, [Optional] string withExtension, [Optional] string subdirectory, [Optional] string localization) { return default(NSURL); } /// <summary> /// Returns the full pathname for the resource identified by the specified name and file extension, located in the specified bundle subdirectory, and limited to global resources and those associated with the specified localization. /// </summary> /// <param name="name">The name of the resource file.</param> /// <param name="ofType">If extension is an empty string or nil, the extension is assumed not to exist and the file is the first file encountered that exactly matches name.</param> /// <param name="inDirectory">The name of the bundle subdirectory to search.</param> /// <param name="forLocalization">The language ID for of the localization. This parameter should correspond to the name of one of the bundle&#39;s language-specific resource directories without the .lproj extension.</param> [iOSVersion(2)] [Export("pathForResource")] [return:Optional] public virtual string PathForResource([Optional] string name, [Optional] string ofType, [Optional] string inDirectory, [Optional] string forLocalization) { return default(string); } /// <summary> /// Returns an array containing the pathnames for all bundle resources having the specified extension and residing in the bundle directory at the specified path. /// </summary> /// <param name="extension">The file extension. If extension is an empty string or nil, the extension is assumed not to exist, all the files in bundlePath are returned.</param> /// <param name="inDirectory">The top-level directory of a bundle. This must represent a valid path.</param> [iOSVersion(2)] [Export("pathsForResourcesOfType")] public static AnyObject[] PathsForResourcesOfType([Optional] string extension, string inDirectory) { return default(AnyObject[]); } /// <summary> /// Returns an array containing the pathnames for all bundle resources having the specified filename extension and residing in the resource subdirectory. /// </summary> /// <param name="extension">The file extension. If extension is an empty string or nil, the extension is assumed not to exist, all the files in subpath are returned.</param> /// <param name="inDirectory">The name of the bundle subdirectory to search.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [Export("pathsForResourcesOfType")] [IgnoreParameter("NAME_YOUR_PARAMS")] public virtual AnyObject[] PathsForResourcesOfType([Optional] string extension, [Optional] string inDirectory, bool NAME_YOUR_PARAMS = false) { return default(AnyObject[]); } /// <summary> /// Returns an array containing the file URLs for all bundle resources having the specified filename extension, residing in the specified resource subdirectory, and limited to global resources and those associated with the specified localization. /// </summary> /// <param name="extension">The file extension of the files to locate.</param> /// <param name="subdirectory">The name of the bundle subdirectory to search.</param> /// <param name="localization">The language ID for the localization. This parameter should correspond to the name of one of the bundle&#39;s language-specific resource directories without the .lproj extension.</param> [iOSVersion(4)] public virtual AnyObject[] URLsForResourcesWithExtension([Optional] string extension, [Optional] string subdirectory, [Optional] string localization) { return default(AnyObject[]); } /// <summary> /// Returns an array containing the file for all bundle resources having the specified filename extension, residing in the specified resource subdirectory, and limited to global resources and those associated with the specified localization. /// </summary> /// <param name="extension">The file extension of the files to retrieve.</param> /// <param name="inDirectory">The name of the bundle subdirectory to search.</param> /// <param name="forLocalization">The language ID for the localization. This parameter should correspond to the name of one of the bundle&#39;s language-specific resource directories without the .lproj extension.</param> [iOSVersion(2)] [Export("pathsForResourcesOfType")] public virtual AnyObject[] PathsForResourcesOfType([Optional] string extension, [Optional] string inDirectory, [Optional] string forLocalization) { return default(AnyObject[]); } /// <summary> /// Creates and returns a file URL for the resource with the specified name and extension in the specified bundle. /// </summary> /// <param name="name">The name of the resource file.</param> /// <param name="withExtension">If extension is an empty string or nil, the extension is assumed not to exist and the file URL is the first file encountered that exactly matches name.</param> /// <param name="subdirectory">The name of the bundle subdirectory to search.</param> /// <param name="inBundleWithURL">The file URL of the bundle to search.</param> [iOSVersion(4)] [return:Optional] public static NSURL URLForResource(string name, [Optional] string withExtension, [Optional] string subdirectory, NSURL inBundleWithURL) { return default(NSURL); } /// <summary> /// Returns an array containing the file URLs for all bundle resources having the specified filename extension, residing in the specified resource subdirectory, within the specified bundle. /// </summary> /// <param name="extension">The file extension of the files to locate.</param> /// <param name="subdirectory">The name of the bundle subdirectory to search.</param> /// <param name="inBundleWithURL">The file URL of the bundle to search.</param> [iOSVersion(4)] public static AnyObject[] URLsForResourcesWithExtension([Optional] string extension, [Optional] string subdirectory, NSURL inBundleWithURL) { return default(AnyObject[]); } /// <summary> /// Returns the value associated with the specified key in the receiver&#39;s information property list. /// </summary> /// <param name="key">A key in the receiver&#39;s property list.</param> [iOSVersion(2)] [Export("objectForInfoDictionaryKey")] [return:Optional] public virtual AnyObject ObjectForInfoDictionaryKey(string key) { return default(AnyObject); } /// <summary> /// Returns the file URL of the executable with the specified name in the receiver’s bundle. /// </summary> /// <param name="executableName">The name of an executable file.</param> [iOSVersion(4)] [return:Optional] public virtual NSURL URLForAuxiliaryExecutable(string executableName) { return default(NSURL); } /// <summary> /// Returns the full pathname of the executable with the specified name in the receiver’s bundle. /// </summary> /// <param name="executableName">The name of an executable file.</param> [iOSVersion(2)] [Export("pathForAuxiliaryExecutable")] [return:Optional] public virtual string PathForAuxiliaryExecutable(string executableName) { return default(string); } /// <summary> /// Returns a localized version of the string designated by the specified key and residing in the specified table. /// </summary> /// <param name="key">The key for a string in the table identified by tableName.</param> /// <param name="value">The value to return if key is nil or if a localized string for key can’t be found in the table.</param> /// <param name="table">The receiver’s string table to search. If tableName is nil or is an empty string, the method attempts to use the table in Localizable.strings.</param> [iOSVersion(2)] [Export("localizedStringForKey")] public virtual string LocalizedStringForKey(string key, [Optional] string value, [Optional] string table) { return default(string); } /// <summary> /// Returns a Boolean value indicating whether the bundle’s executable code could be loaded successfully. /// </summary> /// <param name="error">On input, a pointer to an error object variable. On output, this variable may contain an error object indicating why the bundle’s executable could not be loaded. If no error would occur, this parameter is left unmodified. You may specify nil for this parameter if you are not interested in the error information.</param> [iOSVersion(2)] [Export("preflightAndReturnError")] public virtual bool PreflightAndReturnError(NSErrorPointer error) { return default(bool); } /// <summary> /// Dynamically loads the bundle’s executable code into a running program, if the code has not already been loaded. /// </summary> [iOSVersion(2)] [Export("load")] public virtual bool Load() { return default(bool); } /// <summary> /// Loads the bundle’s executable code and returns any errors. /// </summary> /// <param name="error">On input, a pointer to an error object variable. On output, this variable may contain an error object indicating why the bundle’s executable could not be loaded. If no error occurred, this parameter is left unmodified. You may specify nil for this parameter if you are not interested in the error information.</param> [iOSVersion(2)] [Export("loadAndReturnError")] public virtual bool LoadAndReturnError(NSErrorPointer error) { return default(bool); } /// <summary> /// Unloads the code associated with the receiver. /// </summary> [iOSVersion(2)] [Export("unload")] public virtual bool Unload() { return default(bool); } /// <summary> /// Returns one or more localizations from the specified list that a bundle object would use to locate resources for the current user. /// </summary> /// <param name="localizationsArray">An array of NSString objects, each of which specifies the language ID for a localization that the bundle supports.</param> [iOSVersion(2)] [Export("preferredLocalizationsFromArray")] public static AnyObject[] PreferredLocalizationsFromArray(AnyObject[] localizationsArray) { return default(AnyObject[]); } /// <summary> /// Returns the localizations that a bundle object would prefer, given the specified bundle and user’s language preferences. /// </summary> /// <param name="localizationsArray">An array of NSString objects, each of which specifies the language ID for a localization that the bundle supports.</param> /// <param name="forPreferences">An array of NSString objects containing the user&#39;s preferred localizations. If this parameter is nil, the method uses the user&#39;s localization preferences.</param> [iOSVersion(2)] [Export("preferredLocalizationsFromArray")] public static AnyObject[] PreferredLocalizationsFromArray(AnyObject[] localizationsArray, AnyObject[] forPreferences) { return default(AnyObject[]); } /// <summary> /// The bundle’s principal class. (read-only) /// </summary> [iOSVersion(2)] [Export("principalClass")] [Optional] public AnyClass PrincipalClass { get; private set; } /// <summary> /// The full pathname of the bundle’s subdirectory containing resources. (read-only) /// </summary> [iOSVersion(2)] [Export("resourcePath")] [Optional] public string ResourcePath { get; private set; } /// <summary> /// The file URL for the bundle’s App Store receipt. (read-only) /// </summary> [iOSVersion(7)] [Export("appStoreReceiptURL")] [Optional] public NSURL AppStoreReceiptURL { get; private set; } /// <summary> /// The full URL of the receiver’s bundle directory. (read-only) /// </summary> [iOSVersion(4)] [Export("bundleURL")] public NSURL BundleURL { get; private set; } /// <summary> /// The full pathname of the receiver’s bundle directory. (read-only) /// </summary> [iOSVersion(2)] [Export("bundlePath")] public string BundlePath { get; private set; } /// <summary> /// The receiver’s bundle identifier. (read-only) /// </summary> [iOSVersion(2)] [Export("bundleIdentifier")] [Optional] public string BundleIdentifier { get; private set; } /// <summary> /// A dictionary, constructed from the bundle&#39;s Info.plist file, that contains information about the receiver. (read-only) /// </summary> [iOSVersion(2)] [Export("infoDictionary")] public Dictionary<NSObject, AnyObject> InfoDictionary { get; private set; } /// <summary> /// The file URL of the receiver&#39;s subdirectory containing plug-ins. (read-only) /// </summary> [iOSVersion(4)] [Export("builtInPlugInsURL")] [Optional] public NSURL BuiltInPlugInsURL { get; private set; } /// <summary> /// The full pathname of the receiver&#39;s subdirectory containing plug-ins. (read-only) /// </summary> [iOSVersion(2)] [Export("builtInPlugInsPath")] [Optional] public string BuiltInPlugInsPath { get; private set; } /// <summary> /// The file URL of the receiver&#39;s executable file. (read-only) /// </summary> [iOSVersion(4)] [Export("executableURL")] [Optional] public NSURL ExecutableURL { get; private set; } /// <summary> /// The full pathname of the receiver&#39;s executable file. (read-only) /// </summary> [iOSVersion(2)] [Export("executablePath")] [Optional] public string ExecutablePath { get; private set; } /// <summary> /// The file URL of the bundle’s subdirectory containing private frameworks. (read-only) /// </summary> [iOSVersion(4)] [Export("privateFrameworksURL")] [Optional] public NSURL PrivateFrameworksURL { get; private set; } /// <summary> /// The full pathname of the bundle’s subdirectory containing private frameworks. (read-only) /// </summary> [iOSVersion(2)] [Export("privateFrameworksPath")] [Optional] public string PrivateFrameworksPath { get; private set; } /// <summary> /// The file URL of the receiver&#39;s subdirectory containing shared frameworks. (read-only) /// </summary> [iOSVersion(4)] [Export("sharedFrameworksURL")] [Optional] public NSURL SharedFrameworksURL { get; private set; } /// <summary> /// The full pathname of the bundle’s subdirectory containing shared frameworks. (read-only) /// </summary> [iOSVersion(2)] [Export("sharedFrameworksPath")] [Optional] public string SharedFrameworksPath { get; private set; } /// <summary> /// The file URL of the bundle’s subdirectory containing shared support files. (read-only) /// </summary> [iOSVersion(4)] [Export("sharedSupportURL")] [Optional] public NSURL SharedSupportURL { get; private set; } /// <summary> /// The full pathname of the bundle’s subdirectory containing shared support files. (read-only) /// </summary> [iOSVersion(2)] [Export("sharedSupportPath")] [Optional] public string SharedSupportPath { get; private set; } /// <summary> /// The file URL of the bundle’s subdirectory containing resource files. (read-only) /// </summary> [iOSVersion(4)] [Export("resourceURL")] [Optional] public NSURL ResourceURL { get; private set; } /// <summary> /// An array of numbers indicating the architecture types supported by the bundle’s executable. (read-only) /// </summary> [iOSVersion(2)] [Export("executableArchitectures")] public AnyObject[] ExecutableArchitectures { get; private set; } /// <summary> /// The load status of a bundle. /// </summary> [iOSVersion(8)] [Export("loaded")] public bool Loaded { get; private set; } /// <summary> /// An ordered list of preferred localizations contained in the bundle. (read-only) /// </summary> [iOSVersion(2)] [Export("preferredLocalizations")] public AnyObject[] PreferredLocalizations { get; private set; } /// <summary> /// The localization for the development language. (read-only) /// </summary> [iOSVersion(2)] [Export("developmentLocalization")] [Optional] public string DevelopmentLocalization { get; private set; } /// <summary> /// A list of all the localizations contained in the bundle. (read-only) /// </summary> [iOSVersion(2)] [Export("localizations")] public AnyObject[] Localizations { get; private set; } /// <summary> /// A dictionary with the keys from the bundle’s localized property list. (read-only) /// </summary> [iOSVersion(2)] [Export("localizedInfoDictionary")] public Dictionary<NSObject, AnyObject> LocalizedInfoDictionary { get; private set; } /// <summary> /// These constants describe the CPU types that a bundle’s executable code may support. /// </summary> public int NSBundleExecutableArchitectureI386 { get; private set; } } /// <summary> /// NSBundle posts NSBundleDidLoadNotification to notify observers which classes and categories have been dynamically loaded. When a request is made to an NSBundle object for a class (classNamed: or principalClass), the bundle dynamically loads the executable code file that contains the class implementation and all other class definitions contained in the file. After the module is loaded, the bundle posts the NSBundleDidLoadNotification. /// The notification object is the NSBundle instance that dynamically loads classes. The userInfo dictionary contains an NSLoadedClasses key. /// In a typical use of this notification, an object might want to enumerate the userInfo array to check if each loaded class conformed to a certain protocol (say, an protocol for a plug-and-play tool set); if a class does conform, the object would create an instance of that class and add the instance to another NSArray object. /// </summary> public class NSBundleDidLoadNotification : NSNotification { public NSBundleDidLoadNotification() : base("", null) { } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSByteCountFormatter.cs b/CocoaSharp/Foundation/NSByteCountFormatter.cs
index 247cab4c..dfc6685e 100644
--- a/CocoaSharp/Foundation/NSByteCountFormatter.cs
+++ b/CocoaSharp/Foundation/NSByteCountFormatter.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSByteCountFormatter class converts a byte count value into a textual representation that is formatted with the appropriate byte modifier (KB, MB, GB and so on). /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSByteCountFormatter_Class/index.html#//apple_ref/occ/cl/NSByteCountFormatter"/> [iOSVersion(6)] public class NSByteCountFormatter : NSFormatter//, AnyObject, NSCoding, NSCopying, NSObjectProtocol { /// <summary> /// Converts a byte count into the specified string format without creating an NSNumber object. /// </summary> /// <param name="byteCount">The byte count.</param> /// <param name="countStyle">The formatter style. See NSByteCountFormatterCountStyle for possible values.</param> [iOSVersion(6)] [Export("stringFromByteCount")] public static string StringFromByteCount(Int64 byteCount, NSByteCountFormatterCountStyle countStyle) { return default(string); } /// <summary> /// Converts a byte count into a string without creating an NSNumber object. /// </summary> /// <param name="byteCount">The byte count.</param> [iOSVersion(6)] [Export("stringFromByteCount")] public string StringFromByteCount(Int64 byteCount) { return default(string); } /// <summary> /// Specify the formatting context for the formatted string. /// </summary> [iOSVersion(8)] [Export("formattingContext")] public NSFormattingContext FormattingContext { get; set; } /// <summary> /// Specify the the number of bytes to be used for kilobytes. /// </summary> [iOSVersion(6)] [Export("countStyle")] public NSByteCountFormatterCountStyle CountStyle { get; set; } /// <summary> /// Determines whether to allow more natural display of some values. /// </summary> [iOSVersion(6)] [Export("allowsNonnumericFormatting")] public bool AllowsNonnumericFormatting { get; set; } /// <summary> /// Determines whether to include the number of bytes after the formatted string. /// </summary> [iOSVersion(6)] [Export("includesActualByteCount")] public bool IncludesActualByteCount { get; set; } /// <summary> /// Determines the display style of the size representation. /// </summary> [iOSVersion(6)] [Export("adaptive")] public bool Adaptive { get; set; } /// <summary> /// Specify the units that can be used in the output. /// </summary> [iOSVersion(6)] [Export("allowedUnits")] public NSByteCountFormatterUnits AllowedUnits { get; set; } /// <summary> /// Determines whether to include the count in the resulting formatted string. /// </summary> [iOSVersion(6)] [Export("includesCount")] public bool IncludesCount { get; set; } /// <summary> /// Determines whether to include the units in the resulting formatted string. /// </summary> [iOSVersion(6)] [Export("includesUnit")] public bool IncludesUnit { get; set; } /// <summary> /// Determines whether to zero pad fraction digits so a consistent number of characters is displayed in a representation. /// </summary> [iOSVersion(6)] [Export("zeroPadsFractionDigits")] public bool ZeroPadsFractionDigits { get; set; } } /// <summary> /// Specifies the units appropriate for the formatter to display. Specifying any units explicitly causes just those units to be used in showing the number. /// </summary> [iOSVersion(6)] public enum NSByteCountFormatterUnits { /// <summary> /// This causes default units appropriate for the platform to be used. This is the default. /// </summary> [iOSVersion(6)] UseDefault, /// <summary> /// Displays bytes in the formatter content. /// </summary> [iOSVersion(6)] UseBytes, /// <summary> /// Displays kilobytes in the formatter content. /// </summary> [iOSVersion(6)] UseKB, /// <summary> /// Displays megabytes in the formatter content. /// </summary> [iOSVersion(6)] UseMB, /// <summary> /// Displays gigabytes in the formatter content. /// </summary> [iOSVersion(6)] UseGB, /// <summary> /// Displays terabytes in the formatter content. /// </summary> [iOSVersion(6)] UseTB, /// <summary> /// Displays petabyte in the formatter content. /// </summary> [iOSVersion(6)] UsePB, /// <summary> /// Displays exabytes in the formatter content. /// </summary> [iOSVersion(6)] UseEB, /// <summary> /// Displays zettabytes in the formatter content. /// </summary> [iOSVersion(6)] UseZB, /// <summary> /// Displays yottabytes in the formatter content. /// </summary> [iOSVersion(6)] UseYBOrHigher, /// <summary> /// Can use any unit in the formatter content. /// </summary> [iOSVersion(6)] UseAll, } /// <summary> /// Specifies display of file or storage byte counts. The display style is platform specific. /// </summary> [iOSVersion(6)] public enum NSByteCountFormatterCountStyle { /// <summary> /// Specifies display of file byte counts. The actual behavior for this is platform-specific; on OS X 10.8, this uses the binary style, but that may change over time. /// </summary> [iOSVersion(6)] File, /// <summary> /// Specifies display of memory byte counts. The actual behavior for this is platform-specific; on OS X 10.8, this uses the binary style, but that may change over time. /// </summary> [iOSVersion(6)] Memory, /// <summary> /// Causes 1000 bytes to be shown as 1 KB. It is better to use NSByteCountFormatterCountStyleFile or NSByteCountFormatterCountStyleMemory in most cases. /// </summary> [iOSVersion(6)] Decimal, /// <summary> /// Causes 1024 bytes to be shown as 1 KB. It is better to use NSByteCountFormatterCountStyleFile or NSByteCountFormatterCountStyleMemory in most cases. /// </summary> [iOSVersion(6)] Binary, } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSByteCountFormatter class converts a byte count value into a textual representation that is formatted with the appropriate byte modifier (KB, MB, GB and so on). /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSByteCountFormatter_Class/index.html#//apple_ref/occ/cl/NSByteCountFormatter"/> [iOSVersion(6)] [Export("")] public class NSByteCountFormatter : NSFormatter//, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSObjectProtocol, Printable { public NSByteCountFormatter() { } /// <summary> /// Converts a byte count into the specified string format without creating an NSNumber object. /// </summary> /// <param name="byteCount">The byte count.</param> /// <param name="countStyle">The formatter style. See NSByteCountFormatterCountStyle for possible values.</param> [iOSVersion(6)] [Export("stringFromByteCount")] public static string StringFromByteCount(Int64 byteCount, NSByteCountFormatterCountStyle countStyle) { return default(string); } /// <summary> /// Converts a byte count into a string without creating an NSNumber object. /// </summary> /// <param name="byteCount">The byte count.</param> [iOSVersion(6)] [Export("stringFromByteCount")] public virtual string StringFromByteCount(Int64 byteCount) { return default(string); } /// <summary> /// Specify the formatting context for the formatted string. /// </summary> [iOSVersion(8)] [Export("formattingContext")] public NSFormattingContext FormattingContext { get; set; } /// <summary> /// Specify the the number of bytes to be used for kilobytes. /// </summary> [iOSVersion(6)] [Export("countStyle")] public NSByteCountFormatterCountStyle CountStyle { get; set; } /// <summary> /// Determines whether to allow more natural display of some values. /// </summary> [iOSVersion(6)] [Export("allowsNonnumericFormatting")] public bool AllowsNonnumericFormatting { get; set; } /// <summary> /// Determines whether to include the number of bytes after the formatted string. /// </summary> [iOSVersion(6)] [Export("includesActualByteCount")] public bool IncludesActualByteCount { get; set; } /// <summary> /// Determines the display style of the size representation. /// </summary> [iOSVersion(6)] [Export("adaptive")] public bool Adaptive { get; set; } /// <summary> /// Specify the units that can be used in the output. /// </summary> [iOSVersion(6)] [Export("allowedUnits")] public NSByteCountFormatterUnits AllowedUnits { get; set; } /// <summary> /// Determines whether to include the count in the resulting formatted string. /// </summary> [iOSVersion(6)] [Export("includesCount")] public bool IncludesCount { get; set; } /// <summary> /// Determines whether to include the units in the resulting formatted string. /// </summary> [iOSVersion(6)] [Export("includesUnit")] public bool IncludesUnit { get; set; } /// <summary> /// Determines whether to zero pad fraction digits so a consistent number of characters is displayed in a representation. /// </summary> [iOSVersion(6)] [Export("zeroPadsFractionDigits")] public bool ZeroPadsFractionDigits { get; set; } } /// <summary> /// Specifies the units appropriate for the formatter to display. Specifying any units explicitly causes just those units to be used in showing the number. /// </summary> public enum NSByteCountFormatterUnits { /// <summary> /// This causes default units appropriate for the platform to be used. This is the default. /// </summary> [iOSVersion(6)] UseDefault, /// <summary> /// Displays bytes in the formatter content. /// </summary> [iOSVersion(6)] UseBytes, /// <summary> /// Displays kilobytes in the formatter content. /// </summary> [iOSVersion(6)] UseKB, /// <summary> /// Displays megabytes in the formatter content. /// </summary> [iOSVersion(6)] UseMB, /// <summary> /// Displays gigabytes in the formatter content. /// </summary> [iOSVersion(6)] UseGB, /// <summary> /// Displays terabytes in the formatter content. /// </summary> [iOSVersion(6)] UseTB, /// <summary> /// Displays petabyte in the formatter content. /// </summary> [iOSVersion(6)] UsePB, /// <summary> /// Displays exabytes in the formatter content. /// </summary> [iOSVersion(6)] UseEB, /// <summary> /// Displays zettabytes in the formatter content. /// </summary> [iOSVersion(6)] UseZB, /// <summary> /// Displays yottabytes in the formatter content. /// </summary> [iOSVersion(6)] UseYBOrHigher, /// <summary> /// Can use any unit in the formatter content. /// </summary> [iOSVersion(6)] UseAll, } /// <summary> /// Specifies display of file or storage byte counts. The display style is platform specific. /// </summary> public enum NSByteCountFormatterCountStyle { /// <summary> /// Specifies display of file byte counts. The actual behavior for this is platform-specific; on OS X 10.8, this uses the binary style, but that may change over time. /// </summary> [iOSVersion(6)] File, /// <summary> /// Specifies display of memory byte counts. The actual behavior for this is platform-specific; on OS X 10.8, this uses the binary style, but that may change over time. /// </summary> [iOSVersion(6)] Memory, /// <summary> /// Causes 1000 bytes to be shown as 1 KB. It is better to use NSByteCountFormatterCountStyleFile or NSByteCountFormatterCountStyleMemory in most cases. /// </summary> [iOSVersion(6)] Decimal, /// <summary> /// Causes 1024 bytes to be shown as 1 KB. It is better to use NSByteCountFormatterCountStyleFile or NSByteCountFormatterCountStyleMemory in most cases. /// </summary> [iOSVersion(6)] Binary, } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSCache.cs b/CocoaSharp/Foundation/NSCache.cs
index 184434a0..0fbc6122 100644
--- a/CocoaSharp/Foundation/NSCache.cs
+++ b/CocoaSharp/Foundation/NSCache.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// An NSCache object is a collection-like container, or cache, that stores key-value pairs, similar to the NSDictionary class. Developers often incorporate caches to temporarily store objects with transient data that are expensive to create. Reusing these objects can provide performance benefits, because their values do not have to be recalculated. However, the objects are not critical to the application and can be discarded if memory is tight. If discarded, their values will have to be recomputed again when needed. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/NSCache_Class/index.html#//apple_ref/occ/cl/NSCache"/> [iOSVersion(4)] public class NSCache : NSObject//, AnyObject, NSObjectProtocol { /// <summary> /// Returns the value associated with a given key. /// </summary> /// <param name="key">An object identifying the value.</param> [iOSVersion(4)] [Export("objectForKey")] public AnyObject ObjectForKey(AnyObject key) { return default(AnyObject); } /// <summary> /// Sets the value of the specified key in the cache. /// </summary> /// <param name="obj">The object to be stored in the cache.</param> /// <param name="forKey">The key with which to associate the value.</param> [iOSVersion(4)] [Export("setObject")] public void SetObject(AnyObject obj, AnyObject forKey) { } /// <summary> /// Sets the value of the specified key in the cache, and associates the key-value pair with the specified cost. /// </summary> /// <param name="obj">The object to store in the cache.</param> /// <param name="forKey">The key with which to associate the value.</param> /// <param name="cost">The cost with which to associate the key-value pair.</param> [iOSVersion(4)] [Export("setObject")] public void SetObject(AnyObject obj, AnyObject forKey, int cost) { } /// <summary> /// Removes the value of the specified key in the cache. /// </summary> /// <param name="key">The key identifying the value to be removed.</param> [iOSVersion(4)] [Export("removeObjectForKey")] public void RemoveObjectForKey(AnyObject key) { } /// <summary> /// Empties the cache. /// </summary> [iOSVersion(4)] [Export("removeAllObjects")] public void RemoveAllObjects() { } /// <summary> /// The name of the cache. /// </summary> [iOSVersion(4)] [Export("name")] public string Name { get; set; } /// <summary> /// The maximum number of objects the cache should hold. /// </summary> [iOSVersion(4)] [Export("countLimit")] public int CountLimit { get; set; } /// <summary> /// The maximum total cost that the cache can hold before it starts evicting objects. /// </summary> [iOSVersion(4)] [Export("totalCostLimit")] public int TotalCostLimit { get; set; } /// <summary> /// Boolean value that indicates whether the cache will automatically evict discardable-content objects whose content has been discarded. /// </summary> [iOSVersion(4)] [Export("evictsObjectsWithDiscardedContent")] public bool EvictsObjectsWithDiscardedContent { get; set; } /// <summary> /// The cache’s delegate. /// </summary> [iOSVersion(4)] [Export("delegate")] public NSCacheDelegate Delegate { get; set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// An NSCache object is a collection-like container, or cache, that stores key-value pairs, similar to the NSDictionary class. Developers often incorporate caches to temporarily store objects with transient data that are expensive to create. Reusing these objects can provide performance benefits, because their values do not have to be recalculated. However, the objects are not critical to the application and can be discarded if memory is tight. If discarded, their values will have to be recomputed again when needed. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/NSCache_Class/index.html#//apple_ref/occ/cl/NSCache"/> [iOSVersion(4)] [Export("")] public class NSCache : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSObjectProtocol, Printable { public NSCache() { } /// <summary> /// Returns the value associated with a given key. /// </summary> /// <param name="key">An object identifying the value.</param> [iOSVersion(4)] [Export("objectForKey")] [return:Optional] public virtual AnyObject ObjectForKey(AnyObject key) { return default(AnyObject); } /// <summary> /// Sets the value of the specified key in the cache. /// </summary> /// <param name="obj">The object to be stored in the cache.</param> /// <param name="forKey">The key with which to associate the value.</param> [iOSVersion(4)] [Export("setObject")] public virtual void SetObject(AnyObject obj, AnyObject forKey) { } /// <summary> /// Sets the value of the specified key in the cache, and associates the key-value pair with the specified cost. /// </summary> /// <param name="obj">The object to store in the cache.</param> /// <param name="forKey">The key with which to associate the value.</param> /// <param name="cost">The cost with which to associate the key-value pair.</param> [iOSVersion(4)] [Export("setObject")] public virtual void SetObject(AnyObject obj, AnyObject forKey, int cost) { } /// <summary> /// Removes the value of the specified key in the cache. /// </summary> /// <param name="key">The key identifying the value to be removed.</param> [iOSVersion(4)] [Export("removeObjectForKey")] public virtual void RemoveObjectForKey(AnyObject key) { } /// <summary> /// Empties the cache. /// </summary> [iOSVersion(4)] [Export("removeAllObjects")] public virtual void RemoveAllObjects() { } /// <summary> /// The name of the cache. /// </summary> [iOSVersion(4)] [Export("name")] public string Name { get; set; } /// <summary> /// The maximum number of objects the cache should hold. /// </summary> [iOSVersion(4)] [Export("countLimit")] public int CountLimit { get; set; } /// <summary> /// The maximum total cost that the cache can hold before it starts evicting objects. /// </summary> [iOSVersion(4)] [Export("totalCostLimit")] public int TotalCostLimit { get; set; } /// <summary> /// Boolean value that indicates whether the cache will automatically evict discardable-content objects whose content has been discarded. /// </summary> [iOSVersion(4)] [Export("evictsObjectsWithDiscardedContent")] public bool EvictsObjectsWithDiscardedContent { get; set; } /// <summary> /// The cache’s delegate. /// </summary> [iOSVersion(4)] [Export("delegate")] [Optional] public NSCacheDelegate Delegate { get; set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSCachedURLResponse.cs b/CocoaSharp/Foundation/NSCachedURLResponse.cs
index 892a2837..2735b7b9 100644
--- a/CocoaSharp/Foundation/NSCachedURLResponse.cs
+++ b/CocoaSharp/Foundation/NSCachedURLResponse.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// An NSCachedURLResponse object represents a cached response to a URL request. It provides the server’s response metadata in the form of an NSURLResponse object, along with an NSData object containing the actual cached content data. Its storage policy determines whether the response should be cached on disk, in memory, or not at all. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSCachedURLResponse_Class/index.html#//apple_ref/occ/cl/NSCachedURLResponse"/> [iOSVersion(2)] public class NSCachedURLResponse : NSObject//, AnyObject, NSCoding, NSCopying, NSObjectProtocol, NSSecureCoding { /// <summary> /// Initializes an NSCachedURLResponse object. /// </summary> /// <param name="response">The response to cache.</param> /// <param name="data">The data to cache.</param> [iOSVersion(2)] public NSCachedURLResponse(NSURLResponse response, NSData data) { } /// <summary> /// Initializes an NSCachedURLResponse object. /// </summary> /// <param name="response">The response to cache.</param> /// <param name="data">The data to cache.</param> /// <param name="userInfo">An optional dictionary of user information. May be nil.</param> /// <param name="storagePolicy">The storage policy for the cached response.</param> [iOSVersion(2)] public NSCachedURLResponse(NSURLResponse response, NSData data, Dictionary<NSObject, AnyObject> userInfo, NSURLCacheStoragePolicy storagePolicy) { } /// <summary> /// The receiver’s cached data. (read-only) /// </summary> [iOSVersion(2)] [Export("data")] public NSData Data { get; private set; } /// <summary> /// The URL response object associated with the receiver. (read-only) /// </summary> [iOSVersion(2)] [Export("response")] public NSURLResponse Response { get; private set; } /// <summary> /// The receiver’s cache storage policy. (read-only) /// </summary> [iOSVersion(2)] [Export("storagePolicy")] public NSURLCacheStoragePolicy StoragePolicy { get; private set; } /// <summary> /// The receiver’s user info dictionary. (read-only) /// </summary> [iOSVersion(2)] [Export("userInfo")] public Dictionary<NSObject, AnyObject> UserInfo { get; private set; } } /// <summary> /// These constants specify the caching strategy used by an NSCachedURLResponse object. /// </summary> [iOSVersion(2)] public enum NSURLCacheStoragePolicy { /// <summary> /// Specifies that storage in NSURLCache is allowed without restriction. /// </summary> [iOSVersion(2)] Allowed, /// <summary> /// Specifies that storage in NSURLCache is allowed; however storage should be restricted to memory only. /// </summary> [iOSVersion(2)] AllowedInMemoryOnly, /// <summary> /// Specifies that storage in NSURLCache is not allowed in any fashion, either in memory or on disk. /// </summary> [iOSVersion(2)] NotAllowed, } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// An NSCachedURLResponse object represents a cached response to a URL request. It provides the server’s response metadata in the form of an NSURLResponse object, along with an NSData object containing the actual cached content data. Its storage policy determines whether the response should be cached on disk, in memory, or not at all. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSCachedURLResponse_Class/index.html#//apple_ref/occ/cl/NSCachedURLResponse"/> [iOSVersion(2)] [Export("")] public class NSCachedURLResponse : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSObjectProtocol, NSSecureCoding, Printable { public NSCachedURLResponse() { } /// <summary> /// Initializes an NSCachedURLResponse object. /// </summary> /// <param name="response">The response to cache.</param> /// <param name="data">The data to cache.</param> [iOSVersion(2)] public NSCachedURLResponse(NSURLResponse response, NSData data) { } /// <summary> /// Initializes an NSCachedURLResponse object. /// </summary> /// <param name="response">The response to cache.</param> /// <param name="data">The data to cache.</param> /// <param name="userInfo">An optional dictionary of user information. May be nil.</param> /// <param name="storagePolicy">The storage policy for the cached response.</param> [iOSVersion(2)] public NSCachedURLResponse(NSURLResponse response, NSData data, Dictionary<NSObject, AnyObject> userInfo, NSURLCacheStoragePolicy storagePolicy) { } /// <summary> /// The receiver’s cached data. (read-only) /// </summary> [iOSVersion(2)] [Export("data")] public NSData Data { get; private set; } /// <summary> /// The URL response object associated with the receiver. (read-only) /// </summary> [iOSVersion(2)] [Export("response")] public NSURLResponse Response { get; private set; } /// <summary> /// The receiver’s cache storage policy. (read-only) /// </summary> [iOSVersion(2)] [Export("storagePolicy")] public NSURLCacheStoragePolicy StoragePolicy { get; private set; } /// <summary> /// The receiver’s user info dictionary. (read-only) /// </summary> [iOSVersion(2)] [Export("userInfo")] public Dictionary<NSObject, AnyObject> UserInfo { get; private set; } } /// <summary> /// These constants specify the caching strategy used by an NSCachedURLResponse object. /// </summary> public enum NSURLCacheStoragePolicy { /// <summary> /// Specifies that storage in NSURLCache is allowed without restriction. /// </summary> [iOSVersion(2)] Allowed, /// <summary> /// Specifies that storage in NSURLCache is allowed; however storage should be restricted to memory only. /// </summary> [iOSVersion(2)] AllowedInMemoryOnly, /// <summary> /// Specifies that storage in NSURLCache is not allowed in any fashion, either in memory or on disk. /// </summary> [iOSVersion(2)] NotAllowed, } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSCalendar.cs b/CocoaSharp/Foundation/NSCalendar.cs
index aab70418..2dcf329b 100644
--- a/CocoaSharp/Foundation/NSCalendar.cs
+++ b/CocoaSharp/Foundation/NSCalendar.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// Calendars encapsulate information about systems of reckoning time in which the beginning, length, and divisions of a year are defined. They provide information about the calendar and support for calendrical computations such as determining the range of a given calendrical unit and adding units to a given absolute time. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSCalendar_Class/index.html#//apple_ref/occ/cl/NSCalendar"/> [iOSVersion(2)] public class NSCalendar : NSObject//, AnyObject, NSCoding, NSCopying, NSObjectProtocol, NSSecureCoding { /// <summary> /// Returns the logical calendar for the current user. /// </summary> [iOSVersion(2)] [Export("currentCalendar")] public static NSCalendar CurrentCalendar() { return default(NSCalendar); } /// <summary> /// Returns the current logical calendar for the current user. /// </summary> [iOSVersion(2)] [Export("autoupdatingCurrentCalendar")] public static NSCalendar AutoupdatingCurrentCalendar() { return default(NSCalendar); } /// <summary> /// Initializes a newly-allocated NSCalendar object for the calendar specified by a given identifier. /// </summary> /// <param name="calendarIdentifier">The identifier for the new calendar. For valid identifiers, see NSLocale.</param> [iOSVersion(2)] public NSCalendar(string calendarIdentifier) { } /// <summary> /// The maximum range limits of the values that a given unit can take on in the receive /// </summary> /// <param name="unit">The unit for which the maximum range is returned.</param> [iOSVersion(2)] [Export("maximumRangeOfUnit")] public NSRange MaximumRangeOfUnit(NSCalendarUnit unit) { return default(NSRange); } /// <summary> /// Returns the minimum range limits of the values that a given unit can take on in the receiver. /// </summary> /// <param name="unit">The unit for which the maximum range is returned.</param> [iOSVersion(2)] [Export("minimumRangeOfUnit")] public NSRange MinimumRangeOfUnit(NSCalendarUnit unit) { return default(NSRange); } /// <summary> /// Returns, for a given absolute time, the ordinal number of a smaller calendar unit (such as a day) within a specified larger calendar unit (such as a week). /// </summary> /// <param name="smaller">The smaller calendar unit</param> /// <param name="inUnit">The larger calendar unit</param> /// <param name="forDate">The absolute time for which the calculation is performed</param> [iOSVersion(2)] [Export("ordinalityOfUnit")] public int OrdinalityOfUnit(NSCalendarUnit smaller, NSCalendarUnit inUnit, NSDate forDate) { return default(int); } /// <summary> /// Returns the range of absolute time values that a smaller calendar unit (such as a day) can take on in a larger calendar unit (such as a month) that includes a specified absolute time. /// </summary> /// <param name="smaller">The smaller calendar unit.</param> /// <param name="inUnit">The larger calendar unit.</param> /// <param name="forDate">The absolute time for which the calculation is performed.</param> [iOSVersion(2)] [Export("rangeOfUnit")] public NSRange RangeOfUnit(NSCalendarUnit smaller, NSCalendarUnit inUnit, NSDate forDate) { return default(NSRange); } /// <summary> /// Returns by reference the starting time and duration of a given calendar unit that contains a given date. /// </summary> /// <param name="unit">A calendar unit (see Calendar Units for possible values).</param> /// <param name="startDate">Upon return, contains the starting time of the calendar unit unit that contains the date date</param> /// <param name="interval">Upon return, contains the duration of the calendar unit unit that contains the date date</param> /// <param name="forDate">A date.</param> [iOSVersion(2)] [Export("rangeOfUnit")] public bool RangeOfUnit(NSCalendarUnit unit, AutoreleasingUnsafePointer<NSDate> startDate, UnsafePointer<NSTimeInterval> interval, NSDate forDate) { return default(bool); } /// <summary> /// Returns a NSDateComponents object containing a given date decomposed into specified components. /// </summary> /// <param name="unitFlags">The components into which to decompose date—a bitwise OR of NSCalendarUnit constants.</param> /// <param name="fromDate">The date for which to perform the calculation.</param> [iOSVersion(2)] [Export("components")] public NSDateComponents Components(NSCalendarUnit unitFlags, NSDate fromDate) { return default(NSDateComponents); } /// <summary> /// Returns, as an NSDateComponents object using specified components, the difference between two supplied dates. /// </summary> /// <param name="unitFlags">Specifies the components for the returned NSDateComponents object—a bitwise OR of NSCalendarUnit constants.</param> /// <param name="fromDate">The start date for the calculation.</param> /// <param name="toDate">The end date for the calculation.</param> /// <param name="options">Options for the calculation. /// If you specify a “wrap” option (NSWrapCalendarComponents), the specified components are incremented and wrap around to zero/one on overflow, but do not cause higher units to be incremented. When the wrap option is false, overflow in a unit carries into the higher units, as in typical addition.</param> [iOSVersion(2)] [Export("components")] public NSDateComponents Components(NSCalendarUnit unitFlags, NSDate fromDate, NSDate toDate, NSCalendarOptions options) { return default(NSDateComponents); } /// <summary> /// Returns a new NSDate object representing the absolute time calculated by adding given components to a given date. /// </summary> /// <param name="comps">The components to add to date.</param> /// <param name="toDate">The date to which comps are added.</param> /// <param name="options">Options for the calculation. See “NSDateComponents wrapping behavior” for possible values. Pass 0 to specify no options. /// If you specify no options (you pass 0), overflow in a unit carries into the higher units (as in typical addition).</param> [iOSVersion(2)] [Export("dateByAddingComponents")] public NSDate DateByAddingComponents(NSDateComponents comps, NSDate toDate, NSCalendarOptions options) { return default(NSDate); } /// <summary> /// Returns a new NSDate object representing the absolute time calculated from given components. /// </summary> /// <param name="comps">The components from which to calculate the returned date.</param> [iOSVersion(2)] [Export("dateFromComponents")] public NSDate DateFromComponents(NSDateComponents comps) { return default(NSDate); } /// <summary> /// Sets the index of the first weekday for the receiver. /// </summary> [iOSVersion(2)] [Export("firstWeekday")] public int FirstWeekday { get; set; } /// <summary> /// Sets the locale for the receiver. /// </summary> [iOSVersion(2)] [Export("locale")] public NSLocale Locale { get; set; } /// <summary> /// Sets the minimum number of days in the first week of the receiver. /// </summary> [iOSVersion(2)] [Export("minimumDaysInFirstWeek")] public int MinimumDaysInFirstWeek { get; set; } /// <summary> /// Sets the time zone for the receiver. /// </summary> [iOSVersion(2)] [Export("timeZone")] public NSTimeZone TimeZone { get; set; } /// <summary> /// Returns the identifier for the receiver. /// </summary> [iOSVersion(2)] [Export("calendarIdentifier")] public string CalendarIdentifier { get; private set; } /// <summary> /// The wrapping option specifies wrapping behavior for calculations involving NSDateComponents objects. /// </summary> public int NSWrapCalendarComponents { get; set; } } /// <summary> /// Specify calendrical units such as day and month. /// </summary> [iOSVersion(2)] public enum NSCalendarUnit { /// <summary> /// /// </summary> CalendarUnitEra, /// <summary> /// /// </summary> CalendarUnitYear, /// <summary> /// /// </summary> CalendarUnitMonth, /// <summary> /// /// </summary> CalendarUnitDay, /// <summary> /// /// </summary> CalendarUnitHour, /// <summary> /// /// </summary> CalendarUnitMinute, /// <summary> /// /// </summary> CalendarUnitSecond, /// <summary> /// /// </summary> CalendarUnitWeekday, /// <summary> /// /// </summary> CalendarUnitWeekdayOrdinal, /// <summary> /// /// </summary> CalendarUnitQuarter, /// <summary> /// /// </summary> CalendarUnitWeekOfMonth, /// <summary> /// /// </summary> CalendarUnitWeekOfYear, /// <summary> /// /// </summary> CalendarUnitYearForWeekOfYear, /// <summary> /// /// </summary> CalendarUnitNanosecond, /// <summary> /// /// </summary> CalendarUnitCalendar, /// <summary> /// /// </summary> CalendarUnitTimeZone, /// <summary> /// Specifies the era unit. /// The corresponding value is an NSInteger. Equal to kCFCalendarUnitEra. /// Available in iOS 2.0 and later. /// Deprecated in iOS 8.0. /// </summary> [Obsolete] EraCalendarUnit, /// <summary> /// Specifies the year unit. /// The corresponding value is an NSInteger. Equal to kCFCalendarUnitYear. /// Available in iOS 2.0 and later. /// Deprecated in iOS 8.0. /// </summary> [Obsolete] YearCalendarUnit, /// <summary> /// Specifies the month unit. /// The corresponding value is an NSInteger. Equal to kCFCalendarUnitMonth. /// Available in iOS 2.0 and later. /// Deprecated in iOS 8.0. /// </summary> [Obsolete] MonthCalendarUnit, /// <summary> /// Specifies the day unit. /// The corresponding value is an NSInteger. Equal to kCFCalendarUnitDay. /// Available in iOS 2.0 and later. /// Deprecated in iOS 8.0. /// </summary> [Obsolete] DayCalendarUnit, /// <summary> /// Specifies the hour unit. /// The corresponding value is an NSInteger. Equal to kCFCalendarUnitHour. /// Available in iOS 2.0 and later. /// Deprecated in iOS 8.0. /// </summary> [Obsolete] HourCalendarUnit, /// <summary> /// Specifies the minute unit. /// The corresponding value is an NSInteger. Equal to kCFCalendarUnitMinute. /// Available in iOS 2.0 and later. /// Deprecated in iOS 8.0. /// </summary> [Obsolete] MinuteCalendarUnit, /// <summary> /// Specifies the second unit. /// The corresponding value is a double. Equal to kCFCalendarUnitSecond. /// Available in iOS 2.0 and later. /// Deprecated in iOS 8.0. /// </summary> [Obsolete] SecondCalendarUnit, /// <summary> /// Specifies the week unit. /// The corresponding value is an kCFCalendarUnitSecond. Equal to kCFCalendarUnitWeek. /// Available in iOS 2.0 and later. /// Deprecated in iOS 8.0. /// </summary> [Obsolete] WeekCalendarUnit, /// <summary> /// Specifies the weekday unit. /// The corresponding value is an kCFCalendarUnitSecond. Equal to kCFCalendarUnitWeekday. The weekday units are the numbers 1 through N (where for the Gregorian calendar N=7 and 1 is Sunday). /// Available in iOS 2.0 and later. /// Deprecated in iOS 8.0. /// </summary> [Obsolete] WeekdayCalendarUnit, /// <summary> /// Specifies the ordinal weekday unit. /// The corresponding value is an kCFCalendarUnitSecond. Equal to kCFCalendarUnitWeekdayOrdinal. The weekday ordinal unit describes ordinal position within the month unit of the corresponding weekday unit. For example, in the Gregorian calendar a weekday ordinal unit of 2 for a weekday unit 3 indicates &quot;the second Tuesday in the month&quot;. /// Available in iOS 2.0 and later. /// Deprecated in iOS 8.0. /// </summary> [Obsolete] WeekdayOrdinalCalendarUnit, /// <summary> /// Specifies the quarter of the calendar as an kCFCalendarUnitSecond. /// Available in iOS 4.0 and later. /// Deprecated in iOS 8.0. /// </summary> [Obsolete] QuarterCalendarUnit, /// <summary> /// Specifies the original week of a month calendar unit. /// Available in iOS 5.0 and later. /// Deprecated in iOS 8.0. /// </summary> [Obsolete] WeekOfMonthCalendarUnit, /// <summary> /// Specifies the original week of the year calendar unit. /// Available in iOS 5.0 and later. /// Deprecated in iOS 8.0. /// </summary> [Obsolete] WeekOfYearCalendarUnit, /// <summary> /// Specifies the year when the calendar is being interpreted as a week-based calendar. /// Available in iOS 5.0 and later. /// Deprecated in iOS 8.0. /// </summary> [Obsolete] YearForWeekOfYearCalendarUnit, /// <summary> /// Specifies the calendar of the calendar. /// Available in iOS 4.0 and later. /// Deprecated in iOS 8.0. /// </summary> [Obsolete] CalendarCalendarUnit, /// <summary> /// Specifies the time zone of the calendar as an NSTimeZone. /// Available in iOS 4.0 and later. /// Deprecated in iOS 8.0. /// </summary> [Obsolete] TimeZoneCalendarUnit, } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// Calendars encapsulate information about systems of reckoning time in which the beginning, length, and divisions of a year are defined. They provide information about the calendar and support for calendrical computations such as determining the range of a given calendrical unit and adding units to a given absolute time. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSCalendar_Class/index.html#//apple_ref/occ/cl/NSCalendar"/> [iOSVersion(2)] [Export("")] public class NSCalendar : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSObjectProtocol, NSSecureCoding, Printable { public NSCalendar() { } /// <summary> /// Returns the logical calendar for the current user. /// </summary> [iOSVersion(2)] [Export("currentCalendar")] public static NSCalendar CurrentCalendar() { return default(NSCalendar); } /// <summary> /// Returns the current logical calendar for the current user. /// </summary> [iOSVersion(2)] [Export("autoupdatingCurrentCalendar")] public static NSCalendar AutoupdatingCurrentCalendar() { return default(NSCalendar); } /// <summary> /// The maximum range limits of the values that a given unit can take on in the receive /// </summary> /// <param name="unit">The unit for which the maximum range is returned.</param> [iOSVersion(2)] [Export("maximumRangeOfUnit")] public virtual NSRange MaximumRangeOfUnit(NSCalendarUnit unit) { return default(NSRange); } /// <summary> /// Returns the minimum range limits of the values that a given unit can take on in the receiver. /// </summary> /// <param name="unit">The unit for which the maximum range is returned.</param> [iOSVersion(2)] [Export("minimumRangeOfUnit")] public virtual NSRange MinimumRangeOfUnit(NSCalendarUnit unit) { return default(NSRange); } /// <summary> /// Returns, for a given absolute time, the ordinal number of a smaller calendar unit (such as a day) within a specified larger calendar unit (such as a week). /// </summary> /// <param name="smaller">The smaller calendar unit</param> /// <param name="inUnit">The larger calendar unit</param> /// <param name="forDate">The absolute time for which the calculation is performed</param> [iOSVersion(2)] [Export("ordinalityOfUnit")] public virtual int OrdinalityOfUnit(NSCalendarUnit smaller, NSCalendarUnit inUnit, NSDate forDate) { return default(int); } /// <summary> /// Returns the range of absolute time values that a smaller calendar unit (such as a day) can take on in a larger calendar unit (such as a month) that includes a specified absolute time. /// </summary> /// <param name="smaller">The smaller calendar unit.</param> /// <param name="inUnit">The larger calendar unit.</param> /// <param name="forDate">The absolute time for which the calculation is performed.</param> [iOSVersion(2)] [Export("rangeOfUnit")] public virtual NSRange RangeOfUnit(NSCalendarUnit smaller, NSCalendarUnit inUnit, NSDate forDate) { return default(NSRange); } /// <summary> /// Returns by reference the starting time and duration of a given calendar unit that contains a given date. /// </summary> /// <param name="unit">A calendar unit (see Calendar Units for possible values).</param> /// <param name="startDate">Upon return, contains the starting time of the calendar unit unit that contains the date date</param> /// <param name="interval">Upon return, contains the duration of the calendar unit unit that contains the date date</param> /// <param name="forDate">A date.</param> [iOSVersion(2)] [Export("rangeOfUnit")] public virtual bool RangeOfUnit(NSCalendarUnit unit, AutoreleasingUnsafeMutablePointer<NSDate> startDate, UnsafeMutablePointer<NSTimeInterval> interval, NSDate forDate) { return default(bool); } /// <summary> /// Returns a NSDateComponents object containing a given date decomposed into specified components. /// </summary> /// <param name="unitFlags">The components into which to decompose date—a bitwise OR of NSCalendarUnit constants.</param> /// <param name="fromDate">The date for which to perform the calculation.</param> [iOSVersion(2)] [Export("components")] public virtual NSDateComponents Components(NSCalendarUnit unitFlags, NSDate fromDate) { return default(NSDateComponents); } /// <summary> /// Returns, as an NSDateComponents object using specified components, the difference between two supplied dates. /// </summary> /// <param name="unitFlags">Specifies the components for the returned NSDateComponents object—a bitwise OR of NSCalendarUnit constants.</param> /// <param name="fromDate">The start date for the calculation.</param> /// <param name="toDate">The end date for the calculation.</param> /// <param name="options">Options for the calculation. /// If you specify a “wrap” option (NSWrapCalendarComponents), the specified components are incremented and wrap around to zero/one on overflow, but do not cause higher units to be incremented. When the wrap option is false, overflow in a unit carries into the higher units, as in typical addition.</param> [iOSVersion(2)] [Export("components")] public virtual NSDateComponents Components(NSCalendarUnit unitFlags, NSDate fromDate, NSDate toDate, NSCalendarOptions options) { return default(NSDateComponents); } /// <summary> /// Returns a new NSDate object representing the absolute time calculated by adding given components to a given date. /// </summary> /// <param name="comps">The components to add to date.</param> /// <param name="toDate">The date to which comps are added.</param> /// <param name="options">Options for the calculation. See “NSDateComponents wrapping behavior” for possible values. Pass 0 to specify no options. /// If you specify no options (you pass 0), overflow in a unit carries into the higher units (as in typical addition).</param> [iOSVersion(2)] [Export("dateByAddingComponents")] [return:Optional] public virtual NSDate DateByAddingComponents(NSDateComponents comps, NSDate toDate, NSCalendarOptions options) { return default(NSDate); } /// <summary> /// Returns a new NSDate object representing the absolute time calculated from given components. /// </summary> /// <param name="comps">The components from which to calculate the returned date.</param> [iOSVersion(2)] [Export("dateFromComponents")] [return:Optional] public virtual NSDate DateFromComponents(NSDateComponents comps) { return default(NSDate); } /// <summary> /// Sets the index of the first weekday for the receiver. /// </summary> [iOSVersion(2)] [Export("firstWeekday")] public int FirstWeekday { get; set; } /// <summary> /// Sets the locale for the receiver. /// </summary> [iOSVersion(2)] [Export("locale")] [Optional] public NSLocale Locale { get; set; } /// <summary> /// Sets the minimum number of days in the first week of the receiver. /// </summary> [iOSVersion(2)] [Export("minimumDaysInFirstWeek")] public int MinimumDaysInFirstWeek { get; set; } /// <summary> /// Sets the time zone for the receiver. /// </summary> [iOSVersion(2)] [Export("timeZone")] public NSTimeZone TimeZone { get; set; } /// <summary> /// Returns the identifier for the receiver. /// </summary> [iOSVersion(2)] [Export("calendarIdentifier")] public string CalendarIdentifier { get; private set; } /// <summary> /// The wrapping option specifies wrapping behavior for calculations involving NSDateComponents objects. /// </summary> public int NSWrapCalendarComponents { get; private set; } } /// <summary> /// Specify calendrical units such as day and month. /// </summary> public enum NSCalendarUnit { /// <summary> /// /// </summary> CalendarUnitEra, /// <summary> /// /// </summary> CalendarUnitYear, /// <summary> /// /// </summary> CalendarUnitMonth, /// <summary> /// /// </summary> CalendarUnitDay, /// <summary> /// /// </summary> CalendarUnitHour, /// <summary> /// /// </summary> CalendarUnitMinute, /// <summary> /// /// </summary> CalendarUnitSecond, /// <summary> /// /// </summary> CalendarUnitWeekday, /// <summary> /// /// </summary> CalendarUnitWeekdayOrdinal, /// <summary> /// /// </summary> CalendarUnitQuarter, /// <summary> /// /// </summary> CalendarUnitWeekOfMonth, /// <summary> /// /// </summary> CalendarUnitWeekOfYear, /// <summary> /// /// </summary> CalendarUnitYearForWeekOfYear, /// <summary> /// /// </summary> CalendarUnitNanosecond, /// <summary> /// /// </summary> CalendarUnitCalendar, /// <summary> /// /// </summary> CalendarUnitTimeZone, /// <summary> /// Specifies the era unit. /// The corresponding value is an NSInteger. Equal to kCFCalendarUnitEra. /// Available in iOS 2.0 and later. /// Deprecated in iOS 8.0. /// </summary> [Obsolete] EraCalendarUnit, /// <summary> /// Specifies the year unit. /// The corresponding value is an NSInteger. Equal to kCFCalendarUnitYear. /// Available in iOS 2.0 and later. /// Deprecated in iOS 8.0. /// </summary> [Obsolete] YearCalendarUnit, /// <summary> /// Specifies the month unit. /// The corresponding value is an NSInteger. Equal to kCFCalendarUnitMonth. /// Available in iOS 2.0 and later. /// Deprecated in iOS 8.0. /// </summary> [Obsolete] MonthCalendarUnit, /// <summary> /// Specifies the day unit. /// The corresponding value is an NSInteger. Equal to kCFCalendarUnitDay. /// Available in iOS 2.0 and later. /// Deprecated in iOS 8.0. /// </summary> [Obsolete] DayCalendarUnit, /// <summary> /// Specifies the hour unit. /// The corresponding value is an NSInteger. Equal to kCFCalendarUnitHour. /// Available in iOS 2.0 and later. /// Deprecated in iOS 8.0. /// </summary> [Obsolete] HourCalendarUnit, /// <summary> /// Specifies the minute unit. /// The corresponding value is an NSInteger. Equal to kCFCalendarUnitMinute. /// Available in iOS 2.0 and later. /// Deprecated in iOS 8.0. /// </summary> [Obsolete] MinuteCalendarUnit, /// <summary> /// Specifies the second unit. /// The corresponding value is a double. Equal to kCFCalendarUnitSecond. /// Available in iOS 2.0 and later. /// Deprecated in iOS 8.0. /// </summary> [Obsolete] SecondCalendarUnit, /// <summary> /// Specifies the week unit. /// The corresponding value is an kCFCalendarUnitSecond. Equal to kCFCalendarUnitWeek. /// Available in iOS 2.0 and later. /// Deprecated in iOS 8.0. /// </summary> [Obsolete] WeekCalendarUnit, /// <summary> /// Specifies the weekday unit. /// The corresponding value is an kCFCalendarUnitSecond. Equal to kCFCalendarUnitWeekday. The weekday units are the numbers 1 through N (where for the Gregorian calendar N=7 and 1 is Sunday). /// Available in iOS 2.0 and later. /// Deprecated in iOS 8.0. /// </summary> [Obsolete] WeekdayCalendarUnit, /// <summary> /// Specifies the ordinal weekday unit. /// The corresponding value is an kCFCalendarUnitSecond. Equal to kCFCalendarUnitWeekdayOrdinal. The weekday ordinal unit describes ordinal position within the month unit of the corresponding weekday unit. For example, in the Gregorian calendar a weekday ordinal unit of 2 for a weekday unit 3 indicates &quot;the second Tuesday in the month&quot;. /// Available in iOS 2.0 and later. /// Deprecated in iOS 8.0. /// </summary> [Obsolete] WeekdayOrdinalCalendarUnit, /// <summary> /// Specifies the quarter of the calendar as an kCFCalendarUnitSecond. /// Available in iOS 4.0 and later. /// Deprecated in iOS 8.0. /// </summary> [Obsolete] QuarterCalendarUnit, /// <summary> /// Specifies the original week of a month calendar unit. /// Available in iOS 5.0 and later. /// Deprecated in iOS 8.0. /// </summary> [Obsolete] WeekOfMonthCalendarUnit, /// <summary> /// Specifies the original week of the year calendar unit. /// Available in iOS 5.0 and later. /// Deprecated in iOS 8.0. /// </summary> [Obsolete] WeekOfYearCalendarUnit, /// <summary> /// Specifies the year when the calendar is being interpreted as a week-based calendar. /// Available in iOS 5.0 and later. /// Deprecated in iOS 8.0. /// </summary> [Obsolete] YearForWeekOfYearCalendarUnit, /// <summary> /// Specifies the calendar of the calendar. /// Available in iOS 4.0 and later. /// Deprecated in iOS 8.0. /// </summary> [Obsolete] CalendarCalendarUnit, /// <summary> /// Specifies the time zone of the calendar as an NSTimeZone. /// Available in iOS 4.0 and later. /// Deprecated in iOS 8.0. /// </summary> [Obsolete] TimeZoneCalendarUnit, } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSCharacterSet.cs b/CocoaSharp/Foundation/NSCharacterSet.cs
index 3523165e..1fc1e113 100644
--- a/CocoaSharp/Foundation/NSCharacterSet.cs
+++ b/CocoaSharp/Foundation/NSCharacterSet.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// An NSCharacterSet object represents a set of Unicode-compliant characters. NSString and NSScanner objects use NSCharacterSet objects to group characters together for searching operations, so that they can find any of a particular set of characters during a search. The cluster’s two public classes, NSCharacterSet and NSMutableCharacterSet, declare the programmatic interface for static and dynamic character sets, respectively. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSCharacterSet_Class/index.html#//apple_ref/occ/cl/NSCharacterSet"/> [iOSVersion(2)] public class NSCharacterSet : NSObject//, AnyObject, NSCoding, NSCopying, NSMutableCopying, NSObjectProtocol { /// <summary> /// Returns a character set containing the characters in the categories Letters, Marks, and Numbers. /// </summary> [iOSVersion(2)] [Export("alphanumericCharacterSet")] public static NSCharacterSet AlphanumericCharacterSet() { return default(NSCharacterSet); } /// <summary> /// Returns a character set containing the characters in the category of Titlecase Letters. /// </summary> [iOSVersion(2)] [Export("capitalizedLetterCharacterSet")] public static NSCharacterSet CapitalizedLetterCharacterSet() { return default(NSCharacterSet); } /// <summary> /// Returns a character set containing the characters in the categories of Control or Format Characters. /// </summary> [iOSVersion(2)] [Export("controlCharacterSet")] public static NSCharacterSet ControlCharacterSet() { return default(NSCharacterSet); } /// <summary> /// Returns a character set containing the characters in the category of Decimal Numbers. /// </summary> [iOSVersion(2)] [Export("decimalDigitCharacterSet")] public static NSCharacterSet DecimalDigitCharacterSet() { return default(NSCharacterSet); } /// <summary> /// Returns a character set containing all individual Unicode characters that can also be represented as composed character sequences. /// </summary> [iOSVersion(2)] [Export("decomposableCharacterSet")] public static NSCharacterSet DecomposableCharacterSet() { return default(NSCharacterSet); } /// <summary> /// Returns a character set containing values in the category of Non-Characters or that have not yet been defined in version 3.2 of the Unicode standard. /// </summary> [iOSVersion(2)] [Export("illegalCharacterSet")] public static NSCharacterSet IllegalCharacterSet() { return default(NSCharacterSet); } /// <summary> /// Returns a character set containing the characters in the categories Letters and Marks. /// </summary> [iOSVersion(2)] [Export("letterCharacterSet")] public static NSCharacterSet LetterCharacterSet() { return default(NSCharacterSet); } /// <summary> /// Returns a character set containing the characters in the category of Lowercase Letters. /// </summary> [iOSVersion(2)] [Export("lowercaseLetterCharacterSet")] public static NSCharacterSet LowercaseLetterCharacterSet() { return default(NSCharacterSet); } /// <summary> /// Returns a character set containing the newline characters. /// </summary> [iOSVersion(2)] [Export("newlineCharacterSet")] public static NSCharacterSet NewlineCharacterSet() { return default(NSCharacterSet); } /// <summary> /// Returns a character set containing the characters in the category of Marks. /// </summary> [iOSVersion(2)] [Export("nonBaseCharacterSet")] public static NSCharacterSet NonBaseCharacterSet() { return default(NSCharacterSet); } /// <summary> /// Returns a character set containing the characters in the category of Punctuation. /// </summary> [iOSVersion(2)] [Export("punctuationCharacterSet")] public static NSCharacterSet PunctuationCharacterSet() { return default(NSCharacterSet); } /// <summary> /// Returns a character set containing the characters in the category of Symbols. /// </summary> [iOSVersion(2)] [Export("symbolCharacterSet")] public static NSCharacterSet SymbolCharacterSet() { return default(NSCharacterSet); } /// <summary> /// Returns a character set containing the characters in the categories of Uppercase Letters and Titlecase Letters. /// </summary> [iOSVersion(2)] [Export("uppercaseLetterCharacterSet")] public static NSCharacterSet UppercaseLetterCharacterSet() { return default(NSCharacterSet); } /// <summary> /// Returns a character set containing Unicode General Category Z*, U000A ~ U000D, and U0085. /// </summary> [iOSVersion(2)] [Export("whitespaceAndNewlineCharacterSet")] public static NSCharacterSet WhitespaceAndNewlineCharacterSet() { return default(NSCharacterSet); } /// <summary> /// Returns a character set containing only the in-line whitespace characters space (U+0020) and tab (U+0009). /// </summary> [iOSVersion(2)] [Export("whitespaceCharacterSet")] public static NSCharacterSet WhitespaceCharacterSet() { return default(NSCharacterSet); } /// <summary> /// Returns the character set for characters allowed in a fragment URL component. /// </summary> [iOSVersion(7)] public static NSCharacterSet URLFragmentAllowedCharacterSet() { return default(NSCharacterSet); } /// <summary> /// Returns the character set for characters allowed in a host URL subcomponent. /// </summary> [iOSVersion(7)] public static NSCharacterSet URLHostAllowedCharacterSet() { return default(NSCharacterSet); } /// <summary> /// Returns the character set for characters allowed in a password URL subcomponent. /// </summary> [iOSVersion(7)] public static NSCharacterSet URLPasswordAllowedCharacterSet() { return default(NSCharacterSet); } /// <summary> /// Returns the character set for characters allowed in a path URL component. /// </summary> [iOSVersion(7)] public static NSCharacterSet URLPathAllowedCharacterSet() { return default(NSCharacterSet); } /// <summary> /// Returns the character set for characters allowed in a query URL component. /// </summary> [iOSVersion(7)] public static NSCharacterSet URLQueryAllowedCharacterSet() { return default(NSCharacterSet); } /// <summary> /// Returns the character set for characters allowed in a user URL subcomponent. /// </summary> [iOSVersion(7)] public static NSCharacterSet URLUserAllowedCharacterSet() { return default(NSCharacterSet); } /// <summary> /// Returns a character set containing the characters in a given string. /// </summary> /// <param name="charactersInString">A string containing characters for the new character set.</param> [iOSVersion(2)] public NSCharacterSet(string charactersInString) { } /// <summary> /// Returns a character set containing characters with Unicode values in a given range. /// </summary> /// <param name="range">A range of Unicode values. /// aRange.location is the value of the first character to return; aRange.location + aRange.length– 1 is the value of the last.</param> [iOSVersion(2)] public NSCharacterSet(NSRange range) { } /// <summary> /// Returns a character set containing characters determined by a given bitmap representation. /// </summary> /// <param name="bitmapRepresentation">A bitmap representation of a character set.</param> [iOSVersion(2)] public NSCharacterSet(NSData bitmapRepresentation) { } /// <summary> /// Returns a character set read from the bitmap representation stored in the file a given path. /// </summary> /// <param name="contentsOfFile">A path to a file containing a bitmap representation of a character set. The path name must end with the extension .bitmap.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [IgnoreParameter("NAME_YOUR_PARAMS")] public NSCharacterSet(string contentsOfFile, bool NAME_YOUR_PARAMS = false) { } /// <summary> /// Returns a Boolean value that indicates whether a given character is in the receiver. /// </summary> /// <param name="aCharacter">The character to test for membership of the receiver.</param> [iOSVersion(2)] [Export("characterIsMember")] public bool CharacterIsMember(unichar aCharacter) { return default(bool); } /// <summary> /// Returns a Boolean value that indicates whether the receiver has at least one member in a given character plane. /// </summary> /// <param name="thePlane">A character plane.</param> [iOSVersion(2)] [Export("hasMemberInPlane")] public bool HasMemberInPlane(UInt8 thePlane) { return default(bool); } /// <summary> /// Returns a Boolean value that indicates whether the receiver is a superset of another given character set. /// </summary> /// <param name="theOtherSet">A character set.</param> [iOSVersion(2)] [Export("isSupersetOfSet")] public bool IsSupersetOfSet(NSCharacterSet theOtherSet) { return default(bool); } /// <summary> /// Returns a Boolean value that indicates whether a given long character is a member of the receiver. /// </summary> /// <param name="theLongChar">A UTF32 character.</param> [iOSVersion(2)] [Export("longCharacterIsMember")] public bool LongCharacterIsMember(UTF32Char theLongChar) { return default(bool); } /// <summary> /// Returns a character set containing only characters that don’t exist in the receiver. /// </summary> [iOSVersion(2)] [Export("invertedSet")] public NSCharacterSet InvertedSet { get; private set; } /// <summary> /// Returns an NSData object encoding the receiver in binary format. /// </summary> [iOSVersion(2)] [Export("bitmapRepresentation")] public NSData BitmapRepresentation { get; private set; } /// <summary> /// Specifies lower bound for a Unicode character range reserved for Apple’s corporate use. /// </summary> public int NSOpenStepUnicodeReservedBase { get; set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// An NSCharacterSet object represents a set of Unicode-compliant characters. NSString and NSScanner objects use NSCharacterSet objects to group characters together for searching operations, so that they can find any of a particular set of characters during a search. The cluster’s two public classes, NSCharacterSet and NSMutableCharacterSet, declare the programmatic interface for static and dynamic character sets, respectively. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSCharacterSet_Class/index.html#//apple_ref/occ/cl/NSCharacterSet"/> [iOSVersion(2)] [Export("")] public class NSCharacterSet : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSMutableCopying, NSObjectProtocol, Printable { public NSCharacterSet() { } /// <summary> /// Returns a character set containing the characters in the categories Letters, Marks, and Numbers. /// </summary> [iOSVersion(2)] [Export("alphanumericCharacterSet")] public static NSCharacterSet AlphanumericCharacterSet() { return default(NSCharacterSet); } /// <summary> /// Returns a character set containing the characters in the category of Titlecase Letters. /// </summary> [iOSVersion(2)] [Export("capitalizedLetterCharacterSet")] public static NSCharacterSet CapitalizedLetterCharacterSet() { return default(NSCharacterSet); } /// <summary> /// Returns a character set containing the characters in the categories of Control or Format Characters. /// </summary> [iOSVersion(2)] [Export("controlCharacterSet")] public static NSCharacterSet ControlCharacterSet() { return default(NSCharacterSet); } /// <summary> /// Returns a character set containing the characters in the category of Decimal Numbers. /// </summary> [iOSVersion(2)] [Export("decimalDigitCharacterSet")] public static NSCharacterSet DecimalDigitCharacterSet() { return default(NSCharacterSet); } /// <summary> /// Returns a character set containing all individual Unicode characters that can also be represented as composed character sequences. /// </summary> [iOSVersion(2)] [Export("decomposableCharacterSet")] public static NSCharacterSet DecomposableCharacterSet() { return default(NSCharacterSet); } /// <summary> /// Returns a character set containing values in the category of Non-Characters or that have not yet been defined in version 3.2 of the Unicode standard. /// </summary> [iOSVersion(2)] [Export("illegalCharacterSet")] public static NSCharacterSet IllegalCharacterSet() { return default(NSCharacterSet); } /// <summary> /// Returns a character set containing the characters in the categories Letters and Marks. /// </summary> [iOSVersion(2)] [Export("letterCharacterSet")] public static NSCharacterSet LetterCharacterSet() { return default(NSCharacterSet); } /// <summary> /// Returns a character set containing the characters in the category of Lowercase Letters. /// </summary> [iOSVersion(2)] [Export("lowercaseLetterCharacterSet")] public static NSCharacterSet LowercaseLetterCharacterSet() { return default(NSCharacterSet); } /// <summary> /// Returns a character set containing the newline characters. /// </summary> [iOSVersion(2)] [Export("newlineCharacterSet")] public static NSCharacterSet NewlineCharacterSet() { return default(NSCharacterSet); } /// <summary> /// Returns a character set containing the characters in the category of Marks. /// </summary> [iOSVersion(2)] [Export("nonBaseCharacterSet")] public static NSCharacterSet NonBaseCharacterSet() { return default(NSCharacterSet); } /// <summary> /// Returns a character set containing the characters in the category of Punctuation. /// </summary> [iOSVersion(2)] [Export("punctuationCharacterSet")] public static NSCharacterSet PunctuationCharacterSet() { return default(NSCharacterSet); } /// <summary> /// Returns a character set containing the characters in the category of Symbols. /// </summary> [iOSVersion(2)] [Export("symbolCharacterSet")] public static NSCharacterSet SymbolCharacterSet() { return default(NSCharacterSet); } /// <summary> /// Returns a character set containing the characters in the categories of Uppercase Letters and Titlecase Letters. /// </summary> [iOSVersion(2)] [Export("uppercaseLetterCharacterSet")] public static NSCharacterSet UppercaseLetterCharacterSet() { return default(NSCharacterSet); } /// <summary> /// Returns a character set containing Unicode General Category Z*, U000A ~ U000D, and U0085. /// </summary> [iOSVersion(2)] [Export("whitespaceAndNewlineCharacterSet")] public static NSCharacterSet WhitespaceAndNewlineCharacterSet() { return default(NSCharacterSet); } /// <summary> /// Returns a character set containing only the in-line whitespace characters space (U+0020) and tab (U+0009). /// </summary> [iOSVersion(2)] [Export("whitespaceCharacterSet")] public static NSCharacterSet WhitespaceCharacterSet() { return default(NSCharacterSet); } /// <summary> /// Returns the character set for characters allowed in a fragment URL component. /// </summary> [iOSVersion(7)] public static NSCharacterSet URLFragmentAllowedCharacterSet() { return default(NSCharacterSet); } /// <summary> /// Returns the character set for characters allowed in a host URL subcomponent. /// </summary> [iOSVersion(7)] public static NSCharacterSet URLHostAllowedCharacterSet() { return default(NSCharacterSet); } /// <summary> /// Returns the character set for characters allowed in a password URL subcomponent. /// </summary> [iOSVersion(7)] public static NSCharacterSet URLPasswordAllowedCharacterSet() { return default(NSCharacterSet); } /// <summary> /// Returns the character set for characters allowed in a path URL component. /// </summary> [iOSVersion(7)] public static NSCharacterSet URLPathAllowedCharacterSet() { return default(NSCharacterSet); } /// <summary> /// Returns the character set for characters allowed in a query URL component. /// </summary> [iOSVersion(7)] public static NSCharacterSet URLQueryAllowedCharacterSet() { return default(NSCharacterSet); } /// <summary> /// Returns the character set for characters allowed in a user URL subcomponent. /// </summary> [iOSVersion(7)] public static NSCharacterSet URLUserAllowedCharacterSet() { return default(NSCharacterSet); } /// <summary> /// Returns a character set containing the characters in a given string. /// </summary> /// <param name="charactersInString">A string containing characters for the new character set.</param> [iOSVersion(2)] public NSCharacterSet(string charactersInString) { } /// <summary> /// Returns a character set containing characters with Unicode values in a given range. /// </summary> /// <param name="range">A range of Unicode values. /// aRange.location is the value of the first character to return; aRange.location + aRange.length– 1 is the value of the last.</param> [iOSVersion(2)] public NSCharacterSet(NSRange range) { } /// <summary> /// Returns a character set containing characters determined by a given bitmap representation. /// </summary> /// <param name="bitmapRepresentation">A bitmap representation of a character set.</param> [iOSVersion(2)] public NSCharacterSet(NSData bitmapRepresentation) { } /// <summary> /// Returns a Boolean value that indicates whether a given character is in the receiver. /// </summary> /// <param name="aCharacter">The character to test for membership of the receiver.</param> [iOSVersion(2)] [Export("characterIsMember")] public virtual bool CharacterIsMember(unichar aCharacter) { return default(bool); } /// <summary> /// Returns a Boolean value that indicates whether the receiver has at least one member in a given character plane. /// </summary> /// <param name="thePlane">A character plane.</param> [iOSVersion(2)] [Export("hasMemberInPlane")] public virtual bool HasMemberInPlane(UInt8 thePlane) { return default(bool); } /// <summary> /// Returns a Boolean value that indicates whether the receiver is a superset of another given character set. /// </summary> /// <param name="theOtherSet">A character set.</param> [iOSVersion(2)] [Export("isSupersetOfSet")] public virtual bool IsSupersetOfSet(NSCharacterSet theOtherSet) { return default(bool); } /// <summary> /// Returns a Boolean value that indicates whether a given long character is a member of the receiver. /// </summary> /// <param name="theLongChar">A UTF32 character.</param> [iOSVersion(2)] [Export("longCharacterIsMember")] public virtual bool LongCharacterIsMember(UTF32Char theLongChar) { return default(bool); } /// <summary> /// A character set containing only characters that don’t exist in the receiver. (read-only) /// </summary> [iOSVersion(2)] [Export("invertedSet")] public NSCharacterSet InvertedSet { get; private set; } /// <summary> /// An NSData object encoding the receiver in binary format. (read-only) /// </summary> [iOSVersion(2)] [Export("bitmapRepresentation")] public NSData BitmapRepresentation { get; private set; } /// <summary> /// Specifies lower bound for a Unicode character range reserved for Apple’s corporate use. /// </summary> public int NSOpenStepUnicodeReservedBase { get; private set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSCoder.cs b/CocoaSharp/Foundation/NSCoder.cs
index 0a483f7e..a4996bdf 100644
--- a/CocoaSharp/Foundation/NSCoder.cs
+++ b/CocoaSharp/Foundation/NSCoder.cs
@@ -1 +1,531 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSCoder abstract class declares the interface used by concrete subclasses to transfer objects and other values between memory and some other format. This capability provides the basis for archiving (where objects and data items are stored on disk) and distribution (where objects and data items are copied between different processes or threads). The concrete subclasses provided by Foundation for these purposes are NSArchiver, NSUnarchiver, NSKeyedArchiver, NSKeyedUnarchiver, and NSPortCoder. Concrete subclasses of NSCoder are referred to in general as coder classes, and instances of these classes as coder objects (or simply coders). A coder object that can only encode values is referred to as an encoder object, and one that can only decode values as a decoder object. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSCoder_Class/index.html#//apple_ref/occ/cl/NSCoder"/> [iOSVersion(2)] public class NSCoder : NSObject//, AnyObject, NSObjectProtocol { /// <summary> /// Returns a Boolean value that indicates whether an encoded value is available for a string. /// </summary> /// <param name="key"></param> [iOSVersion(2)] [Export("containsValueForKey")] public bool ContainsValueForKey(string key) { return default(bool); } /// <summary> /// Encodes an array of count items, whose Objective-C type is given by itemType. /// </summary> /// <param name="type"></param> /// <param name="count"></param> /// <param name="at"></param> [iOSVersion(2)] [Export("encodeArrayOfObjCType")] public void EncodeArrayOfObjCType(ConstUnsafePointer<Int8> type, int count, ConstUnsafePointer<Action> at) { } /// <summary> /// Encodes boolv and associates it with the string key. /// </summary> /// <param name="boolv"></param> /// <param name="forKey"></param> [iOSVersion(2)] [Export("encodeBool")] public void EncodeBool(bool boolv, string forKey) { } /// <summary> /// Can be overridden by subclasses to encode object so that a copy, rather than a proxy, is created upon decoding. /// </summary> /// <param name="anObject"></param> [iOSVersion(2)] [Export("encodeBycopyObject")] public void EncodeBycopyObject(AnyObject anObject) { } /// <summary> /// Can be overridden by subclasses to encode object so that a proxy, rather than a copy, is created upon decoding. /// </summary> /// <param name="anObject"></param> [iOSVersion(2)] [Export("encodeByrefObject")] public void EncodeByrefObject(AnyObject anObject) { } /// <summary> /// Encodes a buffer of data whose types are unspecified. /// </summary> /// <param name="byteaddr"></param> /// <param name="length"></param> [iOSVersion(2)] [Export("encodeBytes")] public void EncodeBytes(ConstUnsafePointer<Action> byteaddr, int length) { } /// <summary> /// Encodes a buffer of data, bytesp, whose length is specified by lenv, and associates it with the string key. /// </summary> /// <param name="bytesp"></param> /// <param name="length"></param> /// <param name="forKey"></param> [iOSVersion(2)] [Export("encodeBytes")] public void EncodeBytes(ConstUnsafePointer<UInt8> bytesp, int length, string forKey) { } /// <summary> /// Can be overridden by subclasses to conditionally encode object, preserving common references to that object. /// </summary> /// <param name="@object"></param> [iOSVersion(2)] [Export("encodeConditionalObject")] public void EncodeConditionalObject(AnyObject @object) { } /// <summary> /// Conditionally encodes a reference to objv and associates it with the string key only if objv has been unconditionally encoded with encodeObject:forKey:. /// </summary> /// <param name="objv"></param> /// <param name="forKey"></param> [iOSVersion(2)] [Export("encodeConditionalObject")] public void EncodeConditionalObject(AnyObject objv, string forKey) { } /// <summary> /// Encodes a given NSData object. /// </summary> /// <param name="data"></param> [iOSVersion(2)] [Export("encodeDataObject")] public void EncodeDataObject(NSData data) { } /// <summary> /// Encodes realv and associates it with the string key. /// </summary> /// <param name="realv"></param> /// <param name="forKey"></param> [iOSVersion(2)] [Export("encodeDouble")] public void EncodeDouble(Double realv, string forKey) { } /// <summary> /// Encodes realv and associates it with the string key. /// </summary> /// <param name="realv"></param> /// <param name="forKey"></param> [iOSVersion(2)] [Export("encodeFloat")] public void EncodeFloat(float realv, string forKey) { } /// <summary> /// Encodes intv and associates it with the string key. /// </summary> /// <param name="intv"></param> /// <param name="forKey"></param> [iOSVersion(2)] [Export("encodeInt")] public void EncodeInt(int intv, string forKey) { } /// <summary> /// Encodes a given NSInteger and associates it with a given key. /// </summary> /// <param name="intv"></param> /// <param name="forKey"></param> [iOSVersion(2)] [Export("encodeInteger")] public void EncodeInteger(int intv, string forKey) { } /// <summary> /// Encodes the 32-bit integer intv and associates it with the string key. /// </summary> /// <param name="intv"></param> /// <param name="forKey"></param> [iOSVersion(2)] [Export("encodeInt32")] public void EncodeInt32(int intv, string forKey) { } /// <summary> /// Encodes the 64-bit integer intv and associates it with the string key. /// </summary> /// <param name="intv"></param> /// <param name="forKey"></param> [iOSVersion(2)] [Export("encodeInt64")] public void EncodeInt64(Int64 intv, string forKey) { } /// <summary> /// Encodes object. /// </summary> /// <param name="@object"></param> [iOSVersion(2)] [Export("encodeObject")] public void EncodeObject(AnyObject @object) { } /// <summary> /// Encodes the object objv and associates it with the string key. /// </summary> /// <param name="objv"></param> /// <param name="forKey"></param> [iOSVersion(2)] [Export("encodeObject")] public void EncodeObject(AnyObject objv, string forKey) { } /// <summary> /// Can be overridden by subclasses to encode an interconnected group of Objective-C objects, starting with rootObject. /// </summary> /// <param name="rootObject"></param> [iOSVersion(2)] [Export("encodeRootObject")] public void EncodeRootObject(AnyObject rootObject) { } /// <summary> /// Must be overridden by subclasses to encode a single value residing at address, whose Objective-C type is given by valueType. /// </summary> /// <param name="type"></param> /// <param name="at"></param> [iOSVersion(2)] [Export("encodeValueOfObjCType")] public void EncodeValueOfObjCType(ConstUnsafePointer<Int8> type, ConstUnsafePointer<Action> at) { } /// <summary> /// Decodes an array of count items, whose Objective-C type is given by itemType. /// </summary> /// <param name="itemType"></param> /// <param name="count"></param> /// <param name="at"></param> [iOSVersion(2)] [Export("decodeArrayOfObjCType")] public void DecodeArrayOfObjCType(ConstUnsafePointer<Int8> itemType, int count, UnsafePointer<Action> at) { } /// <summary> /// Decodes and returns a boolean value that was previously encoded with encodeBool:forKey: and associated with the string key. /// </summary> /// <param name="key"></param> [iOSVersion(2)] [Export("decodeBoolForKey")] public bool DecodeBoolForKey(string key) { return default(bool); } /// <summary> /// Decodes a buffer of data that was previously encoded with encodeBytes:length:forKey: and associated with the string key. /// </summary> /// <param name="key"></param> /// <param name="returnedLength"></param> [iOSVersion(2)] [Export("decodeBytesForKey")] public ConstUnsafePointer<UInt8> DecodeBytesForKey(string key, UnsafePointer<int> returnedLength) { return default(ConstUnsafePointer<UInt8>); } /// <summary> /// Decodes a buffer of data whose types are unspecified. /// </summary> /// <param name="lengthp"></param> [iOSVersion(2)] [Export("decodeBytesWithReturnedLength")] public UnsafePointer<Action> DecodeBytesWithReturnedLength(UnsafePointer<int> lengthp) { return default(UnsafePointer<Action>); } /// <summary> /// Decodes and returns an NSData object that was previously encoded with encodeDataObject:. Subclasses must override this method. /// </summary> [iOSVersion(2)] [Export("decodeDataObject")] public NSData DecodeDataObject() { return default(NSData); } /// <summary> /// Decodes and returns a double value that was previously encoded with either encodeFloat:forKey: or encodeDouble:forKey: and associated with the string key. /// </summary> /// <param name="key"></param> [iOSVersion(2)] [Export("decodeDoubleForKey")] public Double DecodeDoubleForKey(string key) { return default(Double); } /// <summary> /// Decodes and returns a float value that was previously encoded with encodeFloat:forKey: or encodeDouble:forKey: and associated with the string key. /// </summary> /// <param name="key"></param> [iOSVersion(2)] [Export("decodeFloatForKey")] public float DecodeFloatForKey(string key) { return default(float); } /// <summary> /// Decodes and returns an int value that was previously encoded with encodeInt:forKey:, encodeInteger:forKey:, encodeInt32:forKey:, or encodeInt64:forKey: and associated with the string key. /// </summary> /// <param name="key"></param> [iOSVersion(2)] [Export("decodeIntForKey")] public int DecodeIntForKey(string key) { return default(int); } /// <summary> /// Decodes and returns an NSInteger value that was previously encoded with encodeInt:forKey:, encodeInteger:forKey:, encodeInt32:forKey:, or encodeInt64:forKey: and associated with the string key. /// </summary> /// <param name="key"></param> [iOSVersion(2)] [Export("decodeIntegerForKey")] public int DecodeIntegerForKey(string key) { return default(int); } /// <summary> /// Decodes and returns a 32-bit integer value that was previously encoded with encodeInt:forKey:, encodeInteger:forKey:, encodeInt32:forKey:, or encodeInt64:forKey: and associated with the string key. /// </summary> /// <param name="key"></param> [iOSVersion(2)] [Export("decodeInt32ForKey")] public int DecodeInt32ForKey(string key) { return default(int); } /// <summary> /// Decodes and returns a 64-bit integer value that was previously encoded with encodeInt:forKey:, encodeInteger:forKey:, encodeInt32:forKey:, or encodeInt64:forKey: and associated with the string key. /// </summary> /// <param name="key"></param> [iOSVersion(2)] [Export("decodeInt64ForKey")] public Int64 DecodeInt64ForKey(string key) { return default(Int64); } /// <summary> /// Decodes an Objective-C object that was previously encoded with any of the encode...Object: methods. /// </summary> [iOSVersion(2)] [Export("decodeObject")] public AnyObject DecodeObject() { return default(AnyObject); } /// <summary> /// Decodes and returns an Objective-C object that was previously encoded with encodeObject:forKey: or encodeConditionalObject:forKey: and associated with the string key. /// </summary> /// <param name="key"></param> [iOSVersion(2)] [Export("decodeObjectForKey")] public AnyObject DecodeObjectForKey(string key) { return default(AnyObject); } /// <summary> /// Decodes a single value, whose Objective-C type is given by valueType. /// </summary> /// <param name="type"></param> /// <param name="at"></param> [iOSVersion(2)] [Export("decodeValueOfObjCType")] public void DecodeValueOfObjCType(ConstUnsafePointer<Int8> type, UnsafePointer<Action> at) { } /// <summary> /// Decodes an object for the key, restricted to the specified class. /// </summary> /// <param name="aClass">The expect class type.</param> /// <param name="forKey">The coder key.</param> [iOSVersion(6)] [Export("decodeObjectOfClass")] public AnyObject DecodeObjectOfClass(AnyClass aClass, string forKey) { return default(AnyObject); } /// <summary> /// Decodes an object for the key, restricted to the specified classes. /// </summary> /// <param name="classes">A set of the expected classes.</param> /// <param name="forKey">The coder key.</param> [iOSVersion(6)] [Export("decodeObjectOfClasses")] public AnyObject DecodeObjectOfClasses(NSSet classes, string forKey) { return default(AnyObject); } /// <summary> /// Returns a decoded property list for the specified key. /// </summary> /// <param name="key">The coder key.</param> [iOSVersion(6)] [Export("decodePropertyListForKey")] public AnyObject DecodePropertyListForKey(string key) { return default(AnyObject); } /// <summary> /// This method is present for historical reasons and is not used with keyed archivers. /// </summary> /// <param name="className"></param> [iOSVersion(2)] [Export("versionForClassName")] public int VersionForClassName(string className) { return default(int); } /// <summary> /// Returns a Boolean value that indicates whether the receiver supports keyed coding of objects. /// </summary> [iOSVersion(2)] [Export("allowsKeyedCoding")] public bool AllowsKeyedCoding { get; private set; } /// <summary> /// Returns whether the coder requires secure coding. /// </summary> [iOSVersion(6)] [Export("requiresSecureCoding")] public bool RequiresSecureCoding { get; private set; } /// <summary> /// Get the current set of coded classes that allow secure coding. /// </summary> [iOSVersion(6)] [Export("allowedClasses")] public NSSet AllowedClasses { get; private set; } /// <summary> /// During encoding, this method should return the system version currently in effect. /// </summary> [iOSVersion(2)] [Export("systemVersion")] public uint SystemVersion { get; private set; } } } \ No newline at end of file
+using ObjectiveC;
+using System;
+using SharpSwift.Attributes;
+using System.Collections.Generic;
+using CoreGraphics;
+using UIKit;
+using NSObject = ObjectiveC.NSObject;
+
+namespace Foundation
+{
+ /// <summary>
+ /// The NSCoder abstract class declares the interface used by concrete subclasses to transfer objects and other values between memory and some other format. This capability provides the basis for archiving (where objects and data items are stored on disk) and distribution (where objects and data items are copied between different processes or threads). The concrete subclasses provided by Foundation for these purposes are NSArchiver, NSUnarchiver, NSKeyedArchiver, NSKeyedUnarchiver, and NSPortCoder. Concrete subclasses of NSCoder are referred to in general as coder classes, and instances of these classes as coder objects (or simply coders). A coder object that can only encode values is referred to as an encoder object, and one that can only decode values as a decoder object.
+ /// </summary>
+ /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSCoder_Class/index.html#//apple_ref/occ/cl/NSCoder"/>
+ [iOSVersion(2)]
+ [Export("")]
+ public class NSCoder : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSObjectProtocol, Printable
+ {
+ public NSCoder() { }
+ /// <summary>
+ /// Returns a Boolean value that indicates whether an encoded value is available for a string.
+ /// </summary>
+ /// <param name="key"></param>
+ [iOSVersion(2)]
+ [Export("containsValueForKey")]
+ public virtual bool ContainsValueForKey(string key) { return default(bool); }
+
+ /// <summary>
+ /// Encodes an array of count items, whose Objective-C type is given by itemType.
+ /// </summary>
+ /// <param name="type"></param>
+ /// <param name="count"></param>
+ /// <param name="at"></param>
+ [iOSVersion(2)]
+ [Export("encodeArrayOfObjCType")]
+ public virtual void EncodeArrayOfObjCType(UnsafePointer<Int8> type, int count, UnsafePointer at) { }
+
+ /// <summary>
+ /// Encodes boolv and associates it with the string key.
+ /// </summary>
+ /// <param name="boolv"></param>
+ /// <param name="forKey"></param>
+ [iOSVersion(2)]
+ [Export("encodeBool")]
+ public virtual void EncodeBool(bool boolv, string forKey) { }
+
+ /// <summary>
+ /// Can be overridden by subclasses to encode object so that a copy, rather than a proxy, is created upon decoding.
+ /// </summary>
+ /// <param name="anObject"></param>
+ [iOSVersion(2)]
+ [Export("encodeBycopyObject")]
+ public virtual void EncodeBycopyObject([Optional] AnyObject anObject) { }
+
+ /// <summary>
+ /// Can be overridden by subclasses to encode object so that a proxy, rather than a copy, is created upon decoding.
+ /// </summary>
+ /// <param name="anObject"></param>
+ [iOSVersion(2)]
+ [Export("encodeByrefObject")]
+ public virtual void EncodeByrefObject([Optional] AnyObject anObject) { }
+
+ /// <summary>
+ /// Encodes a buffer of data whose types are unspecified.
+ /// </summary>
+ /// <param name="byteaddr"></param>
+ /// <param name="length"></param>
+ [iOSVersion(2)]
+ [Export("encodeBytes")]
+ public virtual void EncodeBytes(UnsafePointer byteaddr, int length) { }
+
+ /// <summary>
+ /// Encodes a buffer of data, bytesp, whose length is specified by lenv, and associates it with the string key.
+ /// </summary>
+ /// <param name="bytesp"></param>
+ /// <param name="length"></param>
+ /// <param name="forKey"></param>
+ [iOSVersion(2)]
+ [Export("encodeBytes")]
+ public virtual void EncodeBytes(UnsafePointer<UInt8> bytesp, int length, string forKey) { }
+
+ /// <summary>
+ /// Can be overridden by subclasses to conditionally encode object, preserving common references to that object.
+ /// </summary>
+ /// <param name="@object"></param>
+ [iOSVersion(2)]
+ [Export("encodeConditionalObject")]
+ public virtual void EncodeConditionalObject([Optional] AnyObject @object) { }
+
+ /// <summary>
+ /// Conditionally encodes a reference to objv and associates it with the string key only if objv has been unconditionally encoded with encodeObject:forKey:.
+ /// </summary>
+ /// <param name="objv"></param>
+ /// <param name="forKey"></param>
+ [iOSVersion(2)]
+ [Export("encodeConditionalObject")]
+ public virtual void EncodeConditionalObject([Optional] AnyObject objv, string forKey) { }
+
+ /// <summary>
+ /// Encodes a given NSData object.
+ /// </summary>
+ /// <param name="data"></param>
+ [iOSVersion(2)]
+ [Export("encodeDataObject")]
+ public virtual void EncodeDataObject(NSData data) { }
+
+ /// <summary>
+ /// Encodes realv and associates it with the string key.
+ /// </summary>
+ /// <param name="realv"></param>
+ /// <param name="forKey"></param>
+ [iOSVersion(2)]
+ [Export("encodeDouble")]
+ public virtual void EncodeDouble(Double realv, string forKey) { }
+
+ /// <summary>
+ /// Encodes realv and associates it with the string key.
+ /// </summary>
+ /// <param name="realv"></param>
+ /// <param name="forKey"></param>
+ [iOSVersion(2)]
+ [Export("encodeFloat")]
+ public virtual void EncodeFloat(float realv, string forKey) { }
+
+ /// <summary>
+ /// Encodes intv and associates it with the string key.
+ /// </summary>
+ /// <param name="intv"></param>
+ /// <param name="forKey"></param>
+ [iOSVersion(2)]
+ [Export("encodeInt")]
+ public virtual void EncodeInt(int intv, string forKey) { }
+
+ /// <summary>
+ /// Encodes a given NSInteger and associates it with a given key.
+ /// </summary>
+ /// <param name="intv"></param>
+ /// <param name="forKey"></param>
+ [iOSVersion(2)]
+ [Export("encodeInteger")]
+ public virtual void EncodeInteger(int intv, string forKey) { }
+
+ /// <summary>
+ /// Encodes the 32-bit integer intv and associates it with the string key.
+ /// </summary>
+ /// <param name="intv"></param>
+ /// <param name="forKey"></param>
+ [iOSVersion(2)]
+ [Export("encodeInt32")]
+ public virtual void EncodeInt32(int intv, string forKey) { }
+
+ /// <summary>
+ /// Encodes the 64-bit integer intv and associates it with the string key.
+ /// </summary>
+ /// <param name="intv"></param>
+ /// <param name="forKey"></param>
+ [iOSVersion(2)]
+ [Export("encodeInt64")]
+ public virtual void EncodeInt64(Int64 intv, string forKey) { }
+
+ /// <summary>
+ /// Encodes object.
+ /// </summary>
+ /// <param name="@object"></param>
+ [iOSVersion(2)]
+ [Export("encodeObject")]
+ public virtual void EncodeObject([Optional] AnyObject @object) { }
+
+ /// <summary>
+ /// Encodes the object objv and associates it with the string key.
+ /// </summary>
+ /// <param name="objv"></param>
+ /// <param name="forKey"></param>
+ [iOSVersion(2)]
+ [Export("encodeObject")]
+ public virtual void EncodeObject([Optional] AnyObject objv, string forKey) { }
+
+ /// <summary>
+ /// Can be overridden by subclasses to encode an interconnected group of Objective-C objects, starting with rootObject.
+ /// </summary>
+ /// <param name="rootObject"></param>
+ [iOSVersion(2)]
+ [Export("encodeRootObject")]
+ public virtual void EncodeRootObject(AnyObject rootObject) { }
+
+ /// <summary>
+ /// Must be overridden by subclasses to encode a single value residing at address, whose Objective-C type is given by valueType.
+ /// </summary>
+ /// <param name="type"></param>
+ /// <param name="at"></param>
+ [iOSVersion(2)]
+ [Export("encodeValueOfObjCType")]
+ public virtual void EncodeValueOfObjCType(UnsafePointer<Int8> type, UnsafePointer at) { }
+
+ /// <summary>
+ /// Encodes a point and associates it with the specified key in the receiver’s archive.
+ /// </summary>
+ /// <param name="point">The point to encode.</param>
+ /// <param name="forKey">The key identifying the data.</param>
+ [iOSVersion(2)]
+ [Export("encodeCGPoint")]
+ public virtual void EncodeCGPoint(CGPoint point, [Unwrapped] string forKey) { }
+
+ /// <summary>
+ /// Encodes a rectangle and associates it with the specified key in the receiver’s archive.
+ /// </summary>
+ /// <param name="rect">The rectangle to encode.</param>
+ /// <param name="forKey">The key identifying the data.</param>
+ [iOSVersion(2)]
+ [Export("encodeCGRect")]
+ public virtual void EncodeCGRect(CGRect rect, [Unwrapped] string forKey) { }
+
+ /// <summary>
+ /// Encodes size information and associates it with the specified key in the receiver’s archive.
+ /// </summary>
+ /// <param name="size">The size information to encode.</param>
+ /// <param name="forKey">The key identifying the data.</param>
+ [iOSVersion(2)]
+ [Export("encodeCGSize")]
+ public virtual void EncodeCGSize(CGSize size, [Unwrapped] string forKey) { }
+
+ /// <summary>
+ /// Encodes an affine transform and associates it with the specified key in the receiver’s archive.
+ /// </summary>
+ /// <param name="transform">The transform information to encode.</param>
+ /// <param name="forKey">The key identifying the data.</param>
+ [iOSVersion(2)]
+ [Export("encodeCGAffineTransform")]
+ public virtual void EncodeCGAffineTransform(CGAffineTransform transform, [Unwrapped] string forKey) { }
+
+ /// <summary>
+ /// Encodes edge inset data and associates it with the specified key in the receiver’s archive.
+ /// </summary>
+ /// <param name="insets">The edge insets data to encode.</param>
+ /// <param name="forKey">The key identifying the data.</param>
+ [iOSVersion(2)]
+ [Export("encodeUIEdgeInsets")]
+ public virtual void EncodeUIEdgeInsets(UIEdgeInsets insets, [Unwrapped] string forKey) { }
+
+ /// <summary>
+ /// Encodes offset data and associates it with the specified key in the receiver’s archive.
+ /// </summary>
+ /// <param name="offset">The offset data to encode.</param>
+ /// <param name="forKey">The key identifying the data.</param>
+ [iOSVersion(5)]
+ [Export("encodeUIOffset")]
+ public virtual void EncodeUIOffset(UIOffset offset, [Unwrapped] string forKey) { }
+
+ /// <summary>
+ /// Encodes a given CMTime structure and associates it with a specified key.
+ /// </summary>
+ /// <param name="time">A CMTime structure.</param>
+ /// <param name="forKey">The key with which to associate time in the archive.</param>
+ [iOSVersion(4)]
+ [Export("encodeCMTime")]
+ public virtual void EncodeCMTime(CMTime time, [Unwrapped] string forKey) { }
+
+ /// <summary>
+ /// Encodes a given CMTimeRange structure and associates it with a specified key.
+ /// </summary>
+ /// <param name="timeRange">A CMTimeRange structure.</param>
+ /// <param name="forKey">The key with which to associate timeRange in the archive.</param>
+ [iOSVersion(4)]
+ [Export("encodeCMTimeRange")]
+ public virtual void EncodeCMTimeRange(CMTimeRange timeRange, [Unwrapped] string forKey) { }
+
+ /// <summary>
+ /// Encodes a given CMTimeMapping structure and associates it with a specified key.
+ /// </summary>
+ /// <param name="timeMapping">A CMTimeMapping structure.</param>
+ /// <param name="forKey">The key with which to associate timeMapping in the archive.</param>
+ [iOSVersion(4)]
+ [Export("encodeCMTimeMapping")]
+ public virtual void EncodeCMTimeMapping(CMTimeMapping timeMapping, [Unwrapped] string forKey) { }
+
+ /// <summary>
+ /// Decodes an array of count items, whose Objective-C type is given by itemType.
+ /// </summary>
+ /// <param name="itemType"></param>
+ /// <param name="count"></param>
+ /// <param name="at"></param>
+ [iOSVersion(2)]
+ [Export("decodeArrayOfObjCType")]
+ public virtual void DecodeArrayOfObjCType(UnsafePointer<Int8> itemType, int count, UnsafeMutablePointer at) { }
+
+ /// <summary>
+ /// Decodes and returns a boolean value that was previously encoded with encodeBool:forKey: and associated with the string key.
+ /// </summary>
+ /// <param name="key"></param>
+ [iOSVersion(2)]
+ [Export("decodeBoolForKey")]
+ public virtual bool DecodeBoolForKey(string key) { return default(bool); }
+
+ /// <summary>
+ /// Decodes a buffer of data that was previously encoded with encodeBytes:length:forKey: and associated with the string key.
+ /// </summary>
+ /// <param name="key"></param>
+ /// <param name="returnedLength"></param>
+ [iOSVersion(2)]
+ [Export("decodeBytesForKey")]
+ public virtual UnsafePointer<UInt8> DecodeBytesForKey(string key, UnsafeMutablePointer<int> returnedLength) { return default(UnsafePointer<UInt8>); }
+
+ /// <summary>
+ /// Decodes a buffer of data whose types are unspecified.
+ /// </summary>
+ /// <param name="lengthp"></param>
+ [iOSVersion(2)]
+ [Export("decodeBytesWithReturnedLength")]
+ public virtual UnsafeMutablePointer DecodeBytesWithReturnedLength(UnsafeMutablePointer<int> lengthp) { return default(UnsafeMutablePointer); }
+
+ /// <summary>
+ /// Decodes and returns an NSData object that was previously encoded with encodeDataObject:. Subclasses must override this method.
+ /// </summary>
+ [iOSVersion(2)]
+ [Export("decodeDataObject")]
+ [return:Optional]
+ public virtual NSData DecodeDataObject() { return default(NSData); }
+
+ /// <summary>
+ /// Decodes and returns a double value that was previously encoded with either encodeFloat:forKey: or encodeDouble:forKey: and associated with the string key.
+ /// </summary>
+ /// <param name="key"></param>
+ [iOSVersion(2)]
+ [Export("decodeDoubleForKey")]
+ public virtual Double DecodeDoubleForKey(string key) { return default(Double); }
+
+ /// <summary>
+ /// Decodes and returns a float value that was previously encoded with encodeFloat:forKey: or encodeDouble:forKey: and associated with the string key.
+ /// </summary>
+ /// <param name="key"></param>
+ [iOSVersion(2)]
+ [Export("decodeFloatForKey")]
+ public virtual float DecodeFloatForKey(string key) { return default(float); }
+
+ /// <summary>
+ /// Decodes and returns an int value that was previously encoded with encodeInt:forKey:, encodeInteger:forKey:, encodeInt32:forKey:, or encodeInt64:forKey: and associated with the string key.
+ /// </summary>
+ /// <param name="key"></param>
+ [iOSVersion(2)]
+ [Export("decodeIntForKey")]
+ public virtual int DecodeIntForKey(string key) { return default(int); }
+
+ /// <summary>
+ /// Decodes and returns an NSInteger value that was previously encoded with encodeInt:forKey:, encodeInteger:forKey:, encodeInt32:forKey:, or encodeInt64:forKey: and associated with the string key.
+ /// </summary>
+ /// <param name="key"></param>
+ [iOSVersion(2)]
+ [Export("decodeIntegerForKey")]
+ public virtual int DecodeIntegerForKey(string key) { return default(int); }
+
+ /// <summary>
+ /// Decodes and returns a 32-bit integer value that was previously encoded with encodeInt:forKey:, encodeInteger:forKey:, encodeInt32:forKey:, or encodeInt64:forKey: and associated with the string key.
+ /// </summary>
+ /// <param name="key"></param>
+ [iOSVersion(2)]
+ [Export("decodeInt32ForKey")]
+ public virtual int DecodeInt32ForKey(string key) { return default(int); }
+
+ /// <summary>
+ /// Decodes and returns a 64-bit integer value that was previously encoded with encodeInt:forKey:, encodeInteger:forKey:, encodeInt32:forKey:, or encodeInt64:forKey: and associated with the string key.
+ /// </summary>
+ /// <param name="key"></param>
+ [iOSVersion(2)]
+ [Export("decodeInt64ForKey")]
+ public virtual Int64 DecodeInt64ForKey(string key) { return default(Int64); }
+
+ /// <summary>
+ /// Decodes an Objective-C object that was previously encoded with any of the encode...Object: methods.
+ /// </summary>
+ [iOSVersion(2)]
+ [Export("decodeObject")]
+ [return:Optional]
+ public virtual AnyObject DecodeObject() { return default(AnyObject); }
+
+ /// <summary>
+ /// Decodes and returns an Objective-C object that was previously encoded with encodeObject:forKey: or encodeConditionalObject:forKey: and associated with the string key.
+ /// </summary>
+ /// <param name="key"></param>
+ [iOSVersion(2)]
+ [Export("decodeObjectForKey")]
+ [return:Optional]
+ public virtual AnyObject DecodeObjectForKey(string key) { return default(AnyObject); }
+
+ /// <summary>
+ /// Decodes a single value, whose Objective-C type is given by valueType.
+ /// </summary>
+ /// <param name="type"></param>
+ /// <param name="at"></param>
+ [iOSVersion(2)]
+ [Export("decodeValueOfObjCType")]
+ public virtual void DecodeValueOfObjCType(UnsafePointer<Int8> type, UnsafeMutablePointer at) { }
+
+ /// <summary>
+ /// Decodes an object for the key, restricted to the specified class.
+ /// </summary>
+ /// <param name="aClass">The expect class type.</param>
+ /// <param name="forKey">The coder key.</param>
+ [iOSVersion(6)]
+ [Export("decodeObjectOfClass")]
+ [return:Optional]
+ public virtual AnyObject DecodeObjectOfClass(AnyClass aClass, string forKey) { return default(AnyObject); }
+
+ /// <summary>
+ /// Decodes an object for the key, restricted to the specified classes.
+ /// </summary>
+ /// <param name="classes">A set of the expected classes.</param>
+ /// <param name="forKey">The coder key.</param>
+ [iOSVersion(6)]
+ [Export("decodeObjectOfClasses")]
+ [return:Optional]
+ public virtual AnyObject DecodeObjectOfClasses(NSSet classes, string forKey) { return default(AnyObject); }
+
+ /// <summary>
+ /// Returns a decoded property list for the specified key.
+ /// </summary>
+ /// <param name="key">The coder key.</param>
+ [iOSVersion(6)]
+ [Export("decodePropertyListForKey")]
+ [return:Optional]
+ public virtual AnyObject DecodePropertyListForKey(string key) { return default(AnyObject); }
+
+ /// <summary>
+ /// Decodes and returns the CGPoint structure associated with the specified key in the receiver’s archive.
+ /// </summary>
+ /// <param name="key">The key that identifies the point.</param>
+ [iOSVersion(2)]
+ [Export("decodeCGPointForKey")]
+ public virtual CGPoint DecodeCGPointForKey([Unwrapped] string key) { return default(CGPoint); }
+
+ /// <summary>
+ /// Decodes and returns the CGRect structure associated with the specified key in the receiver’s archive.
+ /// </summary>
+ /// <param name="key">The key that identifies the rectangle.</param>
+ [iOSVersion(2)]
+ [Export("decodeCGRectForKey")]
+ public virtual CGRect DecodeCGRectForKey([Unwrapped] string key) { return default(CGRect); }
+
+ /// <summary>
+ /// Decodes and returns the CGSize structure associated with the specified key in the receiver’s archive.
+ /// </summary>
+ /// <param name="key">The key that identifies the size information.</param>
+ [iOSVersion(2)]
+ [Export("decodeCGSizeForKey")]
+ public virtual CGSize DecodeCGSizeForKey([Unwrapped] string key) { return default(CGSize); }
+
+ /// <summary>
+ /// Decodes and returns the CGAffineTransform structure associated with the specified key in the receiver’s archive.
+ /// </summary>
+ /// <param name="key">The key that identifies the affine transform.</param>
+ [iOSVersion(2)]
+ [Export("decodeCGAffineTransformForKey")]
+ public virtual CGAffineTransform DecodeCGAffineTransformForKey([Unwrapped] string key) { return default(CGAffineTransform); }
+
+ /// <summary>
+ /// Decodes and returns the UIEdgeInsets structure associated with the specified key in the receiver’s archive.
+ /// </summary>
+ /// <param name="key">The key that identifies the edge insets.</param>
+ [iOSVersion(2)]
+ [Export("decodeUIEdgeInsetsForKey")]
+ public virtual UIEdgeInsets DecodeUIEdgeInsetsForKey([Unwrapped] string key) { return default(UIEdgeInsets); }
+
+ /// <summary>
+ /// Decodes and returns the UIOffset structure associated with the specified key in the receiver’s archive.
+ /// </summary>
+ /// <param name="key">The key that identifies the offset.</param>
+ [iOSVersion(5)]
+ [Export("decodeUIOffsetForKey")]
+ public virtual UIOffset DecodeUIOffsetForKey([Unwrapped] string key) { return default(UIOffset); }
+
+ /// <summary>
+ /// Returns the CMTime structure associated with a given key.
+ /// </summary>
+ /// <param name="key">The key for a CMTime structure encoded in the receiver.</param>
+ [iOSVersion(4)]
+ [Export("decodeCMTimeForKey")]
+ public virtual CMTime DecodeCMTimeForKey([Unwrapped] string key) { return default(CMTime); }
+
+ /// <summary>
+ /// Returns the CMTimeRange structure associated with a given key.
+ /// </summary>
+ /// <param name="key">The key for a CMTimeRange structure encoded in the receiver.</param>
+ [iOSVersion(4)]
+ [Export("decodeCMTimeRangeForKey")]
+ public virtual CMTimeRange DecodeCMTimeRangeForKey([Unwrapped] string key) { return default(CMTimeRange); }
+
+ /// <summary>
+ /// Returns the CMTimeMapping structure associated with a given key.
+ /// </summary>
+ /// <param name="key">The key for a CMTimeMapping structure encoded in the receiver.</param>
+ [iOSVersion(4)]
+ [Export("decodeCMTimeMappingForKey")]
+ public virtual CMTimeMapping DecodeCMTimeMappingForKey([Unwrapped] string key) { return default(CMTimeMapping); }
+
+ /// <summary>
+ /// This method is present for historical reasons and is not used with keyed archivers.
+ /// </summary>
+ /// <param name="className"></param>
+ [iOSVersion(2)]
+ [Export("versionForClassName")]
+ public virtual int VersionForClassName(string className) { return default(int); }
+
+ /// <summary>
+ /// A Boolean value that indicates whether the receiver supports keyed coding of objects. (read-only)
+ /// </summary>
+ [iOSVersion(2)]
+ [Export("allowsKeyedCoding")]
+ public bool AllowsKeyedCoding { get; private set; }
+
+ /// <summary>
+ /// Boolean value that indicates whether the coder requires secure coding. (read-only)
+ /// </summary>
+ [iOSVersion(6)]
+ [Export("requiresSecureCoding")]
+ public bool RequiresSecureCoding { get; private set; }
+
+ /// <summary>
+ /// The set of coded classes allowed for secure coding. (read-only)
+ /// </summary>
+ [iOSVersion(6)]
+ [Export("allowedClasses")]
+ [Optional]
+ public NSSet AllowedClasses { get; private set; }
+
+ /// <summary>
+ /// The system version in effect for the archive. (read-only)
+ /// </summary>
+ [iOSVersion(2)]
+ [Export("systemVersion")]
+ public uint SystemVersion { get; private set; }
+ }
+}
diff --git a/CocoaSharp/Foundation/NSComparisonPredicate.cs b/CocoaSharp/Foundation/NSComparisonPredicate.cs
index e3f48d4a..039037e7 100644
--- a/CocoaSharp/Foundation/NSComparisonPredicate.cs
+++ b/CocoaSharp/Foundation/NSComparisonPredicate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSComparisonPredicate is a subclass of NSPredicate that you use to compare expressions. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSComparisonPredicate_Class/index.html#//apple_ref/occ/cl/NSComparisonPredicate"/> [iOSVersion(3)] public class NSComparisonPredicate : NSPredicate//, AnyObject, NSCoding, NSCopying, NSObjectProtocol, NSSecureCoding { /// <summary> /// Initializes a predicate formed by combining given left and right expressions using a given selector. /// </summary> /// <param name="leftExpression">The left hand expression.</param> /// <param name="rightExpression">The right hand expression.</param> /// <param name="customSelector">The selector to use. The method defined by the selector must take a single argument and return a BOOL value.</param> [iOSVersion(3)] public NSComparisonPredicate(NSExpression leftExpression, NSExpression rightExpression, Selector customSelector) : base(false) { } /// <summary> /// Initializes a predicate to a given type formed by combining given left and right expressions using a given modifier and options. /// </summary> /// <param name="leftExpression">The left hand expression.</param> /// <param name="rightExpression">The right hand expression.</param> /// <param name="modifier">The modifier to apply.</param> /// <param name="type">The predicate operator type.</param> /// <param name="options">The options to apply (see NSComparisonPredicate Options). For no options, pass 0.</param> [iOSVersion(3)] public NSComparisonPredicate(NSExpression leftExpression, NSExpression rightExpression, NSComparisonPredicateModifier modifier, NSPredicateOperatorType type, NSComparisonPredicateOptions options) : base(false) { } /// <summary> /// The comparison predicate modifier for the receiver. (read-only) /// </summary> [iOSVersion(3)] [Export("comparisonPredicateModifier")] public NSComparisonPredicateModifier ComparisonPredicateModifier { get; private set; } /// <summary> /// The selector for the receiver. (read-only) /// </summary> [iOSVersion(3)] [Export("customSelector")] public Selector CustomSelector { get; private set; } /// <summary> /// The right expression for the receiver. (read-only) /// </summary> [iOSVersion(3)] [Export("rightExpression")] public NSExpression RightExpression { get; private set; } /// <summary> /// The left expression for the receiver. (read-only) /// </summary> [iOSVersion(3)] [Export("leftExpression")] public NSExpression LeftExpression { get; private set; } /// <summary> /// The options that are set for the receiver. (read-only) /// </summary> [iOSVersion(3)] [Export("options")] public NSComparisonPredicateOptions Options { get; private set; } /// <summary> /// The predicate type for the receiver. (read-only) /// </summary> [iOSVersion(3)] [Export("predicateOperatorType")] public NSPredicateOperatorType PredicateOperatorType { get; private set; } } /// <summary> /// These constants describe the possible types of modifier for NSComparisonPredicate. /// </summary> [iOSVersion(3)] public enum NSComparisonPredicateModifier { /// <summary> /// A predicate to compare directly the left and right hand sides. /// </summary> [iOSVersion(3)] DirectPredicateModifier, /// <summary> /// A predicate to compare all entries in the destination of a to-many relationship. /// The left hand side must be a collection. The corresponding predicate compares each value in the left hand side with the right hand side, and returns false when it finds the first mismatch—€”or true if all match. /// </summary> [iOSVersion(3)] AllPredicateModifier, /// <summary> /// A predicate to match with any entry in the destination of a to-many relationship. /// The left hand side must be a collection. The corresponding predicate compares each value in the left hand side against the right hand side and returns true when it finds the first match—or false if no match is found /// </summary> [iOSVersion(3)] AnyPredicateModifier, } /// <summary> /// These constants describe the possible types of string comparison for NSComparisonPredicate. These options are supported for LIKE as well as all of the equality/comparison operators. /// </summary> [iOSVersion(5)] public enum NSComparisonPredicateOptions { /// <summary> /// A case-insensitive predicate. /// You represent this option in a predicate format string using a [c] following a string operation (for example, &quot;NeXT&quot; like[c] &quot;next&quot;). /// </summary> [iOSVersion(3)] CaseInsensitivePredicateOption, /// <summary> /// A diacritic-insensitive predicate. /// You represent this option in a predicate format string using a [d] following a string operation (for example, &quot;naïve&quot; like[d] &quot;naive&quot;). /// </summary> [iOSVersion(3)] DiacriticInsensitivePredicateOption, /// <summary> /// Indicates that the strings to be compared have been preprocessed. /// This option supersedes NSCaseInsensitivePredicateOption and NSDiacriticInsensitivePredicateOption, and is intended as a performance optimization option. /// You represent this option in a predicate format string using a [n] following a string operation (for example, &quot;WXYZlan&quot; matches[n] &quot;.lan&quot;). /// </summary> [iOSVersion(4)] NormalizedPredicateOption, } /// <summary> /// Defines the type of comparison for NSComparisonPredicate. /// </summary> [iOSVersion(3)] public enum NSPredicateOperatorType { /// <summary> /// A less-than predicate. /// </summary> [iOSVersion(3)] LessThanPredicateOperatorType, /// <summary> /// A less-than-or-equal-to predicate. /// </summary> [iOSVersion(3)] LessThanOrEqualToPredicateOperatorType, /// <summary> /// A greater-than predicate. /// </summary> [iOSVersion(3)] GreaterThanPredicateOperatorType, /// <summary> /// A greater-than-or-equal-to predicate. /// </summary> [iOSVersion(3)] GreaterThanOrEqualToPredicateOperatorType, /// <summary> /// An equal-to predicate. /// </summary> [iOSVersion(3)] EqualToPredicateOperatorType, /// <summary> /// A not-equal-to predicate. /// </summary> [iOSVersion(3)] NotEqualToPredicateOperatorType, /// <summary> /// A full regular expression matching predicate. /// </summary> [iOSVersion(3)] MatchesPredicateOperatorType, /// <summary> /// A simple subset of the MATCHES predicate, similar in behavior to SQL LIKE. /// </summary> [iOSVersion(3)] LikePredicateOperatorType, /// <summary> /// A begins-with predicate. /// </summary> [iOSVersion(3)] BeginsWithPredicateOperatorType, /// <summary> /// An ends-with predicate. /// </summary> [iOSVersion(3)] EndsWithPredicateOperatorType, /// <summary> /// A predicate to determine if the left hand side is in the right hand side. /// For strings, returns true if the left hand side is a substring of the right hand side . For collections, returns true if the left hand side is in the right hand side . /// </summary> [iOSVersion(3)] InPredicateOperatorType, /// <summary> /// A predicate that uses a custom selector that takes a single argument and returns a BOOL value. /// The selector is invoked on the left hand side with the right hand side as the argument. /// </summary> [iOSVersion(3)] CustomSelectorPredicateOperatorType, /// <summary> /// A predicate to determine if the left hand side contains the right hand side. /// Returns true if [lhs contains rhs]; the left hand side must be an NSExpression object that evaluates to a collection /// </summary> [iOSVersion(3)] ContainsPredicateOperatorType, /// <summary> /// A predicate to determine if the right hand side lies at or between bounds specified by the left hand side. /// Returns true if [lhs between rhs]; the right hand side must be an array in which the first element sets the lower bound and the second element the upper, inclusive. Comparison is performed using compare: or the class-appropriate equivalent. /// </summary> [iOSVersion(3)] BetweenPredicateOperatorType, } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSComparisonPredicate is a subclass of NSPredicate that you use to compare expressions. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSComparisonPredicate_Class/index.html#//apple_ref/occ/cl/NSComparisonPredicate"/> [iOSVersion(3)] [Export("")] public class NSComparisonPredicate : NSPredicate//, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSObjectProtocol, NSSecureCoding, Printable { public NSComparisonPredicate() { } /// <summary> /// Initializes a predicate formed by combining given left and right expressions using a given selector. /// </summary> /// <param name="leftExpression">The left hand expression.</param> /// <param name="rightExpression">The right hand expression.</param> /// <param name="customSelector">The selector to use. The method defined by the selector must take a single argument and return a BOOL value.</param> [iOSVersion(3)] public NSComparisonPredicate(NSExpression leftExpression, NSExpression rightExpression, Selector customSelector) { } /// <summary> /// Initializes a predicate to a given type formed by combining given left and right expressions using a given modifier and options. /// </summary> /// <param name="leftExpression">The left hand expression.</param> /// <param name="rightExpression">The right hand expression.</param> /// <param name="modifier">The modifier to apply.</param> /// <param name="type">The predicate operator type.</param> /// <param name="options">The options to apply (see NSComparisonPredicate Options). For no options, pass 0.</param> [iOSVersion(3)] public NSComparisonPredicate(NSExpression leftExpression, NSExpression rightExpression, NSComparisonPredicateModifier modifier, NSPredicateOperatorType type, NSComparisonPredicateOptions options) { } /// <summary> /// The comparison predicate modifier for the receiver. (read-only) /// </summary> [iOSVersion(3)] [Export("comparisonPredicateModifier")] public NSComparisonPredicateModifier ComparisonPredicateModifier { get; private set; } /// <summary> /// The selector for the receiver. (read-only) /// </summary> [iOSVersion(3)] [Export("customSelector")] public Selector CustomSelector { get; private set; } /// <summary> /// The right expression for the receiver. (read-only) /// </summary> [iOSVersion(3)] [Export("rightExpression")] public NSExpression RightExpression { get; private set; } /// <summary> /// The left expression for the receiver. (read-only) /// </summary> [iOSVersion(3)] [Export("leftExpression")] public NSExpression LeftExpression { get; private set; } /// <summary> /// The options that are set for the receiver. (read-only) /// </summary> [iOSVersion(3)] [Export("options")] public NSComparisonPredicateOptions Options { get; private set; } /// <summary> /// The predicate type for the receiver. (read-only) /// </summary> [iOSVersion(3)] [Export("predicateOperatorType")] public NSPredicateOperatorType PredicateOperatorType { get; private set; } } /// <summary> /// These constants describe the possible types of modifier for NSComparisonPredicate. /// </summary> public enum NSComparisonPredicateModifier { /// <summary> /// A predicate to compare directly the left and right hand sides. /// </summary> [iOSVersion(3)] DirectPredicateModifier, /// <summary> /// A predicate to compare all entries in the destination of a to-many relationship. /// The left hand side must be a collection. The corresponding predicate compares each value in the left hand side with the right hand side, and returns false when it finds the first mismatch—€”or true if all match. /// </summary> [iOSVersion(3)] AllPredicateModifier, /// <summary> /// A predicate to match with any entry in the destination of a to-many relationship. /// The left hand side must be a collection. The corresponding predicate compares each value in the left hand side against the right hand side and returns true when it finds the first match—or false if no match is found /// </summary> [iOSVersion(3)] AnyPredicateModifier, } /// <summary> /// These constants describe the possible types of string comparison for NSComparisonPredicate. These options are supported for LIKE as well as all of the equality/comparison operators. /// </summary> public enum NSComparisonPredicateOptions { /// <summary> /// A case-insensitive predicate. /// You represent this option in a predicate format string using a [c] following a string operation (for example, &quot;NeXT&quot; like[c] &quot;next&quot;). /// </summary> [iOSVersion(3)] CaseInsensitivePredicateOption, /// <summary> /// A diacritic-insensitive predicate. /// You represent this option in a predicate format string using a [d] following a string operation (for example, &quot;naïve&quot; like[d] &quot;naive&quot;). /// </summary> [iOSVersion(3)] DiacriticInsensitivePredicateOption, /// <summary> /// Indicates that the strings to be compared have been preprocessed. /// This option supersedes NSCaseInsensitivePredicateOption and NSDiacriticInsensitivePredicateOption, and is intended as a performance optimization option. /// You represent this option in a predicate format string using a [n] following a string operation (for example, &quot;WXYZlan&quot; matches[n] &quot;.lan&quot;). /// </summary> [iOSVersion(4)] NormalizedPredicateOption, } /// <summary> /// Defines the type of comparison for NSComparisonPredicate. /// </summary> public enum NSPredicateOperatorType { /// <summary> /// A less-than predicate. /// </summary> [iOSVersion(3)] LessThanPredicateOperatorType, /// <summary> /// A less-than-or-equal-to predicate. /// </summary> [iOSVersion(3)] LessThanOrEqualToPredicateOperatorType, /// <summary> /// A greater-than predicate. /// </summary> [iOSVersion(3)] GreaterThanPredicateOperatorType, /// <summary> /// A greater-than-or-equal-to predicate. /// </summary> [iOSVersion(3)] GreaterThanOrEqualToPredicateOperatorType, /// <summary> /// An equal-to predicate. /// </summary> [iOSVersion(3)] EqualToPredicateOperatorType, /// <summary> /// A not-equal-to predicate. /// </summary> [iOSVersion(3)] NotEqualToPredicateOperatorType, /// <summary> /// A full regular expression matching predicate. /// </summary> [iOSVersion(3)] MatchesPredicateOperatorType, /// <summary> /// A simple subset of the MATCHES predicate, similar in behavior to SQL LIKE. /// </summary> [iOSVersion(3)] LikePredicateOperatorType, /// <summary> /// A begins-with predicate. /// </summary> [iOSVersion(3)] BeginsWithPredicateOperatorType, /// <summary> /// An ends-with predicate. /// </summary> [iOSVersion(3)] EndsWithPredicateOperatorType, /// <summary> /// A predicate to determine if the left hand side is in the right hand side. /// For strings, returns true if the left hand side is a substring of the right hand side . For collections, returns true if the left hand side is in the right hand side . /// </summary> [iOSVersion(3)] InPredicateOperatorType, /// <summary> /// A predicate that uses a custom selector that takes a single argument and returns a BOOL value. /// The selector is invoked on the left hand side with the right hand side as the argument. /// </summary> [iOSVersion(3)] CustomSelectorPredicateOperatorType, /// <summary> /// A predicate to determine if the left hand side contains the right hand side. /// Returns true if [lhs contains rhs]; the left hand side must be an NSExpression object that evaluates to a collection /// </summary> [iOSVersion(3)] ContainsPredicateOperatorType, /// <summary> /// A predicate to determine if the right hand side lies at or between bounds specified by the left hand side. /// Returns true if [lhs between rhs]; the right hand side must be an array in which the first element sets the lower bound and the second element the upper, inclusive. Comparison is performed using compare: or the class-appropriate equivalent. /// </summary> [iOSVersion(3)] BetweenPredicateOperatorType, } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSCompoundPredicate.cs b/CocoaSharp/Foundation/NSCompoundPredicate.cs
index acf8ceb5..ee970053 100644
--- a/CocoaSharp/Foundation/NSCompoundPredicate.cs
+++ b/CocoaSharp/Foundation/NSCompoundPredicate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSCompoundPredicate is a subclass of NSPredicate used to represent logical “gate” operations (AND/OR/NOT) and comparison operations. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSCompoundPredicate_Class/index.html#//apple_ref/occ/cl/NSCompoundPredicate"/> [iOSVersion(3)] public class NSCompoundPredicate : NSPredicate//, AnyObject, NSCoding, NSCopying, NSObjectProtocol, NSSecureCoding { /// <summary> /// Returns a new predicate formed by AND-ing the predicates in a given array. /// </summary> /// <param name="subpredicates">An array of NSPredicate objects.</param> [iOSVersion(3)] [Export("andPredicateWithSubpredicates")] public static NSCompoundPredicate AndPredicateWithSubpredicates(AnyObject[] subpredicates) { return default(NSCompoundPredicate); } /// <summary> /// Returns a new predicate formed by NOT-ing a given predicate. /// </summary> /// <param name="predicate">A predicate.</param> [iOSVersion(3)] [Export("notPredicateWithSubpredicate")] public static NSCompoundPredicate NotPredicateWithSubpredicate(NSPredicate predicate) { return default(NSCompoundPredicate); } /// <summary> /// Returns a new predicate formed by OR-ing the predicates in a given array. /// </summary> /// <param name="subpredicates">An array of NSPredicate objects.</param> [iOSVersion(3)] [Export("orPredicateWithSubpredicates")] public static NSCompoundPredicate OrPredicateWithSubpredicates(AnyObject[] subpredicates) { return default(NSCompoundPredicate); } /// <summary> /// Returns the receiver initialized to a given type using predicates from a given array. /// </summary> /// <param name="type">The type of the new predicate.</param> /// <param name="subpredicates">An array of NSPredicate objects.</param> [iOSVersion(3)] public NSCompoundPredicate(NSCompoundPredicateType type, AnyObject[] subpredicates) : base(false) { } /// <summary> /// The predicate type for the receiver. (read-only) /// </summary> [iOSVersion(3)] [Export("compoundPredicateType")] public NSCompoundPredicateType CompoundPredicateType { get; private set; } /// <summary> /// The receiver’s subpredicates. (read-only) /// </summary> [iOSVersion(3)] [Export("subpredicates")] public AnyObject[] Subpredicates { get; private set; } } /// <summary> /// These constants describe the possible types of NSCompoundPredicate. /// </summary> [iOSVersion(3)] public enum NSCompoundPredicateType { /// <summary> /// A logical NOT predicate. /// </summary> [iOSVersion(3)] NotPredicateType, /// <summary> /// A logical AND predicate. /// </summary> [iOSVersion(3)] AndPredicateType, /// <summary> /// A logical OR predicate. /// </summary> [iOSVersion(3)] OrPredicateType, } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSCompoundPredicate is a subclass of NSPredicate used to represent logical “gate” operations (AND/OR/NOT) and comparison operations. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSCompoundPredicate_Class/index.html#//apple_ref/occ/cl/NSCompoundPredicate"/> [iOSVersion(3)] [Export("")] public class NSCompoundPredicate : NSPredicate//, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSObjectProtocol, NSSecureCoding, Printable { public NSCompoundPredicate() { } /// <summary> /// Returns a new predicate formed by AND-ing the predicates in a given array. /// </summary> /// <param name="subpredicates">An array of NSPredicate objects.</param> [iOSVersion(3)] [Export("andPredicateWithSubpredicates")] public static NSCompoundPredicate AndPredicateWithSubpredicates(AnyObject[] subpredicates) { return default(NSCompoundPredicate); } /// <summary> /// Returns a new predicate formed by NOT-ing a given predicate. /// </summary> /// <param name="predicate">A predicate.</param> [iOSVersion(3)] [Export("notPredicateWithSubpredicate")] public static NSCompoundPredicate NotPredicateWithSubpredicate(NSPredicate predicate) { return default(NSCompoundPredicate); } /// <summary> /// Returns a new predicate formed by OR-ing the predicates in a given array. /// </summary> /// <param name="subpredicates">An array of NSPredicate objects.</param> [iOSVersion(3)] [Export("orPredicateWithSubpredicates")] public static NSCompoundPredicate OrPredicateWithSubpredicates(AnyObject[] subpredicates) { return default(NSCompoundPredicate); } /// <summary> /// Returns the receiver initialized to a given type using predicates from a given array. /// </summary> /// <param name="type">The type of the new predicate.</param> /// <param name="subpredicates">An array of NSPredicate objects.</param> [iOSVersion(3)] public NSCompoundPredicate(NSCompoundPredicateType type, AnyObject[] subpredicates) { } /// <summary> /// The predicate type for the receiver. (read-only) /// </summary> [iOSVersion(3)] [Export("compoundPredicateType")] public NSCompoundPredicateType CompoundPredicateType { get; private set; } /// <summary> /// The receiver’s subpredicates. (read-only) /// </summary> [iOSVersion(3)] [Export("subpredicates")] public AnyObject[] Subpredicates { get; private set; } } /// <summary> /// These constants describe the possible types of NSCompoundPredicate. /// </summary> public enum NSCompoundPredicateType { /// <summary> /// A logical NOT predicate. /// </summary> [iOSVersion(3)] NotPredicateType, /// <summary> /// A logical AND predicate. /// </summary> [iOSVersion(3)] AndPredicateType, /// <summary> /// A logical OR predicate. /// </summary> [iOSVersion(3)] OrPredicateType, } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSCondition.cs b/CocoaSharp/Foundation/NSCondition.cs
index 7e9157ca..e9c12901 100644
--- a/CocoaSharp/Foundation/NSCondition.cs
+++ b/CocoaSharp/Foundation/NSCondition.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSCondition class implements a condition variable whose semantics follow those used for POSIX-style conditions. A condition object acts as both a lock and a checkpoint in a given thread. The lock protects your code while it tests the condition and performs the task triggered by the condition. The checkpoint behavior requires that the condition be true before the thread proceeds with its task. While the condition is not true, the thread blocks. It remains blocked until another thread signals the condition object. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/NSCondition_class/index.html#//apple_ref/occ/cl/NSCondition"/> [iOSVersion(2)] public class NSCondition : NSObject//, AnyObject, NSLocking, NSObjectProtocol { /// <summary> /// Blocks the current thread until the condition is signaled. /// </summary> [iOSVersion(2)] [Export("wait")] public void Wait() { } /// <summary> /// Blocks the current thread until the condition is signaled or the specified time limit is reached. /// </summary> /// <param name="limit">The time at which to wake up the thread if the condition has not been signaled.</param> [iOSVersion(2)] [Export("waitUntilDate")] public bool WaitUntilDate(NSDate limit) { return default(bool); } /// <summary> /// Signals the condition, waking up one thread waiting on it. /// </summary> [iOSVersion(2)] [Export("signal")] public void Signal() { } /// <summary> /// Signals the condition, waking up all threads waiting on it. /// </summary> [iOSVersion(2)] [Export("broadcast")] public void Broadcast() { } /// <summary> /// The name of the condition. /// </summary> [iOSVersion(2)] [Export("name")] public string Name { get; set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSCondition class implements a condition variable whose semantics follow those used for POSIX-style conditions. A condition object acts as both a lock and a checkpoint in a given thread. The lock protects your code while it tests the condition and performs the task triggered by the condition. The checkpoint behavior requires that the condition be true before the thread proceeds with its task. While the condition is not true, the thread blocks. It remains blocked until another thread signals the condition object. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/NSCondition_class/index.html#//apple_ref/occ/cl/NSCondition"/> [iOSVersion(2)] [Export("")] public class NSCondition : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSLocking, NSObjectProtocol, Printable { public NSCondition() { } /// <summary> /// Blocks the current thread until the condition is signaled. /// </summary> [iOSVersion(2)] [Export("wait")] public virtual void Wait() { } /// <summary> /// Blocks the current thread until the condition is signaled or the specified time limit is reached. /// </summary> /// <param name="limit">The time at which to wake up the thread if the condition has not been signaled.</param> [iOSVersion(2)] [Export("waitUntilDate")] public virtual bool WaitUntilDate(NSDate limit) { return default(bool); } /// <summary> /// Signals the condition, waking up one thread waiting on it. /// </summary> [iOSVersion(2)] [Export("signal")] public virtual void Signal() { } /// <summary> /// Signals the condition, waking up all threads waiting on it. /// </summary> [iOSVersion(2)] [Export("broadcast")] public virtual void Broadcast() { } /// <summary> /// The name of the condition. /// </summary> [iOSVersion(2)] [Export("name")] [Optional] public string Name { get; set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSConditionLock.cs b/CocoaSharp/Foundation/NSConditionLock.cs
index 056bc2f5..c987532d 100644
--- a/CocoaSharp/Foundation/NSConditionLock.cs
+++ b/CocoaSharp/Foundation/NSConditionLock.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSConditionLock class defines objects whose locks can be associated with specific, user-defined conditions. Using an NSConditionLock object, you can ensure that a thread can acquire a lock only if a certain condition is met. Once it has acquired the lock and executed the critical section of code, the thread can relinquish the lock and set the associated condition to something new. The conditions themselves are arbitrary: you define them as needed for your application. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSConditionLock_Class/index.html#//apple_ref/occ/cl/NSConditionLock"/> [iOSVersion(2)] public class NSConditionLock : NSObject//, AnyObject, NSLocking, NSObjectProtocol { /// <summary> /// Initializes a newly allocated NSConditionLock object and sets its condition. /// </summary> /// <param name="condition">The user-defined condition for the lock. The value of condition is user-defined; see the class description for more information.</param> [iOSVersion(2)] public NSConditionLock(int condition) { } /// <summary> /// Attempts to acquire a lock before a specified moment in time. /// </summary> /// <param name="limit">The date by which the lock must be acquired or the attempt will time out.</param> [iOSVersion(2)] [Export("lockBeforeDate")] public bool LockBeforeDate(NSDate limit) { return default(bool); } /// <summary> /// Attempts to acquire a lock. /// </summary> /// <param name="condition">The condition to match on.</param> [iOSVersion(2)] [Export("lockWhenCondition")] public void LockWhenCondition(int condition) { } /// <summary> /// Attempts to acquire a lock before a specified moment in time. /// </summary> /// <param name="condition">The condition to match on.</param> /// <param name="beforeDate">The date by which the lock must be acquired or the attempt will time out.</param> [iOSVersion(2)] [Export("lockWhenCondition")] public bool LockWhenCondition(int condition, NSDate beforeDate) { return default(bool); } /// <summary> /// Attempts to acquire a lock without regard to the receiver’s condition. /// </summary> [iOSVersion(2)] [Export("tryLock")] public bool TryLock() { return default(bool); } /// <summary> /// Attempts to acquire a lock if the receiver’s condition is equal to the specified condition. /// </summary> /// <param name="condition"></param> [iOSVersion(2)] [Export("tryLockWhenCondition")] public bool TryLockWhenCondition(int condition) { return default(bool); } /// <summary> /// Relinquishes the lock and sets the receiver’s condition. /// </summary> /// <param name="condition">The user-defined condition for the lock. The value of condition is user-defined; see the class description for more information.</param> [iOSVersion(2)] [Export("unlockWithCondition")] public void UnlockWithCondition(int condition) { } /// <summary> /// The condition associated with the receiver. (read-only) /// </summary> [iOSVersion(2)] [Export("condition")] public int Condition { get; private set; } /// <summary> /// The name associated with the receiver. /// </summary> [iOSVersion(2)] [Export("name")] public string Name { get; set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSConditionLock class defines objects whose locks can be associated with specific, user-defined conditions. Using an NSConditionLock object, you can ensure that a thread can acquire a lock only if a certain condition is met. Once it has acquired the lock and executed the critical section of code, the thread can relinquish the lock and set the associated condition to something new. The conditions themselves are arbitrary: you define them as needed for your application. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSConditionLock_Class/index.html#//apple_ref/occ/cl/NSConditionLock"/> [iOSVersion(2)] [Export("")] public class NSConditionLock : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSLocking, NSObjectProtocol, Printable { public NSConditionLock() { } /// <summary> /// Initializes a newly allocated NSConditionLock object and sets its condition. /// </summary> /// <param name="condition">The user-defined condition for the lock. The value of condition is user-defined; see the class description for more information.</param> [iOSVersion(2)] public NSConditionLock(int condition) { } /// <summary> /// Attempts to acquire a lock before a specified moment in time. /// </summary> /// <param name="limit">The date by which the lock must be acquired or the attempt will time out.</param> [iOSVersion(2)] [Export("lockBeforeDate")] public virtual bool LockBeforeDate(NSDate limit) { return default(bool); } /// <summary> /// Attempts to acquire a lock. /// </summary> /// <param name="condition">The condition to match on.</param> [iOSVersion(2)] [Export("lockWhenCondition")] public virtual void LockWhenCondition(int condition) { } /// <summary> /// Attempts to acquire a lock before a specified moment in time. /// </summary> /// <param name="condition">The condition to match on.</param> /// <param name="beforeDate">The date by which the lock must be acquired or the attempt will time out.</param> [iOSVersion(2)] [Export("lockWhenCondition")] public virtual bool LockWhenCondition(int condition, NSDate beforeDate) { return default(bool); } /// <summary> /// Attempts to acquire a lock without regard to the receiver’s condition. /// </summary> [iOSVersion(2)] [Export("tryLock")] public virtual bool TryLock() { return default(bool); } /// <summary> /// Attempts to acquire a lock if the receiver’s condition is equal to the specified condition. /// </summary> /// <param name="condition"></param> [iOSVersion(2)] [Export("tryLockWhenCondition")] public virtual bool TryLockWhenCondition(int condition) { return default(bool); } /// <summary> /// Relinquishes the lock and sets the receiver’s condition. /// </summary> /// <param name="condition">The user-defined condition for the lock. The value of condition is user-defined; see the class description for more information.</param> [iOSVersion(2)] [Export("unlockWithCondition")] public virtual void UnlockWithCondition(int condition) { } /// <summary> /// The condition associated with the receiver. (read-only) /// </summary> [iOSVersion(2)] [Export("condition")] public int Condition { get; private set; } /// <summary> /// The name associated with the receiver. /// </summary> [iOSVersion(2)] [Export("name")] [Optional] public string Name { get; set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSCountedSet.cs b/CocoaSharp/Foundation/NSCountedSet.cs
index b793c1ce..6b19caaa 100644
--- a/CocoaSharp/Foundation/NSCountedSet.cs
+++ b/CocoaSharp/Foundation/NSCountedSet.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSCountedSet class declares the programmatic interface to a mutable, unordered collection of indistinct objects. A counted set is also known as a bag. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSCountedSet_Class/index.html#//apple_ref/occ/cl/NSCountedSet"/> [iOSVersion(2)] public class NSCountedSet : NSMutableSet//, AnyObject, NSCoding, NSCopying, NSFastEnumeration, NSMutableCopying, NSObjectProtocol, NSSecureCoding, Reflectable, Sequence { /// <summary> /// Returns a counted set object initialized with the contents of a given array. /// </summary> /// <param name="array">An array of objects to add to the new set.</param> [iOSVersion(2)] [Export("convenience init")] public NSCountedSet(AnyObject[] array) { } /// <summary> /// Returns a counted set object initialized with the contents of a given set. /// </summary> /// <param name="set">An set of objects to add to the new set.</param> [iOSVersion(2)] [Export("convenience init")] public NSCountedSet(NSSet set) { } /// <summary> /// Returns a counted set object initialized with enough memory to hold a given number of objects. /// </summary> /// <param name="capacity">The initial capacity of the new counted set.</param> [iOSVersion(2)] public NSCountedSet(int capacity) { } /// <summary> /// Adds a given object to the set. /// </summary> /// <param name="anObject">The object to add to the set.</param> [iOSVersion(2)] [Export("addObject")] public void AddObject(AnyObject anObject) { } /// <summary> /// Removes a given object from the set. /// </summary> /// <param name="anObject">The object to remove from the set.</param> [iOSVersion(2)] [Export("removeObject")] public void RemoveObject(AnyObject anObject) { } /// <summary> /// Returns the count associated with a given object in the set. /// </summary> /// <param name="anObject">The object for which to return the count.</param> [iOSVersion(2)] [Export("countForObject")] public int CountForObject(AnyObject anObject) { return default(int); } /// <summary> /// Returns an enumerator object that lets you access each object in the set once, independent of its count. /// </summary> [iOSVersion(2)] [Export("objectEnumerator")] public NSEnumerator ObjectEnumerator() { return default(NSEnumerator); } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSCountedSet class declares the programmatic interface to a mutable, unordered collection of indistinct objects. A counted set is also known as a bag. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSCountedSet_Class/index.html#//apple_ref/occ/cl/NSCountedSet"/> [iOSVersion(2)] [Export("")] public class NSCountedSet : NSMutableSet//, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSFastEnumeration, NSMutableCopying, NSObjectProtocol, NSSecureCoding, Printable, Reflectable, SequenceType { public NSCountedSet() { } /// <summary> /// Returns a counted set object initialized with the contents of a given array. /// </summary> /// <param name="array">An array of objects to add to the new set.</param> [iOSVersion(2)] [Export("convenience init")] public NSCountedSet(AnyObject[] array) { } /// <summary> /// Returns a counted set object initialized with the contents of a given set. /// </summary> /// <param name="set">An set of objects to add to the new set.</param> [iOSVersion(2)] [Export("convenience init")] public NSCountedSet(NSSet set) { } /// <summary> /// Returns a counted set object initialized with enough memory to hold a given number of objects. /// </summary> /// <param name="capacity">The initial capacity of the new counted set.</param> [iOSVersion(2)] public NSCountedSet(int capacity) { } /// <summary> /// Adds a given object to the set. /// </summary> /// <param name="anObject">The object to add to the set.</param> [iOSVersion(2)] [Export("addObject")] public virtual void AddObject(AnyObject anObject) { } /// <summary> /// Removes a given object from the set. /// </summary> /// <param name="anObject">The object to remove from the set.</param> [iOSVersion(2)] [Export("removeObject")] public virtual void RemoveObject(AnyObject anObject) { } /// <summary> /// Returns the count associated with a given object in the set. /// </summary> /// <param name="anObject">The object for which to return the count.</param> [iOSVersion(2)] [Export("countForObject")] public virtual int CountForObject(AnyObject anObject) { return default(int); } /// <summary> /// Returns an enumerator object that lets you access each object in the set once, independent of its count. /// </summary> [iOSVersion(2)] [Export("objectEnumerator")] public virtual NSEnumerator ObjectEnumerator() { return default(NSEnumerator); } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSData.cs b/CocoaSharp/Foundation/NSData.cs
index 35504925..0233009f 100644
--- a/CocoaSharp/Foundation/NSData.cs
+++ b/CocoaSharp/Foundation/NSData.cs
@@ -1,440 +1,5 @@
-using ObjectiveC;
-using System;
-using SharpSwift.Attributes;
-using System.Collections.Generic;
-
-namespace Foundation
-{
- /// <summary>
- /// NSData and its mutable subclass NSMutableData provide data objects, object-oriented wrappers for byte buffers. Data objects let simple allocated buffers (that is, data with no embedded pointers) take on the behavior of Foundation objects.
- /// </summary>
- /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSData_Class/index.html#//apple_ref/occ/cl/NSData"/>
- [iOSVersion(2)]
- public class NSData : NSObject//, AnyObject, NSCoding, NSCopying, NSMutableCopying, NSObjectProtocol, NSSecureCoding
- {
- /// <summary>
- /// Creates and returns a data object by reading every byte from the file specified by a given path.
- /// </summary>
- /// <param name="path">The absolute path of the file from which to read data.</param>
- /// <param name="options">A mask that specifies options for reading the data. Constant components are described in “NSDataReadingOptions”.</param>
- /// <param name="error">If an error occurs, upon return contains an NSError object that describes the problem.</param>
- [iOSVersion(2)]
- [Export("dataWithContentsOfFile")]
- public static NSData DataWithContentsOfFile(string path, NSDataReadingOptions options, NSErrorPointer error) { return default(NSData); }
-
- /// <summary>
- /// Creates and returns a data object from the mapped file specified by path.
- /// </summary>
- /// <param name="path">The absolute path of the file from which to read data.</param>
- [iOSVersion(2)]
- [Export("dataWithContentsOfMappedFile")]
- public static AnyObject DataWithContentsOfMappedFile(string path) { return default(AnyObject); }
-
- /// <summary>
- /// Creates and returns a data object containing the data from the location specified by aURL.
- /// </summary>
- /// <param name="aURL">The URL from which to read data.</param>
- /// <param name="options">A mask that specifies options for reading the data. Constant components are described in “NSDataReadingOptions”.</param>
- /// <param name="error">If there is an error reading in the data, upon return contains an NSError object that describes the problem.</param>
- [iOSVersion(2)]
- [Export("dataWithContentsOfURL")]
- public static NSData DataWithContentsOfURL(NSURL aURL, NSDataReadingOptions options, NSErrorPointer error) { return default(NSData); }
-
- /// <summary>
- /// Creates and returns a data object containing the contents of another data object.
- /// </summary>
- /// <param name="aData">A data object.</param>
- [iOSVersion(2)]
- [Export("dataWithData")]
- public static NSData DataWithData(NSData aData) { return default(NSData); }
-
- /// <summary>
- /// Returns a data object initialized with the given Base-64 encoded data.
- /// </summary>
- /// <param name="base64EncodedData">A Base-64, UTF-8 encoded data object.</param>
- /// <param name="options">A mask that specifies options for Base-64 decoding the data. Possible values are given in “NSDataBase64DecodingOptions”.</param>
- [iOSVersion(7)]
- public NSData(NSData base64EncodedData, NSDataBase64DecodingOptions options) { }
-
- /// <summary>
- /// Returns a data object initialized with the given Base-64 encoded string.
- /// </summary>
- /// <param name="base64EncodedString">A Base-64 encoded string.</param>
- /// <param name="options">A mask that specifies options for Base-64 decoding the data. Possible values are given in “NSDataBase64DecodingOptions”.</param>
- [iOSVersion(7)]
- public NSData(string base64EncodedString, NSDataBase64DecodingOptions options) { }
-
- /// <summary>
- /// Returns a data object initialized by adding to it a given number of bytes of data copied from a given buffer.
- /// </summary>
- /// <param name="bytes"></param>
- /// <param name="length"></param>
- [iOSVersion(2)]
- public NSData(ConstUnsafePointer<Action> bytes, int length) { }
-
- /// <summary>
- /// Returns a data object initialized by adding to it a given number of bytes of data from a given buffer.
- /// </summary>
- /// <param name="bytesNoCopy">A buffer containing data for the new object. bytes must point to a memory block allocated with malloc.</param>
- /// <param name="length">The number of bytes to hold from bytes. This value must not exceed the length of bytes.</param>
- [iOSVersion(2)]
- public NSData(UnsafePointer<Action> bytesNoCopy, int length) { }
-
- /// <summary>
- /// Returns a data object initialized by adding to it a given number of bytes of data from a given buffer, with a custom deallocator block.
- /// </summary>
- /// <param name="bytesNoCopy">A buffer containing data for the new object.</param>
- /// <param name="length">The number of bytes to hold from bytes. This value must not exceed the length of bytes.</param>
- /// <param name="deallocator">A block to invoke when the resulting NSData object is deallocated.</param>
- [iOSVersion(7)]
- public NSData(UnsafePointer<Action> bytesNoCopy, int length, Action<UnsafePointer<Action>, int> deallocator) { }
-
- /// <summary>
- /// Initializes a newly allocated data object by adding to it length bytes of data from the buffer bytes.
- /// </summary>
- /// <param name="bytesNoCopy">A buffer containing data for the new object. If flag is true, bytes must point to a memory block allocated with malloc.</param>
- /// <param name="length">The number of bytes to hold from bytes. This value must not exceed the length of bytes.</param>
- /// <param name="freeWhenDone">If true, the returned object takes ownership of the bytes pointer and frees it on deallocation.</param>
- [iOSVersion(2)]
- public NSData(UnsafePointer<Action> bytesNoCopy, int length, bool freeWhenDone) { }
-
- /// <summary>
- /// Returns a data object initialized by reading into it the data from the file specified by a given path.
- /// </summary>
- /// <param name="contentsOfFile">The absolute path of the file from which to read data.</param>
- [iOSVersion(2)]
- public NSData(string contentsOfFile) { }
-
- /// <summary>
- /// Returns a data object initialized by reading into it the data from the file specified by a given path.
- /// </summary>
- /// <param name="contentsOfFile">The absolute path of the file from which to read data.</param>
- /// <param name="options">A mask that specifies options for reading the data. Constant components are described in “NSDataReadingOptions”.</param>
- /// <param name="error">If an error occurs, upon return contains an NSError object that describes the problem.</param>
- [iOSVersion(2)]
- public NSData(string contentsOfFile, NSDataReadingOptions options, NSErrorPointer error) { }
-
- /// <summary>
- /// Returns a data object initialized by reading into it the mapped file specified by a given path.
- /// </summary>
- /// <param name="contentsOfMappedFile">The absolute path of the file from which to read data.</param>
- /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param>
- [iOSVersion(2)]
- [IgnoreParameter("NAME_YOUR_PARAMS")]
- public NSData(string contentsOfMappedFile, bool NAME_YOUR_PARAMS = false) { }
-
- /// <summary>
- /// Initializes a newly allocated data object initialized with the data from the location specified by aURL.
- /// </summary>
- /// <param name="contentsOfURL">The URL from which to read data</param>
- [iOSVersion(2)]
- public NSData(NSURL contentsOfURL) { }
-
- /// <summary>
- /// Returns a data object initialized with the data from the location specified by a given URL.
- /// </summary>
- /// <param name="contentsOfURL">The URL from which to read data.</param>
- /// <param name="options">A mask that specifies options for reading the data. Constant components are described in “NSDataReadingOptions”.</param>
- /// <param name="error">If there is an error reading in the data, upon return contains an NSError object that describes the problem.</param>
- [iOSVersion(2)]
- public NSData(NSURL contentsOfURL, NSDataReadingOptions options, NSErrorPointer error) { }
-
- /// <summary>
- /// Returns a data object initialized with the contents of another data object.
- /// </summary>
- /// <param name="data">A data object.</param>
- [iOSVersion(2)]
- public NSData(NSData data) { }
-
- /// <summary>
- /// Enumerate through each range of bytes in the data object using a block.
- /// </summary>
- /// <param name="block">The block to apply to byte ranges in the array.
- /// The block takes three arguments:
- /// bytes
- /// The bytes for the current range.
- /// byteRange
- /// The range of the current data bytes.
- /// stop
- /// A reference to a Boolean value. The block can set the value to true to stop further processing of the data. The stop argument is an out-only argument. You should only ever set this Boolean to true within the Block.</param>
- [iOSVersion(7)]
- [Export("enumerateByteRangesUsingBlock")]
- public void EnumerateByteRangesUsingBlock(Action<ConstUnsafePointer<Action>, NSRange, UnsafePointer<ObjCBool>> block) { }
-
- /// <summary>
- /// Copies a data object’s contents into a given buffer.
- /// </summary>
- /// <param name="buffer">A buffer into which to copy the receiver's data. The buffer must be at least length bytes.</param>
- [iOSVersion(2)]
- [Export("getBytes")]
- public void GetBytes(UnsafePointer<Action> buffer) { }
-
- /// <summary>
- /// Copies a number of bytes from the start of the receiver's data into a given buffer.
- /// </summary>
- /// <param name="buffer">A buffer into which to copy data.</param>
- /// <param name="length">The number of bytes from the start of the receiver's data to copy to buffer.</param>
- [iOSVersion(2)]
- [Export("getBytes")]
- public void GetBytes(UnsafePointer<Action> buffer, int length) { }
-
- /// <summary>
- /// Copies a range of bytes from the receiver’s data into a given buffer.
- /// </summary>
- /// <param name="buffer">A buffer into which to copy data.</param>
- /// <param name="range">The range of bytes in the receiver's data to copy to buffer. The range must lie within the range of bytes of the receiver's data.</param>
- [iOSVersion(2)]
- [Export("getBytes")]
- public void GetBytes(UnsafePointer<Action> buffer, NSRange range) { }
-
- /// <summary>
- /// Returns a data object containing the receiver’s bytes that fall within the limits specified by a given range.
- /// </summary>
- /// <param name="range">The range in the receiver from which to get the data. The range must not exceed the bounds of the receiver.</param>
- [iOSVersion(2)]
- [Export("subdataWithRange")]
- public NSData SubdataWithRange(NSRange range) { return default(NSData); }
-
- /// <summary>
- /// Finds and returns the range of the first occurrence of the given data, within the given range, subject to given options.
- /// </summary>
- /// <param name="dataToFind">The data for which to search. This value must not be nil.
- /// Important
- /// Raises an NSInvalidArgumentException if dataToFind is nil.</param>
- /// <param name="options">A mask specifying search options. The NSDataSearchOptions options may be specified singly or by combining them with the C bitwise OR operator.</param>
- /// <param name="range">The range within the receiver in which to search for dataToFind. If this range is not within the receiver’s range of bytes, an NSRangeException raised.</param>
- [iOSVersion(4)]
- [Export("rangeOfData")]
- public NSRange RangeOfData(NSData dataToFind, NSDataSearchOptions options, NSRange range) { return default(NSRange); }
-
- /// <summary>
- /// Create a Base-64, UTF-8 encoded NSData from the receiver's contents using the given options.
- /// </summary>
- /// <param name="options">A mask that specifies options for Base-64 encoding the data. Possible values are given in “NSDataBase64EncodingOptions”.</param>
- [iOSVersion(7)]
- [Export("base64EncodedDataWithOptions")]
- public NSData Base64EncodedDataWithOptions(NSDataBase64EncodingOptions options) { return default(NSData); }
-
- /// <summary>
- /// Create a Base-64 encoded NSString from the receiver's contents using the given options.
- /// </summary>
- /// <param name="options">A mask that specifies options for Base-64 encoding the data. Possible values are given in “NSDataBase64EncodingOptions”.</param>
- [iOSVersion(7)]
- [Export("base64EncodedStringWithOptions")]
- public string Base64EncodedStringWithOptions(NSDataBase64EncodingOptions options) { return default(string); }
-
- /// <summary>
- /// Compares the receiving data object to otherData.
- /// </summary>
- /// <param name="otherData">The data object with which to compare the receiver.</param>
- [iOSVersion(2)]
- [Export("isEqualToData")]
- public bool IsEqualToData(NSData otherData) { return default(bool); }
-
- /// <summary>
- /// Writes the bytes in the receiver to the file specified by a given path.
- /// </summary>
- /// <param name="path">The location to which to write the receiver's bytes. If path contains a tilde (~) character, you must expand it with stringByExpandingTildeInPath before invoking this method.</param>
- /// <param name="atomically">If true, the data is written to a backup file, and then—assuming no errors occur—the backup file is renamed to the name specified by path; otherwise, the data is written directly to path.</param>
- [iOSVersion(2)]
- [Export("writeToFile")]
- public bool WriteToFile(string path, bool atomically) { return default(bool); }
-
- /// <summary>
- /// Writes the bytes in the receiver to the file specified by a given path.
- /// </summary>
- /// <param name="path">The location to which to write the receiver's bytes.</param>
- /// <param name="options">A mask that specifies options for writing the data. Constant components are described in “NSDataWritingOptions”.</param>
- /// <param name="error">If there is an error writing out the data, upon return contains an NSError object that describes the problem.</param>
- [iOSVersion(2)]
- [Export("writeToFile")]
- public bool WriteToFile(string path, NSDataWritingOptions options, NSErrorPointer error) { return default(bool); }
-
- /// <summary>
- /// Writes the bytes in the receiver to the location specified by aURL.
- /// </summary>
- /// <param name="aURL">The location to which to write the receiver's bytes. Only file:// URLs are supported.</param>
- /// <param name="atomically">If true, the data is written to a backup location, and then—assuming no errors occur—the backup location is renamed to the name specified by aURL; otherwise, the data is written directly to aURL. atomically is ignored if aURL is not of a type the supports atomic writes.</param>
- [iOSVersion(2)]
- [Export("writeToURL")]
- public bool WriteToURL(NSURL aURL, bool atomically) { return default(bool); }
-
- /// <summary>
- /// Writes the bytes in the receiver to the location specified by a given URL.
- /// </summary>
- /// <param name="aURL">The location to which to write the receiver's bytes.</param>
- /// <param name="options">A mask that specifies options for writing the data. Constant components are described in “NSDataWritingOptions”.</param>
- /// <param name="error">If there is an error writing out the data, upon return contains an NSError object that describes the problem.</param>
- [iOSVersion(2)]
- [Export("writeToURL")]
- public bool WriteToURL(NSURL aURL, NSDataWritingOptions options, NSErrorPointer error) { return default(bool); }
-
- /// <summary>
- /// A pointer to the receiver’s contents. (read-only)
- /// </summary>
- [iOSVersion(2)]
- [Export("bytes")]
- public ConstUnsafePointer<Action> Bytes { get; private set; }
-
- /// <summary>
- /// A string that contains a hexadecimal representation of the object’s contents in a property list format. (read-only)
- /// </summary>
- [iOSVersion(2)]
- [Export("description")]
- public string Description { get; private set; }
-
- /// <summary>
- /// The number of bytes contained by the data object. (read-only)
- /// </summary>
- [iOSVersion(2)]
- [Export("length")]
- public int Length { get; private set; }
- }
- /// <summary>
- /// Options for methods used to read NSData objects.
- /// </summary>
- [iOSVersion(4)]
- public enum NSDataReadingOptions
- {
- /// <summary>
- /// A hint indicating the file should be mapped into virtual memory, if possible and safe.
- /// </summary>
- [iOSVersion(5)]
- DataReadingMappedIfSafe,
- /// <summary>
- /// A hint indicating the file should not be stored in the file-system caches.
- /// For data being read once and discarded, this option can improve performance.
- /// </summary>
- [iOSVersion(4)]
- DataReadingUncached,
- /// <summary>
- /// Hint to map the file in if possible.
- /// This takes precedence over NSDataReadingMappedIfSafe if both are given.
- /// </summary>
- [iOSVersion(5)]
- DataReadingMappedAlways,
- /// <summary>
- /// Deprecated name for NSDataReadingMappedIfSafe.
- /// </summary>
- [iOSVersion(4)]
- [Obsolete]
- DataReadingMapped,
- /// <summary>
- /// Deprecated name for NSDataReadingMapped.
- /// </summary>
- [iOSVersion(2)]
- [Obsolete]
- MappedRead,
- /// <summary>
- /// Deprecated name for NSDataReadingUncached.
- /// </summary>
- [iOSVersion(2)]
- [Obsolete]
- UncachedRead,
- }
- /// <summary>
- /// Options for methods used to Base-64 encode data.
- /// </summary>
- [iOSVersion(7)]
- public enum NSDataBase64EncodingOptions
- {
- /// <summary>
- /// Set the maximum line length to 64 characters, after which a line ending is inserted.
- /// </summary>
- [iOSVersion(7)]
- Encoding64CharacterLineLength,
- /// <summary>
- /// Set the maximum line length to 76 characters, after which a line ending is inserted.
- /// </summary>
- [iOSVersion(7)]
- Encoding76CharacterLineLength,
- /// <summary>
- /// When a maximum line length is set, specify that the line ending to insert should include a carriage return.
- /// </summary>
- [iOSVersion(7)]
- EncodingEndLineWithCarriageReturn,
- /// <summary>
- /// When a maximum line length is set, specify that the line ending to insert should include a line feed.
- /// </summary>
- [iOSVersion(7)]
- EncodingEndLineWithLineFeed,
- }
- /// <summary>
- /// Options to modify the decoding algorithm used to decode Base-64 encoded NSData objects.
- /// </summary>
- [iOSVersion(7)]
- public enum NSDataBase64DecodingOptions
- {
- /// <summary>
- /// Modify the decoding algorithm so that it ignores unknown non-Base-64 bytes, including line ending characters.
- /// </summary>
- [iOSVersion(7)]
- IgnoreUnknownCharacters,
- }
- /// <summary>
- /// Options for methods used to write NSData objects.
- /// </summary>
- [iOSVersion(4)]
- public enum NSDataWritingOptions
- {
- /// <summary>
- /// A hint to write data to an auxiliary file first and then exchange the files. This option is equivalent to using a write method taking the parameter atomically:YES.
- /// </summary>
- [iOSVersion(4)]
- DataWritingAtomic,
- /// <summary>
- /// Hint to return prevent overwriting an existing file. Cannot be combined with NSDataWritingAtomic.
- /// </summary>
- [iOSVersion(6)]
- DataWritingWithoutOverwriting,
- /// <summary>
- /// A hint to set the content protection attribute of the file when writing it out. In this case, the file is not stored in an encrypted format and may be accessed at boot time and while the device is unlocked.
- /// </summary>
- [iOSVersion(4)]
- DataWritingFileProtectionNone,
- /// <summary>
- /// A hint to set the content protection attribute of the file when writing it out. In this case, the file is stored in an encrypted format and may be read from or written to only while the device is unlocked. At all other times, attempts to read and write the file result in failure.
- /// </summary>
- [iOSVersion(4)]
- DataWritingFileProtectionComplete,
- /// <summary>
- /// A hint to set the content protection attribute of the file when writing it out. In this case, the file cannot be opened for reading or writing when the device is locked, although new files can be created with this class. If one of these files is open when the device is locked, reading and writing are still allowed.
- /// </summary>
- [iOSVersion(5)]
- DataWritingFileProtectionCompleteUnlessOpen,
- /// <summary>
- /// A hint to set the content protection attribute of the file when writing it out. In this case, the file can be read or written to while the device is locked, but while it is booting up, they have protection equivalent to NSDataWritingFileProtectionComplete.
- /// </summary>
- [iOSVersion(5)]
- DataWritingFileProtectionCompleteUntilFirstUserAuthentication,
- /// <summary>
- /// A mask to use when determining the file protection options assigned to the data.
- /// </summary>
- [iOSVersion(4)]
- DataWritingFileProtectionMask,
- /// <summary>
- /// Deprecated name for NSDataWritingAtomic.
- /// </summary>
- [iOSVersion(2)]
- [Obsolete]
- AtomicWrite,
- }
- /// <summary>
- /// Options for method used to search NSData objects. These options are used with the rangeOfData:options:range: method.
- /// </summary>
- [iOSVersion(4)]
- public enum NSDataSearchOptions
- {
- /// <summary>
- /// Search from the end of NSData object.
- /// </summary>
- [iOSVersion(4)]
- Backwards,
- /// <summary>
- /// Search is limited to start (or end, if NSDataSearchBackwards) of NSData object.
- /// This option performs searching only on bytes at the beginning or end of the range. No match at the beginning or end means nothing is found, even if a matching sequence of bytes occurs elsewhere in the data object.
- /// </summary>
- [iOSVersion(4)]
- Anchored,
- }
-}
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSData and its mutable subclass NSMutableData provide data objects, object-oriented wrappers for byte buffers. Data objects let simple allocated buffers (that is, data with no embedded pointers) take on the behavior of Foundation objects. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSData_Class/index.html#//apple_ref/occ/cl/NSData"/> [iOSVersion(2)] [Export("")] public class NSData : NSObject//, AnyObject, CKRecordValue, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSMutableCopying, NSObjectProtocol, NSSecureCoding, Printable { public NSData() { } /// <summary> /// Creates and returns a data object from the mapped file specified by path. /// </summary> /// <param name="path">The absolute path of the file from which to read data.</param> [iOSVersion(2)] [Export("dataWithContentsOfMappedFile")] [return:Optional] public static AnyObject DataWithContentsOfMappedFile(string path) { return default(AnyObject); } /// <summary> /// Returns a data object initialized by adding to it a given number of bytes of data copied from a given buffer. /// </summary> /// <param name="bytes"></param> /// <param name="length"></param> [iOSVersion(2)] public NSData(UnsafePointer bytes, int length) { } /// <summary> /// Returns a data object initialized by adding to it a given number of bytes of data from a given buffer. /// </summary> /// <param name="bytesNoCopy">A buffer containing data for the new object. bytes must point to a memory block allocated with malloc.</param> /// <param name="length">The number of bytes to hold from bytes. This value must not exceed the length of bytes.</param> [iOSVersion(2)] public NSData(UnsafeMutablePointer bytesNoCopy, int length) { } /// <summary> /// Returns a data object initialized by adding to it a given number of bytes of data from a given buffer, with a custom deallocator block. /// </summary> /// <param name="bytesNoCopy">A buffer containing data for the new object.</param> /// <param name="length">The number of bytes to hold from bytes. This value must not exceed the length of bytes.</param> /// <param name="deallocator">A block to invoke when the resulting NSData object is deallocated.</param> [iOSVersion(7)] public NSData(UnsafeMutablePointer bytesNoCopy, int length, Action<UnsafeMutablePointer, int> deallocator) { } /// <summary> /// Initializes a newly allocated data object by adding to it length bytes of data from the buffer bytes. /// </summary> /// <param name="bytesNoCopy">A buffer containing data for the new object. If flag is true, bytes must point to a memory block allocated with malloc.</param> /// <param name="length">The number of bytes to hold from bytes. This value must not exceed the length of bytes.</param> /// <param name="freeWhenDone">If true, the returned object takes ownership of the bytes pointer and frees it on deallocation.</param> [iOSVersion(2)] public NSData(UnsafeMutablePointer bytesNoCopy, int length, bool freeWhenDone) { } /// <summary> /// Returns a data object initialized with the contents of another data object. /// </summary> /// <param name="data">A data object.</param> [iOSVersion(2)] public NSData(NSData data) { } /// <summary> /// Enumerate through each range of bytes in the data object using a block. /// </summary> /// <param name="block">The block to apply to byte ranges in the array. /// The block takes three arguments: /// bytes /// The bytes for the current range. /// byteRange /// The range of the current data bytes. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the data. The stop argument is an out-only argument. You should only ever set this Boolean to true within the Block.</param> [iOSVersion(7)] [Export("enumerateByteRangesUsingBlock")] public virtual void EnumerateByteRangesUsingBlock(Action<UnsafePointer, NSRange, UnsafeMutablePointer<ObjCBool>> block) { } /// <summary> /// Copies a data object’s contents into a given buffer. /// </summary> /// <param name="buffer">A buffer into which to copy the receiver&#39;s data. The buffer must be at least length bytes.</param> [iOSVersion(2)] [Export("getBytes")] public virtual void GetBytes(UnsafeMutablePointer buffer) { } /// <summary> /// Copies a number of bytes from the start of the receiver&#39;s data into a given buffer. /// </summary> /// <param name="buffer">A buffer into which to copy data.</param> /// <param name="length">The number of bytes from the start of the receiver&#39;s data to copy to buffer.</param> [iOSVersion(2)] [Export("getBytes")] public virtual void GetBytes(UnsafeMutablePointer buffer, int length) { } /// <summary> /// Copies a range of bytes from the receiver’s data into a given buffer. /// </summary> /// <param name="buffer">A buffer into which to copy data.</param> /// <param name="range">The range of bytes in the receiver&#39;s data to copy to buffer. The range must lie within the range of bytes of the receiver&#39;s data.</param> [iOSVersion(2)] [Export("getBytes")] public virtual void GetBytes(UnsafeMutablePointer buffer, NSRange range) { } /// <summary> /// Returns a data object containing the receiver’s bytes that fall within the limits specified by a given range. /// </summary> /// <param name="range">The range in the receiver from which to get the data. The range must not exceed the bounds of the receiver.</param> [iOSVersion(2)] [Export("subdataWithRange")] public virtual NSData SubdataWithRange(NSRange range) { return default(NSData); } /// <summary> /// Finds and returns the range of the first occurrence of the given data, within the given range, subject to given options. /// </summary> /// <param name="dataToFind">The data for which to search. This value must not be nil. /// Important /// Raises an NSInvalidArgumentException if dataToFind is nil.</param> /// <param name="options">A mask specifying search options. The NSDataSearchOptions options may be specified singly or by combining them with the C bitwise OR operator.</param> /// <param name="range">The range within the receiver in which to search for dataToFind. If this range is not within the receiver’s range of bytes, an NSRangeException raised.</param> [iOSVersion(4)] [Export("rangeOfData")] public virtual NSRange RangeOfData(NSData dataToFind, NSDataSearchOptions options, NSRange range) { return default(NSRange); } /// <summary> /// Create a Base-64, UTF-8 encoded NSData from the receiver&#39;s contents using the given options. /// </summary> /// <param name="options">A mask that specifies options for Base-64 encoding the data. Possible values are given in “NSDataBase64EncodingOptions”.</param> [iOSVersion(7)] [Export("base64EncodedDataWithOptions")] public virtual NSData Base64EncodedDataWithOptions(NSDataBase64EncodingOptions options) { return default(NSData); } /// <summary> /// Create a Base-64 encoded NSString from the receiver&#39;s contents using the given options. /// </summary> /// <param name="options">A mask that specifies options for Base-64 encoding the data. Possible values are given in “NSDataBase64EncodingOptions”.</param> [iOSVersion(7)] [Export("base64EncodedStringWithOptions")] public virtual string Base64EncodedStringWithOptions(NSDataBase64EncodingOptions options) { return default(string); } /// <summary> /// Compares the receiving data object to otherData. /// </summary> /// <param name="otherData">The data object with which to compare the receiver.</param> [iOSVersion(2)] [Export("isEqualToData")] public virtual bool IsEqualToData(NSData otherData) { return default(bool); } /// <summary> /// Writes the bytes in the receiver to the file specified by a given path. /// </summary> /// <param name="path">The location to which to write the receiver&#39;s bytes. If path contains a tilde (~) character, you must expand it with stringByExpandingTildeInPath before invoking this method.</param> /// <param name="atomically">If true, the data is written to a backup file, and then—assuming no errors occur—the backup file is renamed to the name specified by path; otherwise, the data is written directly to path.</param> [iOSVersion(2)] [Export("writeToFile")] public virtual bool WriteToFile(string path, bool atomically) { return default(bool); } /// <summary> /// Writes the bytes in the receiver to the file specified by a given path. /// </summary> /// <param name="path">The location to which to write the receiver&#39;s bytes.</param> /// <param name="options">A mask that specifies options for writing the data. Constant components are described in “NSDataWritingOptions”.</param> /// <param name="error">If there is an error writing out the data, upon return contains an NSError object that describes the problem.</param> [iOSVersion(2)] [Export("writeToFile")] public virtual bool WriteToFile(string path, NSDataWritingOptions options, NSErrorPointer error) { return default(bool); } /// <summary> /// Writes the bytes in the receiver to the location specified by aURL. /// </summary> /// <param name="aURL">The location to which to write the receiver&#39;s bytes. Only file:// URLs are supported.</param> /// <param name="atomically">If true, the data is written to a backup location, and then—assuming no errors occur—the backup location is renamed to the name specified by aURL; otherwise, the data is written directly to aURL. atomically is ignored if aURL is not of a type the supports atomic writes.</param> [iOSVersion(2)] [Export("writeToURL")] public virtual bool WriteToURL(NSURL aURL, bool atomically) { return default(bool); } /// <summary> /// Writes the bytes in the receiver to the location specified by a given URL. /// </summary> /// <param name="aURL">The location to which to write the receiver&#39;s bytes.</param> /// <param name="options">A mask that specifies options for writing the data. Constant components are described in “NSDataWritingOptions”.</param> /// <param name="error">If there is an error writing out the data, upon return contains an NSError object that describes the problem.</param> [iOSVersion(2)] [Export("writeToURL")] public virtual bool WriteToURL(NSURL aURL, NSDataWritingOptions options, NSErrorPointer error) { return default(bool); } /// <summary> /// A pointer to the receiver’s contents. (read-only) /// </summary> [iOSVersion(2)] [Export("bytes")] public UnsafePointer Bytes { get; private set; } /// <summary> /// A string that contains a hexadecimal representation of the object’s contents in a property list format. (read-only) /// </summary> [iOSVersion(2)] [Export("description")] public string Description { get; private set; } /// <summary> /// The number of bytes contained by the data object. (read-only) /// </summary> [iOSVersion(2)] [Export("length")] public int Length { get; private set; } } /// <summary> /// Options for methods used to read NSData objects. /// </summary> public enum NSDataReadingOptions { /// <summary> /// A hint indicating the file should be mapped into virtual memory, if possible and safe. /// </summary> [iOSVersion(5)] DataReadingMappedIfSafe, /// <summary> /// A hint indicating the file should not be stored in the file-system caches. /// For data being read once and discarded, this option can improve performance. /// </summary> [iOSVersion(4)] DataReadingUncached, /// <summary> /// Hint to map the file in if possible. /// This takes precedence over NSDataReadingMappedIfSafe if both are given. /// </summary> [iOSVersion(5)] DataReadingMappedAlways,
+ /// <summary> /// Deprecated name for NSDataReadingMappedIfSafe. /// </summary> [iOSVersion(4)] [Obsolete] DataReadingMapped,
+ /// <summary> /// Deprecated name for NSDataReadingMapped. /// </summary> [iOSVersion(2)] [Obsolete] MappedRead,
+ /// <summary> /// Deprecated name for NSDataReadingUncached. /// </summary> [iOSVersion(2)] [Obsolete] UncachedRead, } /// <summary> /// Options for methods used to Base-64 encode data. /// </summary> public enum NSDataBase64EncodingOptions { /// <summary> /// Set the maximum line length to 64 characters, after which a line ending is inserted. /// </summary> [iOSVersion(7)] Encoding64CharacterLineLength, /// <summary> /// Set the maximum line length to 76 characters, after which a line ending is inserted. /// </summary> [iOSVersion(7)] Encoding76CharacterLineLength, /// <summary> /// When a maximum line length is set, specify that the line ending to insert should include a carriage return. /// </summary> [iOSVersion(7)] EncodingEndLineWithCarriageReturn, /// <summary> /// When a maximum line length is set, specify that the line ending to insert should include a line feed. /// </summary> [iOSVersion(7)] EncodingEndLineWithLineFeed, } /// <summary> /// Options to modify the decoding algorithm used to decode Base-64 encoded NSData objects. /// </summary> public enum NSDataBase64DecodingOptions { /// <summary> /// Modify the decoding algorithm so that it ignores unknown non-Base-64 bytes, including line ending characters. /// </summary> [iOSVersion(7)] IgnoreUnknownCharacters, } /// <summary> /// Options for methods used to write NSData objects. /// </summary> public enum NSDataWritingOptions { /// <summary> /// A hint to write data to an auxiliary file first and then exchange the files. This option is equivalent to using a write method taking the parameter atomically:YES. /// </summary> [iOSVersion(4)] DataWritingAtomic, /// <summary> /// Hint to return prevent overwriting an existing file. Cannot be combined with NSDataWritingAtomic. /// </summary> [iOSVersion(6)] DataWritingWithoutOverwriting, /// <summary> /// A hint to set the content protection attribute of the file when writing it out. In this case, the file is not stored in an encrypted format and may be accessed at boot time and while the device is unlocked. /// </summary> [iOSVersion(4)] DataWritingFileProtectionNone, /// <summary> /// A hint to set the content protection attribute of the file when writing it out. In this case, the file is stored in an encrypted format and may be read from or written to only while the device is unlocked. At all other times, attempts to read and write the file result in failure. /// </summary> [iOSVersion(4)] DataWritingFileProtectionComplete, /// <summary> /// A hint to set the content protection attribute of the file when writing it out. In this case, the file cannot be opened for reading or writing when the device is locked, although new files can be created with this class. If one of these files is open when the device is locked, reading and writing are still allowed. /// </summary> [iOSVersion(5)] DataWritingFileProtectionCompleteUnlessOpen, /// <summary> /// A hint to set the content protection attribute of the file when writing it out. In this case, the file can be read or written to while the device is locked, but while it is booting up, they have protection equivalent to NSDataWritingFileProtectionComplete. /// </summary> [iOSVersion(5)] DataWritingFileProtectionCompleteUntilFirstUserAuthentication, /// <summary> /// A mask to use when determining the file protection options assigned to the data. /// </summary> [iOSVersion(4)] DataWritingFileProtectionMask,
+ /// <summary> /// Deprecated name for NSDataWritingAtomic. /// </summary> [iOSVersion(2)] [Obsolete] AtomicWrite, } /// <summary> /// Options for method used to search NSData objects. These options are used with the rangeOfData:options:range: method. /// </summary> public enum NSDataSearchOptions { /// <summary> /// Search from the end of NSData object. /// </summary> [iOSVersion(4)] Backwards, /// <summary> /// Search is limited to start (or end, if NSDataSearchBackwards) of NSData object. /// This option performs searching only on bytes at the beginning or end of the range. No match at the beginning or end means nothing is found, even if a matching sequence of bytes occurs elsewhere in the data object. /// </summary> [iOSVersion(4)] Anchored, } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSDataDetector.cs b/CocoaSharp/Foundation/NSDataDetector.cs
index ec6c3501..b476ceb4 100644
--- a/CocoaSharp/Foundation/NSDataDetector.cs
+++ b/CocoaSharp/Foundation/NSDataDetector.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSDataDetector class is a specialized subclass of the NSRegularExpression class designed to match data detectors. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSDataDetector_Class/index.html#//apple_ref/occ/cl/NSDataDetector"/> [iOSVersion(4)] public class NSDataDetector : NSRegularExpression//, AnyObject, NSCoding, NSCopying, NSObjectProtocol { /// <summary> /// Creates and returns a new data detector instance. /// </summary> /// <param name="checkingTypes">The checking types. The supported checking types are a subset of the types specified in NSTextCheckingType. Those constants can be combined using the C-bitwise OR operator.</param> /// <param name="error">An out parameter that if an error occurs during initialization contains the encountered error.</param> [iOSVersion(4)] [Export("dataDetectorWithTypes")] public static NSDataDetector DataDetectorWithTypes(NSTextCheckingTypes checkingTypes, NSErrorPointer error) { return default(NSDataDetector); } /// <summary> /// Initializes and returns a data detector instance. /// </summary> /// <param name="types">The checking types. The supported checking types are a subset of the types NSTextCheckingType. Those constants can be combined using the C-bitwise OR operator.</param> /// <param name="error">An out parameter that if an error occurs during initialization contains the encountered error.</param> [iOSVersion(4)] public NSDataDetector(NSTextCheckingTypes types, NSErrorPointer error) : base("", NSRegularExpressionOptions.CaseInsensitive, null) { } /// <summary> /// Returns the checking types for this data detector. (read-only) /// </summary> [iOSVersion(4)] [Export("checkingTypes")] public NSTextCheckingTypes CheckingTypes { get; private set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSDataDetector class is a specialized subclass of the NSRegularExpression class designed to match data detectors. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSDataDetector_Class/index.html#//apple_ref/occ/cl/NSDataDetector"/> [iOSVersion(4)] [Export("")] public class NSDataDetector : NSRegularExpression//, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSObjectProtocol, Printable { public NSDataDetector() { } /// <summary> /// Returns the checking types for this data detector. (read-only) /// </summary> [iOSVersion(4)] [Export("checkingTypes")] public NSTextCheckingTypes CheckingTypes { get; private set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSDate.cs b/CocoaSharp/Foundation/NSDate.cs
index 09c155f6..c1510b9e 100644
--- a/CocoaSharp/Foundation/NSDate.cs
+++ b/CocoaSharp/Foundation/NSDate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSDate objects represent a single point in time. NSDate is a class cluster; its single public superclass, NSDate, declares the programmatic interface for specific and relative time values. The objects you create using NSDate are referred to as date objects. They are immutable objects. Because of the nature of class clusters, objects returned by the NSDate class are instances not of that abstract class but of one of its private subclasses. Although a date object’s class is private, its interface is public, as declared by the abstract superclass NSDate. Generally, you instantiate a suitable date object by invoking one of the date... class methods. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSDate_Class/index.html#//apple_ref/occ/cl/NSDate"/> [iOSVersion(2)] public class NSDate : NSObject//, AnyObject, NSCoding, NSCopying, NSObjectProtocol, NSSecureCoding, Reflectable { /// <summary> /// Returns an NSDate object initialized to the current date and time. /// </summary> [iOSVersion(2)] public NSDate() { } /// <summary> /// Returns an NSDate object initialized relative to the current date and time by a given number of seconds. /// </summary> /// <param name="timeIntervalSinceNow">The number of seconds from relative to the current date and time to which the receiver should be initialized. A negative value means the returned object will represent a date in the past.</param> [iOSVersion(2)] [Export("convenience init")] public NSDate(NSTimeInterval timeIntervalSinceNow) { } /// <summary> /// Returns an NSDate object initialized relative to another given date by a given number of seconds. /// </summary> /// <param name="timeInterval">The number of seconds to add to refDate. A negative value means the receiver will be earlier than refDate.</param> /// <param name="sinceDate">The reference date.</param> [iOSVersion(2)] [Export("convenience init")] public NSDate(NSTimeInterval timeInterval, NSDate sinceDate) { } /// <summary> /// Returns an NSDate object initialized relative the first instant of 1 January 2001, GMT by a given number of seconds. /// </summary> /// <param name="timeIntervalSinceReferenceDate">The number of seconds to add to the reference date (the first instant of 1 January 2001, GMT). A negative value means the receiver will be earlier than the reference date.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [IgnoreParameter("NAME_YOUR_PARAMS")] public NSDate(NSTimeInterval timeIntervalSinceReferenceDate, bool NAME_YOUR_PARAMS = false) { } /// <summary> /// Returns an NSDate object set to the given number of seconds from the first instant of 1 January 1970, GMT. /// </summary> /// <param name="timeIntervalSince1970">The number of seconds from the reference date, 1 January 1970, GMT, for the new date. Use a negative argument to specify a date before this date.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(4)] [Export("convenience init")] [IgnoreParameter("NAME_YOUR_PARAMS")] public NSDate(NSTimeInterval timeIntervalSince1970, int NAME_YOUR_PARAMS = 0) { } /// <summary> /// Creates and returns an NSDate object representing a date in the distant future. /// </summary> [iOSVersion(2)] [Export("distantFuture")] public static AnyObject DistantFuture() { return default(AnyObject); } /// <summary> /// Creates and returns an NSDate object representing a date in the distant past. /// </summary> [iOSVersion(2)] [Export("distantPast")] public static AnyObject DistantPast() { return default(AnyObject); } /// <summary> /// Returns a Boolean value that indicates whether a given object is an NSDate object and exactly equal the receiver. /// </summary> /// <param name="anotherDate">The date to compare with the receiver.</param> [iOSVersion(2)] [Export("isEqualToDate")] public bool IsEqualToDate(NSDate anotherDate) { return default(bool); } /// <summary> /// Returns the earlier of the receiver and another given date. /// </summary> /// <param name="anotherDate">The date with which to compare the receiver.</param> [iOSVersion(2)] [Export("earlierDate")] public NSDate EarlierDate(NSDate anotherDate) { return default(NSDate); } /// <summary> /// Returns the later of the receiver and another given date. /// </summary> /// <param name="anotherDate">The date with which to compare the receiver.</param> [iOSVersion(2)] [Export("laterDate")] public NSDate LaterDate(NSDate anotherDate) { return default(NSDate); } /// <summary> /// Returns an NSComparisonResult value that indicates the temporal ordering of the receiver and another given date. /// </summary> /// <param name="anotherDate">The date with which to compare the receiver. /// This value must not be nil. If the value is nil, the behavior is undefined and may change in future versions of OS X.</param> [iOSVersion(2)] [Export("compare")] public NSComparisonResult Compare(NSDate anotherDate) { return default(NSComparisonResult); } /// <summary> /// Returns the interval between the receiver and another given date. /// </summary> /// <param name="anotherDate">The date with which to compare the receiver.</param> [iOSVersion(2)] [Export("timeIntervalSinceDate")] public NSTimeInterval TimeIntervalSinceDate(NSDate anotherDate) { return default(NSTimeInterval); } /// <summary> /// Returns the interval between the first instant of 1 January 2001, GMT and the current date and time. /// </summary> [iOSVersion(2)] [Export("timeIntervalSinceReferenceDate")] //NOTE: changed the name here public static NSTimeInterval TimeIntervalSinceReferenceDateAndNow() { return default(NSTimeInterval); } /// <summary> /// Returns a new NSDate object that is set to a given number of seconds relative to the receiver. /// </summary> /// <param name="seconds">The number of seconds to add to the receiver. Use a negative value for seconds to have the returned object specify a date before the receiver.</param> [iOSVersion(2)] [Export("dateByAddingTimeInterval")] public NSDate DateByAddingTimeInterval(NSTimeInterval seconds) { return default(NSDate); } /// <summary> /// Returns a string representation of the receiver using the given locale. /// </summary> /// <param name="locale">An NSLocale object. /// If you pass nil, NSDate formats the date in the same way as the description method. /// On OS X v10.4 and earlier, this parameter was an NSDictionary object. If you pass in an NSDictionary object on OS X v10.5, NSDate uses the default user locale—the same as if you passed in [NSLocale currentLocale].</param> [iOSVersion(4)] [Export("descriptionWithLocale")] public string DescriptionWithLocale(AnyObject locale) { return default(string); } /// <summary> /// Returns the interval between the receiver and the current date and time. /// </summary> [iOSVersion(2)] [Export("timeIntervalSinceNow")] public NSTimeInterval TimeIntervalSinceNow { get; private set; } /// <summary> /// Returns the interval between the receiver and the first instant of 1 January 2001, GMT. /// </summary> [iOSVersion(2)] [Export("timeIntervalSinceReferenceDate")] public NSTimeInterval TimeIntervalSinceReferenceDate { get; private set; } /// <summary> /// Returns the interval between the receiver and the first instant of 1 January 1970, GMT. /// </summary> [iOSVersion(2)] [Export("timeIntervalSince1970")] public NSTimeInterval TimeIntervalSince1970 { get; private set; } /// <summary> /// Returns a string representation of the receiver. /// </summary> [iOSVersion(2)] [Export("description")] public string Description { get; private set; } /// <summary> /// NSDate provides a constant that specifies the number of seconds from 1 January 1970 to the reference date, 1 January 2001. /// </summary> public Double NSTimeIntervalSince1970 { get; set; } } /// <summary> /// /// </summary> [iOSVersion(4)] public class NSSystemClockDidChangeNotification : NSNotification { public NSSystemClockDidChangeNotification() : base("", null) { } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSDate objects represent a single point in time. NSDate is a class cluster; its single public superclass, NSDate, declares the programmatic interface for specific and relative time values. The objects you create using NSDate are referred to as date objects. They are immutable objects. Because of the nature of class clusters, objects returned by the NSDate class are instances not of that abstract class but of one of its private subclasses. Although a date object’s class is private, its interface is public, as declared by the abstract superclass NSDate. Generally, you instantiate a suitable date object by invoking one of the date... class methods. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSDate_Class/index.html#//apple_ref/occ/cl/NSDate"/> [iOSVersion(2)] [Export("")] public class NSDate : NSObject//, AnyObject, CKRecordValue, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSObjectProtocol, NSSecureCoding, Printable, Reflectable { /// <summary> /// Returns an NSDate object initialized to the current date and time. /// </summary> [iOSVersion(2)] public NSDate() { } /// <summary> /// Returns an NSDate object initialized relative to the current date and time by a given number of seconds. /// </summary> /// <param name="timeIntervalSinceNow">The number of seconds from relative to the current date and time to which the receiver should be initialized. A negative value means the returned object will represent a date in the past.</param> [iOSVersion(2)] [Export("convenience init")] public NSDate(NSTimeInterval timeIntervalSinceNow) { } /// <summary> /// Returns an NSDate object initialized relative to another given date by a given number of seconds. /// </summary> /// <param name="timeInterval">The number of seconds to add to refDate. A negative value means the receiver will be earlier than refDate.</param> /// <param name="sinceDate">The reference date.</param> [iOSVersion(2)] [Export("convenience init")] public NSDate(NSTimeInterval timeInterval, NSDate sinceDate) { } /// <summary> /// Returns an NSDate object initialized relative the first instant of 1 January 2001, GMT by a given number of seconds. /// </summary> /// <param name="timeIntervalSinceReferenceDate">The number of seconds to add to the reference date (the first instant of 1 January 2001, GMT). A negative value means the receiver will be earlier than the reference date.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [IgnoreParameter("NAME_YOUR_PARAMS")] public NSDate(NSTimeInterval timeIntervalSinceReferenceDate, bool NAME_YOUR_PARAMS = false) { } /// <summary> /// Returns an NSDate object set to the given number of seconds from the first instant of 1 January 1970, GMT. /// </summary> /// <param name="timeIntervalSince1970">The number of seconds from the reference date, 1 January 1970, GMT, for the new date. Use a negative argument to specify a date before this date.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(4)] [Export("convenience init")] [IgnoreParameter("NAME_YOUR_PARAMS")] public NSDate(NSTimeInterval timeIntervalSince1970, int NAME_YOUR_PARAMS = 0) { } /// <summary> /// Creates and returns an NSDate object representing a date in the distant future. /// </summary> [iOSVersion(2)] [Export("distantFuture")] public static AnyObject DistantFuture() { return default(AnyObject); } /// <summary> /// Creates and returns an NSDate object representing a date in the distant past. /// </summary> [iOSVersion(2)] [Export("distantPast")] public static AnyObject DistantPast() { return default(AnyObject); } /// <summary> /// Returns a Boolean value that indicates whether a given object is an NSDate object and exactly equal the receiver. /// </summary> /// <param name="anotherDate">The date to compare with the receiver.</param> [iOSVersion(2)] [Export("isEqualToDate")] public virtual bool IsEqualToDate(NSDate anotherDate) { return default(bool); } /// <summary> /// Returns the earlier of the receiver and another given date. /// </summary> /// <param name="anotherDate">The date with which to compare the receiver.</param> [iOSVersion(2)] [Export("earlierDate")] public virtual NSDate EarlierDate(NSDate anotherDate) { return default(NSDate); } /// <summary> /// Returns the later of the receiver and another given date. /// </summary> /// <param name="anotherDate">The date with which to compare the receiver.</param> [iOSVersion(2)] [Export("laterDate")] public virtual NSDate LaterDate(NSDate anotherDate) { return default(NSDate); } /// <summary> /// Returns an NSComparisonResult value that indicates the temporal ordering of the receiver and another given date. /// </summary> /// <param name="anotherDate">The date with which to compare the receiver. /// This value must not be nil. If the value is nil, the behavior is undefined and may change in future versions of OS X.</param> [iOSVersion(2)] [Export("compare")] public virtual NSComparisonResult Compare(NSDate anotherDate) { return default(NSComparisonResult); } /// <summary> /// Returns the interval between the receiver and another given date. /// </summary> /// <param name="anotherDate">The date with which to compare the receiver. You must pass a non-nil date object.</param> [iOSVersion(2)] [Export("timeIntervalSinceDate")] public virtual NSTimeInterval TimeIntervalSinceDate(NSDate anotherDate) { return default(NSTimeInterval); } /// <summary> /// Returns the interval between January 1, 2001, at 12:00 a.m. GMT and the current date and time. /// </summary> [iOSVersion(2)] [Export("timeIntervalSinceReferenceDate")] public static NSTimeInterval TimeIntervalSinceReferenceDate() { return default(NSTimeInterval); } /// <summary> /// Returns a new NSDate object that is set to a given number of seconds relative to the receiver. /// </summary> /// <param name="seconds">The number of seconds to add to the receiver. Use a negative value for seconds to have the returned object specify a date before the receiver.</param> [iOSVersion(2)] [Export("dateByAddingTimeInterval")] [return:Unwrapped] public virtual NSDate DateByAddingTimeInterval(NSTimeInterval seconds) { return default(NSDate); } /// <summary> /// Returns a string representation of the receiver using the given locale. /// </summary> /// <param name="locale">An NSLocale object. /// If you pass nil, NSDate formats the date in the same way as the description property. /// On OS X v10.4 and earlier, this parameter was an NSDictionary object. If you pass in an NSDictionary object on OS X v10.5, NSDate uses the default user locale—the same as if you passed in [NSLocale currentLocale].</param> [iOSVersion(4)] [Export("descriptionWithLocale")] [return:Optional] public virtual string DescriptionWithLocale([Optional] AnyObject locale) { return default(string); } /// <summary> /// The time interval between the date object and the current date and time. (read-only) /// </summary> [iOSVersion(2)] [Export("timeIntervalSinceNow")] public NSTimeInterval TimeIntervalSinceNow { get; private set; } /// <summary> /// Returns the interval between the date object and January 1, 2001, at 12:00 a.m. GMT. (read-only) /// </summary> [iOSVersion(2)] [Export("timeIntervalSinceReferenceDate")] public NSTimeInterval InstanceTimeIntervalSinceReferenceDate { get; private set; } /// <summary> /// The interval between the date object and January 1, 1970 at 12:00 a.m. GMT. (read-only) /// </summary> [iOSVersion(2)] [Export("timeIntervalSince1970")] public NSTimeInterval TimeIntervalSince1970 { get; private set; } /// <summary> /// A string representation of the date object. (read-only) /// </summary> [iOSVersion(2)] [Export("description")] public string Description { get; private set; } /// <summary> /// NSDate provides a constant that specifies the number of seconds from 1 January 1970 to the reference date, 1 January 2001. /// </summary> public Double NSTimeIntervalSince1970 { get; private set; } } /// <summary> /// Posted whenever the system clock is changed. This can be initiated by a call to settimeofday() or the user changing values in the Date and Time Preference panel. The notification object is null. This notification does not contain a userInfo dictionary. /// </summary> public class NSSystemClockDidChangeNotification : NSNotification { public NSSystemClockDidChangeNotification() : base("", null) { } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSDateComponents.cs b/CocoaSharp/Foundation/NSDateComponents.cs
index 401bdd22..e198a22c 100644
--- a/CocoaSharp/Foundation/NSDateComponents.cs
+++ b/CocoaSharp/Foundation/NSDateComponents.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSDateComponents encapsulates the components of a date in an extendable, object-oriented manner. It is used to specify a date by providing the temporal components that make up a date and time: hour, minutes, seconds, day, month, year, and so on. It can also be used to specify a duration of time, for example, 5 hours and 16 minutes. An NSDateComponents object is not required to define all the component fields. When a new instance of NSDateComponents is created the date components are set to NSUndefinedDateComponent. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSDateComponents_Class/index.html#//apple_ref/occ/cl/NSDateComponents"/> [iOSVersion(2)] public class NSDateComponents : NSObject//, AnyObject, NSCoding, NSCopying, NSObjectProtocol, NSSecureCoding { /// <summary> /// The date of the receiver. (read-only) /// </summary> [iOSVersion(4)] [Export("date")] public NSDate Date { get; private set; } /// <summary> /// The calendar used to interpret the components of the receiver. /// </summary> [iOSVersion(4)] [Export("calendar")] public NSCalendar Calendar { get; set; } /// <summary> /// The time zone used to interpret the components of the receiver. /// </summary> [iOSVersion(4)] [Export("timeZone")] public NSTimeZone TimeZone { get; set; } /// <summary> /// The number of era units for the receiver. /// </summary> [iOSVersion(2)] [Export("era")] public int Era { get; set; } /// <summary> /// The number of year units for the receiver. /// </summary> [iOSVersion(2)] [Export("year")] public int Year { get; set; } /// <summary> /// The number of month units for the receiver. /// </summary> [iOSVersion(2)] [Export("month")] public int Month { get; set; } /// <summary> /// The number of day units for the receiver. /// </summary> [iOSVersion(2)] [Export("day")] public int Day { get; set; } /// <summary> /// The number of hour units for the receiver. /// </summary> [iOSVersion(2)] [Export("hour")] public int Hour { get; set; } /// <summary> /// The number of minute units for the receiver. /// </summary> [iOSVersion(2)] [Export("minute")] public int Minute { get; set; } /// <summary> /// The number of second units for the receiver. /// </summary> [iOSVersion(2)] [Export("second")] public int Second { get; set; } /// <summary> /// The number of nanosecond units for the receiver. /// </summary> [iOSVersion(5)] [Export("nanosecond")] public int Nanosecond { get; set; } /// <summary> /// The number of the weekday unit for the receiver. /// </summary> [iOSVersion(2)] [Export("weekday")] public int Weekday { get; set; } /// <summary> /// The ordinal number of weekday units for the receiver. /// </summary> [iOSVersion(2)] [Export("weekdayOrdinal")] public int WeekdayOrdinal { get; set; } /// <summary> /// The number of quarters for the receiver. /// </summary> [iOSVersion(4)] [Export("quarter")] public int Quarter { get; set; } /// <summary> /// The week number of the month for the receiver. /// </summary> [iOSVersion(5)] [Export("weekOfMonth")] public int WeekOfMonth { get; set; } /// <summary> /// The week of the year for the receiver. /// </summary> [iOSVersion(5)] [Export("weekOfYear")] public int WeekOfYear { get; set; } /// <summary> /// The year for the week of the year. /// </summary> [iOSVersion(5)] [Export("yearForWeekOfYear")] public int YearForWeekOfYear { get; set; } /// <summary> /// Boolean value that indicates whether the month is a leap month. /// </summary> [iOSVersion(6)] [Export("leapMonth")] public bool LeapMonth { get; set; } /// <summary> /// This constant specifies that an NSDateComponents component is undefined. /// </summary> public int NSUndefinedDateComponent { get; set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSDateComponents encapsulates the components of a date in an extendable, object-oriented manner. It is used to specify a date by providing the temporal components that make up a date and time: hour, minutes, seconds, day, month, year, and so on. It can also be used to specify a duration of time, for example, 5 hours and 16 minutes. An NSDateComponents object is not required to define all the component fields. When a new instance of NSDateComponents is created the date components are set to NSUndefinedDateComponent. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSDateComponents_Class/index.html#//apple_ref/occ/cl/NSDateComponents"/> [iOSVersion(2)] [Export("")] public class NSDateComponents : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSObjectProtocol, NSSecureCoding, Printable { public NSDateComponents() { } /// <summary> /// The date of the receiver. (read-only) /// </summary> [iOSVersion(4)] [Export("date")] [Optional] public NSDate Date { get; private set; } /// <summary> /// The calendar used to interpret the components of the receiver. /// </summary> [iOSVersion(4)] [Export("calendar")] [Optional] public NSCalendar Calendar { get; set; } /// <summary> /// The time zone used to interpret the components of the receiver. /// </summary> [iOSVersion(4)] [Export("timeZone")] [Optional] public NSTimeZone TimeZone { get; set; } /// <summary> /// The number of era units for the receiver. /// </summary> [iOSVersion(2)] [Export("era")] public int Era { get; set; } /// <summary> /// The number of year units for the receiver. /// </summary> [iOSVersion(2)] [Export("year")] public int Year { get; set; } /// <summary> /// The number of month units for the receiver. /// </summary> [iOSVersion(2)] [Export("month")] public int Month { get; set; } /// <summary> /// The number of day units for the receiver. /// </summary> [iOSVersion(2)] [Export("day")] public int Day { get; set; } /// <summary> /// The number of hour units for the receiver. /// </summary> [iOSVersion(2)] [Export("hour")] public int Hour { get; set; } /// <summary> /// The number of minute units for the receiver. /// </summary> [iOSVersion(2)] [Export("minute")] public int Minute { get; set; } /// <summary> /// The number of second units for the receiver. /// </summary> [iOSVersion(2)] [Export("second")] public int Second { get; set; } /// <summary> /// The number of nanosecond units for the receiver. /// </summary> [iOSVersion(5)] [Export("nanosecond")] public int Nanosecond { get; set; } /// <summary> /// The number of the weekday unit for the receiver. /// </summary> [iOSVersion(2)] [Export("weekday")] public int Weekday { get; set; } /// <summary> /// The ordinal number of weekday units for the receiver. /// </summary> [iOSVersion(2)] [Export("weekdayOrdinal")] public int WeekdayOrdinal { get; set; } /// <summary> /// The number of quarters for the receiver. /// </summary> [iOSVersion(4)] [Export("quarter")] public int Quarter { get; set; } /// <summary> /// The week number of the month for the receiver. /// </summary> [iOSVersion(5)] [Export("weekOfMonth")] public int WeekOfMonth { get; set; } /// <summary> /// The week of the year for the receiver. /// </summary> [iOSVersion(5)] [Export("weekOfYear")] public int WeekOfYear { get; set; } /// <summary> /// The year for the week of the year. /// </summary> [iOSVersion(5)] [Export("yearForWeekOfYear")] public int YearForWeekOfYear { get; set; } /// <summary> /// Boolean value that indicates whether the month is a leap month. /// </summary> [iOSVersion(6)] [Export("leapMonth")] public bool LeapMonth { get; set; } /// <summary> /// This constant specifies that an NSDateComponents component is undefined. /// </summary> public int NSUndefinedDateComponent { get; private set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSDateFormatter.cs b/CocoaSharp/Foundation/NSDateFormatter.cs
index 3a9c7424..e85ada4e 100644
--- a/CocoaSharp/Foundation/NSDateFormatter.cs
+++ b/CocoaSharp/Foundation/NSDateFormatter.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// Instances of NSDateFormatter create string representations of NSDate objects, and convert textual representations of dates and times into NSDate objects. You can express the representation of dates and times flexibly using pre-set format styles or custom format strings. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSDateFormatter_Class/index.html#//apple_ref/occ/cl/NSDateFormatter"/> [iOSVersion(2)] public class NSDateFormatter : NSFormatter//, AnyObject, NSCoding, NSCopying, NSObjectProtocol { /// <summary> /// Returns a date representation of a given string interpreted using the receiver’s current settings. /// </summary> /// <param name="@string">The string to parse.</param> [iOSVersion(2)] [Export("dateFromString")] public NSDate DateFromString(string @string) { return default(NSDate); } /// <summary> /// Returns a string representation of a given date formatted using the receiver’s current settings. /// </summary> /// <param name="date">The date to format.</param> [iOSVersion(2)] [Export("stringFromDate")] public string StringFromDate(NSDate date) { return default(string); } /// <summary> /// Returns string representation of a given date formatted for the current locale using the specified date and time styles. /// </summary> /// <param name="date">A date.</param> /// <param name="dateStyle">A format style for the date. For possible values, see NSDateFormatterStyle.</param> /// <param name="timeStyle">A format style for the time. For possible values, see NSDateFormatterStyle.</param> [iOSVersion(4)] [Export("localizedStringFromDate")] public static string LocalizedStringFromDate(NSDate date, NSDateFormatterStyle dateStyle, NSDateFormatterStyle timeStyle) { return default(string); } /// <summary> /// Returns by reference a date representation of a given string and the range of the string used, and returns a Boolean value that indicates whether the string could be parsed. /// </summary> /// <param name="obj">If the receiver is able to parse string, upon return contains a date representation of string.</param> /// <param name="forString">The string to parse.</param> /// <param name="range">If the receiver is able to parse string, upon return contains the range of string used to create the date.</param> /// <param name="error">If the receiver is unable to create a date by parsing string, upon return contains an NSError object that describes the problem.</param> [iOSVersion(2)] [Export("getObjectValue")] public bool GetObjectValue(AutoreleasingUnsafePointer<AnyObject> obj, string forString, UnsafePointer<NSRange> range, NSErrorPointer error) { return default(bool); } /// <summary> /// Returns a localized date format string representing the given date format components arranged appropriately for the specified locale. /// </summary> /// <param name="template">A string containing date format patterns (such as “MM” or “h”). /// For full details, see Date and Time Programming Guide.</param> /// <param name="options">No options are currently defined—pass 0.</param> /// <param name="locale">The locale for which the template is required.</param> [iOSVersion(4)] [Export("dateFormatFromTemplate")] public static string DateFormatFromTemplate(string template, int options, NSLocale locale) { return default(string); } /// <summary> /// Returns the default formatting behavior for instances of the class. /// </summary> [iOSVersion(2)] [Export("defaultFormatterBehavior")] public static NSDateFormatterBehavior DefaultFormatterBehavior() { return default(NSDateFormatterBehavior); } /// <summary> /// Sets the default formatting behavior for instances of the class. /// </summary> /// <param name="behavior">The default formatting behavior for instances of the class. For possible values, see NSDateFormatterBehavior.</param> [iOSVersion(2)] [Export("setDefaultFormatterBehavior")] public static void SetDefaultFormatterBehavior(NSDateFormatterBehavior behavior) { } /// <summary> /// You should not use this property. /// </summary> [iOSVersion(2)] [Export("generatesCalendarDates")] public bool GeneratesCalendarDates { get; set; } /// <summary> /// The date format string used by the receiver. /// </summary> [iOSVersion(2)] [Export("dateFormat")] public string DateFormat { get; set; } /// <summary> /// The date style of the receiver. /// </summary> [iOSVersion(2)] [Export("dateStyle")] public NSDateFormatterStyle DateStyle { get; set; } /// <summary> /// The time style of the receiver. /// </summary> [iOSVersion(2)] [Export("timeStyle")] public NSDateFormatterStyle TimeStyle { get; set; } /// <summary> /// The calendar for the receiver. /// </summary> [iOSVersion(2)] [Export("calendar")] public NSCalendar Calendar { get; set; } /// <summary> /// The default date for the receiver. /// </summary> [iOSVersion(2)] [Export("defaultDate")] public NSDate DefaultDate { get; set; } /// <summary> /// The locale for the receiver. /// </summary> [iOSVersion(2)] [Export("locale")] public NSLocale Locale { get; set; } /// <summary> /// The time zone for the receiver. /// </summary> [iOSVersion(2)] [Export("timeZone")] public NSTimeZone TimeZone { get; set; } /// <summary> /// The earliest date that can be denoted by a two-digit year specifier. /// </summary> [iOSVersion(2)] [Export("twoDigitStartDate")] public NSDate TwoDigitStartDate { get; set; } /// <summary> /// The start date of the Gregorian calendar for the receiver. /// </summary> [iOSVersion(2)] [Export("gregorianStartDate")] public NSDate GregorianStartDate { get; set; } /// <summary> /// The formatter behavior for the receiver. /// </summary> [iOSVersion(2)] [Export("formatterBehavior")] public NSDateFormatterBehavior FormatterBehavior { get; set; } /// <summary> /// A Boolean value that indicates whether the receiver uses heuristics when parsing a string. /// </summary> [iOSVersion(8)] [Export("lenient")] public bool Lenient { get; set; } /// <summary> /// A Boolean value that indicates whether the receiver uses phrases such as “today” and “tomorrow” for the date component. /// </summary> [iOSVersion(4)] [Export("doesRelativeDateFormatting")] public bool DoesRelativeDateFormatting { get; set; } /// <summary> /// The AM symbol for the receiver. /// </summary> [iOSVersion(2)] public string AMSymbol { get; set; } /// <summary> /// The PM symbol for the receiver. /// </summary> [iOSVersion(2)] public string PMSymbol { get; set; } /// <summary> /// The array of weekday symbols for the receiver. /// </summary> [iOSVersion(2)] [Export("weekdaySymbols")] public AnyObject[] WeekdaySymbols { get; set; } /// <summary> /// The array of short weekday symbols for the receiver. /// </summary> [iOSVersion(2)] [Export("shortWeekdaySymbols")] public AnyObject[] ShortWeekdaySymbols { get; set; } /// <summary> /// The array of very short weekday symbols for the receiver. /// </summary> [iOSVersion(2)] [Export("veryShortWeekdaySymbols")] public AnyObject[] VeryShortWeekdaySymbols { get; set; } /// <summary> /// The array of standalone weekday symbols for the receiver. /// </summary> [iOSVersion(2)] [Export("standaloneWeekdaySymbols")] public AnyObject[] StandaloneWeekdaySymbols { get; set; } /// <summary> /// The array of short standalone weekday symbols for the receiver. /// </summary> [iOSVersion(2)] [Export("shortStandaloneWeekdaySymbols")] public AnyObject[] ShortStandaloneWeekdaySymbols { get; set; } /// <summary> /// The array of very short standalone weekday symbols for the receiver. /// </summary> [iOSVersion(2)] [Export("veryShortStandaloneWeekdaySymbols")] public AnyObject[] VeryShortStandaloneWeekdaySymbols { get; set; } /// <summary> /// The month symbols for the receiver. /// </summary> [iOSVersion(2)] [Export("monthSymbols")] public AnyObject[] MonthSymbols { get; set; } /// <summary> /// The array of short month symbols for the receiver. /// </summary> [iOSVersion(2)] [Export("shortMonthSymbols")] public AnyObject[] ShortMonthSymbols { get; set; } /// <summary> /// The very short month symbols for the receiver. /// </summary> [iOSVersion(2)] [Export("veryShortMonthSymbols")] public AnyObject[] VeryShortMonthSymbols { get; set; } /// <summary> /// The standalone month symbols for the receiver. /// </summary> [iOSVersion(2)] [Export("standaloneMonthSymbols")] public AnyObject[] StandaloneMonthSymbols { get; set; } /// <summary> /// The short standalone month symbols for the receiver. /// </summary> [iOSVersion(2)] [Export("shortStandaloneMonthSymbols")] public AnyObject[] ShortStandaloneMonthSymbols { get; set; } /// <summary> /// The very short month symbols for the receiver. /// </summary> [iOSVersion(2)] [Export("veryShortStandaloneMonthSymbols")] public AnyObject[] VeryShortStandaloneMonthSymbols { get; set; } /// <summary> /// The quarter symbols for the receiver. /// </summary> [iOSVersion(2)] [Export("quarterSymbols")] public AnyObject[] QuarterSymbols { get; set; } /// <summary> /// The short quarter symbols for the receiver. /// </summary> [iOSVersion(2)] [Export("shortQuarterSymbols")] public AnyObject[] ShortQuarterSymbols { get; set; } /// <summary> /// The standalone quarter symbols for the receiver. /// </summary> [iOSVersion(2)] [Export("standaloneQuarterSymbols")] public AnyObject[] StandaloneQuarterSymbols { get; set; } /// <summary> /// The short standalone quarter symbols for the receiver. /// </summary> [iOSVersion(2)] [Export("shortStandaloneQuarterSymbols")] public AnyObject[] ShortStandaloneQuarterSymbols { get; set; } /// <summary> /// The era symbols for the receiver. /// </summary> [iOSVersion(2)] [Export("eraSymbols")] public AnyObject[] EraSymbols { get; set; } /// <summary> /// The long era symbols for the receiver /// </summary> [iOSVersion(2)] [Export("longEraSymbols")] public AnyObject[] LongEraSymbols { get; set; } } /// <summary> /// The following constants specify predefined format styles for dates and times. /// </summary> [iOSVersion(2)] public enum NSDateFormatterStyle { /// <summary> /// Specifies no style. /// Equal to kCFDateFormatterNoStyle. /// </summary> [iOSVersion(2)] NoStyle, /// <summary> /// Specifies a short style, typically numeric only, such as “11/23/37” or “3:30 PM”. /// Equal to kCFDateFormatterShortStyle. /// </summary> [iOSVersion(2)] ShortStyle, /// <summary> /// Specifies a medium style, typically with abbreviated text, such as “Nov 23, 1937” or “3:30:32 PM”. /// Equal to kCFDateFormatterMediumStyle. /// </summary> [iOSVersion(2)] MediumStyle, /// <summary> /// Specifies a long style, typically with full text, such as “November 23, 1937” or “3:30:32 PM PST”. /// Equal to kCFDateFormatterLongStyle. /// </summary> [iOSVersion(2)] LongStyle, /// <summary> /// Specifies a full style with complete details, such as “Tuesday, April 12, 1952 AD” or “3:30:42 PM Pacific Standard Time”. /// Equal to kCFDateFormatterFullStyle. /// </summary> [iOSVersion(2)] FullStyle, } /// <summary> /// Constants that specify the behavior NSDateFormatter should exhibit. /// </summary> [iOSVersion(2)] public enum NSDateFormatterBehavior { /// <summary> /// Specifies default formatting behavior. /// </summary> [iOSVersion(2)] BehaviorDefault, /// <summary> /// Specifies formatting behavior equivalent for OS X v10.4. /// </summary> [iOSVersion(2)] Behavior10_4, } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// Instances of NSDateFormatter create string representations of NSDate objects, and convert textual representations of dates and times into NSDate objects. You can express the representation of dates and times flexibly using pre-set format styles or custom format strings. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSDateFormatter_Class/index.html#//apple_ref/occ/cl/NSDateFormatter"/> [iOSVersion(2)] [Export("")] public class NSDateFormatter : NSFormatter//, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSObjectProtocol, Printable { public NSDateFormatter() { } /// <summary> /// Returns a date representation of a given string interpreted using the receiver’s current settings. /// </summary> /// <param name="@string">The string to parse.</param> [iOSVersion(2)] [Export("dateFromString")] [return:Optional] public virtual NSDate DateFromString(string @string) { return default(NSDate); } /// <summary> /// Returns a string representation of a given date formatted using the receiver’s current settings. /// </summary> /// <param name="date">The date to format.</param> [iOSVersion(2)] [Export("stringFromDate")] public virtual string StringFromDate(NSDate date) { return default(string); } /// <summary> /// Returns string representation of a given date formatted for the current locale using the specified date and time styles. /// </summary> /// <param name="date">A date.</param> /// <param name="dateStyle">A format style for the date. For possible values, see NSDateFormatterStyle.</param> /// <param name="timeStyle">A format style for the time. For possible values, see NSDateFormatterStyle.</param> [iOSVersion(4)] [Export("localizedStringFromDate")] public static string LocalizedStringFromDate(NSDate date, NSDateFormatterStyle dateStyle, NSDateFormatterStyle timeStyle) { return default(string); } /// <summary> /// Returns by reference a date representation of a given string and the range of the string used, and returns a Boolean value that indicates whether the string could be parsed. /// </summary> /// <param name="obj">If the receiver is able to parse string, upon return contains a date representation of string.</param> /// <param name="forString">The string to parse.</param> /// <param name="range">If the receiver is able to parse string, upon return contains the range of string used to create the date.</param> /// <param name="error">If the receiver is unable to create a date by parsing string, upon return contains an NSError object that describes the problem.</param> [iOSVersion(2)] [Export("getObjectValue")] public virtual bool GetObjectValue(AutoreleasingUnsafeMutablePointer<AnyObject> obj, string forString, UnsafeMutablePointer<NSRange> range, NSErrorPointer error) { return default(bool); } /// <summary> /// Returns a localized date format string representing the given date format components arranged appropriately for the specified locale. /// </summary> /// <param name="template">A string containing date format patterns (such as “MM” or “h”). /// For full details, see Date and Time Programming Guide.</param> /// <param name="options">No options are currently defined—pass 0.</param> /// <param name="locale">The locale for which the template is required.</param> [iOSVersion(4)] [Export("dateFormatFromTemplate")] [return:Optional] public static string DateFormatFromTemplate(string template, int options, [Optional] NSLocale locale) { return default(string); } /// <summary> /// Returns the default formatting behavior for instances of the class. /// </summary> [iOSVersion(2)] [Export("defaultFormatterBehavior")] public static NSDateFormatterBehavior DefaultFormatterBehavior() { return default(NSDateFormatterBehavior); } /// <summary> /// Sets the default formatting behavior for instances of the class. /// </summary> /// <param name="behavior">The default formatting behavior for instances of the class. For possible values, see NSDateFormatterBehavior.</param> [iOSVersion(2)] [Export("setDefaultFormatterBehavior")] public static void SetDefaultFormatterBehavior(NSDateFormatterBehavior behavior) { } /// <summary> /// You should not use this property. /// </summary> [iOSVersion(2)] [Export("generatesCalendarDates")] public bool GeneratesCalendarDates { get; set; } /// <summary> /// The date format string used by the receiver. /// </summary> [iOSVersion(2)] [Export("dateFormat")] [Unwrapped] public string DateFormat { get; set; } /// <summary> /// The date style of the receiver. /// </summary> [iOSVersion(2)] [Export("dateStyle")] public NSDateFormatterStyle DateStyle { get; set; } /// <summary> /// The time style of the receiver. /// </summary> [iOSVersion(2)] [Export("timeStyle")] public NSDateFormatterStyle TimeStyle { get; set; } /// <summary> /// The calendar for the receiver. /// </summary> [iOSVersion(2)] [Export("calendar")] [Unwrapped] public NSCalendar Calendar { get; set; } /// <summary> /// The default date for the receiver. /// </summary> [iOSVersion(2)] [Export("defaultDate")] [Optional] public NSDate DefaultDate { get; set; } /// <summary> /// The locale for the receiver. /// </summary> [iOSVersion(2)] [Export("locale")] [Unwrapped] public NSLocale Locale { get; set; } /// <summary> /// The time zone for the receiver. /// </summary> [iOSVersion(2)] [Export("timeZone")] [Unwrapped] public NSTimeZone TimeZone { get; set; } /// <summary> /// The earliest date that can be denoted by a two-digit year specifier. /// </summary> [iOSVersion(2)] [Export("twoDigitStartDate")] [Unwrapped] public NSDate TwoDigitStartDate { get; set; } /// <summary> /// The start date of the Gregorian calendar for the receiver. /// </summary> [iOSVersion(2)] [Export("gregorianStartDate")] [Unwrapped] public NSDate GregorianStartDate { get; set; } /// <summary> /// The formatter behavior for the receiver. /// </summary> [iOSVersion(2)] [Export("formatterBehavior")] public NSDateFormatterBehavior FormatterBehavior { get; set; } /// <summary> /// A Boolean value that indicates whether the receiver uses heuristics when parsing a string. /// </summary> [iOSVersion(8)] [Export("lenient")] public bool Lenient { get; set; } /// <summary> /// A Boolean value that indicates whether the receiver uses phrases such as “today” and “tomorrow” for the date component. /// </summary> [iOSVersion(4)] [Export("doesRelativeDateFormatting")] public bool DoesRelativeDateFormatting { get; set; } /// <summary> /// The AM symbol for the receiver. /// </summary> [iOSVersion(2)] [Unwrapped] public string AMSymbol { get; set; } /// <summary> /// The PM symbol for the receiver. /// </summary> [iOSVersion(2)] [Unwrapped] public string PMSymbol { get; set; } /// <summary> /// The array of weekday symbols for the receiver. /// </summary> [iOSVersion(2)] [Export("weekdaySymbols")] public AnyObject[] WeekdaySymbols { get; set; } /// <summary> /// The array of short weekday symbols for the receiver. /// </summary> [iOSVersion(2)] [Export("shortWeekdaySymbols")] public AnyObject[] ShortWeekdaySymbols { get; set; } /// <summary> /// The array of very short weekday symbols for the receiver. /// </summary> [iOSVersion(2)] [Export("veryShortWeekdaySymbols")] public AnyObject[] VeryShortWeekdaySymbols { get; set; } /// <summary> /// The array of standalone weekday symbols for the receiver. /// </summary> [iOSVersion(2)] [Export("standaloneWeekdaySymbols")] public AnyObject[] StandaloneWeekdaySymbols { get; set; } /// <summary> /// The array of short standalone weekday symbols for the receiver. /// </summary> [iOSVersion(2)] [Export("shortStandaloneWeekdaySymbols")] public AnyObject[] ShortStandaloneWeekdaySymbols { get; set; } /// <summary> /// The array of very short standalone weekday symbols for the receiver. /// </summary> [iOSVersion(2)] [Export("veryShortStandaloneWeekdaySymbols")] public AnyObject[] VeryShortStandaloneWeekdaySymbols { get; set; } /// <summary> /// The month symbols for the receiver. /// </summary> [iOSVersion(2)] [Export("monthSymbols")] public AnyObject[] MonthSymbols { get; set; } /// <summary> /// The array of short month symbols for the receiver. /// </summary> [iOSVersion(2)] [Export("shortMonthSymbols")] public AnyObject[] ShortMonthSymbols { get; set; } /// <summary> /// The very short month symbols for the receiver. /// </summary> [iOSVersion(2)] [Export("veryShortMonthSymbols")] public AnyObject[] VeryShortMonthSymbols { get; set; } /// <summary> /// The standalone month symbols for the receiver. /// </summary> [iOSVersion(2)] [Export("standaloneMonthSymbols")] public AnyObject[] StandaloneMonthSymbols { get; set; } /// <summary> /// The short standalone month symbols for the receiver. /// </summary> [iOSVersion(2)] [Export("shortStandaloneMonthSymbols")] public AnyObject[] ShortStandaloneMonthSymbols { get; set; } /// <summary> /// The very short month symbols for the receiver. /// </summary> [iOSVersion(2)] [Export("veryShortStandaloneMonthSymbols")] public AnyObject[] VeryShortStandaloneMonthSymbols { get; set; } /// <summary> /// The quarter symbols for the receiver. /// </summary> [iOSVersion(2)] [Export("quarterSymbols")] public AnyObject[] QuarterSymbols { get; set; } /// <summary> /// The short quarter symbols for the receiver. /// </summary> [iOSVersion(2)] [Export("shortQuarterSymbols")] public AnyObject[] ShortQuarterSymbols { get; set; } /// <summary> /// The standalone quarter symbols for the receiver. /// </summary> [iOSVersion(2)] [Export("standaloneQuarterSymbols")] public AnyObject[] StandaloneQuarterSymbols { get; set; } /// <summary> /// The short standalone quarter symbols for the receiver. /// </summary> [iOSVersion(2)] [Export("shortStandaloneQuarterSymbols")] public AnyObject[] ShortStandaloneQuarterSymbols { get; set; } /// <summary> /// The era symbols for the receiver. /// </summary> [iOSVersion(2)] [Export("eraSymbols")] public AnyObject[] EraSymbols { get; set; } /// <summary> /// The long era symbols for the receiver /// </summary> [iOSVersion(2)] [Export("longEraSymbols")] public AnyObject[] LongEraSymbols { get; set; } } /// <summary> /// The following constants specify predefined format styles for dates and times. /// </summary> public enum NSDateFormatterStyle { /// <summary> /// Specifies no style. /// Equal to kCFDateFormatterNoStyle. /// </summary> [iOSVersion(2)] NoStyle, /// <summary> /// Specifies a short style, typically numeric only, such as “11/23/37” or “3:30 PM”. /// Equal to kCFDateFormatterShortStyle. /// </summary> [iOSVersion(2)] ShortStyle, /// <summary> /// Specifies a medium style, typically with abbreviated text, such as “Nov 23, 1937” or “3:30:32 PM”. /// Equal to kCFDateFormatterMediumStyle. /// </summary> [iOSVersion(2)] MediumStyle, /// <summary> /// Specifies a long style, typically with full text, such as “November 23, 1937” or “3:30:32 PM PST”. /// Equal to kCFDateFormatterLongStyle. /// </summary> [iOSVersion(2)] LongStyle, /// <summary> /// Specifies a full style with complete details, such as “Tuesday, April 12, 1952 AD” or “3:30:42 PM Pacific Standard Time”. /// Equal to kCFDateFormatterFullStyle. /// </summary> [iOSVersion(2)] FullStyle, } /// <summary> /// Constants that specify the behavior NSDateFormatter should exhibit. /// </summary> public enum NSDateFormatterBehavior { /// <summary> /// Specifies default formatting behavior. /// </summary> [iOSVersion(2)] BehaviorDefault, /// <summary> /// Specifies formatting behavior equivalent for OS X v10.4. /// </summary> [iOSVersion(2)] Behavior10_4, } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSDecimalNumber.cs b/CocoaSharp/Foundation/NSDecimalNumber.cs
index 2baec31e..359c0d7e 100644
--- a/CocoaSharp/Foundation/NSDecimalNumber.cs
+++ b/CocoaSharp/Foundation/NSDecimalNumber.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSDecimalNumber, an immutable subclass of NSNumber, provides an object-oriented wrapper for doing base-10 arithmetic. An instance can represent any number that can be expressed as mantissa x 10^exponent where mantissa is a decimal integer up to 38 digits long, and exponent is an integer from –128 through 127. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSDecimalNumber_Class/index.html#//apple_ref/occ/cl/NSDecimalNumber"/> [iOSVersion(2)] public class NSDecimalNumber : NSNumber//, AnyObject, BooleanLiteralConvertible, FloatLiteralConvertible, IntegerLiteralConvertible, NSCoding, NSCopying, NSObjectProtocol, NSSecureCoding { /// <summary> /// Creates and returns an NSDecimalNumber object equivalent to the number specified by the arguments. /// </summary> /// <param name="mantissa">The mantissa for the new decimal number object.</param> /// <param name="exponent">The exponent for the new decimal number object.</param> /// <param name="isNegative">A Boolean value that specifies whether the sign of the number is negative.</param> [iOSVersion(2)] [Export("decimalNumberWithMantissa")] public static NSDecimalNumber DecimalNumberWithMantissa(UInt64 mantissa, Int16 exponent, bool isNegative) { return default(NSDecimalNumber); } /// <summary> /// Creates and returns an NSDecimalNumber object whose value is equivalent to that in a given numeric string. /// </summary> /// <param name="numericString">A numeric string. /// Besides digits, numericString can include an initial “+” or “–”; a single “E” or “e”, to indicate the exponent of a number in scientific notation; and a single NSLocaleDecimalSeparator to divide the fractional from the integral part of the number.</param> [iOSVersion(2)] [Export("decimalNumberWithString")] public static NSDecimalNumber DecimalNumberWithString(string numericString) { return default(NSDecimalNumber); } /// <summary> /// Creates and returns an NSDecimalNumber object whose value is equivalent to that in a given numeric string, interpreted using a given locale. /// </summary> /// <param name="numericString">A numeric string. /// Besides digits, numericString can include an initial “+” or “–”; a single “E” or “e”, to indicate the exponent of a number in scientific notation; and a single NSLocaleDecimalSeparator to divide the fractional from the integral part of the number.</param> /// <param name="locale">A dictionary that defines the locale (specifically the NSLocaleDecimalSeparator) to use to interpret the number in numericString.</param> [iOSVersion(2)] [Export("decimalNumberWithString")] public static NSDecimalNumber DecimalNumberWithString(string numericString, AnyObject locale) { return default(NSDecimalNumber); } /// <summary> /// Returns an NSDecimalNumber object equivalent to the number 1.0. /// </summary> [iOSVersion(2)] [Export("one")] public static NSDecimalNumber One() { return default(NSDecimalNumber); } /// <summary> /// Returns an NSDecimalNumber object equivalent to the number 0.0. /// </summary> [iOSVersion(2)] [Export("zero")] public static NSDecimalNumber Zero() { return default(NSDecimalNumber); } /// <summary> /// Returns an NSDecimalNumber object that specifies no number. /// </summary> [iOSVersion(2)] [Export("notANumber")] public static NSDecimalNumber NotANumber() { return default(NSDecimalNumber); } /// <summary> /// Returns an NSDecimalNumber object initialized using the given mantissa, exponent, and sign. /// </summary> /// <param name="mantissa">The mantissa for the new decimal number object.</param> /// <param name="exponent">The exponent for the new decimal number object.</param> /// <param name="isNegative">A Boolean value that specifies whether the sign of the number is negative.</param> [iOSVersion(2)] [Export("convenience init")] public NSDecimalNumber(UInt64 mantissa, Int16 exponent, bool isNegative) : base(false) { } /// <summary> /// Returns an NSDecimalNumber object initialized so that its value is equivalent to that in a given numeric string. /// </summary> /// <param name="@string">A numeric string. /// Besides digits, numericString can include an initial “+” or “–”; a single “E” or “e”, to indicate the exponent of a number in scientific notation; and a single NSLocaleDecimalSeparator to divide the fractional from the integral part of the number. For a listing of acceptable and unacceptable strings, see the class method decimalNumberWithString:locale:.</param> [iOSVersion(2)] [Export("convenience init")] public NSDecimalNumber(string @string) : base(false) { } /// <summary> /// Returns an NSDecimalNumber object initialized so that its value is equivalent to that in a given numeric string, interpreted using a given locale. /// </summary> /// <param name="@string">A numeric string. /// Besides digits, numericString can include an initial “+” or “–”; a single “E” or “e”, to indicate the exponent of a number in scientific notation; and a single NSLocaleDecimalSeparator to divide the fractional from the integral part of the number.</param> /// <param name="locale">A dictionary that defines the locale (specifically the NSLocaleDecimalSeparator) to use to interpret the number in numericString.</param> [iOSVersion(2)] [Export("convenience init")] public NSDecimalNumber(string @string, AnyObject locale) : base(false) { } /// <summary> /// Returns a new NSDecimalNumber object whose value is the sum of the receiver and another given NSDecimalNumber object. /// </summary> /// <param name="decimalNumber">The number to add to the receiver.</param> [iOSVersion(2)] [Export("decimalNumberByAdding")] public NSDecimalNumber DecimalNumberByAdding(NSDecimalNumber decimalNumber) { return default(NSDecimalNumber); } /// <summary> /// Returns a new NSDecimalNumber object whose value is that of another given NSDecimalNumber object subtracted from the value of the receiver. /// </summary> /// <param name="decimalNumber">The number to subtract from the receiver.</param> [iOSVersion(2)] [Export("decimalNumberBySubtracting")] public NSDecimalNumber DecimalNumberBySubtracting(NSDecimalNumber decimalNumber) { return default(NSDecimalNumber); } /// <summary> /// Returns a new NSDecimalNumber object whose value is the value of the receiver multiplied by that of another given NSDecimalNumber object. /// </summary> /// <param name="decimalNumber">The number by which to multiply the receiver.</param> [iOSVersion(2)] [Export("decimalNumberByMultiplyingBy")] public NSDecimalNumber DecimalNumberByMultiplyingBy(NSDecimalNumber decimalNumber) { return default(NSDecimalNumber); } /// <summary> /// Returns a new NSDecimalNumber object whose value is the value of the receiver divided by that of another given NSDecimalNumber object. /// </summary> /// <param name="decimalNumber">The number by which to divide the receiver.</param> [iOSVersion(2)] [Export("decimalNumberByDividingBy")] public NSDecimalNumber DecimalNumberByDividingBy(NSDecimalNumber decimalNumber) { return default(NSDecimalNumber); } /// <summary> /// Returns a new NSDecimalNumber object whose value is the value of the receiver raised to a given power. /// </summary> /// <param name="power">The power to which to raise the receiver.</param> [iOSVersion(2)] [Export("decimalNumberByRaisingToPower")] public NSDecimalNumber DecimalNumberByRaisingToPower(int power) { return default(NSDecimalNumber); } /// <summary> /// Multiplies the receiver by 10^power and returns the product, a newly created NSDecimalNumber object. /// </summary> /// <param name="power"></param> [iOSVersion(2)] [Export("decimalNumberByMultiplyingByPowerOf10")] public NSDecimalNumber DecimalNumberByMultiplyingByPowerOf10(Int16 power) { return default(NSDecimalNumber); } /// <summary> /// Adds decimalNumber to the receiver and returns the sum, a newly created NSDecimalNumber object. /// </summary> /// <param name="decimalNumber"></param> /// <param name="withBehavior"></param> [iOSVersion(2)] [Export("decimalNumberByAdding")] public NSDecimalNumber DecimalNumberByAdding(NSDecimalNumber decimalNumber, NSDecimalNumberBehaviors withBehavior) { return default(NSDecimalNumber); } /// <summary> /// Subtracts decimalNumber from the receiver and returns the difference, a newly created NSDecimalNumber object. /// </summary> /// <param name="decimalNumber"></param> /// <param name="withBehavior"></param> [iOSVersion(2)] [Export("decimalNumberBySubtracting")] public NSDecimalNumber DecimalNumberBySubtracting(NSDecimalNumber decimalNumber, NSDecimalNumberBehaviors withBehavior) { return default(NSDecimalNumber); } /// <summary> /// Multiplies the receiver by decimalNumber and returns the product, a newly created NSDecimalNumber object. /// </summary> /// <param name="decimalNumber"></param> /// <param name="withBehavior"></param> [iOSVersion(2)] [Export("decimalNumberByMultiplyingBy")] public NSDecimalNumber DecimalNumberByMultiplyingBy(NSDecimalNumber decimalNumber, NSDecimalNumberBehaviors withBehavior) { return default(NSDecimalNumber); } /// <summary> /// Divides the receiver by decimalNumber and returns the quotient, a newly created NSDecimalNumber object. /// </summary> /// <param name="decimalNumber"></param> /// <param name="withBehavior"></param> [iOSVersion(2)] [Export("decimalNumberByDividingBy")] public NSDecimalNumber DecimalNumberByDividingBy(NSDecimalNumber decimalNumber, NSDecimalNumberBehaviors withBehavior) { return default(NSDecimalNumber); } /// <summary> /// Raises the receiver to power and returns the result, a newly created NSDecimalNumber object. /// </summary> /// <param name="power"></param> /// <param name="withBehavior"></param> [iOSVersion(2)] [Export("decimalNumberByRaisingToPower")] public NSDecimalNumber DecimalNumberByRaisingToPower(int power, NSDecimalNumberBehaviors withBehavior) { return default(NSDecimalNumber); } /// <summary> /// Multiplies the receiver by 10^power and returns the product, a newly created NSDecimalNumber object. /// </summary> /// <param name="power"></param> /// <param name="withBehavior"></param> [iOSVersion(2)] [Export("decimalNumberByMultiplyingByPowerOf10")] public NSDecimalNumber DecimalNumberByMultiplyingByPowerOf10(Int16 power, NSDecimalNumberBehaviors withBehavior) { return default(NSDecimalNumber); } /// <summary> /// Rounds the receiver off in the way specified by behavior and returns the result, a newly created NSDecimalNumber object. /// </summary> /// <param name="behavior"></param> [iOSVersion(2)] [Export("decimalNumberByRoundingAccordingToBehavior")] public NSDecimalNumber DecimalNumberByRoundingAccordingToBehavior(NSDecimalNumberBehaviors behavior) { return default(NSDecimalNumber); } /// <summary> /// Returns a string, specified according to a given locale, that represents the contents of the receiver. /// </summary> /// <param name="locale">A dictionary that defines the locale (specifically the NSLocaleDecimalSeparator) to use to generate the returned string.</param> [iOSVersion(2)] [Export("descriptionWithLocale")] public string DescriptionWithLocale(AnyObject locale) { return default(string); } /// <summary> /// Returns the way arithmetic methods, like decimalNumberByAdding:, round off and handle error conditions. /// </summary> [iOSVersion(2)] [Export("defaultBehavior")] public static NSDecimalNumberBehaviors DefaultBehavior() { return default(NSDecimalNumberBehaviors); } /// <summary> /// Specifies the way that arithmetic methods, like decimalNumberByAdding:, round off and handle error conditions. /// </summary> /// <param name="behavior"></param> [iOSVersion(2)] [Export("setDefaultBehavior")] public static void SetDefaultBehavior(NSDecimalNumberBehaviors behavior) { } /// <summary> /// Returns an NSComparisonResult value that indicates the numerical ordering of the receiver and another given NSDecimalNumber object. /// </summary> /// <param name="decimalNumber">The number with which to compare the receiver. /// This value must not be nil. If this value is nil, the behavior is undefined and may change in future versions of OS X.</param> [iOSVersion(2)] [Export("compare")] public NSComparisonResult Compare(NSNumber decimalNumber) { return default(NSComparisonResult); } /// <summary> /// Returns the largest possible value of an NSDecimalNumber object. /// </summary> [iOSVersion(2)] [Export("maximumDecimalNumber")] public static NSDecimalNumber MaximumDecimalNumber() { return default(NSDecimalNumber); } /// <summary> /// Returns the smallest possible value of an NSDecimalNumber object. /// </summary> [iOSVersion(2)] [Export("minimumDecimalNumber")] public static NSDecimalNumber MinimumDecimalNumber() { return default(NSDecimalNumber); } /// <summary> /// The decimal number’s closest approximate double value. (read-only) /// </summary> [iOSVersion(2)] [Export("doubleValue")] public Double DoubleValue { get; private set; } /// <summary> /// A C string containing the Objective-C type for the data contained in the decimal number object. (read-only) /// </summary> [iOSVersion(2)] [Export("objCType")] public ConstUnsafePointer<Int8> ObjCType { get; private set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSDecimalNumber, an immutable subclass of NSNumber, provides an object-oriented wrapper for doing base-10 arithmetic. An instance can represent any number that can be expressed as mantissa x 10^exponent where mantissa is a decimal integer up to 38 digits long, and exponent is an integer from –128 through 127. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSDecimalNumber_Class/index.html#//apple_ref/occ/cl/NSDecimalNumber"/> [iOSVersion(2)] [Export("")] public class NSDecimalNumber : NSNumber//, AnyObject, BooleanLiteralConvertible, CKRecordValue, CVarArgType, Equatable, FloatLiteralConvertible, Hashable, IntegerLiteralConvertible, NSCoding, NSCopying, NSObjectProtocol, NSSecureCoding, Printable { public NSDecimalNumber() { } /// <summary> /// Returns an NSDecimalNumber object equivalent to the number 1.0. /// </summary> [iOSVersion(2)] [Export("one")] public static NSDecimalNumber One() { return default(NSDecimalNumber); } /// <summary> /// Returns an NSDecimalNumber object equivalent to the number 0.0. /// </summary> [iOSVersion(2)] [Export("zero")] public static NSDecimalNumber Zero() { return default(NSDecimalNumber); } /// <summary> /// Returns an NSDecimalNumber object that specifies no number. /// </summary> [iOSVersion(2)] [Export("notANumber")] public static NSDecimalNumber NotANumber() { return default(NSDecimalNumber); } /// <summary> /// Returns an NSDecimalNumber object initialized using the given mantissa, exponent, and sign. /// </summary> /// <param name="mantissa">The mantissa for the new decimal number object.</param> /// <param name="exponent">The exponent for the new decimal number object.</param> /// <param name="isNegative">A Boolean value that specifies whether the sign of the number is negative.</param> [iOSVersion(2)] [Export("convenience init")] public NSDecimalNumber(UInt64 mantissa, Int16 exponent, bool isNegative) { } /// <summary> /// Returns an NSDecimalNumber object initialized so that its value is equivalent to that in a given numeric string. /// </summary> /// <param name="@string">A numeric string. /// Besides digits, numericString can include an initial “+” or “–”; a single “E” or “e”, to indicate the exponent of a number in scientific notation; and a single NSLocaleDecimalSeparator to divide the fractional from the integral part of the number. For a listing of acceptable and unacceptable strings, see the class method decimalNumberWithString:locale:.</param> [iOSVersion(2)] [Export("convenience init")] public NSDecimalNumber([Optional] string @string) { } /// <summary> /// Returns an NSDecimalNumber object initialized so that its value is equivalent to that in a given numeric string, interpreted using a given locale. /// </summary> /// <param name="@string">A numeric string. /// Besides digits, numericString can include an initial “+” or “–”; a single “E” or “e”, to indicate the exponent of a number in scientific notation; and a single NSLocaleDecimalSeparator to divide the fractional from the integral part of the number.</param> /// <param name="locale">A dictionary that defines the locale (specifically the NSLocaleDecimalSeparator) to use to interpret the number in numericString.</param> [iOSVersion(2)] [Export("convenience init")] public NSDecimalNumber([Optional] string @string, [Optional] AnyObject locale) { } /// <summary> /// Returns a new NSDecimalNumber object whose value is the sum of the receiver and another given NSDecimalNumber object. /// </summary> /// <param name="decimalNumber">The number to add to the receiver.</param> [iOSVersion(2)] [Export("decimalNumberByAdding")] public virtual NSDecimalNumber DecimalNumberByAdding(NSDecimalNumber decimalNumber) { return default(NSDecimalNumber); } /// <summary> /// Returns a new NSDecimalNumber object whose value is that of another given NSDecimalNumber object subtracted from the value of the receiver. /// </summary> /// <param name="decimalNumber">The number to subtract from the receiver.</param> [iOSVersion(2)] [Export("decimalNumberBySubtracting")] public virtual NSDecimalNumber DecimalNumberBySubtracting(NSDecimalNumber decimalNumber) { return default(NSDecimalNumber); } /// <summary> /// Returns a new NSDecimalNumber object whose value is the value of the receiver multiplied by that of another given NSDecimalNumber object. /// </summary> /// <param name="decimalNumber">The number by which to multiply the receiver.</param> [iOSVersion(2)] [Export("decimalNumberByMultiplyingBy")] public virtual NSDecimalNumber DecimalNumberByMultiplyingBy(NSDecimalNumber decimalNumber) { return default(NSDecimalNumber); } /// <summary> /// Returns a new NSDecimalNumber object whose value is the value of the receiver divided by that of another given NSDecimalNumber object. /// </summary> /// <param name="decimalNumber">The number by which to divide the receiver.</param> [iOSVersion(2)] [Export("decimalNumberByDividingBy")] public virtual NSDecimalNumber DecimalNumberByDividingBy(NSDecimalNumber decimalNumber) { return default(NSDecimalNumber); } /// <summary> /// Returns a new NSDecimalNumber object whose value is the value of the receiver raised to a given power. /// </summary> /// <param name="power">The power to which to raise the receiver.</param> [iOSVersion(2)] [Export("decimalNumberByRaisingToPower")] public virtual NSDecimalNumber DecimalNumberByRaisingToPower(int power) { return default(NSDecimalNumber); } /// <summary> /// Multiplies the receiver by 10^power and returns the product, a newly created NSDecimalNumber object. /// </summary> /// <param name="power"></param> [iOSVersion(2)] [Export("decimalNumberByMultiplyingByPowerOf10")] public virtual NSDecimalNumber DecimalNumberByMultiplyingByPowerOf10(Int16 power) { return default(NSDecimalNumber); } /// <summary> /// Adds decimalNumber to the receiver and returns the sum, a newly created NSDecimalNumber object. /// </summary> /// <param name="decimalNumber"></param> /// <param name="withBehavior"></param> [iOSVersion(2)] [Export("decimalNumberByAdding")] public virtual NSDecimalNumber DecimalNumberByAdding(NSDecimalNumber decimalNumber, [Optional] NSDecimalNumberBehaviors withBehavior) { return default(NSDecimalNumber); } /// <summary> /// Subtracts decimalNumber from the receiver and returns the difference, a newly created NSDecimalNumber object. /// </summary> /// <param name="decimalNumber"></param> /// <param name="withBehavior"></param> [iOSVersion(2)] [Export("decimalNumberBySubtracting")] public virtual NSDecimalNumber DecimalNumberBySubtracting(NSDecimalNumber decimalNumber, [Optional] NSDecimalNumberBehaviors withBehavior) { return default(NSDecimalNumber); } /// <summary> /// Multiplies the receiver by decimalNumber and returns the product, a newly created NSDecimalNumber object. /// </summary> /// <param name="decimalNumber"></param> /// <param name="withBehavior"></param> [iOSVersion(2)] [Export("decimalNumberByMultiplyingBy")] public virtual NSDecimalNumber DecimalNumberByMultiplyingBy(NSDecimalNumber decimalNumber, [Optional] NSDecimalNumberBehaviors withBehavior) { return default(NSDecimalNumber); } /// <summary> /// Divides the receiver by decimalNumber and returns the quotient, a newly created NSDecimalNumber object. /// </summary> /// <param name="decimalNumber"></param> /// <param name="withBehavior"></param> [iOSVersion(2)] [Export("decimalNumberByDividingBy")] public virtual NSDecimalNumber DecimalNumberByDividingBy(NSDecimalNumber decimalNumber, [Optional] NSDecimalNumberBehaviors withBehavior) { return default(NSDecimalNumber); } /// <summary> /// Raises the receiver to power and returns the result, a newly created NSDecimalNumber object. /// </summary> /// <param name="power"></param> /// <param name="withBehavior"></param> [iOSVersion(2)] [Export("decimalNumberByRaisingToPower")] public virtual NSDecimalNumber DecimalNumberByRaisingToPower(int power, [Optional] NSDecimalNumberBehaviors withBehavior) { return default(NSDecimalNumber); } /// <summary> /// Multiplies the receiver by 10^power and returns the product, a newly created NSDecimalNumber object. /// </summary> /// <param name="power"></param> /// <param name="withBehavior"></param> [iOSVersion(2)] [Export("decimalNumberByMultiplyingByPowerOf10")] public virtual NSDecimalNumber DecimalNumberByMultiplyingByPowerOf10(Int16 power, [Optional] NSDecimalNumberBehaviors withBehavior) { return default(NSDecimalNumber); } /// <summary> /// Rounds the receiver off in the way specified by behavior and returns the result, a newly created NSDecimalNumber object. /// </summary> /// <param name="behavior"></param> [iOSVersion(2)] [Export("decimalNumberByRoundingAccordingToBehavior")] public virtual NSDecimalNumber DecimalNumberByRoundingAccordingToBehavior([Optional] NSDecimalNumberBehaviors behavior) { return default(NSDecimalNumber); } /// <summary> /// Returns a string, specified according to a given locale, that represents the contents of the receiver. /// </summary> /// <param name="locale">A dictionary that defines the locale (specifically the NSLocaleDecimalSeparator) to use to generate the returned string.</param> [iOSVersion(2)] [Export("descriptionWithLocale")] public virtual string DescriptionWithLocale([Optional] AnyObject locale) { return default(string); } /// <summary> /// Returns the way arithmetic methods, like decimalNumberByAdding:, round off and handle error conditions. /// </summary> [iOSVersion(2)] [Export("defaultBehavior")] public static NSDecimalNumberBehaviors DefaultBehavior() { return default(NSDecimalNumberBehaviors); } /// <summary> /// Specifies the way that arithmetic methods, like decimalNumberByAdding:, round off and handle error conditions. /// </summary> /// <param name="behavior"></param> [iOSVersion(2)] [Export("setDefaultBehavior")] public static void SetDefaultBehavior(NSDecimalNumberBehaviors behavior) { } /// <summary> /// Returns an NSComparisonResult value that indicates the numerical ordering of the receiver and another given NSDecimalNumber object. /// </summary> /// <param name="decimalNumber">The number with which to compare the receiver. /// This value must not be nil. If this value is nil, the behavior is undefined and may change in future versions of OS X.</param> [iOSVersion(2)] [Export("compare")] public virtual NSComparisonResult Compare(NSNumber decimalNumber) { return default(NSComparisonResult); } /// <summary> /// Returns the largest possible value of an NSDecimalNumber object. /// </summary> [iOSVersion(2)] [Export("maximumDecimalNumber")] public static NSDecimalNumber MaximumDecimalNumber() { return default(NSDecimalNumber); } /// <summary> /// Returns the smallest possible value of an NSDecimalNumber object. /// </summary> [iOSVersion(2)] [Export("minimumDecimalNumber")] public static NSDecimalNumber MinimumDecimalNumber() { return default(NSDecimalNumber); } /// <summary> /// The decimal number’s closest approximate double value. (read-only) /// </summary> [iOSVersion(2)] [Export("doubleValue")] public Double DoubleValue { get; private set; } /// <summary> /// A C string containing the Objective-C type for the data contained in the decimal number object. (read-only) /// </summary> [iOSVersion(2)] [Export("objCType")] public UnsafePointer<Int8> ObjCType { get; private set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSDecimalNumberHandler.cs b/CocoaSharp/Foundation/NSDecimalNumberHandler.cs
index 0ef47d0c..7cde9ef9 100644
--- a/CocoaSharp/Foundation/NSDecimalNumberHandler.cs
+++ b/CocoaSharp/Foundation/NSDecimalNumberHandler.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSDecimalNumberHandler is a class that adopts the NSDecimalNumberBehaviors protocol. This class allows you to set the way an NSDecimalNumber object rounds off and handles errors, without having to create a custom class. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSDecimalNumberHandler_Class/index.html#//apple_ref/occ/cl/NSDecimalNumberHandler"/> [iOSVersion(2)] public class NSDecimalNumberHandler : NSObject//, AnyObject, NSCoding, NSDecimalNumberBehaviors, NSObjectProtocol { /// <summary> /// Returns the default instance of NSDecimalNumberHandler. /// </summary> [iOSVersion(2)] [Export("defaultDecimalNumberHandler")] public static NSDecimalNumberHandler DefaultDecimalNumberHandler() { return default(NSDecimalNumberHandler); } /// <summary> /// Returns an NSDecimalNumberHandler object with customized behavior. /// </summary> /// <param name="roundingMode">The rounding mode to use. There are four possible values: NSRoundUp, NSRoundDown, NSRoundPlain, and NSRoundBankers.</param> /// <param name="scale">The number of digits a rounded value should have after its decimal point.</param> /// <param name="raiseOnExactness">If true, in the event of an exactness error the handler will raise an exception, otherwise it will ignore the error and return control to the calling method.</param> /// <param name="raiseOnOverflow">If true, in the event of an overflow error the handler will raise an exception, otherwise it will ignore the error and return control to the calling method</param> /// <param name="raiseOnUnderflow">If true, in the event of an underflow error the handler will raise an exception, otherwise it will ignore the error and return control to the calling method</param> /// <param name="raiseOnDivideByZero">If true, in the event of a divide by zero error the handler will raise an exception, otherwise it will ignore the error and return control to the calling method</param> [iOSVersion(2)] [Export("decimalNumberHandlerWithRoundingMode")] public static NSDecimalNumberHandler DecimalNumberHandlerWithRoundingMode(NSRoundingMode roundingMode, Int16 scale, bool raiseOnExactness, bool raiseOnOverflow, bool raiseOnUnderflow, bool raiseOnDivideByZero) { return default(NSDecimalNumberHandler); } /// <summary> /// Returns an NSDecimalNumberHandler object initialized so it behaves as specified by the method’s arguments. /// </summary> /// <param name="roundingMode">The rounding mode to use. There are four possible values: NSRoundUp, NSRoundDown, NSRoundPlain, and NSRoundBankers.</param> /// <param name="scale">The number of digits a rounded value should have after its decimal point.</param> /// <param name="raiseOnExactness">If true, in the event of an exactness error the handler will raise an exception, otherwise it will ignore the error and return control to the calling method.</param> /// <param name="raiseOnOverflow">If true, in the event of an overflow error the handler will raise an exception, otherwise it will ignore the error and return control to the calling method</param> /// <param name="raiseOnUnderflow">If true, in the event of an underflow error the handler will raise an exception, otherwise it will ignore the error and return control to the calling method</param> /// <param name="raiseOnDivideByZero">If true, in the event of a divide by zero error the handler will raise an exception, otherwise it will ignore the error and return control to the calling method</param> [iOSVersion(2)] public NSDecimalNumberHandler(NSRoundingMode roundingMode, Int16 scale, bool raiseOnExactness, bool raiseOnOverflow, bool raiseOnUnderflow, bool raiseOnDivideByZero) { } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSDecimalNumberHandler is a class that adopts the NSDecimalNumberBehaviors protocol. This class allows you to set the way an NSDecimalNumber object rounds off and handles errors, without having to create a custom class. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSDecimalNumberHandler_Class/index.html#//apple_ref/occ/cl/NSDecimalNumberHandler"/> [iOSVersion(2)] [Export("")] public class NSDecimalNumberHandler : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSDecimalNumberBehaviors, NSObjectProtocol, Printable { public NSDecimalNumberHandler() { } /// <summary> /// Returns the default instance of NSDecimalNumberHandler. /// </summary> [iOSVersion(2)] [Export("defaultDecimalNumberHandler")] public static NSDecimalNumberHandler DefaultDecimalNumberHandler() { return default(NSDecimalNumberHandler); } /// <summary> /// Returns an NSDecimalNumberHandler object initialized so it behaves as specified by the method’s arguments. /// </summary> /// <param name="roundingMode">The rounding mode to use. There are four possible values: NSRoundUp, NSRoundDown, NSRoundPlain, and NSRoundBankers.</param> /// <param name="scale">The number of digits a rounded value should have after its decimal point.</param> /// <param name="raiseOnExactness">If true, in the event of an exactness error the handler will raise an exception, otherwise it will ignore the error and return control to the calling method.</param> /// <param name="raiseOnOverflow">If true, in the event of an overflow error the handler will raise an exception, otherwise it will ignore the error and return control to the calling method</param> /// <param name="raiseOnUnderflow">If true, in the event of an underflow error the handler will raise an exception, otherwise it will ignore the error and return control to the calling method</param> /// <param name="raiseOnDivideByZero">If true, in the event of a divide by zero error the handler will raise an exception, otherwise it will ignore the error and return control to the calling method</param> [iOSVersion(2)] public NSDecimalNumberHandler(NSRoundingMode roundingMode, Int16 scale, bool raiseOnExactness, bool raiseOnOverflow, bool raiseOnUnderflow, bool raiseOnDivideByZero) { } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSDictionary.cs b/CocoaSharp/Foundation/NSDictionary.cs
index dc560ec8..b6b606df 100644
--- a/CocoaSharp/Foundation/NSDictionary.cs
+++ b/CocoaSharp/Foundation/NSDictionary.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSDictionary class declares the programmatic interface to objects that manage immutable associations of keys and values. Use this class or its subclass NSMutableDictionary when you need a convenient and efficient way to retrieve data associated with an arbitrary key. NSDictionary creates static dictionaries, and NSMutableDictionary creates dynamic dictionaries. (For convenience, the term dictionary refers to any instance of one of these classes without specifying its exact class membership.) /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSDictionary_Class/index.html#//apple_ref/occ/cl/NSDictionary"/> [iOSVersion(2)] public class NSDictionary : NSObject//, AnyObject, DictionaryLiteralConvertible, NSCoding, NSCopying, NSFastEnumeration, NSMutableCopying, NSObjectProtocol, NSSecureCoding, Reflectable, Sequence { /// <summary> /// Creates and returns a dictionary containing a given key and value. /// </summary> /// <param name="@object">The value corresponding to aKey. /// If this value is nil, an NSInvalidArgumentException is raised.</param> /// <param name="forKey">The key for anObject. /// If this value is nil, an NSInvalidArgumentException is raised.</param> [iOSVersion(2)] [Export("convenience init")] public NSDictionary(AnyObject @object, NSCopying forKey) { } /// <summary> /// Initializes a newly allocated dictionary using the keys and values found in a file at a given path. /// </summary> /// <param name="contentsOfFile">A full or relative pathname. The file identified by path must contain a string representation of a property list whose root object is a dictionary.</param> [iOSVersion(2)] [Export("convenience init")] public NSDictionary(string contentsOfFile) { } /// <summary> /// Initializes a newly allocated dictionary using the keys and values found at a given URL. /// </summary> /// <param name="contentsOfURL">An URL that identifies a resource containing a string representation of a property list whose root object is a dictionary.</param> [iOSVersion(2)] [Export("convenience init")] public NSDictionary(NSURL contentsOfURL) { } /// <summary> /// Initializes a newly allocated dictionary by placing in it the keys and values contained in another given dictionary. /// </summary> /// <param name="dictionary">A dictionary containing the keys and values with which to initialize the new dictionary.</param> [iOSVersion(2)] [Export("convenience init")] public NSDictionary(Dictionary<NSObject, AnyObject> dictionary) { } /// <summary> /// Initializes a newly allocated dictionary using the objects contained in another given dictionary. /// </summary> /// <param name="dictionary">A dictionary containing the keys and values with which to initialize the new dictionary.</param> /// <param name="copyItems">If true, each object in otherDictionary receives a copyWithZone: message to create a copy of the object—objects must conform to the NSCopying protocol. In a managed memory environment, this is instead of the retain message the object would otherwise receive. The object copy is then added to the returned dictionary. /// If false, then in a managed memory environment each object in otherDictionary simply receives a retain message when it is added to the returned dictionary.</param> [iOSVersion(2)] [Export("convenience init")] public NSDictionary(Dictionary<NSObject, AnyObject> dictionary, bool copyItems) { } /// <summary> /// Initializes a newly allocated dictionary with entries constructed from the contents of the objects and keys arrays. /// </summary> /// <param name="objects">An array containing the values for the new dictionary.</param> /// <param name="forKeys">An array containing the keys for the new dictionary. Each key is copied (using copyWithZone:; keys must conform to the NSCopying protocol), and the copy is added to the new dictionary.</param> [iOSVersion(2)] [Export("convenience init")] public NSDictionary(AnyObject[] objects, AnyObject[] forKeys) { } /// <summary> /// Initializes a newly allocated dictionary with count entries. /// </summary> /// <param name="objects">A C array of values for the new dictionary.</param> /// <param name="forKeys">A C array of keys for the new dictionary. Each key is copied (using copyWithZone:; keys must conform to the NSCopying protocol), and the copy is added to the new dictionary.</param> /// <param name="count">The number of elements to use from the keys and objects arrays. count must not exceed the number of elements in objects or keys.</param> [iOSVersion(2)] public NSDictionary(ConstUnsafePointer<AnyObject> objects, ConstUnsafePointer<NSCopying> forKeys, int count) { } /// <summary> /// Initializes a newly allocated dictionary. /// </summary> [iOSVersion(7)] public NSDictionary() { } /// <summary> /// Creates a shared key set object for the specified keys. /// </summary> /// <param name="keys">The array of keys. If the parameter is nil, an exception is thrown. If the array of keys is empty, an empty key set is returned.</param> [iOSVersion(6)] [Export("sharedKeySetForKeys")] public static AnyObject SharedKeySetForKeys(AnyObject[] keys) { return default(AnyObject); } /// <summary> /// Returns a Boolean value that indicates whether the contents of the receiving dictionary are equal to the contents of another given dictionary. /// </summary> /// <param name="otherDictionary">The dictionary with which to compare the receiving dictionary.</param> [iOSVersion(2)] [Export("isEqualToDictionary")] public bool IsEqualToDictionary(Dictionary<NSObject, AnyObject> otherDictionary) { return default(bool); } /// <summary> /// Returns a new array containing the keys corresponding to all occurrences of a given object in the dictionary. /// </summary> /// <param name="anObject">The value to look for in the dictionary.</param> [iOSVersion(2)] [Export("allKeysForObject")] public AnyObject[] AllKeysForObject(AnyObject anObject) { return default(AnyObject[]); } /// <summary> /// Returns by reference C arrays of the keys and values in the dictionary. /// </summary> /// <param name="objects">Upon return, contains a C array of the values in the dictionary.</param> /// <param name="andKeys">Upon return, contains a C array of the keys in the dictionary.</param> [iOSVersion(2)] [Export("getObjects")] public void GetObjects(AutoreleasingUnsafePointer<AnyObject> objects, AutoreleasingUnsafePointer<AnyObject> andKeys) { } /// <summary> /// Returns the value associated with a given key. /// </summary> /// <param name="aKey">The key for which to return the corresponding value.</param> [iOSVersion(2)] [Export("objectForKey")] public AnyObject ObjectForKey(AnyObject aKey) { return default(AnyObject); } /// <summary> /// Returns the value associated with a given key. /// </summary> /// <param name="key">The key for which to return the corresponding value.</param> [iOSVersion(6)] [Export("objectForKeyedSubscript")] public AnyObject ObjectForKeyedSubscript(NSCopying key) { return default(AnyObject); } /// <summary> /// Returns the set of objects from the dictionary that corresponds to the specified keys as an NSArray. /// </summary> /// <param name="keys">An NSArray containing the keys for which to return corresponding values.</param> /// <param name="notFoundMarker">The marker object to place in the corresponding element of the returned array if an object isn’t found in the dictionary to correspond to a given key.</param> [iOSVersion(2)] [Export("objectsForKeys")] public AnyObject[] ObjectsForKeys(AnyObject[] keys, AnyObject notFoundMarker) { return default(AnyObject[]); } /// <summary> /// Returns the value associated with a given key. /// </summary> /// <param name="key">The key for which to return the corresponding value. Note that when using key-value coding, the key must be a string (see Key-Value Coding Fundamentals).</param> [iOSVersion(2)] [Export("valueForKey")] public AnyObject ValueForKey(string key) { return default(AnyObject); } /// <summary> /// Returns an enumerator object that lets you access each value in the dictionary. /// </summary> [iOSVersion(2)] [Export("objectEnumerator")] public NSEnumerator ObjectEnumerator() { return default(NSEnumerator); } /// <summary> /// Applies a given block object to the entries of the dictionary. /// </summary> /// <param name="block">A block object to operate on entries in the dictionary.</param> [iOSVersion(4)] [Export("enumerateKeysAndObjectsUsingBlock")] public void EnumerateKeysAndObjectsUsingBlock(Action<AnyObject, AnyObject, UnsafePointer<ObjCBool>> block) { } /// <summary> /// Applies a given block object to the entries of the dictionary. /// </summary> /// <param name="opts">Enumeration options.</param> /// <param name="usingBlock">A block object to operate on entries in the dictionary.</param> [iOSVersion(4)] [Export("enumerateKeysAndObjectsWithOptions")] public void EnumerateKeysAndObjectsWithOptions(NSEnumerationOptions opts, Action<AnyObject, AnyObject, UnsafePointer<ObjCBool>> usingBlock) { } /// <summary> /// Returns an array of the dictionary’s keys, in the order they would be in if the dictionary were sorted by its values. /// </summary> /// <param name="comparator">A selector that specifies the method to use to compare the values in the dictionary. /// The comparator method should return NSOrderedAscending if the dictionary value is smaller than the argument, NSOrderedDescending if the dictionary value is larger than the argument, and NSOrderedSame if they are equal.</param> [iOSVersion(2)] [Export("keysSortedByValueUsingSelector")] public AnyObject[] KeysSortedByValueUsingSelector(Selector comparator) { return default(AnyObject[]); } /// <summary> /// Returns an array of the dictionary’s keys, in the order they would be in if the dictionary were sorted by its values using a given comparator block. /// </summary> /// <param name="cmptr">A comparator block.</param> [iOSVersion(4)] [Export("keysSortedByValueUsingComparator")] public AnyObject[] KeysSortedByValueUsingComparator(NSComparator cmptr) { return default(AnyObject[]); } /// <summary> /// Returns an array of the dictionary’s keys, in the order they would be in if the dictionary were sorted by its values using a given comparator block and a specified set of options. /// </summary> /// <param name="opts">A bitmask of sort options.</param> /// <param name="usingComparator">A comparator block.</param> [iOSVersion(4)] [Export("keysSortedByValueWithOptions")] public AnyObject[] KeysSortedByValueWithOptions(NSSortOptions opts, NSComparator usingComparator) { return default(AnyObject[]); } /// <summary> /// Returns the set of keys whose corresponding value satisfies a constraint described by a block object. /// </summary> /// <param name="predicate">A block object that specifies constraints for values in the dictionary.</param> [iOSVersion(4)] [Export("keysOfEntriesPassingTest")] public NSSet KeysOfEntriesPassingTest(Func<AnyObject, AnyObject, UnsafePointer<ObjCBool>, bool> predicate) { return default(NSSet); } /// <summary> /// Returns the set of keys whose corresponding value satisfies a constraint described by a block object. /// </summary> /// <param name="opts">A bit mask of enumeration options.</param> /// <param name="passingTest">A block object that specifies constraints for values in the dictionary.</param> [iOSVersion(4)] [Export("keysOfEntriesWithOptions")] public NSSet KeysOfEntriesWithOptions(NSEnumerationOptions opts, Func<AnyObject, AnyObject, UnsafePointer<ObjCBool>, bool> passingTest) { return default(NSSet); } /// <summary> /// Writes a property list representation of the contents of the dictionary to a given path. /// </summary> /// <param name="path">The path at which to write the file. /// If path contains a tilde (~) character, you must expand it with stringByExpandingTildeInPath before invoking this method.</param> /// <param name="atomically">A flag that specifies whether the file should be written atomically. /// If flag is true, the dictionary is written to an auxiliary file, and then the auxiliary file is renamed to path. If flag is false, the dictionary is written directly to path. The true option guarantees that path, if it exists at all, won’t be corrupted even if the system should crash during writing.</param> [iOSVersion(2)] [Export("writeToFile")] public bool WriteToFile(string path, bool atomically) { return default(bool); } /// <summary> /// Writes a property list representation of the contents of the dictionary to a given URL. /// </summary> /// <param name="aURL">The URL to which to write the dictionary.</param> /// <param name="atomically">A flag that specifies whether the output should be written atomically. /// If flag is true, the dictionary is written to an auxiliary location, and then the auxiliary location is renamed to aURL. If flag is false, the dictionary is written directly to aURL. The true option guarantees that aURL, if it exists at all, won’t be corrupted even if the system should crash during writing. flag is ignored if aURL is of a type that cannot be written atomically.</param> [iOSVersion(2)] [Export("writeToURL")] public bool WriteToURL(NSURL aURL, bool atomically) { return default(bool); } /// <summary> /// Returns the value for the NSFileCreationDate key. /// </summary> [iOSVersion(2)] [Export("fileCreationDate")] public NSDate FileCreationDate() { return default(NSDate); } /// <summary> /// Returns the value for the NSFileExtensionHidden key. /// </summary> [iOSVersion(2)] [Export("fileExtensionHidden")] public bool FileExtensionHidden() { return default(bool); } /// <summary> /// Returns the value for the NSFileGroupOwnerAccountID key. /// </summary> [iOSVersion(2)] [Export("fileGroupOwnerAccountID")] public NSNumber FileGroupOwnerAccountID() { return default(NSNumber); } /// <summary> /// Returns the value for the NSFileGroupOwnerAccountName key. /// </summary> [iOSVersion(2)] [Export("fileGroupOwnerAccountName")] public string FileGroupOwnerAccountName() { return default(string); } /// <summary> /// Returns the value for the NSFileHFSCreatorCode key. /// </summary> [iOSVersion(2)] [Export("fileHFSCreatorCode")] public OSType FileHFSCreatorCode() { return default(OSType); } /// <summary> /// Returns the value for the NSFileHFSTypeCode key. /// </summary> [iOSVersion(2)] [Export("fileHFSTypeCode")] public OSType FileHFSTypeCode() { return default(OSType); } /// <summary> /// Returns the value for the NSFileAppendOnly key. /// </summary> [iOSVersion(2)] [Export("fileIsAppendOnly")] public bool FileIsAppendOnly() { return default(bool); } /// <summary> /// Returns the value for the NSFileImmutable key. /// </summary> [iOSVersion(2)] [Export("fileIsImmutable")] public bool FileIsImmutable() { return default(bool); } /// <summary> /// Returns the value for the key NSFileModificationDate. /// </summary> [iOSVersion(2)] [Export("fileModificationDate")] public NSDate FileModificationDate() { return default(NSDate); } /// <summary> /// Returns the value for the NSFileOwnerAccountID key. /// </summary> [iOSVersion(2)] [Export("fileOwnerAccountID")] public NSNumber FileOwnerAccountID() { return default(NSNumber); } /// <summary> /// Returns the value for the key NSFileOwnerAccountName. /// </summary> [iOSVersion(2)] [Export("fileOwnerAccountName")] public string FileOwnerAccountName() { return default(string); } /// <summary> /// Returns the value for the key NSFilePosixPermissions. /// </summary> [iOSVersion(2)] [Export("filePosixPermissions")] public int FilePosixPermissions() { return default(int); } /// <summary> /// Returns the value for the key NSFileSize. /// </summary> [iOSVersion(2)] [Export("fileSize")] public UInt64 FileSize() { return default(UInt64); } /// <summary> /// Returns the value for the key NSFileSystemFileNumber. /// </summary> [iOSVersion(2)] [Export("fileSystemFileNumber")] public int FileSystemFileNumber() { return default(int); } /// <summary> /// Returns the value for the key NSFileSystemNumber. /// </summary> [iOSVersion(2)] [Export("fileSystemNumber")] public int FileSystemNumber() { return default(int); } /// <summary> /// Returns the value for the key NSFileType. /// </summary> [iOSVersion(2)] [Export("fileType")] public string FileType() { return default(string); } /// <summary> /// Returns a string object that represents the contents of the dictionary, formatted as a property list. /// </summary> /// <param name="locale">An object that specifies options used for formatting each of the dictionary’s keys and values; pass nil if you don’t want them formatted. /// On iOS and OS X v10.5 and later, either an instance of NSDictionary or an NSLocale object may be used for locale. On OS X v10.4 and earlier it must be an instance of NSDictionary.</param> [iOSVersion(2)] [Export("descriptionWithLocale")] public string DescriptionWithLocale(AnyObject locale) { return default(string); } /// <summary> /// Returns a string object that represents the contents of the dictionary, formatted as a property list. /// </summary> /// <param name="locale">An object that specifies options used for formatting each of the dictionary’s keys and values; pass nil if you don’t want them formatted. /// On iOS and OS X v10.5 and later, either an instance of NSDictionary or an NSLocale object may be used for locale. On OS X v10.4 and earlier it must be an instance of NSDictionary.</param> /// <param name="indent">Specifies a level of indentation, to make the output more readable: the indentation is (4 spaces) * level.</param> [iOSVersion(2)] [Export("descriptionWithLocale")] public string DescriptionWithLocale(AnyObject locale, int indent) { return default(string); } /// <summary> /// The number of entries in the dictionary (read-only) /// </summary> [iOSVersion(2)] [Export("count")] public int Count { get; private set; } /// <summary> /// A new array containing the dictionary’s keys, or an empty array if the dictionary has no entries (read-only) /// </summary> [iOSVersion(2)] [Export("allKeys")] public AnyObject[] AllKeys { get; private set; } /// <summary> /// A new array containing the dictionary’s values, or an empty array if the dictionary has no entries (read-only) /// </summary> [iOSVersion(2)] [Export("allValues")] public AnyObject[] AllValues { get; private set; } /// <summary> /// A string that represents the contents of the dictionary, formatted as a property list (read-only) /// </summary> [iOSVersion(2)] [Export("description")] public string Description { get; private set; } /// <summary> /// A string that represents the contents of the dictionary, formatted in .strings file format (read-only) /// </summary> [iOSVersion(2)] [Export("descriptionInStringsFileFormat")] public string DescriptionInStringsFileFormat { get; private set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSDictionary class declares the programmatic interface to objects that manage immutable associations of keys and values. Use this class or its subclass NSMutableDictionary when you need a convenient and efficient way to retrieve data associated with an arbitrary key. NSDictionary creates static dictionaries, and NSMutableDictionary creates dynamic dictionaries. (For convenience, the term dictionary refers to any instance of one of these classes without specifying its exact class membership.) /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSDictionary_Class/index.html#//apple_ref/occ/cl/NSDictionary"/> [iOSVersion(2)] [Export("")] public class NSDictionary : NSObject//, AnyObject, CVarArgType, DictionaryLiteralConvertible, Equatable, Hashable, NSCoding, NSCopying, NSFastEnumeration, NSMutableCopying, NSObjectProtocol, NSSecureCoding, Printable, Reflectable, SequenceType { /// <summary> /// Creates and returns a dictionary containing a given key and value. /// </summary> /// <param name="@object">The value corresponding to aKey. /// If this value is nil, an NSInvalidArgumentException is raised.</param> /// <param name="forKey">The key for anObject. /// If this value is nil, an NSInvalidArgumentException is raised.</param> [iOSVersion(2)] [Export("convenience init")] public NSDictionary(AnyObject @object, NSCopying forKey) { } /// <summary> /// Initializes a newly allocated dictionary by placing in it the keys and values contained in another given dictionary. /// </summary> /// <param name="dictionary">A dictionary containing the keys and values with which to initialize the new dictionary.</param> [iOSVersion(2)] [Export("convenience init")] public NSDictionary(Dictionary<NSObject, AnyObject> dictionary) { } /// <summary> /// Initializes a newly allocated dictionary using the objects contained in another given dictionary. /// </summary> /// <param name="dictionary">A dictionary containing the keys and values with which to initialize the new dictionary.</param> /// <param name="copyItems">If true, each object in otherDictionary receives a copyWithZone: message to create a copy of the object—objects must conform to the NSCopying protocol. In a managed memory environment, this is instead of the retain message the object would otherwise receive. The object copy is then added to the returned dictionary. /// If false, then in a managed memory environment each object in otherDictionary simply receives a retain message when it is added to the returned dictionary.</param> [iOSVersion(2)] [Export("convenience init")] public NSDictionary(Dictionary<NSObject, AnyObject> dictionary, bool copyItems) { } /// <summary> /// Initializes a newly allocated dictionary with entries constructed from the contents of the objects and keys arrays. /// </summary> /// <param name="objects">An array containing the values for the new dictionary.</param> /// <param name="forKeys">An array containing the keys for the new dictionary. Each key is copied (using copyWithZone:; keys must conform to the NSCopying protocol), and the copy is added to the new dictionary.</param> [iOSVersion(2)] [Export("convenience init")] public NSDictionary(AnyObject[] objects, AnyObject[] forKeys) { } /// <summary> /// Initializes a newly allocated dictionary with count entries. /// </summary> /// <param name="objects">A C array of values for the new dictionary.</param> /// <param name="forKeys">A C array of keys for the new dictionary. Each key is copied (using copyWithZone:; keys must conform to the NSCopying protocol), and the copy is added to the new dictionary.</param> /// <param name="count">The number of elements to use from the keys and objects arrays. count must not exceed the number of elements in objects or keys.</param> [iOSVersion(2)] public NSDictionary(UnsafePointer<AnyObject> objects, UnsafePointer<NSCopying> forKeys, int count) { } /// <summary> /// Initializes a newly allocated dictionary. /// </summary> [iOSVersion(7)] public NSDictionary() { } /// <summary> /// Creates a shared key set object for the specified keys. /// </summary> /// <param name="keys">The array of keys. If the parameter is nil, an exception is thrown. If the array of keys is empty, an empty key set is returned.</param> [iOSVersion(6)] [Export("sharedKeySetForKeys")] public static AnyObject SharedKeySetForKeys(AnyObject[] keys) { return default(AnyObject); } /// <summary> /// Returns a Boolean value that indicates whether the contents of the receiving dictionary are equal to the contents of another given dictionary. /// </summary> /// <param name="otherDictionary">The dictionary with which to compare the receiving dictionary.</param> [iOSVersion(2)] [Export("isEqualToDictionary")] public virtual bool IsEqualToDictionary(Dictionary<NSObject, AnyObject> otherDictionary) { return default(bool); } /// <summary> /// Returns a new array containing the keys corresponding to all occurrences of a given object in the dictionary. /// </summary> /// <param name="anObject">The value to look for in the dictionary.</param> [iOSVersion(2)] [Export("allKeysForObject")] public virtual AnyObject[] AllKeysForObject(AnyObject anObject) { return default(AnyObject[]); } /// <summary> /// Returns by reference C arrays of the keys and values in the dictionary. /// </summary> /// <param name="objects">Upon return, contains a C array of the values in the dictionary.</param> /// <param name="andKeys">Upon return, contains a C array of the keys in the dictionary.</param> [iOSVersion(2)] [Export("getObjects")] public virtual void GetObjects(AutoreleasingUnsafeMutablePointer<AnyObject> objects, AutoreleasingUnsafeMutablePointer<AnyObject> andKeys) { } /// <summary> /// Returns the value associated with a given key. /// </summary> /// <param name="aKey">The key for which to return the corresponding value.</param> [iOSVersion(2)] [Export("objectForKey")] [return:Optional] public virtual AnyObject ObjectForKey(AnyObject aKey) { return default(AnyObject); } /// <summary> /// Returns the set of objects from the dictionary that corresponds to the specified keys as an NSArray. /// </summary> /// <param name="keys">An NSArray containing the keys for which to return corresponding values.</param> /// <param name="notFoundMarker">The marker object to place in the corresponding element of the returned array if an object isn’t found in the dictionary to correspond to a given key.</param> [iOSVersion(2)] [Export("objectsForKeys")] public virtual AnyObject[] ObjectsForKeys(AnyObject[] keys, AnyObject notFoundMarker) { return default(AnyObject[]); } /// <summary> /// Returns the value associated with a given key. /// </summary> /// <param name="key">The key for which to return the corresponding value. Note that when using key-value coding, the key must be a string (see Key-Value Coding Fundamentals in Key-Value Coding Programming Guide).</param> [iOSVersion(2)] [Export("valueForKey")] [return:Optional] public virtual AnyObject ValueForKey(string key) { return default(AnyObject); } /// <summary> /// Returns an enumerator object that lets you access each value in the dictionary. /// </summary> [iOSVersion(2)] [Export("objectEnumerator")] public virtual NSEnumerator ObjectEnumerator() { return default(NSEnumerator); } /// <summary> /// Applies a given block object to the entries of the dictionary. /// </summary> /// <param name="block">A block object to operate on entries in the dictionary.</param> [iOSVersion(4)] [Export("enumerateKeysAndObjectsUsingBlock")] public virtual void EnumerateKeysAndObjectsUsingBlock(Action<AnyObject, AnyObject, UnsafeMutablePointer<ObjCBool>> block) { } /// <summary> /// Applies a given block object to the entries of the dictionary. /// </summary> /// <param name="opts">Enumeration options.</param> /// <param name="usingBlock">A block object to operate on entries in the dictionary.</param> [iOSVersion(4)] [Export("enumerateKeysAndObjectsWithOptions")] public virtual void EnumerateKeysAndObjectsWithOptions(NSEnumerationOptions opts, Action<AnyObject, AnyObject, UnsafeMutablePointer<ObjCBool>> usingBlock) { } /// <summary> /// Returns an array of the dictionary’s keys, in the order they would be in if the dictionary were sorted by its values. /// </summary> /// <param name="comparator">A selector that specifies the method to use to compare the values in the dictionary. /// The comparator method should return NSOrderedAscending if the dictionary value is smaller than the argument, NSOrderedDescending if the dictionary value is larger than the argument, and NSOrderedSame if they are equal.</param> [iOSVersion(2)] [Export("keysSortedByValueUsingSelector")] public virtual AnyObject[] KeysSortedByValueUsingSelector(Selector comparator) { return default(AnyObject[]); } /// <summary> /// Returns an array of the dictionary’s keys, in the order they would be in if the dictionary were sorted by its values using a given comparator block. /// </summary> /// <param name="cmptr">A comparator block.</param> [iOSVersion(4)] [Export("keysSortedByValueUsingComparator")] public virtual AnyObject[] KeysSortedByValueUsingComparator(NSComparator cmptr) { return default(AnyObject[]); } /// <summary> /// Returns an array of the dictionary’s keys, in the order they would be in if the dictionary were sorted by its values using a given comparator block and a specified set of options. /// </summary> /// <param name="opts">A bitmask of sort options.</param> /// <param name="usingComparator">A comparator block.</param> [iOSVersion(4)] [Export("keysSortedByValueWithOptions")] public virtual AnyObject[] KeysSortedByValueWithOptions(NSSortOptions opts, NSComparator usingComparator) { return default(AnyObject[]); } /// <summary> /// Returns the set of keys whose corresponding value satisfies a constraint described by a block object. /// </summary> /// <param name="predicate">A block object that specifies constraints for values in the dictionary.</param> [iOSVersion(4)] [Export("keysOfEntriesPassingTest")] public virtual NSSet KeysOfEntriesPassingTest(Func<AnyObject, AnyObject, UnsafeMutablePointer<ObjCBool>, bool> predicate) { return default(NSSet); } /// <summary> /// Returns the set of keys whose corresponding value satisfies a constraint described by a block object. /// </summary> /// <param name="opts">A bit mask of enumeration options.</param> /// <param name="passingTest">A block object that specifies constraints for values in the dictionary.</param> [iOSVersion(4)] [Export("keysOfEntriesWithOptions")] public virtual NSSet KeysOfEntriesWithOptions(NSEnumerationOptions opts, Func<AnyObject, AnyObject, UnsafeMutablePointer<ObjCBool>, bool> passingTest) { return default(NSSet); } /// <summary> /// Writes a property list representation of the contents of the dictionary to a given path. /// </summary> /// <param name="path">The path at which to write the file. /// If path contains a tilde (~) character, you must expand it with stringByExpandingTildeInPath before invoking this method.</param> /// <param name="atomically">A flag that specifies whether the file should be written atomically. /// If flag is true, the dictionary is written to an auxiliary file, and then the auxiliary file is renamed to path. If flag is false, the dictionary is written directly to path. The true option guarantees that path, if it exists at all, won’t be corrupted even if the system should crash during writing.</param> [iOSVersion(2)] [Export("writeToFile")] public virtual bool WriteToFile(string path, bool atomically) { return default(bool); } /// <summary> /// Writes a property list representation of the contents of the dictionary to a given URL. /// </summary> /// <param name="aURL">The URL to which to write the dictionary.</param> /// <param name="atomically">A flag that specifies whether the output should be written atomically. /// If flag is true, the dictionary is written to an auxiliary location, and then the auxiliary location is renamed to aURL. If flag is false, the dictionary is written directly to aURL. The true option guarantees that aURL, if it exists at all, won’t be corrupted even if the system should crash during writing. flag is ignored if aURL is of a type that cannot be written atomically.</param> [iOSVersion(2)] [Export("writeToURL")] public virtual bool WriteToURL(NSURL aURL, bool atomically) { return default(bool); } /// <summary> /// Returns the value for the NSFileCreationDate key. /// </summary> [iOSVersion(2)] [Export("fileCreationDate")] [return:Optional] public virtual NSDate FileCreationDate() { return default(NSDate); } /// <summary> /// Returns the value for the NSFileExtensionHidden key. /// </summary> [iOSVersion(2)] [Export("fileExtensionHidden")] public virtual bool FileExtensionHidden() { return default(bool); } /// <summary> /// Returns the value for the NSFileGroupOwnerAccountID key. /// </summary> [iOSVersion(2)] [Export("fileGroupOwnerAccountID")] [return:Optional] public virtual NSNumber FileGroupOwnerAccountID() { return default(NSNumber); } /// <summary> /// Returns the value for the NSFileGroupOwnerAccountName key. /// </summary> [iOSVersion(2)] [Export("fileGroupOwnerAccountName")] [return:Optional] public virtual string FileGroupOwnerAccountName() { return default(string); } /// <summary> /// Returns the value for the NSFileHFSCreatorCode key. /// </summary> [iOSVersion(2)] [Export("fileHFSCreatorCode")] public virtual OSType FileHFSCreatorCode() { return default(OSType); } /// <summary> /// Returns the value for the NSFileHFSTypeCode key. /// </summary> [iOSVersion(2)] [Export("fileHFSTypeCode")] public virtual OSType FileHFSTypeCode() { return default(OSType); } /// <summary> /// Returns the value for the NSFileAppendOnly key. /// </summary> [iOSVersion(2)] [Export("fileIsAppendOnly")] public virtual bool FileIsAppendOnly() { return default(bool); } /// <summary> /// Returns the value for the NSFileImmutable key. /// </summary> [iOSVersion(2)] [Export("fileIsImmutable")] public virtual bool FileIsImmutable() { return default(bool); } /// <summary> /// Returns the value for the key NSFileModificationDate. /// </summary> [iOSVersion(2)] [Export("fileModificationDate")] [return:Optional] public virtual NSDate FileModificationDate() { return default(NSDate); } /// <summary> /// Returns the value for the NSFileOwnerAccountID key. /// </summary> [iOSVersion(2)] [Export("fileOwnerAccountID")] [return:Optional] public virtual NSNumber FileOwnerAccountID() { return default(NSNumber); } /// <summary> /// Returns the value for the key NSFileOwnerAccountName. /// </summary> [iOSVersion(2)] [Export("fileOwnerAccountName")] [return:Optional] public virtual string FileOwnerAccountName() { return default(string); } /// <summary> /// Returns the value for the key NSFilePosixPermissions. /// </summary> [iOSVersion(2)] [Export("filePosixPermissions")] public virtual int FilePosixPermissions() { return default(int); } /// <summary> /// Returns the value for the key NSFileSize. /// </summary> [iOSVersion(2)] [Export("fileSize")] public virtual UInt64 FileSize() { return default(UInt64); } /// <summary> /// Returns the value for the key NSFileSystemFileNumber. /// </summary> [iOSVersion(2)] [Export("fileSystemFileNumber")] public virtual int FileSystemFileNumber() { return default(int); } /// <summary> /// Returns the value for the key NSFileSystemNumber. /// </summary> [iOSVersion(2)] [Export("fileSystemNumber")] public virtual int FileSystemNumber() { return default(int); } /// <summary> /// Returns the value for the key NSFileType. /// </summary> [iOSVersion(2)] [Export("fileType")] [return:Optional] public virtual string FileType() { return default(string); } /// <summary> /// Returns a string object that represents the contents of the dictionary, formatted as a property list. /// </summary> /// <param name="locale">An object that specifies options used for formatting each of the dictionary’s keys and values; pass nil if you don’t want them formatted. /// On iOS and OS X v10.5 and later, either an instance of NSDictionary or an NSLocale object may be used for locale. On OS X v10.4 and earlier it must be an instance of NSDictionary.</param> [iOSVersion(2)] [Export("descriptionWithLocale")] public virtual string DescriptionWithLocale([Optional] AnyObject locale) { return default(string); } /// <summary> /// Returns a string object that represents the contents of the dictionary, formatted as a property list. /// </summary> /// <param name="locale">An object that specifies options used for formatting each of the dictionary’s keys and values; pass nil if you don’t want them formatted. /// On iOS and OS X v10.5 and later, either an instance of NSDictionary or an NSLocale object may be used for locale. On OS X v10.4 and earlier it must be an instance of NSDictionary.</param> /// <param name="indent">Specifies a level of indentation, to make the output more readable: the indentation is (4 spaces) * level.</param> [iOSVersion(2)] [Export("descriptionWithLocale")] public virtual string DescriptionWithLocale([Optional] AnyObject locale, int indent) { return default(string); } /// <summary> /// The number of entries in the dictionary (read-only) /// </summary> [iOSVersion(2)] [Export("count")] public int Count { get; private set; } /// <summary> /// A new array containing the dictionary’s keys, or an empty array if the dictionary has no entries (read-only) /// </summary> [iOSVersion(2)] [Export("allKeys")] public AnyObject[] AllKeys { get; private set; } /// <summary> /// A new array containing the dictionary’s values, or an empty array if the dictionary has no entries (read-only) /// </summary> [iOSVersion(2)] [Export("allValues")] public AnyObject[] AllValues { get; private set; } /// <summary> /// A string that represents the contents of the dictionary, formatted as a property list (read-only) /// </summary> [iOSVersion(2)] [Export("description")] public string Description { get; private set; } /// <summary> /// A string that represents the contents of the dictionary, formatted in .strings file format (read-only) /// </summary> [iOSVersion(2)] [Export("descriptionInStringsFileFormat")] public string DescriptionInStringsFileFormat { get; private set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSDirectoryEnumerator.cs b/CocoaSharp/Foundation/NSDirectoryEnumerator.cs
index cc337bc1..cd225f7e 100644
--- a/CocoaSharp/Foundation/NSDirectoryEnumerator.cs
+++ b/CocoaSharp/Foundation/NSDirectoryEnumerator.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// An NSDirectoryEnumerator object enumerates the contents of a directory, returning the pathnames of all files and directories contained within that directory. These pathnames are relative to the directory. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSDirectoryEnumerator_Class/index.html#//apple_ref/occ/cl/NSDirectoryEnumerator"/> [iOSVersion(2)] public class NSDirectoryEnumerator : NSEnumerator//, AnyObject, NSFastEnumeration, NSObjectProtocol { /// <summary> /// Causes the receiver to skip recursion into the most recently obtained subdirectory. /// </summary> [iOSVersion(2)] [Export("skipDescendents")] public void SkipDescendents() { } /// <summary> /// Causes the receiver to skip recursion into the most recently obtained subdirectory. /// </summary> [iOSVersion(4)] [Export("skipDescendants")] public void SkipDescendants() { } /// <summary> /// Returns an NSDictionary object that contains the attributes of the directory at which enumeration started. /// </summary> [iOSVersion(2)] [Export("directoryAttributes")] public Dictionary<NSObject, AnyObject> DirectoryAttributes { get; private set; } /// <summary> /// Returns an object that contains the attributes of the most recently returned file or subdirectory (as referenced by the pathname). /// </summary> [iOSVersion(2)] [Export("fileAttributes")] public Dictionary<NSObject, AnyObject> FileAttributes { get; private set; } /// <summary> /// Returns the number of levels deep the current object is in the directory hierarchy being enumerated. /// </summary> [iOSVersion(4)] [Export("level")] public int Level { get; private set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// An NSDirectoryEnumerator object enumerates the contents of a directory, returning the pathnames of all files and directories contained within that directory. These pathnames are relative to the directory. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSDirectoryEnumerator_Class/index.html#//apple_ref/occ/cl/NSDirectoryEnumerator"/> [iOSVersion(2)] [Export("")] public class NSDirectoryEnumerator : NSEnumerator//, AnyObject, CVarArgType, Equatable, Hashable, NSFastEnumeration, NSObjectProtocol, Printable { public NSDirectoryEnumerator() { } /// <summary> /// Causes the receiver to skip recursion into the most recently obtained subdirectory. /// </summary> [iOSVersion(2)] [Export("skipDescendents")] public virtual void SkipDescendents() { } /// <summary> /// Causes the receiver to skip recursion into the most recently obtained subdirectory. /// </summary> [iOSVersion(4)] [Export("skipDescendants")] public virtual void SkipDescendants() { } /// <summary> /// A dictionary with the attributes of the directory at which enumeration started. (read-only) /// </summary> [iOSVersion(2)] [Export("directoryAttributes")] public Dictionary<NSObject, AnyObject> DirectoryAttributes { get; private set; } /// <summary> /// A dictionary with the attributes of the most recently returned file or subdirectory (as referenced by the pathname). (read-only) /// </summary> [iOSVersion(2)] [Export("fileAttributes")] public Dictionary<NSObject, AnyObject> FileAttributes { get; private set; } /// <summary> /// The number of levels deep the current object is in the directory hierarchy being enumerated. (read-only) /// </summary> [iOSVersion(4)] [Export("level")] public int Level { get; private set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSEnergyFormatter.cs b/CocoaSharp/Foundation/NSEnergyFormatter.cs
new file mode 100644
index 00000000..5eebc29f
--- /dev/null
+++ b/CocoaSharp/Foundation/NSEnergyFormatter.cs
@@ -0,0 +1 @@
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSEnergyFormatter class provides properly formatted, localized descriptions of energy values. Use this class to create localized strings when displaying energy information (for example, joules or calories) to users. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Miscellaneous/Reference/NSEnergyFormatter_Class/index.html#//apple_ref/occ/cl/NSEnergyFormatter"/> [iOSVersion(8)] [Export("")] public class NSEnergyFormatter : NSFormatter//, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSObjectProtocol, Printable { public NSEnergyFormatter() { } /// <summary> /// This method is not supported for the NSEnergyFormatter class. /// </summary> /// <param name="obj">An output parameter. If overridden, this parameter should contain the object created from the provided string.</param> /// <param name="forString">A string representation of the object.</param> /// <param name="errorDescription">An output parameter. If overridden, this parameter should contain a description of any errors that occur. If you do not want to receive error messages, set this parameter to NULL.</param> [iOSVersion(8)] [Export("getObjectValue")] public virtual bool GetObjectValue(AutoreleasingUnsafeMutablePointer<AnyObject> obj, string forString, AutoreleasingUnsafeMutablePointer<string> errorDescription) { return default(bool); } /// <summary> /// Returns an energy string for the provided value. /// </summary> /// <param name="numberInJoules">The energy value in joules.</param> [iOSVersion(8)] [Export("stringFromJoules")] public virtual string StringFromJoules(Double numberInJoules) { return default(string); } /// <summary> /// Returns a properly formatted energy string for the given value and unit. /// </summary> /// <param name="value">The energy value in the given unit.</param> /// <param name="unit">The unit used in the resulting energy string.</param> [iOSVersion(8)] [Export("stringFromValue")] public virtual string StringFromValue(Double value, NSEnergyFormatterUnit unit) { return default(string); } /// <summary> /// Returns the unit string for the provided value. /// </summary> /// <param name="numberInJoules">The energy value in joules.</param> /// <param name="usedUnit">An output parameter. This will hold the NSEnergyFormatterUnit value that corresponds to the returned units.</param> [iOSVersion(8)] [Export("unitStringFromJoules")] public virtual string UnitStringFromJoules(Double numberInJoules, UnsafeMutablePointer<NSEnergyFormatterUnit> usedUnit) { return default(string); } /// <summary> /// Returns the unit string based on the provided value and unit. /// </summary> /// <param name="value">The energy value in the provided unit.</param> /// <param name="unit">The unit to use in the resulting energy string.</param> [iOSVersion(8)] [Export("unitStringFromValue")] public virtual string UnitStringFromValue(Double value, NSEnergyFormatterUnit unit) { return default(string); } /// <summary> /// A Boolean value that indicates whether the energy value is used to measure food energy. /// </summary> [iOSVersion(8)] [Export("forFoodEnergyUse")] public bool ForFoodEnergyUse { get; set; } /// <summary> /// The number formatter used to format the numbers in energy strings. /// </summary> [iOSVersion(8)] [Export("numberFormatter")] public NSNumberFormatter NumberFormatter { get; set; } /// <summary> /// The unit style used by this formatter. /// </summary> [iOSVersion(8)] [Export("unitStyle")] public NSFormattingUnitStyle UnitStyle { get; set; } } /// <summary> /// The units supported by the NSEnergyFormatter class. /// </summary> public enum NSEnergyFormatterUnit { /// <summary> /// The joule unit. /// </summary> [iOSVersion(8)] Joule, /// <summary> /// The kilojoule unit. /// </summary> [iOSVersion(8)] Kilojoule, /// <summary> /// The calorie unit. This unit is often used in chemistry. It is abbreviated as “cal.” /// </summary> [iOSVersion(8)] Calorie, /// <summary> /// The kilocalorie unit. This unit is used for food calories in some locales. In general, it is abbreviated as “kcal.” However, it may be abbreviated as “C” when used to represent food calories. /// </summary> [iOSVersion(8)] Kilocalorie, } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSEnumerator.cs b/CocoaSharp/Foundation/NSEnumerator.cs
index 13458849..7e8ec0db 100644
--- a/CocoaSharp/Foundation/NSEnumerator.cs
+++ b/CocoaSharp/Foundation/NSEnumerator.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSEnumerator is an abstract class, instances of whose subclasses enumerate collections of other objects, such as arrays and dictionaries. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSEnumerator_Class/index.html#//apple_ref/occ/cl/NSEnumerator"/> [iOSVersion(2)] public class NSEnumerator : NSObject//, AnyObject, NSFastEnumeration, NSObjectProtocol { /// <summary> /// Returns the next object from the collection being enumerated. /// </summary> [iOSVersion(2)] [Export("nextObject")] public AnyObject NextObject() { return default(AnyObject); } /// <summary> /// The array of unenumerated objects. (read-only) /// </summary> [iOSVersion(2)] [Export("allObjects")] public AnyObject[] AllObjects { get; private set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSEnumerator is an abstract class, instances of whose subclasses enumerate collections of other objects, such as arrays and dictionaries. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSEnumerator_Class/index.html#//apple_ref/occ/cl/NSEnumerator"/> [iOSVersion(2)] [Export("")] public class NSEnumerator : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSFastEnumeration, NSObjectProtocol, Printable { public NSEnumerator() { } /// <summary> /// Returns the next object from the collection being enumerated. /// </summary> [iOSVersion(2)] [Export("nextObject")] [return:Optional] public virtual AnyObject NextObject() { return default(AnyObject); } /// <summary> /// The array of unenumerated objects. (read-only) /// </summary> [iOSVersion(2)] [Export("allObjects")] public AnyObject[] AllObjects { get; private set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSError.cs b/CocoaSharp/Foundation/NSError.cs
index b138668d..5cd6bcba 100644
--- a/CocoaSharp/Foundation/NSError.cs
+++ b/CocoaSharp/Foundation/NSError.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// An NSError object encapsulates richer and more extensible error information than is possible using only an error code or error string. The core attributes of an NSError object are an error domain (represented by a string), a domain-specific error code and a user info dictionary containing application specific information. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSError_Class/index.html#//apple_ref/occ/cl/NSError"/> [iOSVersion(2)] public class NSError : NSObject//, AnyObject, NSCoding, NSCopying, NSObjectProtocol, NSSecureCoding { /// <summary> /// Creates and initializes an NSError object for a given domain and code with a given userInfo dictionary. /// </summary> /// <param name="domain">The error domain—this can be one of the predefined NSError domains, or an arbitrary string describing a custom domain. domain must not be nil. See Error Domains for a list of predefined domains.</param> /// <param name="code">The error code for the error.</param> /// <param name="userInfo">The userInfo dictionary for the error. userInfo may be nil.</param> [iOSVersion(2)] [Export("errorWithDomain")] public static NSError ErrorWithDomain(string domain, int code, Dictionary<NSObject, AnyObject> userInfo) { return default(NSError); } /// <summary> /// Returns an NSError object initialized for a given domain and code with a given userInfo dictionary. /// </summary> /// <param name="domain">The error domain—this can be one of the predefined NSError domains, or an arbitrary string describing a custom domain. domain must not be nil. See Error Domains for a list of predefined domains.</param> /// <param name="code">The error code for the error.</param> /// <param name="userInfo">The userInfo dictionary for the error. userInfo may be nil.</param> [iOSVersion(2)] public NSError(string domain, int code, Dictionary<NSObject, AnyObject> userInfo) { } /// <summary> /// The error code. (read-only) /// </summary> [iOSVersion(2)] [Export("code")] public int Code { get; private set; } /// <summary> /// A string containing the error domain. (read-only) /// </summary> [iOSVersion(2)] [Export("domain")] public string Domain { get; private set; } /// <summary> /// The user info dictionary. (read-only) /// </summary> [iOSVersion(2)] [Export("userInfo")] public Dictionary<NSObject, AnyObject> UserInfo { get; private set; } /// <summary> /// A string containing the localized description of the error. (read-only) /// </summary> [iOSVersion(2)] [Export("localizedDescription")] public string LocalizedDescription { get; private set; } /// <summary> /// An array containing the localized titles of buttons appropriate for displaying in an alert panel. (read-only) /// </summary> [iOSVersion(2)] [Export("localizedRecoveryOptions")] public AnyObject[] LocalizedRecoveryOptions { get; private set; } /// <summary> /// A string containing the localized recovery suggestion for the error. (read-only) /// </summary> [iOSVersion(2)] [Export("localizedRecoverySuggestion")] public string LocalizedRecoverySuggestion { get; private set; } /// <summary> /// A string containing the localized explanation of the reason for the error. (read-only) /// </summary> [iOSVersion(2)] [Export("localizedFailureReason")] public string LocalizedFailureReason { get; private set; } /// <summary> /// An object that conforms to the NSErrorRecoveryAttempting informal protocol. (read-only) /// </summary> [iOSVersion(2)] [Export("recoveryAttempter")] public AnyObject RecoveryAttempter { get; private set; } /// <summary> /// A string to display in response to an alert panel help anchor button being pressed. (read-only) /// </summary> [iOSVersion(4)] [Export("helpAnchor")] public string HelpAnchor { get; private set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// An NSError object encapsulates richer and more extensible error information than is possible using only an error code or error string. The core attributes of an NSError object are an error domain (represented by a string), a domain-specific error code and a user info dictionary containing application specific information. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSError_Class/index.html#//apple_ref/occ/cl/NSError"/> [iOSVersion(2)] [Export("")] public class NSError : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSObjectProtocol, NSSecureCoding, Printable { public NSError() { } /// <summary> /// Returns an NSError object initialized for a given domain and code with a given userInfo dictionary. /// </summary> /// <param name="domain">The error domain—this can be one of the predefined NSError domains, or an arbitrary string describing a custom domain. domain must not be nil. See Error Domains for a list of predefined domains.</param> /// <param name="code">The error code for the error.</param> /// <param name="userInfo">The userInfo dictionary for the error. userInfo may be nil.</param> [iOSVersion(2)] public NSError(string domain, int code, Dictionary<NSObject, AnyObject> userInfo) { } /// <summary> /// The error code. (read-only) /// </summary> [iOSVersion(2)] [Export("code")] public int Code { get; private set; } /// <summary> /// A string containing the error domain. (read-only) /// </summary> [iOSVersion(2)] [Export("domain")] public string Domain { get; private set; } /// <summary> /// The user info dictionary. (read-only) /// </summary> [iOSVersion(2)] [Export("userInfo")] public Dictionary<NSObject, AnyObject> UserInfo { get; private set; } /// <summary> /// A string containing the localized description of the error. (read-only) /// </summary> [iOSVersion(2)] [Export("localizedDescription")] public string LocalizedDescription { get; private set; } /// <summary> /// An array containing the localized titles of buttons appropriate for displaying in an alert panel. (read-only) /// </summary> [iOSVersion(2)] [Export("localizedRecoveryOptions")] public AnyObject[] LocalizedRecoveryOptions { get; private set; } /// <summary> /// A string containing the localized recovery suggestion for the error. (read-only) /// </summary> [iOSVersion(2)] [Export("localizedRecoverySuggestion")] [Optional] public string LocalizedRecoverySuggestion { get; private set; } /// <summary> /// A string containing the localized explanation of the reason for the error. (read-only) /// </summary> [iOSVersion(2)] [Export("localizedFailureReason")] [Optional] public string LocalizedFailureReason { get; private set; } /// <summary> /// An object that conforms to the NSErrorRecoveryAttempting informal protocol. (read-only) /// </summary> [iOSVersion(2)] [Export("recoveryAttempter")] [Optional] public AnyObject RecoveryAttempter { get; private set; } /// <summary> /// A string to display in response to an alert panel help anchor button being pressed. (read-only) /// </summary> [iOSVersion(4)] [Export("helpAnchor")] [Optional] public string HelpAnchor { get; private set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSException.cs b/CocoaSharp/Foundation/NSException.cs
index 301824f5..55ec3ce3 100644
--- a/CocoaSharp/Foundation/NSException.cs
+++ b/CocoaSharp/Foundation/NSException.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSException is used to implement exception handling and contains information about an exception. An exception is a special condition that interrupts the normal flow of program execution. Each application can interrupt the program for different reasons. For example, one application might interpret saving a file in a directory that is write-protected as an exception. In this sense, the exception is equivalent to an error. Another application might interpret the user’s key-press (for example, Control-C) as an exception: an indication that a long-running process should be aborted. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSException_Class/index.html#//apple_ref/occ/cl/NSException"/> [iOSVersion(2)] public class NSException : NSObject//, AnyObject, NSCoding, NSCopying, NSObjectProtocol { /// <summary> /// Creates and raises an exception with the specified name, reason, and arguments. /// </summary> /// <param name="name">The name of the exception.</param> /// <param name="format">A human-readable message string (that is, the exception reason) with conversion specifications for the variable arguments in argList.</param> /// <param name="arguments">Variable information to be inserted into the formatted exception reason (in the manner of vprintf).</param> [iOSVersion(2)] [Export("raise")] public static void Raise(string name, string format, CVaListPointer arguments) { } /// <summary> /// Initializes and returns a newly allocated exception object. /// </summary> /// <param name="name">The name of the exception.</param> /// <param name="reason">A human-readable message string summarizing the reason for the exception.</param> /// <param name="userInfo">A dictionary containing user-defined information relating to the exception</param> [iOSVersion(2)] public NSException(string name, string reason, Dictionary<NSObject, AnyObject> userInfo) { } /// <summary> /// Raises the receiver, causing program flow to jump to the local exception handler. /// </summary> [iOSVersion(2)] [Export("raise")] public void Raise() { } /// <summary> /// A string used to uniquely identify the receiver. (read-only) /// </summary> [iOSVersion(2)] [Export("name")] public string Name { get; private set; } /// <summary> /// A string containing a “human-readable” reason for the receiver. (read-only) /// </summary> [iOSVersion(2)] [Export("reason")] public string Reason { get; private set; } /// <summary> /// A dictionary containing application-specific data pertaining to the receiver. (read-only) /// </summary> [iOSVersion(2)] [Export("userInfo")] public Dictionary<NSObject, AnyObject> UserInfo { get; private set; } /// <summary> /// The call return addresses related to a raised exception. (read-only) /// </summary> [iOSVersion(2)] [Export("callStackReturnAddresses")] public AnyObject[] CallStackReturnAddresses { get; private set; } /// <summary> /// An array containing the current call stack symbols. (read-only) /// </summary> [iOSVersion(4)] [Export("callStackSymbols")] public AnyObject[] CallStackSymbols { get; private set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSException is used to implement exception handling and contains information about an exception. An exception is a special condition that interrupts the normal flow of program execution. Each application can interrupt the program for different reasons. For example, one application might interpret saving a file in a directory that is write-protected as an exception. In this sense, the exception is equivalent to an error. Another application might interpret the user’s key-press (for example, Control-C) as an exception: an indication that a long-running process should be aborted. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSException_Class/index.html#//apple_ref/occ/cl/NSException"/> [iOSVersion(2)] [Export("")] public class NSException : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSObjectProtocol, Printable { public NSException() { } /// <summary> /// Creates and raises an exception with the specified name, reason, and arguments. /// </summary> /// <param name="name">The name of the exception.</param> /// <param name="format">A human-readable message string (that is, the exception reason) with conversion specifications for the variable arguments in argList.</param> /// <param name="arguments">Variable information to be inserted into the formatted exception reason (in the manner of vprintf).</param> [iOSVersion(2)] [Export("raise")] public static void Raise(string name, string format, CVaListPointer arguments) { } /// <summary> /// Initializes and returns a newly allocated exception object. /// </summary> /// <param name="name">The name of the exception.</param> /// <param name="reason">A human-readable message string summarizing the reason for the exception.</param> /// <param name="userInfo">A dictionary containing user-defined information relating to the exception</param> [iOSVersion(2)] public NSException(string name, [Optional] string reason, Dictionary<NSObject, AnyObject> userInfo) { } /// <summary> /// Raises the receiver, causing program flow to jump to the local exception handler. /// </summary> [iOSVersion(2)] [Export("raise")] public virtual void Raise() { } /// <summary> /// A string used to uniquely identify the receiver. (read-only) /// </summary> [iOSVersion(2)] [Export("name")] public string Name { get; private set; } /// <summary> /// A string containing a “human-readable” reason for the receiver. (read-only) /// </summary> [iOSVersion(2)] [Export("reason")] [Optional] public string Reason { get; private set; } /// <summary> /// A dictionary containing application-specific data pertaining to the receiver. (read-only) /// </summary> [iOSVersion(2)] [Export("userInfo")] public Dictionary<NSObject, AnyObject> UserInfo { get; private set; } /// <summary> /// The call return addresses related to a raised exception. (read-only) /// </summary> [iOSVersion(2)] [Export("callStackReturnAddresses")] public AnyObject[] CallStackReturnAddresses { get; private set; } /// <summary> /// An array containing the current call stack symbols. (read-only) /// </summary> [iOSVersion(4)] [Export("callStackSymbols")] public AnyObject[] CallStackSymbols { get; private set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSExpression.cs b/CocoaSharp/Foundation/NSExpression.cs
index abd1ffc7..9f0db585 100644
--- a/CocoaSharp/Foundation/NSExpression.cs
+++ b/CocoaSharp/Foundation/NSExpression.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSExpression is used to represent expressions in a predicate. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSExpression_Class/index.html#//apple_ref/occ/cl/NSExpression"/> [iOSVersion(3)] public class NSExpression : NSObject//, AnyObject, NSCoding, NSCopying, NSObjectProtocol, NSSecureCoding { /// <summary> /// Initializes the expression with the specified expression type. /// </summary> /// <param name="expressionType">The type of the new expression, as defined by NSExpressionType.</param> [iOSVersion(3)] public NSExpression(NSExpressionType expressionType) { } /// <summary> /// Initializes the expression with the specified expression format and array of arguments. /// </summary> /// <param name="format">The expression format.</param> /// <param name="argumentArray">An array of arguments to be used with the expressionFormat string.</param> [iOSVersion(4)] public NSExpression(string format, AnyObject[] argumentArray) { } /// <summary> /// Initializes the expression with the specified expression format and arguments list. /// </summary> /// <param name="format">The expression format.</param> /// <param name="arguments">A list of arguments to be inserted into the expressionFormat string. The argument list is terminated by nil.</param> [iOSVersion(4)] public NSExpression(string format, CVaListPointer arguments) { } /// <summary> /// Returns a new expression that represents a given constant value. /// </summary> /// <param name="forConstantValue">The constant value the new expression is to represent.</param> [iOSVersion(3)] public NSExpression(AnyObject forConstantValue) { } /// <summary> /// Returns a new expression that represents the object being evaluated. /// </summary> [iOSVersion(3)] [Export("expressionForEvaluatedObject")] public static NSExpression ExpressionForEvaluatedObject() { return default(NSExpression); } /// <summary> /// Returns a new expression that invokes valueForKeyPath: with a given key path. /// </summary> /// <param name="forKeyPath">The key path that the new expression should evaluate.</param> [iOSVersion(3)] public NSExpression(string forKeyPath) { } /// <summary> /// Returns a new expression that extracts a value from the variable bindings dictionary for a given key. /// </summary> /// <param name="forVariable">The key for the variable to extract from the variable bindings dictionary.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(3)] [IgnoreParameter("NAME_YOUR_PARAMS")] public NSExpression(string forVariable, bool NAME_YOUR_PARAMS = false) { } /// <summary> /// Returns a new expression that represents any key for a Spotlight query. /// </summary> [iOSVersion(7)] [Export("expressionForAnyKey")] public static NSExpression ExpressionForAnyKey() { return default(NSExpression); } /// <summary> /// Returns a new aggregate expression for a given collection. /// </summary> /// <param name="forAggregate">A collection object (an instance of NSArray, NSSet, or NSDictionary) that contains further expressions.</param> [iOSVersion(3)] public NSExpression(AnyObject[] forAggregate) { } /// <summary> /// Returns a new NSExpression object that represent the union of a given set and collection. /// </summary> /// <param name="forUnionSet">An expression that evaluates to an NSSet object.</param> /// <param name="with">An expression that evaluates to a collection object (an instance of NSArray, NSSet, or NSDictionary).</param> [iOSVersion(3)] public NSExpression(NSExpression forUnionSet, NSExpression with) { } /// <summary> /// Returns a new NSExpression object that represent the intersection of a given set and collection. /// </summary> /// <param name="forIntersectSet">An expression that evaluates to an NSSet object.</param> /// <param name="with">An expression that evaluates to a collection object (an instance of NSArray, NSSet, or NSDictionary).</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(3)] [IgnoreParameter("NAME_YOUR_PARAMS")] public NSExpression(NSExpression forIntersectSet, NSExpression with, bool NAME_YOUR_PARAMS = false) { } /// <summary> /// Returns a new NSExpression object that represent the subtraction of a given collection from a given set. /// </summary> /// <param name="forMinusSet">An expression that evaluates to an NSSet object.</param> /// <param name="with">An expression that evaluates to a collection object (an instance of NSArray, NSSet, or NSDictionary).</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(3)] [IgnoreParameter("NAME_YOUR_PARAMS")] public NSExpression(NSExpression forMinusSet, NSExpression with, int NAME_YOUR_PARAMS = 0) { } /// <summary> /// Returns an expression that filters a collection by storing elements in the collection in a given variable and keeping the elements for which qualifier returns true. /// </summary> /// <param name="forSubquery">A predicate expression that evaluates to a collection.</param> /// <param name="usingIteratorVariable">Used as a local variable, and will shadow any instances of variable in the bindings dictionary. The variable is removed or the old value replaced once evaluation completes.</param> /// <param name="predicate">The predicate used to determine whether the element belongs in the result collection.</param> [iOSVersion(3)] public NSExpression(NSExpression forSubquery, string usingIteratorVariable, AnyObject predicate) { } /// <summary> /// Creates an NSExpression object that will use the Block for evaluating objects. /// </summary> /// <param name="forBlock">The Block is applied to the object to be evaluated. /// The Block takes three arguments and returns a value: /// evaluatedObject /// The object to be evaluated. /// expressions /// An array of predicate expressions that evaluates to a collection. /// context /// A dictionary that the expression can use to store temporary state for one predicate evaluation. /// Note that context is mutable, and that it can only be accessed during the evaluation of the expression. You must not attempt to retain it for use elsewhere. ] /// The Block returns the evaluatedObject.</param> /// <param name="arguments">An array containing NSExpression objects that will be used as parameters during the invocation of selector. /// For a selector taking no parameters, the array should be empty. For a selector taking one or more parameters, the array should contain one NSExpression object which will evaluate to an instance of the appropriate type for each parameter. /// If there is a mismatch between the number of parameters expected and the number you provide during evaluation, an exception may be raised or missing parameters may simply be replaced by nil (which occurs depends on how many parameters are provided, and whether you have over- or underflow). /// See expressionForFunction:arguments: for a complete list of arguments.</param> [iOSVersion(4)] public NSExpression(Func<AnyObject, AnyObject[], NSMutableDictionary, AnyObject> forBlock, AnyObject[] arguments) { } /// <summary> /// Returns a new expression that will invoke one of the predefined functions. /// </summary> /// <param name="forFunction">The name of the function to invoke.</param> /// <param name="arguments">An array containing NSExpression objects that will be used as parameters during the invocation of selector. /// For a selector taking no parameters, the array should be empty. For a selector taking one or more parameters, the array should contain one NSExpression object which will evaluate to an instance of the appropriate type for each parameter. /// If there is a mismatch between the number of parameters expected and the number you provide during evaluation, an exception may be raised or missing parameters may simply be replaced by nil (which occurs depends on how many parameters are provided, and whether you have over- or underflow).</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(3)] [IgnoreParameter("NAME_YOUR_PARAMS")] public NSExpression(string forFunction, AnyObject[] arguments, bool NAME_YOUR_PARAMS = false) { } /// <summary> /// Returns an expression which will return the result of invoking on a given target a selector with a given name using given arguments. /// </summary> /// <param name="forFunction">An NSExpression object which will evaluate an object on which the selector identified by name may be invoked.</param> /// <param name="selectorName">The name of the method to be invoked.</param> /// <param name="arguments">An array containing NSExpression objects which can be evaluated to provide parameters for the method specified by name.</param> [iOSVersion(3)] public NSExpression(NSExpression forFunction, string selectorName, AnyObject[] arguments) { } /// <summary> /// Evaluates an expression using a given object and context. /// </summary> /// <param name="@object">The object against which the expression is evaluated.</param> /// <param name="context">A dictionary that the expression can use to store temporary state for one predicate evaluation. Can be nil. /// Note that context is mutable, and that it can only be accessed during the evaluation of the expression. You must not attempt to retain it for use elsewhere.</param> [iOSVersion(3)] [Export("expressionValueWithObject")] public AnyObject ExpressionValueWithObject(AnyObject @object, NSMutableDictionary context) { return default(AnyObject); } /// <summary> /// Force an expression that was securely decoded to allow evaluation. /// </summary> [iOSVersion(7)] [Export("allowEvaluation")] public void AllowEvaluation() { } /// <summary> /// The arguments for the expression. (read-only) /// </summary> [iOSVersion(3)] [Export("arguments")] public AnyObject[] Arguments { get; private set; } /// <summary> /// The collection of expressions in an aggregate expression, or the collection element of a subquery expression. (read-only) /// </summary> [iOSVersion(3)] [Export("collection")] public AnyObject Collection { get; private set; } /// <summary> /// The constant value of the expression. (read-only) /// </summary> [iOSVersion(3)] [Export("constantValue")] public AnyObject ConstantValue { get; private set; } /// <summary> /// The expression type for the expression. (read-only) /// </summary> [iOSVersion(3)] [Export("expressionType")] public NSExpressionType ExpressionType { get; private set; } /// <summary> /// The function for the expression. (read-only) /// </summary> [iOSVersion(3)] [Export("function")] public string Function { get; private set; } /// <summary> /// The key path for the expression. (read-only) /// </summary> [iOSVersion(3)] [Export("keyPath")] public string KeyPath { get; private set; } /// <summary> /// The operand for the expression. (read-only) /// </summary> [iOSVersion(3)] [Export("operand")] public NSExpression Operand { get; private set; } /// <summary> /// The predicate of a subquery expression. (read-only) /// </summary> [iOSVersion(3)] [Export("predicate")] public NSPredicate Predicate { get; private set; } /// <summary> /// The left expression of an aggregate expression. (read-only) /// </summary> [iOSVersion(3)] [Export("leftExpression")] public NSExpression LeftExpression { get; private set; } /// <summary> /// The right expression of an aggregate expression. (read-only) /// </summary> [iOSVersion(3)] [Export("rightExpression")] public NSExpression RightExpression { get; private set; } /// <summary> /// The variable for the expression. (read-only) /// </summary> [iOSVersion(3)] [Export("variable")] public string Variable { get; private set; } /// <summary> /// The block that is executed to evaluate the expression. (read-only) /// </summary> [iOSVersion(4)] [Export("expressionBlock")] public Func<AnyObject, AnyObject[], NSMutableDictionary, AnyObject> ExpressionBlock { get; private set; } } /// <summary> /// Defines the possible types of NSExpression. /// </summary> [iOSVersion(3)] public enum NSExpressionType { /// <summary> /// An expression that always returns the same value. /// </summary> [iOSVersion(3)] ConstantValueExpressionType, /// <summary> /// An expression that always returns the parameter object itself. /// </summary> [iOSVersion(3)] EvaluatedObjectExpressionType, /// <summary> /// An expression that always returns whatever value is associated with the key specified by ‘variable’ in the bindings dictionary. /// </summary> [iOSVersion(3)] VariableExpressionType, /// <summary> /// An expression that returns something that can be used as a key path. /// </summary> [iOSVersion(3)] KeyPathExpressionType, /// <summary> /// An expression that returns the result of evaluating a function. /// </summary> [iOSVersion(3)] FunctionExpressionType, /// <summary> /// An expression that creates a union of the results of two nested expressions. /// </summary> [iOSVersion(3)] UnionSetExpressionType, /// <summary> /// An expression that creates an intersection of the results of two nested expressions. /// </summary> [iOSVersion(3)] IntersectSetExpressionType, /// <summary> /// An expression that combines two nested expression results by set subtraction. /// </summary> [iOSVersion(3)] MinusSetExpressionType, /// <summary> /// An expression that filters a collection using a subpredicate. /// </summary> [iOSVersion(3)] SubqueryExpressionType, /// <summary> /// An expression that defines an aggregate of NSExpression objects. /// </summary> [iOSVersion(3)] AggregateExpressionType, /// <summary> /// An expression that represents any key. /// </summary> [iOSVersion(7)] AnyKeyExpressionType, /// <summary> /// An expression that uses a Block. /// </summary> [iOSVersion(4)] BlockExpressionType, } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSExpression is used to represent expressions in a predicate. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSExpression_Class/index.html#//apple_ref/occ/cl/NSExpression"/> [iOSVersion(3)] [Export("")] public class NSExpression : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSObjectProtocol, NSSecureCoding, Printable { public NSExpression() { } /// <summary> /// Initializes the expression with the specified expression type. /// </summary> /// <param name="expressionType">The type of the new expression, as defined by NSExpressionType.</param> [iOSVersion(3)] public NSExpression(NSExpressionType expressionType) { } /// <summary> /// Initializes the expression with the specified expression format and array of arguments. /// </summary> /// <param name="format">The expression format.</param> /// <param name="argumentArray">An array of arguments to be used with the expressionFormat string.</param> [iOSVersion(4)] public NSExpression(string format, AnyObject[] argumentArray) { } /// <summary> /// Initializes the expression with the specified expression format and arguments list. /// </summary> /// <param name="format">The expression format.</param> /// <param name="arguments">A list of arguments to be inserted into the expressionFormat string. The argument list is terminated by nil.</param> [iOSVersion(4)] public NSExpression(string format, CVaListPointer arguments) { } /// <summary> /// Returns a new expression that represents a given constant value. /// </summary> /// <param name="forConstantValue">The constant value the new expression is to represent.</param> [iOSVersion(3)] public NSExpression(AnyObject forConstantValue) { } /// <summary> /// Returns a new expression that represents the object being evaluated. /// </summary> [iOSVersion(3)] [Export("expressionForEvaluatedObject")] public static NSExpression ExpressionForEvaluatedObject() { return default(NSExpression); } /// <summary> /// Returns a new expression that invokes valueForKeyPath: with a given key path. /// </summary> /// <param name="forKeyPath">The key path that the new expression should evaluate.</param> [iOSVersion(3)] public NSExpression(string forKeyPath) { } /// <summary> /// Returns a new expression that extracts a value from the variable bindings dictionary for a given key. /// </summary> /// <param name="forVariable">The key for the variable to extract from the variable bindings dictionary.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(3)] [IgnoreParameter("NAME_YOUR_PARAMS")] public NSExpression(string forVariable, bool NAME_YOUR_PARAMS = false) { } /// <summary> /// Returns a new expression that represents any key for a Spotlight query. /// </summary> [iOSVersion(7)] [Export("expressionForAnyKey")] public static NSExpression ExpressionForAnyKey() { return default(NSExpression); } /// <summary> /// Returns a new aggregate expression for a given collection. /// </summary> /// <param name="forAggregate">A collection object (an instance of NSArray, NSSet, or NSDictionary) that contains further expressions.</param> [iOSVersion(3)] public NSExpression(AnyObject[] forAggregate) { } /// <summary> /// Returns a new NSExpression object that represent the union of a given set and collection. /// </summary> /// <param name="forUnionSet">An expression that evaluates to an NSSet object.</param> /// <param name="with">An expression that evaluates to a collection object (an instance of NSArray, NSSet, or NSDictionary).</param> [iOSVersion(3)] public NSExpression(NSExpression forUnionSet, NSExpression with) { } /// <summary> /// Returns a new NSExpression object that represent the intersection of a given set and collection. /// </summary> /// <param name="forIntersectSet">An expression that evaluates to an NSSet object.</param> /// <param name="with">An expression that evaluates to a collection object (an instance of NSArray, NSSet, or NSDictionary).</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(3)] [IgnoreParameter("NAME_YOUR_PARAMS")] public NSExpression(NSExpression forIntersectSet, NSExpression with, bool NAME_YOUR_PARAMS = false) { } /// <summary> /// Returns a new NSExpression object that represent the subtraction of a given collection from a given set. /// </summary> /// <param name="forMinusSet">An expression that evaluates to an NSSet object.</param> /// <param name="with">An expression that evaluates to a collection object (an instance of NSArray, NSSet, or NSDictionary).</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(3)] [IgnoreParameter("NAME_YOUR_PARAMS")] public NSExpression(NSExpression forMinusSet, NSExpression with, int NAME_YOUR_PARAMS = 0) { } /// <summary> /// Returns an expression that filters a collection by storing elements in the collection in a given variable and keeping the elements for which qualifier returns true. /// </summary> /// <param name="forSubquery">A predicate expression that evaluates to a collection.</param> /// <param name="usingIteratorVariable">Used as a local variable, and will shadow any instances of variable in the bindings dictionary. The variable is removed or the old value replaced once evaluation completes.</param> /// <param name="predicate">The predicate used to determine whether the element belongs in the result collection.</param> [iOSVersion(3)] public NSExpression(NSExpression forSubquery, string usingIteratorVariable, AnyObject predicate) { } /// <summary> /// Creates an NSExpression object that will use the Block for evaluating objects. /// </summary> /// <param name="forBlock">The Block is applied to the object to be evaluated. /// The Block takes three arguments and returns a value: /// evaluatedObject /// The object to be evaluated. /// expressions /// An array of predicate expressions that evaluates to a collection. /// context /// A dictionary that the expression can use to store temporary state for one predicate evaluation. /// Note that context is mutable, and that it can only be accessed during the evaluation of the expression. You must not attempt to retain it for use elsewhere. ] /// The Block returns the evaluatedObject.</param> /// <param name="arguments">An array containing NSExpression objects that will be used as parameters during the invocation of selector. /// For a selector taking no parameters, the array should be empty. For a selector taking one or more parameters, the array should contain one NSExpression object which will evaluate to an instance of the appropriate type for each parameter. /// If there is a mismatch between the number of parameters expected and the number you provide during evaluation, an exception may be raised or missing parameters may simply be replaced by nil (which occurs depends on how many parameters are provided, and whether you have over- or underflow). /// See expressionForFunction:arguments: for a complete list of arguments.</param> [iOSVersion(4)] public NSExpression(Func<AnyObject, AnyObject[], NSMutableDictionary, AnyObject> forBlock, AnyObject[] arguments) { } /// <summary> /// Returns a new expression that will invoke one of the predefined functions. /// </summary> /// <param name="forFunction">The name of the function to invoke.</param> /// <param name="arguments">An array containing NSExpression objects that will be used as parameters during the invocation of selector. /// For a selector taking no parameters, the array should be empty. For a selector taking one or more parameters, the array should contain one NSExpression object which will evaluate to an instance of the appropriate type for each parameter. /// If there is a mismatch between the number of parameters expected and the number you provide during evaluation, an exception may be raised or missing parameters may simply be replaced by nil (which occurs depends on how many parameters are provided, and whether you have over- or underflow).</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(3)] [IgnoreParameter("NAME_YOUR_PARAMS")] public NSExpression(string forFunction, AnyObject[] arguments, bool NAME_YOUR_PARAMS = false) { } /// <summary> /// Returns an expression which will return the result of invoking on a given target a selector with a given name using given arguments. /// </summary> /// <param name="forFunction">An NSExpression object which will evaluate an object on which the selector identified by name may be invoked.</param> /// <param name="selectorName">The name of the method to be invoked.</param> /// <param name="arguments">An array containing NSExpression objects which can be evaluated to provide parameters for the method specified by name.</param> [iOSVersion(3)] public NSExpression(NSExpression forFunction, string selectorName, AnyObject[] arguments) { } /// <summary> /// Evaluates an expression using a given object and context. /// </summary> /// <param name="@object">The object against which the expression is evaluated.</param> /// <param name="context">A dictionary that the expression can use to store temporary state for one predicate evaluation. Can be nil. /// Note that context is mutable, and that it can only be accessed during the evaluation of the expression. You must not attempt to retain it for use elsewhere.</param> [iOSVersion(3)] [Export("expressionValueWithObject")] public virtual AnyObject ExpressionValueWithObject([Optional] AnyObject @object, [Optional] NSMutableDictionary context) { return default(AnyObject); } /// <summary> /// Force an expression that was securely decoded to allow evaluation. /// </summary> [iOSVersion(7)] [Export("allowEvaluation")] public virtual void AllowEvaluation() { } /// <summary> /// The arguments for the expression. (read-only) /// </summary> [iOSVersion(3)] [Export("arguments")] public AnyObject[] Arguments { get; private set; } /// <summary> /// The collection of expressions in an aggregate expression, or the collection element of a subquery expression. (read-only) /// </summary> [iOSVersion(3)] [Export("collection")] public AnyObject Collection { get; private set; } /// <summary> /// The constant value of the expression. (read-only) /// </summary> [iOSVersion(3)] [Export("constantValue")] public AnyObject ConstantValue { get; private set; } /// <summary> /// The expression type for the expression. (read-only) /// </summary> [iOSVersion(3)] [Export("expressionType")] public NSExpressionType ExpressionType { get; private set; } /// <summary> /// The function for the expression. (read-only) /// </summary> [iOSVersion(3)] [Export("function")] public string Function { get; private set; } /// <summary> /// The key path for the expression. (read-only) /// </summary> [iOSVersion(3)] [Export("keyPath")] public string KeyPath { get; private set; } /// <summary> /// The operand for the expression. (read-only) /// </summary> [iOSVersion(3)] [Export("operand")] public NSExpression Operand { get; private set; } /// <summary> /// The predicate of a subquery expression. (read-only) /// </summary> [iOSVersion(3)] [Export("predicate")] public NSPredicate Predicate { get; private set; } /// <summary> /// The left expression of an aggregate expression. (read-only) /// </summary> [iOSVersion(3)] [Export("leftExpression")] public NSExpression LeftExpression { get; private set; } /// <summary> /// The right expression of an aggregate expression. (read-only) /// </summary> [iOSVersion(3)] [Export("rightExpression")] public NSExpression RightExpression { get; private set; } /// <summary> /// The variable for the expression. (read-only) /// </summary> [iOSVersion(3)] [Export("variable")] public string Variable { get; private set; } /// <summary> /// The block that is executed to evaluate the expression. (read-only) /// </summary> [iOSVersion(4)] [Export("expressionBlock")] public Func<AnyObject, AnyObject[], NSMutableDictionary, AnyObject> ExpressionBlock { get; private set; } } /// <summary> /// Defines the possible types of NSExpression. /// </summary> public enum NSExpressionType { /// <summary> /// An expression that always returns the same value. /// </summary> [iOSVersion(3)] ConstantValueExpressionType, /// <summary> /// An expression that always returns the parameter object itself. /// </summary> [iOSVersion(3)] EvaluatedObjectExpressionType, /// <summary> /// An expression that always returns whatever value is associated with the key specified by ‘variable’ in the bindings dictionary. /// </summary> [iOSVersion(3)] VariableExpressionType, /// <summary> /// An expression that returns something that can be used as a key path. /// </summary> [iOSVersion(3)] KeyPathExpressionType, /// <summary> /// An expression that returns the result of evaluating a function. /// </summary> [iOSVersion(3)] FunctionExpressionType, /// <summary> /// An expression that creates a union of the results of two nested expressions. /// </summary> [iOSVersion(3)] UnionSetExpressionType, /// <summary> /// An expression that creates an intersection of the results of two nested expressions. /// </summary> [iOSVersion(3)] IntersectSetExpressionType, /// <summary> /// An expression that combines two nested expression results by set subtraction. /// </summary> [iOSVersion(3)] MinusSetExpressionType, /// <summary> /// An expression that filters a collection using a subpredicate. /// </summary> [iOSVersion(3)] SubqueryExpressionType, /// <summary> /// An expression that defines an aggregate of NSExpression objects. /// </summary> [iOSVersion(3)] AggregateExpressionType, /// <summary> /// An expression that represents any key. /// </summary> [iOSVersion(7)] AnyKeyExpressionType, /// <summary> /// An expression that uses a Block. /// </summary> [iOSVersion(4)] BlockExpressionType, } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSExtensionContext.cs b/CocoaSharp/Foundation/NSExtensionContext.cs
index 2bde1bd1..9ceb11a5 100644
--- a/CocoaSharp/Foundation/NSExtensionContext.cs
+++ b/CocoaSharp/Foundation/NSExtensionContext.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// An NSExtensionContext object represents the context in which an app extension is invoked. When the currently running app (known as the host app) sends a request to an extension, it defines the context in which the extension runs. For many app extensions, the most important part of the context is the data the user wants to work with, which is contained in the inputItems property. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSExtensionContext_Class/index.html#//apple_ref/occ/cl/NSExtensionContext"/> [iOSVersion(8)] public class NSExtensionContext : NSObject//, AnyObject, NSObjectProtocol { /// <summary> /// Signals the host to cancel the app extension request, with the supplied error. /// </summary> /// <param name="error">The error object to return. It must be non-nil.</param> [iOSVersion(8)] [Export("cancelRequestWithError")] public void CancelRequestWithError(NSError error) { } /// <summary> /// Signals the host to complete the app extension request with the supplied result items. /// </summary> /// <param name="items">An array of NSExtensionItem objects to return.</param> /// <param name="completionHandler">A block to be called when the request completes. /// The block takes the following parameter: /// expired /// A Boolean value that indicates whether the system is terminating a previous invocation of completionHandler earlier than expected. This parameter is true if the system is terminating a completionHandler that was previously invoked as a nonexpiration handler.</param> [iOSVersion(8)] [Export("completeRequestReturningItems")] public void CompleteRequestReturningItems(AnyObject[] items, Action<bool> completionHandler) { } /// <summary> /// Asks the system open a URL on behalf of the currently running app extension. /// </summary> /// <param name="URL">The URL to open.</param> /// <param name="completionHandler">A block to be called when the URL has opened. /// The block takes the following parameter: /// success /// A Boolean value that indicates whether the open was successful.</param> [iOSVersion(8)] [Export("openURL")] public void OpenURL(NSURL URL, Action<bool> completionHandler) { } /// <summary> /// The list of input NSExtensionItem objects associated with the context. (read-only) /// </summary> [iOSVersion(8)] [Export("inputItems")] public AnyObject[] InputItems { get; private set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// An NSExtensionContext object represents the host app context from which an app extension is invoked. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSExtensionContext_Class/index.html#//apple_ref/occ/cl/NSExtensionContext"/> [iOSVersion(8)] [Export("")] public class NSExtensionContext : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSObjectProtocol, Printable { public NSExtensionContext() { } /// <summary> /// Tells the host app to cancel the app extension request, with a supplied error. /// </summary> /// <param name="error">The error object to return. It must be non-nil.</param> [iOSVersion(8)] [Export("cancelRequestWithError")] public virtual void CancelRequestWithError(NSError error) { } /// <summary> /// Tells the host app to complete the app extension request with an array of result items. /// </summary> /// <param name="items">An array of result items, each an NSExtensionItem object, to return to the host app.</param> /// <param name="completionHandler">An optional block to be called when the request completes, performed as a background priority task. /// The block takes the following parameter: /// expired /// A Boolean value that indicates whether the system is terminating a previous invocation of the completionHandler block. /// This parameter is true when the system prematurely terminatates a completionHandler block that was previously invoked and had not otherwise expired. /// Important /// If the system calls your block with an expired value of true, you must immediately suspend your app extension. If you fail to do this, the system terminates your extension’s process. /// When your app extension exits, all concurrent requests being handled by the extension, serving the same or other host apps, are terminated.</param> [iOSVersion(8)] [Export("completeRequestReturningItems")] public virtual void CompleteRequestReturningItems(AnyObject[] items, Action<bool> completionHandler) { } /// <summary> /// Asks the system open a URL on behalf of the currently running app extension. /// </summary> /// <param name="URL">The URL to open.</param> /// <param name="completionHandler">A block to be called when the URL has opened. /// The block takes the following parameter: /// success /// A Boolean value that indicates whether the open operation was successful.</param> [iOSVersion(8)] [Export("openURL")] public virtual void OpenURL(NSURL URL, Action<bool> completionHandler) { } /// <summary> /// The list of input NSExtensionItem objects associated with the context. (read-only) /// </summary> [iOSVersion(8)] [Export("inputItems")] public AnyObject[] InputItems { get; private set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSExtensionItem.cs b/CocoaSharp/Foundation/NSExtensionItem.cs
index 3910266b..f387a1c1 100644
--- a/CocoaSharp/Foundation/NSExtensionItem.cs
+++ b/CocoaSharp/Foundation/NSExtensionItem.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// An NSExtensionItem object is an immutable collection of values representing different aspects of an item for the extension to act upon. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSExtensionItem_Class/index.html#//apple_ref/occ/cl/NSExtensionItem"/> [iOSVersion(8)] public class NSExtensionItem : NSObject//, AnyObject, NSCoding, NSCopying, NSObjectProtocol, NSSecureCoding { /// <summary> /// An optional title for the item. /// </summary> [iOSVersion(8)] [Export("attributedTitle")] public NSAttributedString AttributedTitle { get; set; } /// <summary> /// An optional dictionary of keys and values corresponding to the extension item’s properties. /// </summary> [iOSVersion(8)] [Export("userInfo")] public Dictionary<NSObject, AnyObject> UserInfo { get; set; } /// <summary> /// An optional array of media data associated with the extension item. /// </summary> [iOSVersion(8)] [Export("attachments")] public AnyObject[] Attachments { get; set; } /// <summary> /// An optional string describing the extension item content. /// </summary> [iOSVersion(8)] [Export("attributedContentText")] public NSAttributedString AttributedContentText { get; set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// An NSExtensionItem object is an immutable collection of values representing different aspects of an item for the extension to act upon. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSExtensionItem_Class/index.html#//apple_ref/occ/cl/NSExtensionItem"/> [iOSVersion(8)] [Export("")] public class NSExtensionItem : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSObjectProtocol, NSSecureCoding, Printable { public NSExtensionItem() { } /// <summary> /// An optional title for the item. /// </summary> [iOSVersion(8)] [Export("attributedTitle")] [Optional] public NSAttributedString AttributedTitle { get; set; } /// <summary> /// An optional dictionary of keys and values corresponding to the extension item’s properties. /// </summary> [iOSVersion(8)] [Export("userInfo")] public Dictionary<NSObject, AnyObject> UserInfo { get; set; } /// <summary> /// An optional array of media data associated with the extension item. /// </summary> [iOSVersion(8)] [Export("attachments")] public AnyObject[] Attachments { get; set; } /// <summary> /// An optional string describing the extension item content. /// </summary> [iOSVersion(8)] [Export("attributedContentText")] [Optional] public NSAttributedString AttributedContentText { get; set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSFileAccessIntent.cs b/CocoaSharp/Foundation/NSFileAccessIntent.cs
index 48e0145e..eea308d3 100644
--- a/CocoaSharp/Foundation/NSFileAccessIntent.cs
+++ b/CocoaSharp/Foundation/NSFileAccessIntent.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSFileAccessIntent class stores the details of coordinated-read and coordinated-write operations. Use this class when performing asynchronous operations with a file coordinator using the coordinator’s coordinateAccessWithIntents:queue:byAccessor: method. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSFileAccessIntent_Class/index.html#//apple_ref/occ/cl/NSFileAccessIntent"/> [iOSVersion(8)] public class NSFileAccessIntent : NSObject//, AnyObject, NSObjectProtocol { /// <summary> /// Returns a file access intent object for reading the given URL with the provided options. /// </summary> /// <param name="url">The URL of the document you intend to read from.</param> /// <param name="options">The coordinated reading options. For a list of valid values, see NSFileCoordinatorReadingOptions in the NSFileCoordinator Class Reference.</param> [iOSVersion(8)] [Export("readingIntentWithURL")] public static NSFileAccessIntent ReadingIntentWithURL(NSURL url, NSFileCoordinatorReadingOptions options) { return default(NSFileAccessIntent); } /// <summary> /// Returns a file access intent object for writing to the given URL with the provided options. /// </summary> /// <param name="url">The URL of the document you intend to write to.</param> /// <param name="options">The coordinated writing options. For a list of valid values, see NSFileCoordinatorWritingOptions in the NSFileCoordinator Class Reference.</param> [iOSVersion(8)] [Export("writingIntentWithURL")] public static NSFileAccessIntent WritingIntentWithURL(NSURL url, NSFileCoordinatorWritingOptions options) { return default(NSFileAccessIntent); } /// <summary> /// The current URL for the item managed by the file access intent instance. (read-only) /// </summary> [iOSVersion(8)] public NSURL URL { get; private set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSFileAccessIntent class stores the details of coordinated-read and coordinated-write operations. Use this class when performing asynchronous operations with a file coordinator using the coordinator’s coordinateAccessWithIntents:queue:byAccessor: method. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSFileAccessIntent_Class/index.html#//apple_ref/occ/cl/NSFileAccessIntent"/> [iOSVersion(8)] [Export("")] public class NSFileAccessIntent : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSObjectProtocol, Printable { public NSFileAccessIntent() { } /// <summary> /// Returns a file access intent object for reading the given URL with the provided options. /// </summary> /// <param name="url">The URL of the document you intend to read from.</param> /// <param name="options">The coordinated reading options. For a list of valid values, see NSFileCoordinatorReadingOptions in the NSFileCoordinator Class Reference.</param> [iOSVersion(8)] [Export("readingIntentWithURL")] [return:Unwrapped] public static NSFileAccessIntent ReadingIntentWithURL(NSURL url, NSFileCoordinatorReadingOptions options) { return default(NSFileAccessIntent); } /// <summary> /// Returns a file access intent object for writing to the given URL with the provided options. /// </summary> /// <param name="url">The URL of the document you intend to write to.</param> /// <param name="options">The coordinated writing options. For a list of valid values, see NSFileCoordinatorWritingOptions in the NSFileCoordinator Class Reference.</param> [iOSVersion(8)] [Export("writingIntentWithURL")] [return:Unwrapped] public static NSFileAccessIntent WritingIntentWithURL(NSURL url, NSFileCoordinatorWritingOptions options) { return default(NSFileAccessIntent); } /// <summary> /// The current URL for the item managed by the file access intent instance. (read-only) /// </summary> [iOSVersion(8)] public NSURL URL { get; private set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSFileCoordinator.cs b/CocoaSharp/Foundation/NSFileCoordinator.cs
index ae2c5519..04db490a 100644
--- a/CocoaSharp/Foundation/NSFileCoordinator.cs
+++ b/CocoaSharp/Foundation/NSFileCoordinator.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSFileCoordinator class coordinates the reading and writing of files and directories among multiple processes and objects in the same process. You use instances of this class as-is to read from, write to, modify the attributes of, change the location of, or delete a file or directory. Before your code to perform those actions executes, though, the file coordinator lets registered file presenter objects perform any tasks that they might require to ensure their own integrity. For example, if you want to change the location of a file, other objects interested in that file need to know where you intend to move it so that they can update their references. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSFileCoordinator_class/index.html#//apple_ref/occ/cl/NSFileCoordinator"/> [iOSVersion(5)] public class NSFileCoordinator : NSObject//, AnyObject, NSObjectProtocol { /// <summary> /// Initializes and returns a file coordinator object using the specified file presenter. /// </summary> /// <param name="filePresenter">The file presenter object that is initiating some action on its file or directory. This object is assumed to be performing the relevant file or directory operations and therefore does not receive notifications about those operations from the returned file coordinator object. This parameter may be nil.</param> [iOSVersion(5)] public NSFileCoordinator(NSFilePresenter filePresenter) { } /// <summary> /// Registers the specified file presenter object so that it can receive notifications. /// </summary> /// <param name="filePresenter">The file presenter object to register.</param> [iOSVersion(5)] [Export("addFilePresenter")] public static void AddFilePresenter(NSFilePresenter filePresenter) { } /// <summary> /// Unregisters the specified file presenter object. /// </summary> /// <param name="filePresenter">The file presenter object to unregister. If the object is not currently registered, this method does nothing.</param> [iOSVersion(5)] [Export("removeFilePresenter")] public static void RemoveFilePresenter(NSFilePresenter filePresenter) { } /// <summary> /// Returns an array containing the currently registered file presenter objects. /// </summary> [iOSVersion(5)] [Export("filePresenters")] public static AnyObject[] FilePresenters() { return default(AnyObject[]); } /// <summary> /// Performs a number of coordinated-read or -write operations asynchronously. /// </summary> /// <param name="intents">An array of file access intent objects, representing the individual read and write operations.</param> /// <param name="queue">The operation queue on which the accessor block is executed. The queue must not be nil.</param> /// <param name="byAccessor">A Block object containing the file operations corresponding to the file access intent objects in the intents array. /// The accessor block takes the following parameter: /// error /// If an error occurs while waiting for access, this parameter contains an NSError object that describes the problem. If access is successfully granted, it is set to nil, and you may perform the intended file access. /// Do not attempt to access the files if the error parameter contains a non-nil value.</param> [iOSVersion(8)] [Export("coordinateAccessWithIntents")] public void CoordinateAccessWithIntents(AnyObject[] intents, NSOperationQueue queue, Action<NSError> byAccessor) { } /// <summary> /// Initiates a read operation on a single file or directory using the specified options. /// </summary> /// <param name="url">A URL identifying the file or directory to read. If other objects or processes are acting on the item at the URL, the actual URL passed to reader parameter may be different than the one in this parameter.</param> /// <param name="options">One of the reading options described in NSFileCoordinatorReadingOptions. If you pass 0 for this parameter, the savePresentedItemChangesWithCompletionHandler: method of relevant file presenters is called before your block executes.</param> /// <param name="error">On input, a pointer to a pointer for an error object. If a file presenter encounters an error while preparing for this read operation, that error is returned in this parameter and the block in the reader parameter is not executed. If you cancel this operation before the reader block is executed, this parameter contains an error object on output.</param> /// <param name="byAccessor">A Block object containing the file operations you want to perform in a coordinated manner. This block receives an NSURL object containing the URL of the item and returns no value. Always use the URL passed into the block instead of the value in the url parameter.</param> [iOSVersion(5)] [Export("coordinateReadingItemAtURL")] public void CoordinateReadingItemAtURL(NSURL url, NSFileCoordinatorReadingOptions options, NSErrorPointer error, Action<NSURL> byAccessor) { } /// <summary> /// Initiates a write operation on a single file or directory using the specified options. /// </summary> /// <param name="url">A URL identifying the file or directory to write. If other objects or processes are acting on the item at the URL, the actual URL passed to writer parameter may be different than the one in this parameter.</param> /// <param name="options">One of the writing options described in NSFileCoordinatorWritingOptions. The options you specify partially determine how file presenters are notified and how this file coordinator object waits to execute your block.</param> /// <param name="error">On input, a pointer to a pointer for an error object. If a file presenter encounters an error while preparing for this write operation, that error is returned in this parameter and the block in the writer parameter is not executed. If you cancel this operation before the writer block is executed, this parameter contains an error object on output.</param> /// <param name="byAccessor">A Block object containing the file operations you want to perform in a coordinated manner. This block receives an NSURL object containing the URL of the item and returns no value. Always use the URL passed into the block instead of the value in the url parameter.</param> [iOSVersion(5)] [Export("coordinateWritingItemAtURL")] public void CoordinateWritingItemAtURL(NSURL url, NSFileCoordinatorWritingOptions options, NSErrorPointer error, Action<NSURL> byAccessor) { } /// <summary> /// Initiates a read operation that contains a follow-up write operation. /// </summary> /// <param name="readingURL">A URL identifying the file or directory to read. If other objects or processes are acting on the item at the URL, the actual URL passed to the block in the readerWriter parameter may be different than the one in this parameter.</param> /// <param name="options">One of the reading options described in NSFileCoordinatorReadingOptions. If you pass 0 for this parameter, the savePresentedItemChangesWithCompletionHandler: method of relevant file presenters is called before your block executes.</param> /// <param name="writingItemAtURL">A URL identifying the file or directory to write. If other objects or processes are acting on the item at the URL, the actual URL passed to the block in the readerWriter parameter may be different than the one in this parameter.</param> /// <param name="options">One of the writing options described in NSFileCoordinatorWritingOptions. The options you specify partially determine how file presenters are notified and how this file coordinator object waits to execute your block.</param> /// <param name="error">On input, a pointer to a pointer for an error object. If a file presenter encounters an error while preparing for this operation, that error is returned in this parameter and the block in the readerWriter parameter is not executed. If you cancel this operation before the readerWriter block is executed, this parameter contains an error object on output.</param> /// <param name="byAccessor">A block object containing the read and write operations you want to perform in a coordinated manner. This block receives NSURL objects containing the URLs of the items to read and write and returns no value. Always use the URLs passed into the block instead of the values in the readingURL and writingURL parameters.</param> [iOSVersion(5)] [Export("coordinateReadingItemAtURL")] [RenameParameter("readingOptions", "options")] [RenameParameter("writingOptions", "options")] public void CoordinateReadingItemAtURL(NSURL readingURL, NSFileCoordinatorReadingOptions readingOptions, NSURL writingItemAtURL, NSFileCoordinatorWritingOptions writingOptions, NSErrorPointer error, Action<NSURL, NSURL> byAccessor) { } /// <summary> /// Initiates a write operation that involves a secondary write operation. /// </summary> /// <param name="url1">A URL identifying the first file or directory to write. If other objects or processes are acting on the item at the URL, the actual URL passed to the block in the writer parameter may be different than the one in this parameter.</param> /// <param name="options">One of the writing options described in NSFileCoordinatorWritingOptions.</param> /// <param name="writingItemAtURL">A URL identifying the other file or directory to write. If other objects or processes are acting on the item at the URL, the actual URL passed to the block in the writer parameter may be different than the one in this parameter.</param> /// <param name="options">One of the writing options described in NSFileCoordinatorWritingOptions. The options you specify partially determine how file presenters are notified and how this file coordinator object waits to execute your block.</param> /// <param name="error">On input, a pointer to a pointer for an error object. If a file presenter encounters an error while preparing for this operation, that error is returned in this parameter and the block in the writer parameter is not executed. If you cancel this operation before the writer block is executed, this parameter contains an error object on output.</param> /// <param name="byAccessor">A Block object containing the write operations you want to perform in a coordinated manner. This block receives NSURL objects containing the URLs of the items to write and returns no value. Always use the URLs passed into the block instead of the values in the url1 and url2 parameters.</param> [iOSVersion(5)] [Export("coordinateWritingItemAtURL")] [RenameParameter("writingOptions", "options")] [RenameParameter("otherWritingOptions", "options")] public void CoordinateWritingItemAtURL(NSURL url1, NSFileCoordinatorWritingOptions writingOptions, NSURL writingItemAtURL, NSFileCoordinatorWritingOptions otherWritingOptions, NSErrorPointer error, Action<NSURL, NSURL> byAccessor) { } /// <summary> /// Prepare to read or write from multiple files in a single batch operation. /// </summary> /// <param name="readingURLs">An array of NSURL objects identifying the items you want to read.</param> /// <param name="options">One of the reading options described in NSFileCoordinatorReadingOptions. If you pass 0 for this parameter, the savePresentedItemChangesWithCompletionHandler: method of relevant file presenters is called before your block executes.</param> /// <param name="writingItemsAtURLs">An array of NSURL objects identifying the items you want to write.</param> /// <param name="options">One of the writing options described in NSFileCoordinatorWritingOptions. The options you specify partially determine how file presenters are notified and how this file coordinator object waits to execute your block.</param> /// <param name="error">On input, a pointer to a pointer for an error object. If a file presenter encounters an error while preparing for this operation, that error is returned in this parameter and the block in the writer parameter is not executed. If you cancel this operation before the batchAccessor block is executed, this parameter contains an error object on output.</param> /// <param name="byAccessor">A Block object containing additional calls to methods of this class. /// The block takes the following parameter: /// completionHandler /// A completion handler block. The batch accessor must call the completion handler when it has finished its read and write calls.</param> [iOSVersion(5)] [Export("prepareForReadingItemsAtURLs")] [RenameParameter("readingOptions", "options")] [RenameParameter("writingOptions", "options")] public void PrepareForReadingItemsAtURLs(AnyObject[] readingURLs, NSFileCoordinatorReadingOptions readingOptions, AnyObject[] writingItemsAtURLs, NSFileCoordinatorWritingOptions writingOptions, NSErrorPointer error, Action byAccessor) { } /// <summary> /// Announces that your app is moving a file to a new URL. /// </summary> /// <param name="oldURL">The old location of the file or directory.</param> /// <param name="willMoveToURL">The new location of the file or directory.</param> [iOSVersion(6)] [Export("itemAtURL")] public void ItemAtURL(NSURL oldURL, NSURL willMoveToURL) { } /// <summary> /// Notifies relevant file presenters that the location of a file or directory changed. /// </summary> /// <param name="oldURL">The old location of the file or directory.</param> /// <param name="didMoveToURL">The new location of the file or directory.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(5)] [Export("itemAtURL")] [IgnoreParameter("NAME_YOUR_PARAMS")] public void ItemAtURL(NSURL oldURL, NSURL didMoveToURL, bool NAME_YOUR_PARAMS = false) { } /// <summary> /// Cancels any active file coordination calls. /// </summary> [iOSVersion(5)] [Export("cancel")] public void Cancel() { } /// <summary> /// A string that uniquely identifies the file access that performed by this file coordinator. /// </summary> [iOSVersion(5)] [Export("purposeIdentifier")] public string PurposeIdentifier { get; set; } } /// <summary> /// Options to use when reading the contents or attributes of a file or directory. /// </summary> [iOSVersion(5)] public enum NSFileCoordinatorReadingOptions { /// <summary> /// Specify this constant if your code does not need other objects to save changes first. If you do not specify this constant, the savePresentedItemChangesWithCompletionHandler: method of relevant file presenters is called before your code reads the item. /// </summary> [iOSVersion(5)] WithoutChanges, /// <summary> /// Specify this constant if you want an item that might be a symbolic link to resolve to the file pointed to by that link (instead of to the link itself). This option applies to the URL passed to the block that handles the actual reading of the item. /// </summary> [iOSVersion(5)] ResolvesSymbolicLink, /// <summary> /// Specify this constant if you want to read an item’s metadata without triggering a download. /// Specifying this option grants the coordinated read immediately (barring any conflicts with other readers, writers or file presenters on the same system), instead of waiting for the system to download the file’s contents and any additional metadata (for example, conflicting versions or thumbnails). /// Attempting to actually read the item’s contents during this coordinated read may give unexpected results or fail. /// </summary> [iOSVersion(8)] ImmediatelyAvailableMetadataOnly, /// <summary> /// Specify this content when reading an item for the purpose of uploading its contents. /// When this option is used, the file coordinator creates a temporary snapshot of the item being read, and relinquishes its claim on the original file. This prevents the read operation from blocking other coordinated writes during a potentially long upload. /// If the item being read is a directory (such as a document package), then the snapshot is a new file containing the zipped contents of the directory. The URL passed to the accessor block points to the zipped file. /// When using this option, you may upload the document outside the accessor block. However, you should open a file descriptor to the file or relocate the file within the accessor block before doing so. The file coordinator unlinks the file after the block returns, rendering it inaccessible via the URL. /// </summary> [iOSVersion(8)] ForUploading, } /// <summary> /// Options to use when changing the contents or attributes of a file or directory. /// </summary> [iOSVersion(5)] public enum NSFileCoordinatorWritingOptions { /// <summary> /// When this constant is specified, the file coordinator calls the accommodatePresentedItemDeletionWithCompletionHandler: method of relevant file presenters to give them a chance to make adjustments before the item is deleted. /// </summary> [iOSVersion(5)] ForDeleting, /// <summary> /// When specified for a directory item, the file coordinator waits for already running read and write operations of the directory’s contents, that were themselves initiated through a file coordinator, to finish before moving the directory. Queued, but not executing, read and write operations on the directory’s contents wait until the move operation finishes. /// This option has no effect on files. /// </summary> [iOSVersion(5)] ForMoving, /// <summary> /// When this constant is specified, the file coordinator calls the savePresentedItemChangesWithCompletionHandler: method of relevant file presenters to give them a chance to save their changes before your code makes its changes. /// </summary> [iOSVersion(5)] ForMerging, /// <summary> /// Specifies whether the act of writing to the file involves actually replacing the file with a different file (or directory). If the current file coordinator is waiting for another object to move or rename the file, this option treats the operation as the creation of a new file (instead of as the replacement of the old file); otherwise, this constant causes the same behavior as the NSFileCoordinatorWritingForDeleting constant. Use this option when the moving or creation of an item would cause the replacement of any existing item. Do not use it when simply updating the contents of the existing file. /// </summary> [iOSVersion(5)] ForReplacing, /// <summary> /// Select this option when writing to change the file’s metadata only and not its contents. /// Any changes written to the item’s contents during this coordinated write may not be preserved or may fail. Changing metadata that is related to the item’s content is also not supported, and those changes may not be preserved. For example, changing the value of NSURLTagNamesKey is supported, but changing the value of NSURLContentModificationDateKey is not. /// </summary> [iOSVersion(8)] ContentIndependentMetadataOnly, } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSFileCoordinator class coordinates the reading and writing of files and directories among multiple processes and objects in the same process. You use instances of this class as is to read from, write to, modify the attributes of, change the location of, or delete a file or directory, but before your code to perform those actions executes, the file coordinator lets registered file presenter objects perform any tasks that they might require to ensure their own integrity. For example, if you want to change the location of a file, other objects interested in that file need to know where you intend to move it so that they can update their references. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSFileCoordinator_class/index.html#//apple_ref/occ/cl/NSFileCoordinator"/> [iOSVersion(5)] [Export("")] public class NSFileCoordinator : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSObjectProtocol, Printable { public NSFileCoordinator() { } /// <summary> /// Initializes and returns a file coordinator object using the specified file presenter. /// </summary> /// <param name="filePresenter">The file presenter object that is initiating some action on its file or directory. This object is assumed to be performing the relevant file or directory operations and therefore does not receive notifications about those operations from the returned file coordinator object. This parameter may be nil.</param> [iOSVersion(5)] public NSFileCoordinator([Optional] NSFilePresenter filePresenter) { } /// <summary> /// Registers the specified file presenter object so that it can receive notifications. /// </summary> /// <param name="filePresenter">The file presenter object to register.</param> [iOSVersion(5)] [Export("addFilePresenter")] public static void AddFilePresenter(NSFilePresenter filePresenter) { } /// <summary> /// Unregisters the specified file presenter object. /// </summary> /// <param name="filePresenter">The file presenter object to unregister. If the object is not currently registered, this method does nothing.</param> [iOSVersion(5)] [Export("removeFilePresenter")] public static void RemoveFilePresenter(NSFilePresenter filePresenter) { } /// <summary> /// Returns an array containing the currently registered file presenter objects. /// </summary> [iOSVersion(5)] [Export("filePresenters")] public static AnyObject[] FilePresenters() { return default(AnyObject[]); } /// <summary> /// Performs a number of coordinated-read or -write operations asynchronously. /// </summary> /// <param name="intents">An array of file access intent objects, representing the individual read and write operations.</param> /// <param name="queue">The operation queue on which the accessor block is executed. The queue must not be nil.</param> /// <param name="byAccessor">A Block object containing the file operations corresponding to the file access intent objects in the intents array. /// The accessor block takes the following parameter: /// error /// If an error occurs while waiting for access, this parameter contains an NSError object that describes the problem. If access is successfully granted, it is set to nil, and you may perform the intended file access. /// Do not attempt to access the files if the error parameter contains a non-nil value.</param> [iOSVersion(8)] [Export("coordinateAccessWithIntents")] public virtual void CoordinateAccessWithIntents(AnyObject[] intents, NSOperationQueue queue, Action<NSError> byAccessor) { } /// <summary> /// Initiates a read operation on a single file or directory using the specified options. /// </summary> /// <param name="url">A URL identifying the file or directory to read. If other objects or processes are acting on the item at the URL, the actual URL passed to the reader parameter may be different than the one in this parameter.</param> /// <param name="options">One of the reading options described in NSFileCoordinatorReadingOptions. If you pass 0 for this parameter, the savePresentedItemChangesWithCompletionHandler: method of relevant file presenters is called before your block executes.</param> /// <param name="error">On input, a pointer to a pointer for an error object. If a file presenter encounters an error while preparing for this read operation, that error is returned in this parameter and the block in the reader parameter is not executed. If you cancel this operation before the reader block is executed, this parameter contains an error object on output.</param> /// <param name="byAccessor">A block object containing the file operations you want to perform in a coordinated manner. This block receives an NSURL object containing the URL of the item and returns no value. Always use the URL passed into the block instead of the value in the url parameter.</param> [iOSVersion(5)] [Export("coordinateReadingItemAtURL")] public virtual void CoordinateReadingItemAtURL(NSURL url, NSFileCoordinatorReadingOptions options, NSErrorPointer error, Action<NSURL> byAccessor) { } /// <summary> /// Initiates a write operation on a single file or directory using the specified options. /// </summary> /// <param name="url">A URL identifying the file or directory to write to. If other objects or processes are acting on the item at the URL, the actual URL passed to writer parameter may be different from the one in this parameter.</param> /// <param name="options">One of the writing options described in NSFileCoordinatorWritingOptions. The options you specify partially determine how file presenters are notified and how this file coordinator object waits to execute your block.</param> /// <param name="error">On input, a pointer to a pointer for an error object. If a file presenter encounters an error while preparing for this write operation, that error is returned in this parameter and the block in the writer parameter is not executed. If you cancel this operation before the writer block is executed, this parameter contains an error object on output.</param> /// <param name="byAccessor">A block object containing the file operations you want to perform in a coordinated manner. This block receives an NSURL object containing the URL of the item and returns no value. Always use the URL passed into the block instead of the value in the url parameter.</param> [iOSVersion(5)] [Export("coordinateWritingItemAtURL")] public virtual void CoordinateWritingItemAtURL(NSURL url, NSFileCoordinatorWritingOptions options, NSErrorPointer error, Action<NSURL> byAccessor) { } /// <summary> /// Initiates a read operation that contains a follow-up write operation. /// </summary> /// <param name="readingURL">A URL identifying the file or directory to read. If other objects or processes are acting on the item at the URL, the actual URL passed to the block in the readerWriter parameter may be different than the one in this parameter.</param> /// <param name="options">One of the reading options described in NSFileCoordinatorReadingOptions. If you pass 0 for this parameter, the savePresentedItemChangesWithCompletionHandler: method of relevant file presenters is called before your block executes.</param> /// <param name="writingItemAtURL">A URL identifying the file or directory to write. If other objects or processes are acting on the item at the URL, the actual URL passed to the block in the readerWriter parameter may be different than the one in this parameter.</param> /// <param name="options2">One of the writing options described in NSFileCoordinatorWritingOptions. The options you specify partially determine how file presenters are notified and how this file coordinator object waits to execute your block.</param> /// <param name="error">On input, a pointer to a pointer for an error object. If a file presenter encounters an error while preparing for this operation, that error is returned in this parameter and the block in the readerWriter parameter is not executed. If you cancel this operation before the readerWriter block is executed, this parameter contains an error object on output.</param> /// <param name="byAccessor">A block object containing the read and write operations you want to perform in a coordinated manner. This block receives NSURL objects containing the URLs of the items to read and write and returns no value. Always use the URLs passed into the block instead of the values in the readingURL and writingURL parameters.</param> [iOSVersion(5)] [Export("coordinateReadingItemAtURL")] [RenameParameter("options2", "options")] public virtual void CoordinateReadingItemAtURL(NSURL readingURL, NSFileCoordinatorReadingOptions options, NSURL writingItemAtURL, NSFileCoordinatorWritingOptions options2, NSErrorPointer error, Action<NSURL, NSURL> byAccessor) { } /// <summary> /// Initiates a write operation that involves a secondary write operation. /// </summary> /// <param name="url1">A URL identifying the first file or directory to write. If other objects or processes are acting on the item at the URL, the actual URL passed to the block in the writer parameter may be different from the one in this parameter.</param> /// <param name="options">One of the writing options described in NSFileCoordinatorWritingOptions.</param> /// <param name="writingItemAtURL">A URL identifying the other file or directory to write. If other objects or processes are acting on the item at the URL, the actual URL passed to the block in the writer parameter may be different from the one in this parameter.</param> /// <param name="options2">One of the writing options described in NSFileCoordinatorWritingOptions. The options you specify partially determine how file presenters are notified and how this file coordinator object waits to execute your block.</param> /// <param name="error">On input, a pointer to a pointer for an error object. If a file presenter encounters an error while preparing for this operation, that error is returned in this parameter and the block in the writer parameter is not executed. If you cancel this operation before the writer block is executed, this parameter contains an error object on output.</param> /// <param name="byAccessor">A block object containing the write operations you want to perform in a coordinated manner. This block receives NSURL objects containing the URLs of the items to write and returns no value. Always use the URLs passed into the block instead of the values in the url1 and url2 parameters.</param> [iOSVersion(5)] [Export("coordinateWritingItemAtURL")] [RenameParameter("options2", "options")] public virtual void CoordinateWritingItemAtURL(NSURL url1, NSFileCoordinatorWritingOptions options, NSURL writingItemAtURL, NSFileCoordinatorWritingOptions options2, NSErrorPointer error, Action<NSURL, NSURL> byAccessor) { } /// <summary> /// Prepare to read or write from multiple files in a single batch operation. /// </summary> /// <param name="readingURLs">An array of NSURL objects identifying the items you want to read.</param> /// <param name="options">One of the reading options described in NSFileCoordinatorReadingOptions. If you pass 0 for this parameter, the savePresentedItemChangesWithCompletionHandler: method of relevant file presenters is called before your block executes.</param> /// <param name="writingItemsAtURLs">An array of NSURL objects identifying the items you want to write.</param> /// <param name="options2">One of the writing options described in NSFileCoordinatorWritingOptions. The options you specify partially determine how file presenters are notified and how this file coordinator object waits to execute your block.</param> /// <param name="error">On input, a pointer to a pointer for an error object. If a file presenter encounters an error while preparing for this operation, that error is returned in this parameter and the block in the writer parameter is not executed. If you cancel this operation before the batchAccessor block is executed, this parameter contains an error object on output.</param> /// <param name="byAccessor">A block object containing additional calls to methods of this class. /// The block takes the following parameter: /// completionHandler /// A completion handler block. The batch accessor must call the completion handler when it has finished its read and write calls.</param> [iOSVersion(5)] [Export("prepareForReadingItemsAtURLs")] [RenameParameter("options2", "options")] public virtual void PrepareForReadingItemsAtURLs(AnyObject[] readingURLs, NSFileCoordinatorReadingOptions options, AnyObject[] writingItemsAtURLs, NSFileCoordinatorWritingOptions options2, NSErrorPointer error, Action byAccessor) { } /// <summary> /// Announces that your app is moving a file to a new URL. /// </summary> /// <param name="oldURL">The old location of the file or directory.</param> /// <param name="willMoveToURL">The new location of the file or directory.</param> [iOSVersion(6)] [Export("itemAtURL")] public virtual void ItemAtURL(NSURL oldURL, NSURL willMoveToURL) { } /// <summary> /// Notifies relevant file presenters that the location of a file or directory changed. /// </summary> /// <param name="oldURL">The old location of the file or directory.</param> /// <param name="didMoveToURL">The new location of the file or directory.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(5)] [Export("itemAtURL")] [IgnoreParameter("NAME_YOUR_PARAMS")] public virtual void ItemAtURL(NSURL oldURL, NSURL didMoveToURL, bool NAME_YOUR_PARAMS = false) { } /// <summary> /// Cancels any active file coordination calls. /// </summary> [iOSVersion(5)] [Export("cancel")] public virtual void Cancel() { } /// <summary> /// A string that uniquely identifies the file access that was performed by this file coordinator. /// </summary> [iOSVersion(5)] [Export("purposeIdentifier")] public string PurposeIdentifier { get; set; } } /// <summary> /// Options to use when reading the contents or attributes of a file or directory. /// </summary> public enum NSFileCoordinatorReadingOptions { /// <summary> /// Specify this constant if your code does not need other objects to save changes first. If you do not specify this constant, the savePresentedItemChangesWithCompletionHandler: method of relevant file presenters is called before your code reads the item. /// </summary> [iOSVersion(5)] WithoutChanges, /// <summary> /// Specify this constant if you want an item that might be a symbolic link to resolve to the file pointed to by that link (instead of to the link itself). When you use this option, the system provides the resolved URL to the accessor block in place of the original URL. /// </summary> [iOSVersion(5)] ResolvesSymbolicLink, /// <summary> /// Specify this constant if you want to read an item’s metadata without triggering a download. /// Specifying this option grants the coordinated read immediately (barring any conflicts with other readers, writers or file presenters on the same system), instead of waiting for the system to download the file’s contents and any additional metadata (for example, conflicting versions or thumbnails). /// Attempting to actually read the item’s contents during this coordinated read may give unexpected results or fail. /// </summary> [iOSVersion(8)] ImmediatelyAvailableMetadataOnly, /// <summary> /// Specify this content when reading an item for the purpose of uploading its contents. /// When this option is used, the file coordinator creates a temporary snapshot of the item being read and relinquishes its claim on the original file. This action prevents the read operation from blocking other coordinated writes during a potentially long upload. /// If the item being read is a directory (such as a document package), then the snapshot is a new file containing the zipped contents of the directory. The URL passed to the accessor block points to the zipped file. /// When using this option, you may upload the document outside the accessor block. However, you should open a file descriptor to the file or relocate the file within the accessor block before doing so. The file coordinator unlinks the file after the block returns, rendering it inaccessible through the URL. /// </summary> [iOSVersion(8)] ForUploading, } /// <summary> /// Options to use when changing the contents or attributes of a file or directory. /// </summary> public enum NSFileCoordinatorWritingOptions { /// <summary> /// When this constant is specified, the file coordinator calls the accommodatePresentedItemDeletionWithCompletionHandler: or accommodatePresentedSubitemDeletionAtURL:completionHandler: method of relevant file presenters to give them a chance to make adjustments before the item is deleted. /// </summary> [iOSVersion(5)] ForDeleting, /// <summary> /// When specified for a directory item, the file coordinator waits for already running read and write operations of the directory’s contents, which were themselves initiated through a file coordinator, to finish before moving the directory. Queued, but not executing, read and write operations on the directory’s contents wait until the move operation finishes. /// This option has no effect on files. You can safely use it when moving file-system items without checking to see whether those items are files or directories. /// </summary> [iOSVersion(5)] ForMoving, /// <summary> /// When this constant is specified, the file coordinator calls the savePresentedItemChangesWithCompletionHandler: method of relevant file presenters to give them a chance to save their changes before your code makes its changes. /// </summary> [iOSVersion(5)] ForMerging, /// <summary> /// Specifies whether the act of writing to the file involves actually replacing the file with a different file (or directory). If the current file coordinator is waiting for another object to move or rename the file, this option treats the operation as the creation of a new file (instead of as the replacement of the old file); otherwise, this constant causes the same behavior as the NSFileCoordinatorWritingForDeleting constant. Use this method when the moving or creating an item should replace any item currently stored at that location. To avoid a race condition, use it regardless of whether an item is actually in the way before the writing begins. Do not use this method when simply updating the contents of the existing file. /// </summary> [iOSVersion(5)] ForReplacing, /// <summary> /// Select this option when writing to change the file’s metadata only and not its contents. /// Any changes written to the item’s contents during this coordinated write may not be preserved or may fail. Changing metadata that is related to the item’s content is also not supported, and those changes may not be preserved. For example, changing the value of NSURLTagNamesKey is supported, but changing the value of NSURLContentModificationDateKey is not. /// </summary> [iOSVersion(8)] ContentIndependentMetadataOnly, } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSFileHandle.cs b/CocoaSharp/Foundation/NSFileHandle.cs
index 08d8345d..cf06ea44 100644
--- a/CocoaSharp/Foundation/NSFileHandle.cs
+++ b/CocoaSharp/Foundation/NSFileHandle.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSFileHandle class is an object-oriented wrapper for a file descriptor. You use file handle objects to access data associated with files, sockets, pipes, and devices. For files, you can read, write, and seek within the file. For sockets, pipes, and devices, you can use a file handle object to monitor the device and process data asynchronously. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSFileHandle_Class/index.html#//apple_ref/occ/cl/NSFileHandle"/> [iOSVersion(2)] public class NSFileHandle : NSObject//, AnyObject, NSCoding, NSObjectProtocol, NSSecureCoding { /// <summary> /// Returns a file handle initialized for reading the file, device, or named socket at the specified path. /// </summary> /// <param name="forReadingAtPath">The path to the file, device, or named socket to access.</param> [iOSVersion(2)] [Export("convenience init")] public NSFileHandle(string forReadingAtPath) { } /// <summary> /// Returns a file handle initialized for reading the file, device, or named socket at the specified URL. /// </summary> /// <param name="url">The URL of the file, device, or named socket to access.</param> /// <param name="error">If an error occurs, upon return contains an NSError object that describes the problem. Pass NULL if you do not want error information.</param> [iOSVersion(4)] [Export("fileHandleForReadingFromURL")] public static NSFileHandle FileHandleForReadingFromURL(NSURL url, NSErrorPointer error) { return default(NSFileHandle); } /// <summary> /// Returns a file handle initialized for writing to the file, device, or named socket at the specified path. /// </summary> /// <param name="forWritingAtPath">The path to the file, device, or named socket to access.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [Export("convenience init")] [IgnoreParameter("NAME_YOUR_PARAMS")] public NSFileHandle(string forWritingAtPath, bool NAME_YOUR_PARAMS = false) { } /// <summary> /// Returns a file handle initialized for writing to the file, device, or named socket at the specified URL. /// </summary> /// <param name="url">The URL of the file, device, or named socket to access.</param> /// <param name="error">If an error occurs, upon return contains an NSError object that describes the problem. Pass NULL if you do not want error information.</param> [iOSVersion(4)] [Export("fileHandleForWritingToURL")] public static NSFileHandle FileHandleForWritingToURL(NSURL url, NSErrorPointer error) { return default(NSFileHandle); } /// <summary> /// Returns a file handle initialized for reading and writing to the file, device, or named socket at the specified path. /// </summary> /// <param name="forUpdatingAtPath">The path to the file, device, or named socket to access.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [Export("convenience init")] [IgnoreParameter("NAME_YOUR_PARAMS")] public NSFileHandle(string forUpdatingAtPath, int NAME_YOUR_PARAMS = 0) { } /// <summary> /// Returns a file handle initialized for reading and writing to the file, device, or named socket at the specified URL. /// </summary> /// <param name="url">The URL of the file, device, or named socket to access.</param> /// <param name="error">If an error occurs, upon return contains an NSError object that describes the problem. Pass NULL if you do not want error information.</param> [iOSVersion(4)] [Export("fileHandleForUpdatingURL")] public static NSFileHandle FileHandleForUpdatingURL(NSURL url, NSErrorPointer error) { return default(NSFileHandle); } /// <summary> /// Returns the file handle associated with the standard error file. /// </summary> [iOSVersion(2)] [Export("fileHandleWithStandardError")] public static NSFileHandle FileHandleWithStandardError() { return default(NSFileHandle); } /// <summary> /// Returns the file handle associated with the standard input file. /// </summary> [iOSVersion(2)] [Export("fileHandleWithStandardInput")] public static NSFileHandle FileHandleWithStandardInput() { return default(NSFileHandle); } /// <summary> /// Returns the file handle associated with the standard output file. /// </summary> [iOSVersion(2)] [Export("fileHandleWithStandardOutput")] public static NSFileHandle FileHandleWithStandardOutput() { return default(NSFileHandle); } /// <summary> /// Returns a file handle associated with a null device. /// </summary> [iOSVersion(2)] [Export("fileHandleWithNullDevice")] public static NSFileHandle FileHandleWithNullDevice() { return default(NSFileHandle); } /// <summary> /// Initializes and returns a file handle object associated with the specified file descriptor. /// </summary> /// <param name="fileDescriptor">The POSIX file descriptor with which to initialize the file handle. This descriptor represents an open file or socket that you created previously. For example, when creating a file handle for a socket, you would pass the value returned by the socket function.</param> [iOSVersion(2)] [Export("convenience init")] public NSFileHandle(int fileDescriptor) { } /// <summary> /// Initializes and returns a file handle object associated with the specified file descriptor and deallocation policy. /// </summary> /// <param name="fileDescriptor">The POSIX file descriptor with which to initialize the file handle.</param> /// <param name="closeOnDealloc">true if the returned file handle object should take ownership of the file descriptor and close it for you or false if you want to maintain ownership of the file descriptor.</param> [iOSVersion(2)] public NSFileHandle(int fileDescriptor, bool closeOnDealloc) { } /// <summary> /// Synchronously reads the available data up to the end of file or maximum number of bytes. /// </summary> [iOSVersion(2)] [Export("readDataToEndOfFile")] public NSData ReadDataToEndOfFile() { return default(NSData); } /// <summary> /// Synchronously reads data up to the specified number of bytes. /// </summary> /// <param name="length">The number of bytes to read from the receiver.</param> [iOSVersion(2)] [Export("readDataOfLength")] public NSData ReadDataOfLength(int length) { return default(NSData); } /// <summary> /// Synchronously writes the specified data to the receiver. /// </summary> /// <param name="data">The data to be written.</param> [iOSVersion(2)] [Export("writeData")] public void WriteData(NSData data) { } /// <summary> /// Accepts a socket connection (for stream-type sockets only) in the background and creates a file handle for the “near” (client) end of the communications channel. /// </summary> [iOSVersion(2)] [Export("acceptConnectionInBackgroundAndNotify")] public void AcceptConnectionInBackgroundAndNotify() { } /// <summary> /// Accepts a socket connection (for stream-type sockets only) in the background and creates a file handle for the “near” (client) end of the communications channel. /// </summary> /// <param name="modes">The runloop modes in which the connection accepted notification can be posted.</param> [iOSVersion(2)] [Export("acceptConnectionInBackgroundAndNotifyForModes")] public void AcceptConnectionInBackgroundAndNotifyForModes(AnyObject[] modes) { } /// <summary> /// Reads from the file or communications channel in the background and posts a notification when finished. /// </summary> [iOSVersion(2)] [Export("readInBackgroundAndNotify")] public void ReadInBackgroundAndNotify() { } /// <summary> /// Reads from the file or communications channel in the background and posts a notification when finished. /// </summary> /// <param name="modes">The runloop modes in which the read completion notification can be posted.</param> [iOSVersion(2)] [Export("readInBackgroundAndNotifyForModes")] public void ReadInBackgroundAndNotifyForModes(AnyObject[] modes) { } /// <summary> /// Reads to the end of file from the file or communications channel in the background and posts a notification when finished. /// </summary> [iOSVersion(2)] [Export("readToEndOfFileInBackgroundAndNotify")] public void ReadToEndOfFileInBackgroundAndNotify() { } /// <summary> /// Reads to the end of file from the file or communications channel in the background and posts a notification when finished. /// </summary> /// <param name="modes">The runloop modes in which the read completion notification can be posted.</param> [iOSVersion(2)] [Export("readToEndOfFileInBackgroundAndNotifyForModes")] public void ReadToEndOfFileInBackgroundAndNotifyForModes(AnyObject[] modes) { } /// <summary> /// Asynchronously checks to see if data is available. /// </summary> [iOSVersion(2)] [Export("waitForDataInBackgroundAndNotify")] public void WaitForDataInBackgroundAndNotify() { } /// <summary> /// Asynchronously checks to see if data is available. /// </summary> /// <param name="modes">The runloop modes in which the data available notification can be posted.</param> [iOSVersion(2)] [Export("waitForDataInBackgroundAndNotifyForModes")] public void WaitForDataInBackgroundAndNotifyForModes(AnyObject[] modes) { } /// <summary> /// Puts the file pointer at the end of the file referenced by the receiver and returns the new file offset. /// </summary> [iOSVersion(2)] [Export("seekToEndOfFile")] public UInt64 SeekToEndOfFile() { return default(UInt64); } /// <summary> /// Moves the file pointer to the specified offset within the file represented by the receiver. /// </summary> /// <param name="offset">The offset to seek to.</param> [iOSVersion(2)] [Export("seekToFileOffset")] public void SeekToFileOffset(UInt64 offset) { } /// <summary> /// Disallows further access to the represented file or communications channel and signals end of file on communications channels that permit writing. /// </summary> [iOSVersion(2)] [Export("closeFile")] public void CloseFile() { } /// <summary> /// Causes all in-memory data and attributes of the file represented by the receiver to be written to permanent storage. /// </summary> [iOSVersion(2)] [Export("synchronizeFile")] public void SynchronizeFile() { } /// <summary> /// Truncates or extends the file represented by the receiver to a specified offset within the file and puts the file pointer at that position. /// </summary> /// <param name="offset">The offset within the file that will mark the new end of the file.</param> [iOSVersion(2)] [Export("truncateFileAtOffset")] public void TruncateFileAtOffset(UInt64 offset) { } /// <summary> /// The POSIX file descriptor associated with the receiver. (read-only) /// </summary> [iOSVersion(2)] [Export("fileDescriptor")] public int FileDescriptor { get; private set; } /// <summary> /// The data currently available in the receiver. (read-only) /// </summary> [iOSVersion(2)] [Export("availableData")] public NSData AvailableData { get; private set; } /// <summary> /// The block to use for reading the contents of the file handle asynchronously. /// </summary> [iOSVersion(5)] [Export("readabilityHandler")] public Action<NSFileHandle> ReadabilityHandler { get; set; } /// <summary> /// The block to use for writing the contents of the file handle asynchronously. /// </summary> [iOSVersion(5)] [Export("writeabilityHandler")] public Action<NSFileHandle> WriteabilityHandler { get; set; } /// <summary> /// The position of the file pointer within the file represented by the receiver. (read-only) /// </summary> [iOSVersion(2)] [Export("offsetInFile")] public UInt64 OffsetInFile { get; private set; } } /// <summary> /// The notification object is the NSFileHandle object that sent the notification. The userInfo dictionary contains the following information: /// </summary> [iOSVersion(2)] public class NSFileHandleConnectionAcceptedNotification : NSNotification { public NSFileHandleConnectionAcceptedNotification() : base("", null) { } } /// <summary> /// The notification object is the NSFileHandle object that sent the notification. This notification does not contain a userInfo dictionary. /// </summary> [iOSVersion(2)] public class NSFileHandleDataAvailableNotification : NSNotification { public NSFileHandleDataAvailableNotification() : base("", null) { } } /// <summary> /// The notification object is the NSFileHandle object that sent the notification. The userInfo dictionary contains the following information: /// </summary> [iOSVersion(2)] public class NSFileHandleReadCompletionNotification : NSNotification { public NSFileHandleReadCompletionNotification() : base("", null) { } } /// <summary> /// The notification object is the NSFileHandle object that sent the notification. The userInfo dictionary contains the following information: /// </summary> [iOSVersion(2)] public class NSFileHandleReadToEndOfFileCompletionNotification : NSNotification { public NSFileHandleReadToEndOfFileCompletionNotification() : base("", null) { } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSFileHandle class is an object-oriented wrapper for a file descriptor. You use file handle objects to access data associated with files, sockets, pipes, and devices. For files, you can read, write, and seek within the file. For sockets, pipes, and devices, you can use a file handle object to monitor the device and process data asynchronously. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSFileHandle_Class/index.html#//apple_ref/occ/cl/NSFileHandle"/> [iOSVersion(2)] [Export("")] public class NSFileHandle : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSObjectProtocol, NSSecureCoding, Printable { public NSFileHandle() { } /// <summary> /// Returns the file handle associated with the standard error file. /// </summary> [iOSVersion(2)] [Export("fileHandleWithStandardError")] public static NSFileHandle FileHandleWithStandardError() { return default(NSFileHandle); } /// <summary> /// Returns the file handle associated with the standard input file. /// </summary> [iOSVersion(2)] [Export("fileHandleWithStandardInput")] public static NSFileHandle FileHandleWithStandardInput() { return default(NSFileHandle); } /// <summary> /// Returns the file handle associated with the standard output file. /// </summary> [iOSVersion(2)] [Export("fileHandleWithStandardOutput")] public static NSFileHandle FileHandleWithStandardOutput() { return default(NSFileHandle); } /// <summary> /// Returns a file handle associated with a null device. /// </summary> [iOSVersion(2)] [Export("fileHandleWithNullDevice")] public static NSFileHandle FileHandleWithNullDevice() { return default(NSFileHandle); } /// <summary> /// Initializes and returns a file handle object associated with the specified file descriptor. /// </summary> /// <param name="fileDescriptor">The POSIX file descriptor with which to initialize the file handle. This descriptor represents an open file or socket that you created previously. For example, when creating a file handle for a socket, you would pass the value returned by the socket function.</param> [iOSVersion(2)] [Export("convenience init")] public NSFileHandle(int fileDescriptor) { } /// <summary> /// Initializes and returns a file handle object associated with the specified file descriptor and deallocation policy. /// </summary> /// <param name="fileDescriptor">The POSIX file descriptor with which to initialize the file handle.</param> /// <param name="closeOnDealloc">true if the returned file handle object should take ownership of the file descriptor and close it for you or false if you want to maintain ownership of the file descriptor.</param> [iOSVersion(2)] public NSFileHandle(int fileDescriptor, bool closeOnDealloc) { } /// <summary> /// Synchronously reads the available data up to the end of file or maximum number of bytes. /// </summary> [iOSVersion(2)] [Export("readDataToEndOfFile")] public virtual NSData ReadDataToEndOfFile() { return default(NSData); } /// <summary> /// Synchronously reads data up to the specified number of bytes. /// </summary> /// <param name="length">The number of bytes to read from the receiver.</param> [iOSVersion(2)] [Export("readDataOfLength")] public virtual NSData ReadDataOfLength(int length) { return default(NSData); } /// <summary> /// Synchronously writes the specified data to the receiver. /// </summary> /// <param name="data">The data to be written.</param> [iOSVersion(2)] [Export("writeData")] public virtual void WriteData(NSData data) { } /// <summary> /// Accepts a socket connection (for stream-type sockets only) in the background and creates a file handle for the “near” (client) end of the communications channel. /// </summary> [iOSVersion(2)] [Export("acceptConnectionInBackgroundAndNotify")] public virtual void AcceptConnectionInBackgroundAndNotify() { } /// <summary> /// Accepts a socket connection (for stream-type sockets only) in the background and creates a file handle for the “near” (client) end of the communications channel. /// </summary> /// <param name="modes">The runloop modes in which the connection accepted notification can be posted.</param> [iOSVersion(2)] [Export("acceptConnectionInBackgroundAndNotifyForModes")] public virtual void AcceptConnectionInBackgroundAndNotifyForModes(AnyObject[] modes) { } /// <summary> /// Reads from the file or communications channel in the background and posts a notification when finished. /// </summary> [iOSVersion(2)] [Export("readInBackgroundAndNotify")] public virtual void ReadInBackgroundAndNotify() { } /// <summary> /// Reads from the file or communications channel in the background and posts a notification when finished. /// </summary> /// <param name="modes">The runloop modes in which the read completion notification can be posted.</param> [iOSVersion(2)] [Export("readInBackgroundAndNotifyForModes")] public virtual void ReadInBackgroundAndNotifyForModes(AnyObject[] modes) { } /// <summary> /// Reads to the end of file from the file or communications channel in the background and posts a notification when finished. /// </summary> [iOSVersion(2)] [Export("readToEndOfFileInBackgroundAndNotify")] public virtual void ReadToEndOfFileInBackgroundAndNotify() { } /// <summary> /// Reads to the end of file from the file or communications channel in the background and posts a notification when finished. /// </summary> /// <param name="modes">The runloop modes in which the read completion notification can be posted.</param> [iOSVersion(2)] [Export("readToEndOfFileInBackgroundAndNotifyForModes")] public virtual void ReadToEndOfFileInBackgroundAndNotifyForModes(AnyObject[] modes) { } /// <summary> /// Asynchronously checks to see if data is available. /// </summary> [iOSVersion(2)] [Export("waitForDataInBackgroundAndNotify")] public virtual void WaitForDataInBackgroundAndNotify() { } /// <summary> /// Asynchronously checks to see if data is available. /// </summary> /// <param name="modes">The runloop modes in which the data available notification can be posted.</param> [iOSVersion(2)] [Export("waitForDataInBackgroundAndNotifyForModes")] public virtual void WaitForDataInBackgroundAndNotifyForModes(AnyObject[] modes) { } /// <summary> /// Puts the file pointer at the end of the file referenced by the receiver and returns the new file offset. /// </summary> [iOSVersion(2)] [Export("seekToEndOfFile")] public virtual UInt64 SeekToEndOfFile() { return default(UInt64); } /// <summary> /// Moves the file pointer to the specified offset within the file represented by the receiver. /// </summary> /// <param name="offset">The offset to seek to.</param> [iOSVersion(2)] [Export("seekToFileOffset")] public virtual void SeekToFileOffset(UInt64 offset) { } /// <summary> /// Disallows further access to the represented file or communications channel and signals end of file on communications channels that permit writing. /// </summary> [iOSVersion(2)] [Export("closeFile")] public virtual void CloseFile() { } /// <summary> /// Causes all in-memory data and attributes of the file represented by the receiver to be written to permanent storage. /// </summary> [iOSVersion(2)] [Export("synchronizeFile")] public virtual void SynchronizeFile() { } /// <summary> /// Truncates or extends the file represented by the receiver to a specified offset within the file and puts the file pointer at that position. /// </summary> /// <param name="offset">The offset within the file that will mark the new end of the file.</param> [iOSVersion(2)] [Export("truncateFileAtOffset")] public virtual void TruncateFileAtOffset(UInt64 offset) { } /// <summary> /// The POSIX file descriptor associated with the receiver. (read-only) /// </summary> [iOSVersion(2)] [Export("fileDescriptor")] public int FileDescriptor { get; private set; } /// <summary> /// The data currently available in the receiver. (read-only) /// </summary> [iOSVersion(2)] [Export("availableData")] public NSData AvailableData { get; private set; } /// <summary> /// The block to use for reading the contents of the file handle asynchronously. /// </summary> [iOSVersion(5)] [Export("readabilityHandler")] public Action<NSFileHandle> ReadabilityHandler { get; set; } /// <summary> /// The block to use for writing the contents of the file handle asynchronously. /// </summary> [iOSVersion(5)] [Export("writeabilityHandler")] public Action<NSFileHandle> WriteabilityHandler { get; set; } /// <summary> /// The position of the file pointer within the file represented by the receiver. (read-only) /// </summary> [iOSVersion(2)] [Export("offsetInFile")] public UInt64 OffsetInFile { get; private set; } } /// <summary> /// This notification is posted when an NSFileHandle object establishes a socket connection between two processes, creates an NSFileHandle object for one end of the connection, and makes this object available to observers by putting it in the userInfo dictionary. To cause the posting of this notification, you must send either acceptConnectionInBackgroundAndNotify or acceptConnectionInBackgroundAndNotifyForModes: to an NSFileHandle object representing a server stream-type socket. /// The notification object is the NSFileHandle object that sent the notification. The userInfo dictionary contains the following information: /// Key /// Value /// NSFileHandleNotificationFileHandleItem /// The NSFileHandle object representing the “near” end of a socket connection /// @&quot;NSFileHandleError&quot; /// An NSNumber object containing an integer representing the UNIX-type error which occurred /// </summary> public class NSFileHandleConnectionAcceptedNotification : NSNotification { public NSFileHandleConnectionAcceptedNotification() : base("", null) { } } /// <summary> /// This notification is posted when the file handle determines that data is currently available for reading in a file or at a communications channel. The observers can then issue the appropriate messages to begin reading the data. To cause the posting of this notification, you must send either waitForDataInBackgroundAndNotify or waitForDataInBackgroundAndNotifyForModes: to an appropriate NSFileHandle object. /// The notification object is the NSFileHandle object that sent the notification. This notification does not contain a userInfo dictionary. /// </summary> public class NSFileHandleDataAvailableNotification : NSNotification { public NSFileHandleDataAvailableNotification() : base("", null) { } } /// <summary> /// This notification is posted when the file handle reads the data currently available in a file or at a communications channel. It makes the data available to observers by putting it in the userInfo dictionary. To cause the posting of this notification, you must send either readInBackgroundAndNotify or readInBackgroundAndNotifyForModes: to an appropriate NSFileHandle object. /// The notification object is the NSFileHandle object that sent the notification. The userInfo dictionary contains the following information: /// Key /// Value /// NSFileHandleNotificationDataItem /// An NSData object containing the available data read from a socket connection /// @&quot;NSFileHandleError&quot; /// An NSNumber object containing an integer representing the UNIX-type error which occurred /// </summary> public class NSFileHandleReadCompletionNotification : NSNotification { public NSFileHandleReadCompletionNotification() : base("", null) { } } /// <summary> /// This notification is posted when the file handle reads all data in the file or, if a communications channel, until the other process signals the end of data. It makes the data available to observers by putting it in the userInfo dictionary. To cause the posting of this notification, you must send either readToEndOfFileInBackgroundAndNotify or readToEndOfFileInBackgroundAndNotifyForModes: to an appropriate NSFileHandle object. /// The notification object is the NSFileHandle object that sent the notification. The userInfo dictionary contains the following information: /// Key /// Value /// NSFileHandleNotificationDataItem /// An NSData object containing the available data read from a socket connection /// @&quot;NSFileHandleError&quot; /// An NSNumber object containing an integer representing the UNIX-type error which occurred /// </summary> public class NSFileHandleReadToEndOfFileCompletionNotification : NSNotification { public NSFileHandleReadToEndOfFileCompletionNotification() : base("", null) { } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSFileManager.cs b/CocoaSharp/Foundation/NSFileManager.cs
index 2d46269c..96e3dff6 100644
--- a/CocoaSharp/Foundation/NSFileManager.cs
+++ b/CocoaSharp/Foundation/NSFileManager.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// An NSFileManager object lets you examine the contents of the file system and make changes to it. A file manager object is usually your first interaction with the file system. You use it to locate, create, copy, and move files and directories. You also use it to get information about a file or directory or change some of its attributes. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSFileManager_Class/index.html#//apple_ref/occ/cl/NSFileManager"/> [iOSVersion(2)] public class NSFileManager : NSObject//, AnyObject, NSObjectProtocol { /// <summary> /// Returns the shared file manager object for the process. /// </summary> [iOSVersion(2)] [Export("defaultManager")] public static NSFileManager DefaultManager() { return default(NSFileManager); } /// <summary> /// Locates and optionally creates the specified common directory in a domain. /// </summary> /// <param name="directory">The search path directory. The supported values are described in NSSearchPathDirectory.</param> /// <param name="inDomain">The file system domain to search. The value for this parameter is one of the constants described in NSSearchPathDomainMask. You should specify only one domain for your search and you may not specify the NSAllDomainsMask constant for this parameter.</param> /// <param name="appropriateForURL">The name of a directory inside of which you want to create a unique temporary directory for autosaving documents or some other use. This parameter is ignored unless the directory parameter contains the value NSItemReplacementDirectory and the domain parameter contains the value NSUserDomainMask. When creating a temporary directory, the shouldCreate parameter is ignored and the directory is always created.</param> /// <param name="create">Specify true if you want the directory to be created if it does not exist.</param> /// <param name="error">On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify nil for this parameter if you do not want the error information.</param> [iOSVersion(4)] public NSURL URLForDirectory(NSSearchPathDirectory directory, NSSearchPathDomainMask inDomain, NSURL appropriateForURL, bool create, NSErrorPointer error) { return default(NSURL); } /// <summary> /// Returns an array of URLs for the specified common directory in the requested domains. /// </summary> /// <param name="directory">The search path directory. The supported values are described in NSSearchPathDirectory.</param> /// <param name="inDomains">The file system domain to search. The value for this parameter is one or more of the constants described in NSSearchPathDomainMask.</param> [iOSVersion(4)] public AnyObject[] URLsForDirectory(NSSearchPathDirectory directory, NSSearchPathDomainMask inDomains) { return default(AnyObject[]); } /// <summary> /// Returns the container directory associated with the specified security application group ID. /// </summary> /// <param name="groupIdentifier"></param> [iOSVersion(7)] [Export("containerURLForSecurityApplicationGroupIdentifier")] public NSURL ContainerURLForSecurityApplicationGroupIdentifier(string groupIdentifier) { return default(NSURL); } /// <summary> /// Performs a shallow search of the specified directory and returns URLs for the contained items. /// </summary> /// <param name="url">The URL for the directory whose contents you want to enumerate.</param> /// <param name="includingPropertiesForKeys">An array of keys that identify the file properties that you want pre-fetched for each item in the directory. For each returned URL, the specified properties are fetched and cached in the NSURL object. For a list of keys you can specify, see Common File System Resource Keys.</param> /// <param name="options">Options for the enumeration. Because this method performs only shallow enumerations, options that prevent descending into subdirectories or packages are not allowed; the only supported option is NSDirectoryEnumerationSkipsHiddenFiles.</param> /// <param name="error">On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify nil for this parameter if you do not want the error information.</param> [iOSVersion(4)] [Export("contentsOfDirectoryAtURL")] public AnyObject[] ContentsOfDirectoryAtURL(NSURL url, AnyObject[] includingPropertiesForKeys, NSDirectoryEnumerationOptions options, NSErrorPointer error) { return default(AnyObject[]); } /// <summary> /// Performs a shallow search of the specified directory and returns the paths of any contained items. /// </summary> /// <param name="path">The path to the directory whose contents you want to enumerate.</param> /// <param name="error">On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify nil for this parameter if you do not want the error information.</param> [iOSVersion(2)] [Export("contentsOfDirectoryAtPath")] public AnyObject[] ContentsOfDirectoryAtPath(string path, NSErrorPointer error) { return default(AnyObject[]); } /// <summary> /// Returns a directory enumerator object that can be used to perform a deep enumeration of the directory at the specified URL. /// </summary> /// <param name="url">The location of the directory for which you want an enumeration. This URL must not be a symbolic link that points to the desired directory. You can use the URLByResolvingSymlinksInPath method to resolve any symlinks in the URL.</param> /// <param name="includingPropertiesForKeys">An array of keys that identify the properties that you want pre-fetched for each item in the enumeration. The values for these keys are cached in the corresponding NSURL objects. You may specify nil for this parameter. For a list of keys you can specify, see Common File System Resource Keys.</param> /// <param name="options">Options for the enumeration. For a list of valid options, see Directory Enumeration Options.</param> /// <param name="errorHandler">An optional error handler block for the file manager to call when an error occurs. The handler block should return true if you want the enumeration to continue or false if you want the enumeration to stop. The block takes the following parameters: /// url /// An NSURL object that identifies the item for which the error occurred. /// error /// An NSError object that contains information about the error. /// If you specify nil for this parameter, the enumerator object continues to enumerator items as if you had specified a block that returned true.</param> [iOSVersion(4)] [Export("enumeratorAtURL")] public NSDirectoryEnumerator EnumeratorAtURL(NSURL url, AnyObject[] includingPropertiesForKeys, NSDirectoryEnumerationOptions options, Func<NSURL, NSError, bool> errorHandler) { return default(NSDirectoryEnumerator); } /// <summary> /// Returns a directory enumerator object that can be used to perform a deep enumeration of the directory at the specified path. /// </summary> /// <param name="path">The path of the directory to enumerate.</param> [iOSVersion(2)] [Export("enumeratorAtPath")] public NSDirectoryEnumerator EnumeratorAtPath(string path) { return default(NSDirectoryEnumerator); } /// <summary> /// Returns an array of URLs that identify the mounted volumes available on the computer. /// </summary> /// <param name="propertyKeys">An array of keys that identify the file properties that you want pre-fetched for each volume. For each returned URL, the values for these keys are cached in the corresponding NSURL objects. You may specify nil for this parameter. For a list of keys you can specify, see Common File System Resource Keys.</param> /// <param name="options">Option flags for the enumeration. For a list of possible values, see NSVolumeEnumerationOptions.</param> [iOSVersion(4)] [Export("mountedVolumeURLsIncludingResourceValuesForKeys")] public AnyObject[] MountedVolumeURLsIncludingResourceValuesForKeys(AnyObject[] propertyKeys, NSVolumeEnumerationOptions options) { return default(AnyObject[]); } /// <summary> /// Performs a deep enumeration of the specified directory and returns the paths of all of the contained subdirectories. /// </summary> /// <param name="path">The path of the directory to list.</param> /// <param name="error">If an error occurs, upon return contains an NSError object that describes the problem. Pass NULL if you do not want error information.</param> [iOSVersion(2)] [Export("subpathsOfDirectoryAtPath")] public AnyObject[] SubpathsOfDirectoryAtPath(string path, NSErrorPointer error) { return default(AnyObject[]); } /// <summary> /// Returns an array of strings identifying the paths for all items in the specified directory. /// </summary> /// <param name="path">The path of the directory to list.</param> [iOSVersion(2)] [Export("subpathsAtPath")] public AnyObject[] SubpathsAtPath(string path) { return default(AnyObject[]); } /// <summary> /// Creates a directory with the given attributes at the specified URL. /// </summary> /// <param name="url">A file URL that specifies the directory to create. If you want to specify a relative path, you must set the current working directory before creating the corresponding NSURL object. This parameter must not be nil.</param> /// <param name="withIntermediateDirectories">If true, this method creates any non-existent parent directories as part of creating the directory in url. If false, this method fails if any of the intermediate parent directories does not exist.</param> /// <param name="attributes">The file attributes for the new directory. You can set the owner and group numbers, file permissions, and modification date. If you specify nil for this parameter, the directory is created according to the umask(2) Mac OS X Developer Tools /// Manual Page of the process. The Constants section lists the global constants used as keys in the attributes dictionary. Some of the keys, such as NSFileHFSCreatorCode and NSFileHFSTypeCode, do not apply to directories.</param> /// <param name="error">On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify nil for this parameter if you do not want the error information.</param> [iOSVersion(5)] [Export("createDirectoryAtURL")] public bool CreateDirectoryAtURL(NSURL url, bool withIntermediateDirectories, Dictionary<NSObject, AnyObject> attributes, NSErrorPointer error) { return default(bool); } /// <summary> /// Creates a directory with given attributes at the specified path. /// </summary> /// <param name="path">A path string identifying the directory to create. You may specify a full path or a path that is relative to the current working directory. This parameter must not be nil.</param> /// <param name="withIntermediateDirectories">If true, this method creates any non-existent parent directories as part of creating the directory in path. If false, this method fails if any of the intermediate parent directories does not exist. This method also fails if any of the intermediate path elements corresponds to a file and not a directory.</param> /// <param name="attributes">The file attributes for the new directory and any newly created intermediate directories. You can set the owner and group numbers, file permissions, and modification date. If you specify nil for this parameter or omit a particular value, one or more default values are used as described in the discussion. For a list of keys you can include in this dictionary, see Constants section lists the global constants used as keys in the attributes dictionary. Some of the keys, such as NSFileHFSCreatorCode and NSFileHFSTypeCode, do not apply to directories.</param> /// <param name="error">On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify nil for this parameter if you do not want the error information.</param> [iOSVersion(2)] [Export("createDirectoryAtPath")] public bool CreateDirectoryAtPath(string path, bool withIntermediateDirectories, Dictionary<NSObject, AnyObject> attributes, NSErrorPointer error) { return default(bool); } /// <summary> /// Creates a file with the specified content and attributes at the given location. /// </summary> /// <param name="path">The path for the new file.</param> /// <param name="contents">A data object containing the contents of the new file.</param> /// <param name="attributes">A dictionary containing the attributes to associate with the new file. You can use these attributes to set the owner and group numbers, file permissions, and modification date. For a list of keys, see File Attribute Keys. If you specify nil for attributes, the file is created with a set of default attributes.</param> [iOSVersion(2)] [Export("createFileAtPath")] public bool CreateFileAtPath(string path, NSData contents, Dictionary<NSObject, AnyObject> attributes) { return default(bool); } /// <summary> /// Removes the file or directory at the specified URL. /// </summary> /// <param name="URL">A file URL specifying the file or directory to remove. If the URL specifies a directory, the contents of that directory are recursively removed. You may specify nil for this parameter.</param> /// <param name="error">On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify nil for this parameter if you do not want the error information.</param> [iOSVersion(4)] [Export("removeItemAtURL")] public bool RemoveItemAtURL(NSURL URL, NSErrorPointer error) { return default(bool); } /// <summary> /// Removes the file or directory at the specified path. /// </summary> /// <param name="path">A path string indicating the file or directory to remove. If the path specifies a directory, the contents of that directory are recursively removed. You may specify nil for this parameter.</param> /// <param name="error">On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify nil for this parameter if you do not want the error information.</param> [iOSVersion(2)] [Export("removeItemAtPath")] public bool RemoveItemAtPath(string path, NSErrorPointer error) { return default(bool); } /// <summary> /// Replaces the contents of the item at the specified URL in a manner that insures no data loss occurs. /// </summary> /// <param name="originalItemURL">The item whose contents you want to replace.</param> /// <param name="withItemAtURL">The item containing the new content for originalItemURL. It is recommended that you put this item in a temporary directory as provided by the OS. If a temporary directory is not available, put this item in a uniquely named directory that is in the same directory as the original item.</param> /// <param name="backupItemName">Optional. If provided, this name is used to create a backup of the original item. /// The backup is placed in the same directory as the original item. If an error occurs during the creation of the backup item, the operation will fail. If there is already an item with the same name as the backup item, that item will be removed. /// The backup item will be removed in the event of success unless the NSFileManagerItemReplacementWithoutDeletingBackupItem option is provided in options.</param> /// <param name="options">Specifies the options to use during the replacement. Typically, you pass NSFileManagerItemReplacementUsingNewMetadataOnly for this parameter, which uses only the metadata from the new item. You can also combine the options described in NSFileManagerItemReplacementOptions using the C-bitwise OR operator.</param> /// <param name="resultingItemURL">On input, a pointer for a URL object. When the item is replaced, this pointer is set to the URL of the new item. If no new file system object is required, the URL object in this parameter may be the same passed to the originalItemURL parameter. However, if a new file system object is required, the URL object may be different. For example, replacing an RTF document with an RTFD document requires the creation of a new file.</param> /// <param name="error">On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify nil for this parameter if you do not want the error information.</param> [iOSVersion(4)] [Export("replaceItemAtURL")] public bool ReplaceItemAtURL(NSURL originalItemURL, NSURL withItemAtURL, string backupItemName, NSFileManagerItemReplacementOptions options, AutoreleasingUnsafePointer<NSURL> resultingItemURL, NSErrorPointer error) { return default(bool); } /// <summary> /// Copies the file at the specified URL to a new location synchronously. /// </summary> /// <param name="srcURL">The file URL that identifies the file you want to copy. The URL in this parameter must not be a file reference URL. This parameter must not be nil.</param> /// <param name="toURL">The URL at which to place the copy of srcURL. The URL in this parameter must not be a file reference URL and must include the name of the file in its new location. This parameter must not be nil.</param> /// <param name="error">On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify nil for this parameter if you do not want the error information.</param> [iOSVersion(4)] [Export("copyItemAtURL")] public bool CopyItemAtURL(NSURL srcURL, NSURL toURL, NSErrorPointer error) { return default(bool); } /// <summary> /// Copies the item at the specified path to a new location synchronously. /// </summary> /// <param name="srcPath">The path to the file or directory you want to move. This parameter must not be nil.</param> /// <param name="toPath">The path at which to place the copy of srcPath. This path must include the name of the file or directory in its new location. This parameter must not be nil.</param> /// <param name="error">On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify nil for this parameter if you do not want the error information.</param> [iOSVersion(2)] [Export("copyItemAtPath")] public bool CopyItemAtPath(string srcPath, string toPath, NSErrorPointer error) { return default(bool); } /// <summary> /// Moves the file or directory at the specified URL to a new location synchronously. /// </summary> /// <param name="srcURL">The file URL that identifies the file or directory you want to move. The URL in this parameter must not be a file reference URL. This parameter must not be nil.</param> /// <param name="toURL">The new location for the item in srcURL. The URL in this parameter must not be a file reference URL and must include the name of the file or directory in its new location. This parameter must not be nil.</param> /// <param name="error">On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify nil for this parameter if you do not want the error information.</param> [iOSVersion(4)] [Export("moveItemAtURL")] public bool MoveItemAtURL(NSURL srcURL, NSURL toURL, NSErrorPointer error) { return default(bool); } /// <summary> /// Moves the file or directory at the specified path to a new location synchronously. /// </summary> /// <param name="srcPath">The path to the file or directory you want to move. This parameter must not be nil.</param> /// <param name="toPath">The new path for the item in srcPath. This path must include the name of the file or directory in its new location. This parameter must not be nil.</param> /// <param name="error">On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify nil for this parameter if you do not want the error information.</param> [iOSVersion(2)] [Export("moveItemAtPath")] public bool MoveItemAtPath(string srcPath, string toPath, NSErrorPointer error) { return default(bool); } /// <summary> /// Returns the URL for the iCloud container associated with the specified identifier and establishes access to that container. /// </summary> /// <param name="containerID">The fully-qualified container identifier for an iCloud container directory. The string you specify must not contain wildcards and must be of the form <TEAMID>.<CONTAINER>, where <TEAMID> is your development team ID and <CONTAINER> is the bundle identifier of the container you want to access. /// The container identifiers for your app must be declared in the com.apple.developer.ubiquity-container-identifiers array of the .entitlements property list file in your Xcode project. /// If you specify nil for this parameter, this method returns the first container listed in the com.apple.developer.ubiquity-container-identifiers entitlement array.</param> [iOSVersion(5)] public NSURL URLForUbiquityContainerIdentifier(string containerID) { return default(NSURL); } /// <summary> /// Returns a Boolean indicating whether the item is targeted for storage in iCloud. /// </summary> /// <param name="url">Specify the URL for the file or directory whose status you want to check.</param> [iOSVersion(5)] [Export("isUbiquitousItemAtURL")] public bool IsUbiquitousItemAtURL(NSURL url) { return default(bool); } /// <summary> /// Sets whether the item at the specified URL should be stored in the cloud. /// </summary> /// <param name="flag">Specify true to move the item to iCloud or false to remove it from iCloud (if it is there currently).</param> /// <param name="itemAtURL">Specify the URL of the item (file or directory) that you want to store in iCloud.</param> /// <param name="destinationURL">Moving a file into iCloud Specify the location in iCloud at which to store the file or directory. This URL must be constructed from a URL returned by the URLForUbiquityContainerIdentifier: method, which you use to retrieve the desired iCloud container directory. The URL you specify may contain additional subdirectories so that you can organize your files hierarchically in iCloud. However, you are responsible for creating those intermediate subdirectories (using the NSFileManager class) in your iCloud container directory. /// Moving a file out of iCloud Specify the location on the local device.</param> /// <param name="error">On input, a pointer to variable for an NSError object. If an error occurs, this pointer is set to an NSError object containing information about the error. You may specify nil to ignore the error information.</param> [iOSVersion(5)] [Export("setUbiquitous")] public bool SetUbiquitous(bool flag, NSURL itemAtURL, NSURL destinationURL, NSErrorPointer error) { return default(bool); } /// <summary> /// Starts downloading (if necessary) the specified item to the local system. /// </summary> /// <param name="url">Specify the URL for the file or directory in the cloud that you want to download.</param> /// <param name="error">On input, a pointer to variable for an NSError object. If an error occurs, this pointer is set to an NSError object containing information about the error. You may specify nil to ignore the error information.</param> [iOSVersion(5)] [Export("startDownloadingUbiquitousItemAtURL")] public bool StartDownloadingUbiquitousItemAtURL(NSURL url, NSErrorPointer error) { return default(bool); } /// <summary> /// Removes the local copy of the specified cloud-based item. /// </summary> /// <param name="url">Specify the URL to a file or directory in iCloud storage.</param> /// <param name="error">On input, a pointer to variable for an NSError object. If an error occurs, this pointer is set to an NSError object containing information about the error. You may specify nil to ignore the error information.</param> [iOSVersion(5)] [Export("evictUbiquitousItemAtURL")] public bool EvictUbiquitousItemAtURL(NSURL url, NSErrorPointer error) { return default(bool); } /// <summary> /// Returns a URL that can be emailed to users to allow them to download a copy of a cloud-based item. /// </summary> /// <param name="url">Specify the URL of the item in the cloud that you want to share. The URL must be prefixed with the base URL returned from the URLForUbiquityContainerIdentifier: method that corresponds to the item’s location. The file at the specified URL must already be uploaded to iCloud when you call this method.</param> /// <param name="expirationDate">On input, a pointer to a variable for a date object. On output, this parameter contains the date after which the item is no longer available at the returned URL. You may specify nil for this parameter if you are not interested in the date.</param> /// <param name="error">On input, a pointer to variable for an NSError object. If an error occurs, this pointer is set to an NSError object containing information about the error. You may specify nil for this parameter if you do not want the error information.</param> [iOSVersion(5)] public NSURL URLForPublishingUbiquitousItemAtURL(NSURL url, AutoreleasingUnsafePointer<NSDate> expirationDate, NSErrorPointer error) { return default(NSURL); } /// <summary> /// Creates a symbolic link at the specified URL that points to an item at the given URL. /// </summary> /// <param name="url">The file URL at which to create the new symbolic link. The last path component of the URL issued as the name of the link.</param> /// <param name="withDestinationURL">The file URL that contains the item to be pointed to by the link. In other words, this is the destination of the link.</param> /// <param name="error">On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify nil for this parameter if you do not want the error information.</param> [iOSVersion(5)] [Export("createSymbolicLinkAtURL")] public bool CreateSymbolicLinkAtURL(NSURL url, NSURL withDestinationURL, NSErrorPointer error) { return default(bool); } /// <summary> /// Creates a symbolic link that points to the specified destination. /// </summary> /// <param name="path">The path at which to create the new symbolic link. The last path component is used as the name of the link.</param> /// <param name="withDestinationPath">The path that contains the item to be pointed to by the link. In other words, this is the destination of the link.</param> /// <param name="error">If an error occurs, upon return contains an NSError object that describes the problem. Pass NULL if you do not want error information.</param> [iOSVersion(2)] [Export("createSymbolicLinkAtPath")] public bool CreateSymbolicLinkAtPath(string path, string withDestinationPath, NSErrorPointer error) { return default(bool); } /// <summary> /// Creates a hard link between the items at the specified URLs. /// </summary> /// <param name="srcURL">The file URL that identifies the source of the link. The URL in this parameter must not be a file reference URL; it must specify the actual path to the item. The value in this parameter must not be nil.</param> /// <param name="toURL">The file URL that specifies where you want to create the hard link. The URL in this parameter must not be a file reference URL; it must specify the actual path to the item. The value in this parameter must not be nil.</param> /// <param name="error">On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify nil for this parameter if you do not want the error information.</param> [iOSVersion(4)] [Export("linkItemAtURL")] public bool LinkItemAtURL(NSURL srcURL, NSURL toURL, NSErrorPointer error) { return default(bool); } /// <summary> /// Creates a hard link between the items at the specified paths. /// </summary> /// <param name="srcPath">The path that specifies the item you wish to link to. The value in this parameter must not be nil.</param> /// <param name="toPath">The path that identifies the location where the link will be created. The value in this parameter must not be nil.</param> /// <param name="error">On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify nil for this parameter if you do not want the error information.</param> [iOSVersion(2)] [Export("linkItemAtPath")] public bool LinkItemAtPath(string srcPath, string toPath, NSErrorPointer error) { return default(bool); } /// <summary> /// Returns the path of the item pointed to by a symbolic link. /// </summary> /// <param name="path">The path of a file or directory.</param> /// <param name="error">If an error occurs, upon return contains an NSError object that describes the problem. Pass NULL if you do not want error information.</param> [iOSVersion(2)] [Export("destinationOfSymbolicLinkAtPath")] public string DestinationOfSymbolicLinkAtPath(string path, NSErrorPointer error) { return default(string); } /// <summary> /// Returns a Boolean value that indicates whether a file or directory exists at a specified path. /// </summary> /// <param name="path">The path of the file or directory. If path begins with a tilde (~), it must first be expanded with stringByExpandingTildeInPath, otherwise, this method returns false.</param> [iOSVersion(2)] [Export("fileExistsAtPath")] public bool FileExistsAtPath(string path) { return default(bool); } /// <summary> /// Returns a Boolean value that indicates whether a file or directory exists at a specified path. /// </summary> /// <param name="path">The path of a file or directory. If path begins with a tilde (~), it must first be expanded with stringByExpandingTildeInPath, or this method will return false.</param> /// <param name="isDirectory">Upon return, contains true if path is a directory or if the final path element is a symbolic link that points to a directory, otherwise contains false. If path doesn’t exist, this value is undefined upon return. Pass NULL if you do not need this information.</param> [iOSVersion(2)] [Export("fileExistsAtPath")] public bool FileExistsAtPath(string path, UnsafePointer<ObjCBool> isDirectory) { return default(bool); } /// <summary> /// Returns a Boolean value that indicates whether the invoking object appears able to read a specified file. /// </summary> /// <param name="path">A file path.</param> [iOSVersion(2)] [Export("isReadableFileAtPath")] public bool IsReadableFileAtPath(string path) { return default(bool); } /// <summary> /// Returns a Boolean value that indicates whether the invoking object appears able to write to a specified file. /// </summary> /// <param name="path">A file path.</param> [iOSVersion(2)] [Export("isWritableFileAtPath")] public bool IsWritableFileAtPath(string path) { return default(bool); } /// <summary> /// Returns a Boolean value that indicates whether the operating system appears able to execute a specified file. /// </summary> /// <param name="path">A file path.</param> [iOSVersion(2)] [Export("isExecutableFileAtPath")] public bool IsExecutableFileAtPath(string path) { return default(bool); } /// <summary> /// Returns a Boolean value that indicates whether the invoking object appears able to delete a specified file. /// </summary> /// <param name="path">A file path.</param> [iOSVersion(2)] [Export("isDeletableFileAtPath")] public bool IsDeletableFileAtPath(string path) { return default(bool); } /// <summary> /// Returns an array of strings representing the user-visible components of a given path. /// </summary> /// <param name="path">A pathname.</param> [iOSVersion(2)] [Export("componentsToDisplayForPath")] public AnyObject[] ComponentsToDisplayForPath(string path) { return default(AnyObject[]); } /// <summary> /// Returns the display name of the file or directory at a specified path. /// </summary> /// <param name="path">The path of a file or directory.</param> [iOSVersion(2)] [Export("displayNameAtPath")] public string DisplayNameAtPath(string path) { return default(string); } /// <summary> /// Returns the attributes of the item at a given path. /// </summary> /// <param name="path">The path of a file or directory.</param> /// <param name="error">On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify nil for this parameter if you do not want the error information.</param> [iOSVersion(2)] [Export("attributesOfItemAtPath")] public Dictionary<NSObject, AnyObject> AttributesOfItemAtPath(string path, NSErrorPointer error) { return default(Dictionary<NSObject, AnyObject>); } /// <summary> /// Returns a dictionary that describes the attributes of the mounted file system on which a given path resides. /// </summary> /// <param name="path">Any pathname within the mounted file system.</param> /// <param name="error">On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify nil for this parameter if you do not want the error information.</param> [iOSVersion(2)] [Export("attributesOfFileSystemForPath")] public Dictionary<NSObject, AnyObject> AttributesOfFileSystemForPath(string path, NSErrorPointer error) { return default(Dictionary<NSObject, AnyObject>); } /// <summary> /// Sets the attributes of the specified file or directory. /// </summary> /// <param name="attributes">A dictionary containing as keys the attributes to set for path and as values the corresponding value for the attribute. You can set the following attributes: NSFileBusy, NSFileCreationDate, NSFileExtensionHidden, NSFileGroupOwnerAccountID, NSFileGroupOwnerAccountName, NSFileHFSCreatorCode, NSFileHFSTypeCode, NSFileImmutable, NSFileModificationDate, NSFileOwnerAccountID, NSFileOwnerAccountName, NSFilePosixPermissions. You can change single attributes or any combination of attributes; you need not specify keys for all attributes.</param> /// <param name="ofItemAtPath">The path of a file or directory.</param> /// <param name="error">On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify nil for this parameter if you do not want the error information.</param> [iOSVersion(2)] [Export("setAttributes")] public bool SetAttributes(Dictionary<NSObject, AnyObject> attributes, string ofItemAtPath, NSErrorPointer error) { return default(bool); } /// <summary> /// Returns the contents of the file at the specified path. /// </summary> /// <param name="path">The path of the file whose contents you want.</param> [iOSVersion(2)] [Export("contentsAtPath")] public NSData ContentsAtPath(string path) { return default(NSData); } /// <summary> /// Returns a Boolean value that indicates whether the files or directories in specified paths have the same contents. /// </summary> /// <param name="path1">The path of a file or directory to compare with the contents of path2.</param> /// <param name="andPath">The path of a file or directory to compare with the contents of path1.</param> [iOSVersion(2)] [Export("contentsEqualAtPath")] public bool ContentsEqualAtPath(string path1, string andPath) { return default(bool); } /// <summary> /// Determines the type of relationship that exists between a directory and item. /// </summary> /// <param name="outRelationship">A pointer to a variable in which to put the relationship between directoryURL and otherURL. For a list of possible values, see NSURLRelationship.</param> /// <param name="ofDirectoryAtURL">The URL of the directory that potentially contains the item in otherURL. The URL in this parameter must specify a directory. This parameter must not be nil.</param> /// <param name="toItemAtURL">The URL of the file or directory whose relationship to directoryURL is being tested. This parameter must not be nil.</param> /// <param name="error">On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify nil for this parameter if you do not want the error information.</param> [iOSVersion(8)] [Export("getRelationship")] public bool GetRelationship(UnsafePointer<NSURLRelationship> outRelationship, NSURL ofDirectoryAtURL, NSURL toItemAtURL, NSErrorPointer error) { return default(bool); } /// <summary> /// Determines the type of relationship that exists between a system directory and the specified item. /// </summary> /// <param name="outRelationship">A pointer to a variable in which to put the relationship between directoryURL and otherURL. For a list of possible values, see NSURLRelationship.</param> /// <param name="ofDirectory">The search path directory. For a list of possible values, see NSSearchPathDirectory.</param> /// <param name="inDomain">The file system domain to search. Specify 0 for this parameter if you want the file manager to choose the domain that is most appropriate for the specified url.</param> /// <param name="toItemAtURL">The URL of the file or directory whose relationship to directoryURL is being tested. This parameter must not be nil.</param> /// <param name="error">On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify nil for this parameter if you do not want the error information.</param> [iOSVersion(8)] [Export("getRelationship")] public bool GetRelationship(UnsafePointer<NSURLRelationship> outRelationship, NSSearchPathDirectory ofDirectory, NSSearchPathDomainMask inDomain, NSURL toItemAtURL, NSErrorPointer error) { return default(bool); } /// <summary> /// Returns a C-string representation of a given path that properly encodes Unicode strings for use by the file system. /// </summary> /// <param name="path">A string object containing a path to a file. This parameter must not be nil or contain the empty string.</param> [iOSVersion(2)] [Export("fileSystemRepresentationWithPath")] public ConstUnsafePointer<Int8> FileSystemRepresentationWithPath(string path) { return default(ConstUnsafePointer<Int8>); } /// <summary> /// Returns an NSString object whose contents are derived from the specified C-string path. /// </summary> /// <param name="@string">A C string representation of a pathname.</param> /// <param name="length">The number of characters in string.</param> [iOSVersion(2)] [Export("stringWithFileSystemRepresentation")] public string StringWithFileSystemRepresentation(ConstUnsafePointer<Int8> @string, int length) { return default(string); } /// <summary> /// Changes the path of the current working directory to the specified path. /// </summary> /// <param name="path">The path of the directory to which to change.</param> [iOSVersion(2)] [Export("changeCurrentDirectoryPath")] public bool ChangeCurrentDirectoryPath(string path) { return default(bool); } /// <summary> /// An opaque token that represents the current user’s iCloud identity (read-only) /// </summary> [iOSVersion(6)] [Export("ubiquityIdentityToken")] public Protocol<NSCoding, NSCopying, NSObjectProtocol> UbiquityIdentityToken { get; private set; } /// <summary> /// The delegate of the file manager object. /// </summary> [iOSVersion(2)] [Export("delegate")] public NSFileManagerDelegate Delegate { get; set; } /// <summary> /// The path to the program’s current directory. (read-only) /// </summary> [iOSVersion(2)] [Export("currentDirectoryPath")] public string CurrentDirectoryPath { get; private set; } /// <summary> /// Specifies the version of the Foundation framework in which NSFileManager first supported resource forks. /// </summary> public int NSFoundationVersionWithFileManagerResourceForkSupport { get; set; } } /// <summary> /// Options for enumerating mounted volumes with the mountedVolumeURLsIncludingResourceValuesForKeys:options: method. /// </summary> [iOSVersion(4)] public enum NSVolumeEnumerationOptions { /// <summary> /// The enumeration skips hidden volumes. /// </summary> [iOSVersion(4)] SkipHiddenVolumes, /// <summary> /// The enumeration produces file reference URLs rather than path-based URLs. /// </summary> [iOSVersion(4)] ProduceFileReferenceURLs, } /// <summary> /// Options for enumerating the contents of directories with the contentsOfDirectoryAtURL:includingPropertiesForKeys:options:error: method. /// </summary> [iOSVersion(4)] public enum NSDirectoryEnumerationOptions { /// <summary> /// Perform a shallow enumeration; do not descend into directories. /// </summary> [iOSVersion(4)] SkipsSubdirectoryDescendants, /// <summary> /// Do not descend into packages. /// </summary> [iOSVersion(4)] SkipsPackageDescendants, /// <summary> /// Do not enumerate hidden files. /// </summary> [iOSVersion(4)] SkipsHiddenFiles, } /// <summary> /// The constants specify the replacement behavior in replaceItemAtURL:withItemAtURL:backupItemName:options:resultingItemURL:error:. /// </summary> [iOSVersion(4)] public enum NSFileManagerItemReplacementOptions { /// <summary> /// Causes replaceItemAtURL:withItemAtURL:backupItemName:options:resultingItemURL:error: to use metadata from the new item only and not to attempt to preserve metadata from the original item. /// </summary> [iOSVersion(4)] UsingNewMetadataOnly, /// <summary> /// Causes replaceItemAtURL:withItemAtURL:backupItemName:options:resultingItemURL:error: to leave the backup item in place after a successful replacement. The default behavior is to remove the item. /// </summary> [iOSVersion(4)] WithoutDeletingBackupItem, } /// <summary> /// Constants indicating the relationship between a directory and an item. /// </summary> [iOSVersion(8)] public enum NSURLRelationship { /// <summary> /// The directory contains the specified item. /// </summary> [iOSVersion(8)] Contains, /// <summary> /// The directory and the item are the same. This relationship occurs when the value of the NSURLFileResourceIdentifierKey is the same for the directory and item. /// </summary> [iOSVersion(8)] Same, /// <summary> /// The directory does not contain the item and is not the same as the item. /// </summary> [iOSVersion(8)] Other, } /// <summary> /// When your app receives this notification, get the new token from the ubiquityIdentityToken property. The value of that token is nil if the user has disabled iCloud. There is no userInfo dictionary. /// </summary> [iOSVersion(6)] public class NSUbiquityIdentityDidChangeNotification : NSNotification { public NSUbiquityIdentityDidChangeNotification() : base("", null) { } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// An NSFileManager object lets you examine the contents of the file system and make changes to it. A file manager object is usually your first interaction with the file system. You use it to locate, create, copy, and move files and directories. You also use it to get information about a file or directory or change some of its attributes. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSFileManager_Class/index.html#//apple_ref/occ/cl/NSFileManager"/> [iOSVersion(2)] [Export("")] public class NSFileManager : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSObjectProtocol, Printable { public NSFileManager() { } /// <summary> /// Returns the shared file manager object for the process. /// </summary> [iOSVersion(2)] [Export("defaultManager")] public static NSFileManager DefaultManager() { return default(NSFileManager); } /// <summary> /// Locates and optionally creates the specified common directory in a domain. /// </summary> /// <param name="directory">The search path directory. The supported values are described in NSSearchPathDirectory.</param> /// <param name="inDomain">The file system domain to search. The value for this parameter is one of the constants described in NSSearchPathDomainMask. You should specify only one domain for your search and you may not specify the NSAllDomainsMask constant for this parameter.</param> /// <param name="appropriateForURL">The name of a directory inside of which you want to create a unique temporary directory for autosaving documents or some other use. This parameter is ignored unless the directory parameter contains the value NSItemReplacementDirectory and the domain parameter contains the value NSUserDomainMask. When creating a temporary directory, the shouldCreate parameter is ignored and the directory is always created.</param> /// <param name="create">Specify true if you want the directory to be created if it does not exist.</param> /// <param name="error">On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify nil for this parameter if you do not want the error information.</param> [iOSVersion(4)] [return:Optional] public virtual NSURL URLForDirectory(NSSearchPathDirectory directory, NSSearchPathDomainMask inDomain, [Optional] NSURL appropriateForURL, bool create, NSErrorPointer error) { return default(NSURL); } /// <summary> /// Returns an array of URLs for the specified common directory in the requested domains. /// </summary> /// <param name="directory">The search path directory. The supported values are described in NSSearchPathDirectory.</param> /// <param name="inDomains">The file system domain to search. The value for this parameter is one or more of the constants described in NSSearchPathDomainMask.</param> [iOSVersion(4)] public virtual AnyObject[] URLsForDirectory(NSSearchPathDirectory directory, NSSearchPathDomainMask inDomains) { return default(AnyObject[]); } /// <summary> /// Returns the container directory associated with the specified security application group ID. /// </summary> /// <param name="groupIdentifier"></param> [iOSVersion(7)] [Export("containerURLForSecurityApplicationGroupIdentifier")] [return:Optional] public virtual NSURL ContainerURLForSecurityApplicationGroupIdentifier(string groupIdentifier) { return default(NSURL); } /// <summary> /// Performs a shallow search of the specified directory and returns URLs for the contained items. /// </summary> /// <param name="url">The URL for the directory whose contents you want to enumerate.</param> /// <param name="includingPropertiesForKeys">An array of keys that identify the file properties that you want pre-fetched for each item in the directory. For each returned URL, the specified properties are fetched and cached in the NSURL object. For a list of keys you can specify, see Common File System Resource Keys.</param> /// <param name="options">Options for the enumeration. Because this method performs only shallow enumerations, options that prevent descending into subdirectories or packages are not allowed; the only supported option is NSDirectoryEnumerationSkipsHiddenFiles.</param> /// <param name="error">On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify nil for this parameter if you do not want the error information.</param> [iOSVersion(4)] [Export("contentsOfDirectoryAtURL")] public virtual AnyObject[] ContentsOfDirectoryAtURL(NSURL url, AnyObject[] includingPropertiesForKeys, NSDirectoryEnumerationOptions options, NSErrorPointer error) { return default(AnyObject[]); } /// <summary> /// Performs a shallow search of the specified directory and returns the paths of any contained items. /// </summary> /// <param name="path">The path to the directory whose contents you want to enumerate.</param> /// <param name="error">On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify nil for this parameter if you do not want the error information.</param> [iOSVersion(2)] [Export("contentsOfDirectoryAtPath")] public virtual AnyObject[] ContentsOfDirectoryAtPath(string path, NSErrorPointer error) { return default(AnyObject[]); } /// <summary> /// Returns a directory enumerator object that can be used to perform a deep enumeration of the directory at the specified URL. /// </summary> /// <param name="url">The location of the directory for which you want an enumeration. This URL must not be a symbolic link that points to the desired directory. You can use the URLByResolvingSymlinksInPath method to resolve any symlinks in the URL.</param> /// <param name="includingPropertiesForKeys">An array of keys that identify the properties that you want pre-fetched for each item in the enumeration. The values for these keys are cached in the corresponding NSURL objects. You may specify nil for this parameter. For a list of keys you can specify, see Common File System Resource Keys.</param> /// <param name="options">Options for the enumeration. For a list of valid options, see Directory Enumeration Options.</param> /// <param name="errorHandler">An optional error handler block for the file manager to call when an error occurs. The handler block should return true if you want the enumeration to continue or false if you want the enumeration to stop. The block takes the following parameters: /// url /// An NSURL object that identifies the item for which the error occurred. /// error /// An NSError object that contains information about the error. /// If you specify nil for this parameter, the enumerator object continues to enumerator items as if you had specified a block that returned true.</param> [iOSVersion(4)] [Export("enumeratorAtURL")] [return:Optional] public virtual NSDirectoryEnumerator EnumeratorAtURL(NSURL url, AnyObject[] includingPropertiesForKeys, NSDirectoryEnumerationOptions options, Func<NSURL, NSError, bool> errorHandler) { return default(NSDirectoryEnumerator); } /// <summary> /// Returns a directory enumerator object that can be used to perform a deep enumeration of the directory at the specified path. /// </summary> /// <param name="path">The path of the directory to enumerate.</param> [iOSVersion(2)] [Export("enumeratorAtPath")] [return:Optional] public virtual NSDirectoryEnumerator EnumeratorAtPath(string path) { return default(NSDirectoryEnumerator); } /// <summary> /// Returns an array of URLs that identify the mounted volumes available on the computer. /// </summary> /// <param name="propertyKeys">An array of keys that identify the file properties that you want pre-fetched for each volume. For each returned URL, the values for these keys are cached in the corresponding NSURL objects. You may specify nil for this parameter. For a list of keys you can specify, see Common File System Resource Keys.</param> /// <param name="options">Option flags for the enumeration. For a list of possible values, see NSVolumeEnumerationOptions.</param> [iOSVersion(4)] [Export("mountedVolumeURLsIncludingResourceValuesForKeys")] public virtual AnyObject[] MountedVolumeURLsIncludingResourceValuesForKeys(AnyObject[] propertyKeys, NSVolumeEnumerationOptions options) { return default(AnyObject[]); } /// <summary> /// Performs a deep enumeration of the specified directory and returns the paths of all of the contained subdirectories. /// </summary> /// <param name="path">The path of the directory to list.</param> /// <param name="error">If an error occurs, upon return contains an NSError object that describes the problem. Pass NULL if you do not want error information.</param> [iOSVersion(2)] [Export("subpathsOfDirectoryAtPath")] public virtual AnyObject[] SubpathsOfDirectoryAtPath(string path, NSErrorPointer error) { return default(AnyObject[]); } /// <summary> /// Returns an array of strings identifying the paths for all items in the specified directory. /// </summary> /// <param name="path">The path of the directory to list.</param> [iOSVersion(2)] [Export("subpathsAtPath")] public virtual AnyObject[] SubpathsAtPath(string path) { return default(AnyObject[]); } /// <summary> /// Creates a directory with the given attributes at the specified URL. /// </summary> /// <param name="url">A file URL that specifies the directory to create. If you want to specify a relative path, you must set the current working directory before creating the corresponding NSURL object. This parameter must not be nil.</param> /// <param name="withIntermediateDirectories">If true, this method creates any non-existent parent directories as part of creating the directory in url. If false, this method fails if any of the intermediate parent directories does not exist.</param> /// <param name="attributes">The file attributes for the new directory. You can set the owner and group numbers, file permissions, and modification date. If you specify nil for this parameter, the directory is created according to the umask(2) Mac OS X Developer Tools /// Manual Page of the process. The Constants section lists the global constants used as keys in the attributes dictionary. Some of the keys, such as NSFileHFSCreatorCode and NSFileHFSTypeCode, do not apply to directories.</param> /// <param name="error">On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify nil for this parameter if you do not want the error information.</param> [iOSVersion(5)] [Export("createDirectoryAtURL")] public virtual bool CreateDirectoryAtURL(NSURL url, bool withIntermediateDirectories, Dictionary<NSObject, AnyObject> attributes, NSErrorPointer error) { return default(bool); } /// <summary> /// Creates a directory with given attributes at the specified path. /// </summary> /// <param name="path">A path string identifying the directory to create. You may specify a full path or a path that is relative to the current working directory. This parameter must not be nil.</param> /// <param name="withIntermediateDirectories">If true, this method creates any non-existent parent directories as part of creating the directory in path. If false, this method fails if any of the intermediate parent directories does not exist. This method also fails if any of the intermediate path elements corresponds to a file and not a directory.</param> /// <param name="attributes">The file attributes for the new directory and any newly created intermediate directories. You can set the owner and group numbers, file permissions, and modification date. If you specify nil for this parameter or omit a particular value, one or more default values are used as described in the discussion. For a list of keys you can include in this dictionary, see Constants section lists the global constants used as keys in the attributes dictionary. Some of the keys, such as NSFileHFSCreatorCode and NSFileHFSTypeCode, do not apply to directories.</param> /// <param name="error">On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify nil for this parameter if you do not want the error information.</param> [iOSVersion(2)] [Export("createDirectoryAtPath")] public virtual bool CreateDirectoryAtPath(string path, bool withIntermediateDirectories, Dictionary<NSObject, AnyObject> attributes, NSErrorPointer error) { return default(bool); } /// <summary> /// Creates a file with the specified content and attributes at the given location. /// </summary> /// <param name="path">The path for the new file.</param> /// <param name="contents">A data object containing the contents of the new file.</param> /// <param name="attributes">A dictionary containing the attributes to associate with the new file. You can use these attributes to set the owner and group numbers, file permissions, and modification date. For a list of keys, see File Attribute Keys. If you specify nil for attributes, the file is created with a set of default attributes.</param> [iOSVersion(2)] [Export("createFileAtPath")] public virtual bool CreateFileAtPath(string path, [Optional] NSData contents, Dictionary<NSObject, AnyObject> attributes) { return default(bool); } /// <summary> /// Removes the file or directory at the specified URL. /// </summary> /// <param name="URL">A file URL specifying the file or directory to remove. If the URL specifies a directory, the contents of that directory are recursively removed. You may specify nil for this parameter.</param> /// <param name="error">On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify nil for this parameter if you do not want the error information.</param> [iOSVersion(4)] [Export("removeItemAtURL")] public virtual bool RemoveItemAtURL(NSURL URL, NSErrorPointer error) { return default(bool); } /// <summary> /// Removes the file or directory at the specified path. /// </summary> /// <param name="path">A path string indicating the file or directory to remove. If the path specifies a directory, the contents of that directory are recursively removed. You may specify nil for this parameter.</param> /// <param name="error">On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify nil for this parameter if you do not want the error information.</param> [iOSVersion(2)] [Export("removeItemAtPath")] public virtual bool RemoveItemAtPath(string path, NSErrorPointer error) { return default(bool); } /// <summary> /// Replaces the contents of the item at the specified URL in a manner that insures no data loss occurs. /// </summary> /// <param name="originalItemURL">The item whose contents you want to replace.</param> /// <param name="withItemAtURL">The item containing the new content for originalItemURL. It is recommended that you put this item in a temporary directory as provided by the OS. If a temporary directory is not available, put this item in a uniquely named directory that is in the same directory as the original item.</param> /// <param name="backupItemName">Optional. If provided, this name is used to create a backup of the original item. /// The backup is placed in the same directory as the original item. If an error occurs during the creation of the backup item, the operation will fail. If there is already an item with the same name as the backup item, that item will be removed. /// The backup item will be removed in the event of success unless the NSFileManagerItemReplacementWithoutDeletingBackupItem option is provided in options.</param> /// <param name="options">Specifies the options to use during the replacement. Typically, you pass NSFileManagerItemReplacementUsingNewMetadataOnly for this parameter, which uses only the metadata from the new item. You can also combine the options described in NSFileManagerItemReplacementOptions using the C-bitwise OR operator.</param> /// <param name="resultingItemURL">On input, a pointer for a URL object. When the item is replaced, this pointer is set to the URL of the new item. If no new file system object is required, the URL object in this parameter may be the same passed to the originalItemURL parameter. However, if a new file system object is required, the URL object may be different. For example, replacing an RTF document with an RTFD document requires the creation of a new file.</param> /// <param name="error">On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify nil for this parameter if you do not want the error information.</param> [iOSVersion(4)] [Export("replaceItemAtURL")] public virtual bool ReplaceItemAtURL(NSURL originalItemURL, NSURL withItemAtURL, [Optional] string backupItemName, NSFileManagerItemReplacementOptions options, AutoreleasingUnsafeMutablePointer<NSURL> resultingItemURL, NSErrorPointer error) { return default(bool); } /// <summary> /// Copies the file at the specified URL to a new location synchronously. /// </summary> /// <param name="srcURL">The file URL that identifies the file you want to copy. The URL in this parameter must not be a file reference URL. This parameter must not be nil.</param> /// <param name="toURL">The URL at which to place the copy of srcURL. The URL in this parameter must not be a file reference URL and must include the name of the file in its new location. This parameter must not be nil.</param> /// <param name="error">On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify nil for this parameter if you do not want the error information.</param> [iOSVersion(4)] [Export("copyItemAtURL")] public virtual bool CopyItemAtURL(NSURL srcURL, NSURL toURL, NSErrorPointer error) { return default(bool); } /// <summary> /// Copies the item at the specified path to a new location synchronously. /// </summary> /// <param name="srcPath">The path to the file or directory you want to move. This parameter must not be nil.</param> /// <param name="toPath">The path at which to place the copy of srcPath. This path must include the name of the file or directory in its new location. This parameter must not be nil.</param> /// <param name="error">On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify nil for this parameter if you do not want the error information.</param> [iOSVersion(2)] [Export("copyItemAtPath")] public virtual bool CopyItemAtPath(string srcPath, string toPath, NSErrorPointer error) { return default(bool); } /// <summary> /// Moves the file or directory at the specified URL to a new location synchronously. /// </summary> /// <param name="srcURL">The file URL that identifies the file or directory you want to move. The URL in this parameter must not be a file reference URL. This parameter must not be nil.</param> /// <param name="toURL">The new location for the item in srcURL. The URL in this parameter must not be a file reference URL and must include the name of the file or directory in its new location. This parameter must not be nil.</param> /// <param name="error">On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify nil for this parameter if you do not want the error information.</param> [iOSVersion(4)] [Export("moveItemAtURL")] public virtual bool MoveItemAtURL(NSURL srcURL, NSURL toURL, NSErrorPointer error) { return default(bool); } /// <summary> /// Moves the file or directory at the specified path to a new location synchronously. /// </summary> /// <param name="srcPath">The path to the file or directory you want to move. This parameter must not be nil.</param> /// <param name="toPath">The new path for the item in srcPath. This path must include the name of the file or directory in its new location. This parameter must not be nil.</param> /// <param name="error">On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify nil for this parameter if you do not want the error information.</param> [iOSVersion(2)] [Export("moveItemAtPath")] public virtual bool MoveItemAtPath(string srcPath, string toPath, NSErrorPointer error) { return default(bool); } /// <summary> /// Returns the URL for the iCloud container associated with the specified identifier and establishes access to that container. /// </summary> /// <param name="containerID">The fully-qualified container identifier for an iCloud container directory. The string you specify must not contain wildcards and must be of the form <TEAMID>.<CONTAINER>, where <TEAMID> is your development team ID and <CONTAINER> is the bundle identifier of the container you want to access. /// The container identifiers for your app must be declared in the com.apple.developer.ubiquity-container-identifiers array of the .entitlements property list file in your Xcode project. /// If you specify nil for this parameter, this method returns the first container listed in the com.apple.developer.ubiquity-container-identifiers entitlement array.</param> [iOSVersion(5)] [return:Optional] public virtual NSURL URLForUbiquityContainerIdentifier([Optional] string containerID) { return default(NSURL); } /// <summary> /// Returns a Boolean indicating whether the item is targeted for storage in iCloud. /// </summary> /// <param name="url">Specify the URL for the file or directory whose status you want to check.</param> [iOSVersion(5)] [Export("isUbiquitousItemAtURL")] public virtual bool IsUbiquitousItemAtURL(NSURL url) { return default(bool); } /// <summary> /// Sets whether the item at the specified URL should be stored in the cloud. /// </summary> /// <param name="flag">Specify true to move the item to iCloud or false to remove it from iCloud (if it is there currently).</param> /// <param name="itemAtURL">Specify the URL of the item (file or directory) that you want to store in iCloud.</param> /// <param name="destinationURL">Moving a file into iCloud Specify the location in iCloud at which to store the file or directory. This URL must be constructed from a URL returned by the URLForUbiquityContainerIdentifier: method, which you use to retrieve the desired iCloud container directory. The URL you specify may contain additional subdirectories so that you can organize your files hierarchically in iCloud. However, you are responsible for creating those intermediate subdirectories (using the NSFileManager class) in your iCloud container directory. /// Moving a file out of iCloud Specify the location on the local device.</param> /// <param name="error">On input, a pointer to variable for an NSError object. If an error occurs, this pointer is set to an NSError object containing information about the error. You may specify nil to ignore the error information.</param> [iOSVersion(5)] [Export("setUbiquitous")] public virtual bool SetUbiquitous(bool flag, NSURL itemAtURL, NSURL destinationURL, NSErrorPointer error) { return default(bool); } /// <summary> /// Starts downloading (if necessary) the specified item to the local system. /// </summary> /// <param name="url">Specify the URL for the file or directory in the cloud that you want to download.</param> /// <param name="error">On input, a pointer to variable for an NSError object. If an error occurs, this pointer is set to an NSError object containing information about the error. You may specify nil to ignore the error information.</param> [iOSVersion(5)] [Export("startDownloadingUbiquitousItemAtURL")] public virtual bool StartDownloadingUbiquitousItemAtURL(NSURL url, NSErrorPointer error) { return default(bool); } /// <summary> /// Removes the local copy of the specified cloud-based item. /// </summary> /// <param name="url">Specify the URL to a file or directory in iCloud storage.</param> /// <param name="error">On input, a pointer to variable for an NSError object. If an error occurs, this pointer is set to an NSError object containing information about the error. You may specify nil to ignore the error information.</param> [iOSVersion(5)] [Export("evictUbiquitousItemAtURL")] public virtual bool EvictUbiquitousItemAtURL(NSURL url, NSErrorPointer error) { return default(bool); } /// <summary> /// Returns a URL that can be emailed to users to allow them to download a copy of a cloud-based item. /// </summary> /// <param name="url">Specify the URL of the item in the cloud that you want to share. The URL must be prefixed with the base URL returned from the URLForUbiquityContainerIdentifier: method that corresponds to the item’s location. The file at the specified URL must already be uploaded to iCloud when you call this method.</param> /// <param name="expirationDate">On input, a pointer to a variable for a date object. On output, this parameter contains the date after which the item is no longer available at the returned URL. You may specify nil for this parameter if you are not interested in the date.</param> /// <param name="error">On input, a pointer to variable for an NSError object. If an error occurs, this pointer is set to an NSError object containing information about the error. You may specify nil for this parameter if you do not want the error information.</param> [iOSVersion(5)] [return:Optional] public virtual NSURL URLForPublishingUbiquitousItemAtURL(NSURL url, AutoreleasingUnsafeMutablePointer<NSDate> expirationDate, NSErrorPointer error) { return default(NSURL); } /// <summary> /// Creates a symbolic link at the specified URL that points to an item at the given URL. /// </summary> /// <param name="url">The file URL at which to create the new symbolic link. The last path component of the URL issued as the name of the link.</param> /// <param name="withDestinationURL">The file URL that contains the item to be pointed to by the link. In other words, this is the destination of the link.</param> /// <param name="error">On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify nil for this parameter if you do not want the error information.</param> [iOSVersion(5)] [Export("createSymbolicLinkAtURL")] public virtual bool CreateSymbolicLinkAtURL(NSURL url, NSURL withDestinationURL, NSErrorPointer error) { return default(bool); } /// <summary> /// Creates a symbolic link that points to the specified destination. /// </summary> /// <param name="path">The path at which to create the new symbolic link. The last path component is used as the name of the link.</param> /// <param name="withDestinationPath">The path that contains the item to be pointed to by the link. In other words, this is the destination of the link.</param> /// <param name="error">If an error occurs, upon return contains an NSError object that describes the problem. Pass NULL if you do not want error information.</param> [iOSVersion(2)] [Export("createSymbolicLinkAtPath")] public virtual bool CreateSymbolicLinkAtPath(string path, string withDestinationPath, NSErrorPointer error) { return default(bool); } /// <summary> /// Creates a hard link between the items at the specified URLs. /// </summary> /// <param name="srcURL">The file URL that identifies the source of the link. The URL in this parameter must not be a file reference URL; it must specify the actual path to the item. The value in this parameter must not be nil.</param> /// <param name="toURL">The file URL that specifies where you want to create the hard link. The URL in this parameter must not be a file reference URL; it must specify the actual path to the item. The value in this parameter must not be nil.</param> /// <param name="error">On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify nil for this parameter if you do not want the error information.</param> [iOSVersion(4)] [Export("linkItemAtURL")] public virtual bool LinkItemAtURL(NSURL srcURL, NSURL toURL, NSErrorPointer error) { return default(bool); } /// <summary> /// Creates a hard link between the items at the specified paths. /// </summary> /// <param name="srcPath">The path that specifies the item you wish to link to. The value in this parameter must not be nil.</param> /// <param name="toPath">The path that identifies the location where the link will be created. The value in this parameter must not be nil.</param> /// <param name="error">On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify nil for this parameter if you do not want the error information.</param> [iOSVersion(2)] [Export("linkItemAtPath")] public virtual bool LinkItemAtPath(string srcPath, string toPath, NSErrorPointer error) { return default(bool); } /// <summary> /// Returns the path of the item pointed to by a symbolic link. /// </summary> /// <param name="path">The path of a file or directory.</param> /// <param name="error">If an error occurs, upon return contains an NSError object that describes the problem. Pass NULL if you do not want error information.</param> [iOSVersion(2)] [Export("destinationOfSymbolicLinkAtPath")] [return:Optional] public virtual string DestinationOfSymbolicLinkAtPath(string path, NSErrorPointer error) { return default(string); } /// <summary> /// Returns a Boolean value that indicates whether a file or directory exists at a specified path. /// </summary> /// <param name="path">The path of the file or directory. If path begins with a tilde (~), it must first be expanded with stringByExpandingTildeInPath; otherwise, this method returns false.</param> [iOSVersion(2)] [Export("fileExistsAtPath")] public virtual bool FileExistsAtPath(string path) { return default(bool); } /// <summary> /// Returns a Boolean value that indicates whether a file or directory exists at a specified path. The isDirectory out parameter indicates whether the path points to a directory or a regular file. /// </summary> /// <param name="path">The path of a file or directory. If path begins with a tilde (~), it must first be expanded with stringByExpandingTildeInPath, or this method will return false.</param> /// <param name="isDirectory">Upon return, contains true if path is a directory or if the final path element is a symbolic link that points to a directory; otherwise, contains false. If path doesn’t exist, this value is undefined upon return. Pass NULL if you do not need this information.</param> [iOSVersion(2)] [Export("fileExistsAtPath")] public virtual bool FileExistsAtPath(string path, UnsafeMutablePointer<ObjCBool> isDirectory) { return default(bool); } /// <summary> /// Returns a Boolean value that indicates whether the invoking object appears able to read a specified file. /// </summary> /// <param name="path">A file path.</param> [iOSVersion(2)] [Export("isReadableFileAtPath")] public virtual bool IsReadableFileAtPath(string path) { return default(bool); } /// <summary> /// Returns a Boolean value that indicates whether the invoking object appears able to write to a specified file. /// </summary> /// <param name="path">A file path.</param> [iOSVersion(2)] [Export("isWritableFileAtPath")] public virtual bool IsWritableFileAtPath(string path) { return default(bool); } /// <summary> /// Returns a Boolean value that indicates whether the operating system appears able to execute a specified file. /// </summary> /// <param name="path">A file path.</param> [iOSVersion(2)] [Export("isExecutableFileAtPath")] public virtual bool IsExecutableFileAtPath(string path) { return default(bool); } /// <summary> /// Returns a Boolean value that indicates whether the invoking object appears able to delete a specified file. /// </summary> /// <param name="path">A file path.</param> [iOSVersion(2)] [Export("isDeletableFileAtPath")] public virtual bool IsDeletableFileAtPath(string path) { return default(bool); } /// <summary> /// Returns an array of strings representing the user-visible components of a given path. /// </summary> /// <param name="path">A pathname.</param> [iOSVersion(2)] [Export("componentsToDisplayForPath")] public virtual AnyObject[] ComponentsToDisplayForPath(string path) { return default(AnyObject[]); } /// <summary> /// Returns the display name of the file or directory at a specified path. /// </summary> /// <param name="path">The path of a file or directory.</param> [iOSVersion(2)] [Export("displayNameAtPath")] public virtual string DisplayNameAtPath(string path) { return default(string); } /// <summary> /// Returns the attributes of the item at a given path. /// </summary> /// <param name="path">The path of a file or directory.</param> /// <param name="error">On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify nil for this parameter if you do not want the error information.</param> [iOSVersion(2)] [Export("attributesOfItemAtPath")] public virtual Dictionary<NSObject, AnyObject> AttributesOfItemAtPath(string path, NSErrorPointer error) { return default(Dictionary<NSObject, AnyObject>); } /// <summary> /// Returns a dictionary that describes the attributes of the mounted file system on which a given path resides. /// </summary> /// <param name="path">Any pathname within the mounted file system.</param> /// <param name="error">On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify nil for this parameter if you do not want the error information.</param> [iOSVersion(2)] [Export("attributesOfFileSystemForPath")] public virtual Dictionary<NSObject, AnyObject> AttributesOfFileSystemForPath(string path, NSErrorPointer error) { return default(Dictionary<NSObject, AnyObject>); } /// <summary> /// Sets the attributes of the specified file or directory. /// </summary> /// <param name="attributes">A dictionary containing as keys the attributes to set for path and as values the corresponding value for the attribute. You can set the following attributes: NSFileBusy, NSFileCreationDate, NSFileExtensionHidden, NSFileGroupOwnerAccountID, NSFileGroupOwnerAccountName, NSFileHFSCreatorCode, NSFileHFSTypeCode, NSFileImmutable, NSFileModificationDate, NSFileOwnerAccountID, NSFileOwnerAccountName, NSFilePosixPermissions. You can change single attributes or any combination of attributes; you need not specify keys for all attributes.</param> /// <param name="ofItemAtPath">The path of a file or directory.</param> /// <param name="error">On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify nil for this parameter if you do not want the error information.</param> [iOSVersion(2)] [Export("setAttributes")] public virtual bool SetAttributes(Dictionary<NSObject, AnyObject> attributes, string ofItemAtPath, NSErrorPointer error) { return default(bool); } /// <summary> /// Returns the contents of the file at the specified path. /// </summary> /// <param name="path">The path of the file whose contents you want.</param> [iOSVersion(2)] [Export("contentsAtPath")] [return:Optional] public virtual NSData ContentsAtPath(string path) { return default(NSData); } /// <summary> /// Returns a Boolean value that indicates whether the files or directories in specified paths have the same contents. /// </summary> /// <param name="path1">The path of a file or directory to compare with the contents of path2.</param> /// <param name="andPath">The path of a file or directory to compare with the contents of path1.</param> [iOSVersion(2)] [Export("contentsEqualAtPath")] public virtual bool ContentsEqualAtPath(string path1, string andPath) { return default(bool); } /// <summary> /// Determines the type of relationship that exists between a directory and item. /// </summary> /// <param name="outRelationship">A pointer to a variable in which to put the relationship between directoryURL and otherURL. For a list of possible values, see NSURLRelationship.</param> /// <param name="ofDirectoryAtURL">The URL of the directory that potentially contains the item in otherURL. The URL in this parameter must specify a directory. This parameter must not be nil.</param> /// <param name="toItemAtURL">The URL of the file or directory whose relationship to directoryURL is being tested. This parameter must not be nil.</param> /// <param name="error">On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify nil for this parameter if you do not want the error information.</param> [iOSVersion(8)] [Export("getRelationship")] public virtual bool GetRelationship(UnsafeMutablePointer<NSURLRelationship> outRelationship, NSURL ofDirectoryAtURL, NSURL toItemAtURL, NSErrorPointer error) { return default(bool); } /// <summary> /// Determines the type of relationship that exists between a system directory and the specified item. /// </summary> /// <param name="outRelationship">A pointer to a variable in which to put the relationship between directoryURL and otherURL. For a list of possible values, see NSURLRelationship.</param> /// <param name="ofDirectory">The search path directory. For a list of possible values, see NSSearchPathDirectory.</param> /// <param name="inDomain">The file system domain to search. Specify 0 for this parameter if you want the file manager to choose the domain that is most appropriate for the specified url.</param> /// <param name="toItemAtURL">The URL of the file or directory whose relationship to directoryURL is being tested. This parameter must not be nil.</param> /// <param name="error">On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify nil for this parameter if you do not want the error information.</param> [iOSVersion(8)] [Export("getRelationship")] public virtual bool GetRelationship(UnsafeMutablePointer<NSURLRelationship> outRelationship, NSSearchPathDirectory ofDirectory, NSSearchPathDomainMask inDomain, NSURL toItemAtURL, NSErrorPointer error) { return default(bool); } /// <summary> /// Returns a C-string representation of a given path that properly encodes Unicode strings for use by the file system. /// </summary> /// <param name="path">A string object containing a path to a file. This parameter must not be nil or contain the empty string.</param> [iOSVersion(2)] [Export("fileSystemRepresentationWithPath")] public virtual UnsafePointer<Int8> FileSystemRepresentationWithPath(string path) { return default(UnsafePointer<Int8>); } /// <summary> /// Returns an NSString object whose contents are derived from the specified C-string path. /// </summary> /// <param name="@string">A C string representation of a pathname.</param> /// <param name="length">The number of characters in string.</param> [iOSVersion(2)] [Export("stringWithFileSystemRepresentation")] public virtual string StringWithFileSystemRepresentation(UnsafePointer<Int8> @string, int length) { return default(string); } /// <summary> /// Changes the path of the current working directory to the specified path. /// </summary> /// <param name="path">The path of the directory to which to change.</param> [iOSVersion(2)] [Export("changeCurrentDirectoryPath")] public virtual bool ChangeCurrentDirectoryPath(string path) { return default(bool); } /// <summary> /// An opaque token that represents the current user’s iCloud identity (read-only) /// </summary> [iOSVersion(6)] [Export("ubiquityIdentityToken")] public Protocol<NSCoding, NSCopying, NSObjectProtocol> UbiquityIdentityToken { get; private set; } /// <summary> /// The delegate of the file manager object. /// </summary> [iOSVersion(2)] [Export("delegate")] [Optional] public NSFileManagerDelegate Delegate { get; set; } /// <summary> /// The path to the program’s current directory. (read-only) /// </summary> [iOSVersion(2)] [Export("currentDirectoryPath")] public string CurrentDirectoryPath { get; private set; } /// <summary> /// Specifies the version of the Foundation framework in which NSFileManager first supported resource forks. /// </summary> public int NSFoundationVersionWithFileManagerResourceForkSupport { get; private set; } } /// <summary> /// Options for enumerating mounted volumes with the mountedVolumeURLsIncludingResourceValuesForKeys:options: method. /// </summary> public enum NSVolumeEnumerationOptions { /// <summary> /// The enumeration skips hidden volumes. /// </summary> [iOSVersion(4)] SkipHiddenVolumes, /// <summary> /// The enumeration produces file reference URLs rather than path-based URLs. /// </summary> [iOSVersion(4)] ProduceFileReferenceURLs, } /// <summary> /// Options for enumerating the contents of directories with the contentsOfDirectoryAtURL:includingPropertiesForKeys:options:error: method. /// </summary> public enum NSDirectoryEnumerationOptions { /// <summary> /// Perform a shallow enumeration; do not descend into directories. /// </summary> [iOSVersion(4)] SkipsSubdirectoryDescendants, /// <summary> /// Do not descend into packages. /// </summary> [iOSVersion(4)] SkipsPackageDescendants, /// <summary> /// Do not enumerate hidden files. /// </summary> [iOSVersion(4)] SkipsHiddenFiles, } /// <summary> /// The constants specify the replacement behavior in replaceItemAtURL:withItemAtURL:backupItemName:options:resultingItemURL:error:. /// </summary> public enum NSFileManagerItemReplacementOptions { /// <summary> /// Causes replaceItemAtURL:withItemAtURL:backupItemName:options:resultingItemURL:error: to use metadata from the new item only and not to attempt to preserve metadata from the original item. /// </summary> [iOSVersion(4)] UsingNewMetadataOnly, /// <summary> /// Causes replaceItemAtURL:withItemAtURL:backupItemName:options:resultingItemURL:error: to leave the backup item in place after a successful replacement. The default behavior is to remove the item. /// </summary> [iOSVersion(4)] WithoutDeletingBackupItem, } /// <summary> /// Constants indicating the relationship between a directory and an item. /// </summary> public enum NSURLRelationship { /// <summary> /// The directory contains the specified item. /// </summary> [iOSVersion(8)] Contains, /// <summary> /// The directory and the item are the same. This relationship occurs when the value of the NSURLFileResourceIdentifierKey is the same for the directory and item. /// </summary> [iOSVersion(8)] Same, /// <summary> /// The directory does not contain the item and is not the same as the item. /// </summary> [iOSVersion(8)] Other, } /// <summary> /// Sent after the iCloud (“ubiquity”) identity has changed. /// When your app receives this notification, get the new token from the ubiquityIdentityToken property. The value of that token is nil if the user has disabled iCloud. There is no userInfo dictionary. /// </summary> public class NSUbiquityIdentityDidChangeNotification : NSNotification { public NSUbiquityIdentityDidChangeNotification() : base("", null) { } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSFileSecurity.cs b/CocoaSharp/Foundation/NSFileSecurity.cs
index 2e46f649..986a5aab 100644
--- a/CocoaSharp/Foundation/NSFileSecurity.cs
+++ b/CocoaSharp/Foundation/NSFileSecurity.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSFileSecurity class is an Objective-C stub class that is transparently bridged to CFFileSecurity. It is used to encapsulate security information about a file. This class contains no methods. To access the contents of this object, use the accessor functions described in CFFileSecurity Reference. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSFileSecurity_class/index.html#//apple_ref/occ/cl/NSFileSecurity"/> [iOSVersion(5)] public class NSFileSecurity : NSObject//, AnyObject, NSCoding, NSCopying, NSObjectProtocol { } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSFileSecurity class is an Objective-C stub class that is transparently bridged to CFFileSecurity. It is used to encapsulate security information about a file. This class contains no methods. To access the contents of this object, use the accessor functions described in CFFileSecurity Reference. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSFileSecurity_class/index.html#//apple_ref/occ/cl/NSFileSecurity"/> [iOSVersion(5)] [Export("")] public class NSFileSecurity : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSObjectProtocol, Printable { public NSFileSecurity() { } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSFileVersion.cs b/CocoaSharp/Foundation/NSFileVersion.cs
index c82c075b..8306ed57 100644
--- a/CocoaSharp/Foundation/NSFileVersion.cs
+++ b/CocoaSharp/Foundation/NSFileVersion.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// An NSFileVersion object represents a snapshot of a file at a specific point in time. Use the methods of this class to access, create, and manage file revisions in your app. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSFileVersion_Class/index.html#//apple_ref/occ/cl/NSFileVersion"/> [iOSVersion(5)] public class NSFileVersion : NSObject//, AnyObject, NSObjectProtocol { /// <summary> /// Returns the most recent version object for the file at the specified URL. /// </summary> /// <param name="url">The URL of the file whose version object you want.</param> [iOSVersion(5)] [Export("currentVersionOfItemAtURL")] public static NSFileVersion CurrentVersionOfItemAtURL(NSURL url) { return default(NSFileVersion); } /// <summary> /// Returns all versions of the specified file except the current version. /// </summary> /// <param name="url">The URL of the file whose versions you want.</param> [iOSVersion(5)] [Export("otherVersionsOfItemAtURL")] public static AnyObject[] OtherVersionsOfItemAtURL(NSURL url) { return default(AnyObject[]); } /// <summary> /// Returns the version of the file that has the specified persistent ID. /// </summary> /// <param name="ofItemAtURL">The URL of the file whose version you want.</param> /// <param name="forPersistentIdentifier">The persistent ID of the NSFileVersion object you want.</param> [iOSVersion(5)] public NSFileVersion(NSURL ofItemAtURL, AnyObject forPersistentIdentifier) { } /// <summary> /// Returns an array of version objects that are currently in conflict for the specified URL. /// </summary> /// <param name="url">The URL of the file that has associated version objects.</param> [iOSVersion(5)] [Export("unresolvedConflictVersionsOfItemAtURL")] public static AnyObject[] UnresolvedConflictVersionsOfItemAtURL(NSURL url) { return default(AnyObject[]); } /// <summary> /// Replace the contents of the specified file with the contents of the current version’s file. /// </summary> /// <param name="url">The file whose contents you want to replace. If the file at this URL does not exist, a new file is created at the location.</param> /// <param name="options">Specify 0 to overwrite the file in place; otherwise, specify one of the constants described in “NSFileVersionReplacingOptions”.</param> /// <param name="error">On input, a pointer to an error object. If an error occurs, this pointer is set to an NSError object with information about the error.</param> [iOSVersion(5)] [Export("replaceItemAtURL")] public NSURL ReplaceItemAtURL(NSURL url, NSFileVersionReplacingOptions options, NSErrorPointer error) { return default(NSURL); } /// <summary> /// Remove this version object and its associated file from the version store. /// </summary> /// <param name="outError">On input, a pointer to an error object. If an error occurs, this pointer is set to an NSError object with information about the error.</param> [iOSVersion(5)] [Export("removeAndReturnError")] public bool RemoveAndReturnError(NSErrorPointer outError) { return default(bool); } /// <summary> /// Removes all versions of a file, except the current one, from the version store. /// </summary> /// <param name="inFileURL">The file whose older versions you want to delete. If the file at this URL does not exist, a new file is created at the location.</param> /// <param name="error">On input, a pointer to an error object. If an error occurs, this pointer is set to an NSError object with information about the error.</param> [iOSVersion(5)] [Export("removeOtherVersionsOfItemAtURL")] public static bool RemoveOtherVersionsOfItemAtURL(NSURL inFileURL, NSErrorPointer error) { return default(bool); } /// <summary> /// The URL identifying the location of the file associated with the file version object. (read-only) /// </summary> [iOSVersion(5)] public NSURL URL { get; private set; } /// <summary> /// The string containing the user-presentable name of the file version. (read-only) /// </summary> [iOSVersion(5)] [Export("localizedName")] public string LocalizedName { get; private set; } /// <summary> /// The user-presentable name of the computer on which the revision was saved. (read-only) /// </summary> [iOSVersion(5)] [Export("localizedNameOfSavingComputer")] public string LocalizedNameOfSavingComputer { get; private set; } /// <summary> /// The modification date of the version. (read-only) /// </summary> [iOSVersion(5)] [Export("modificationDate")] public NSDate ModificationDate { get; private set; } /// <summary> /// The identifier for this version of the file. (read-only) /// </summary> [iOSVersion(5)] [Export("persistentIdentifier")] public NSCoding PersistentIdentifier { get; private set; } /// <summary> /// A Boolean value indicating whether the contents of the version are in conflict with the contents of another version. (read-only) /// </summary> [iOSVersion(5)] [Export("conflict")] public bool Conflict { get; private set; } /// <summary> /// A Boolean value that indicates the version object is not in conflict (true) or is in conflict (false). /// </summary> [iOSVersion(5)] [Export("resolved")] public bool Resolved { get; set; } } /// <summary> /// Options for adding a new file version. /// </summary> [iOSVersion(5)] public enum NSFileVersionAddingOptions { /// <summary> /// When adding a file, you can specify this option if you want to create the version by moving the source file to the specified location. /// </summary> [iOSVersion(5)] ByMoving, } /// <summary> /// Options for replacing a file version. /// </summary> [iOSVersion(5)] public enum NSFileVersionReplacingOptions { /// <summary> /// When replacing a file, move the old version of the file out of the version store instead of copying the new contents into the file’s version. You should use this option in conjunction with a file coordinator to make sure the operation is coordinated with other clients of the file. /// </summary> [iOSVersion(5)] ByMoving, } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// An NSFileVersion object represents a snapshot of a file at a specific point in time. Use the methods of this class to access, create, and manage file revisions in your app. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSFileVersion_Class/index.html#//apple_ref/occ/cl/NSFileVersion"/> [iOSVersion(5)] [Export("")] public class NSFileVersion : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSObjectProtocol, Printable { public NSFileVersion() { } /// <summary> /// Returns the most recent version object for the file at the specified URL. /// </summary> /// <param name="url">The URL of the file whose version object you want.</param> [iOSVersion(5)] [Export("currentVersionOfItemAtURL")] [return:Optional] public static NSFileVersion CurrentVersionOfItemAtURL(NSURL url) { return default(NSFileVersion); } /// <summary> /// Returns all versions of the specified file except the current version. /// </summary> /// <param name="url">The URL of the file whose versions you want.</param> [iOSVersion(5)] [Export("otherVersionsOfItemAtURL")] public static AnyObject[] OtherVersionsOfItemAtURL(NSURL url) { return default(AnyObject[]); } /// <summary> /// Returns an array of version objects that are currently in conflict for the specified URL. /// </summary> /// <param name="url">The URL of the file that has associated version objects.</param> [iOSVersion(5)] [Export("unresolvedConflictVersionsOfItemAtURL")] public static AnyObject[] UnresolvedConflictVersionsOfItemAtURL(NSURL url) { return default(AnyObject[]); } /// <summary> /// Replace the contents of the specified file with the contents of the current version’s file. /// </summary> /// <param name="url">The file whose contents you want to replace. If the file at this URL does not exist, a new file is created at the location.</param> /// <param name="options">Specify 0 to overwrite the file in place; otherwise, specify one of the constants described in “NSFileVersionReplacingOptions”.</param> /// <param name="error">On input, a pointer to an error object. If an error occurs, this pointer is set to an NSError object with information about the error.</param> [iOSVersion(5)] [Export("replaceItemAtURL")] [return:Optional] public virtual NSURL ReplaceItemAtURL(NSURL url, NSFileVersionReplacingOptions options, NSErrorPointer error) { return default(NSURL); } /// <summary> /// Remove this version object and its associated file from the version store. /// </summary> /// <param name="outError">On input, a pointer to an error object. If an error occurs, this pointer is set to an NSError object with information about the error.</param> [iOSVersion(5)] [Export("removeAndReturnError")] public virtual bool RemoveAndReturnError(NSErrorPointer outError) { return default(bool); } /// <summary> /// Removes all versions of a file, except the current one, from the version store. /// </summary> /// <param name="inFileURL">The file whose older versions you want to delete. If the file at this URL does not exist, a new file is created at the location.</param> /// <param name="error">On input, a pointer to an error object. If an error occurs, this pointer is set to an NSError object with information about the error.</param> [iOSVersion(5)] [Export("removeOtherVersionsOfItemAtURL")] public static bool RemoveOtherVersionsOfItemAtURL(NSURL inFileURL, NSErrorPointer error) { return default(bool); } /// <summary> /// The URL identifying the location of the file associated with the file version object. (read-only) /// </summary> [iOSVersion(5)] public NSURL URL { get; private set; } /// <summary> /// The string containing the user-presentable name of the file version. (read-only) /// </summary> [iOSVersion(5)] [Export("localizedName")] [Optional] public string LocalizedName { get; private set; } /// <summary> /// The user-presentable name of the computer on which the revision was saved. (read-only) /// </summary> [iOSVersion(5)] [Export("localizedNameOfSavingComputer")] [Optional] public string LocalizedNameOfSavingComputer { get; private set; } /// <summary> /// The modification date of the version. (read-only) /// </summary> [iOSVersion(5)] [Export("modificationDate")] [Optional] public NSDate ModificationDate { get; private set; } /// <summary> /// The identifier for this version of the file. (read-only) /// </summary> [iOSVersion(5)] [Export("persistentIdentifier")] public NSCoding PersistentIdentifier { get; private set; } /// <summary> /// A Boolean value indicating whether the contents of the version are in conflict with the contents of another version. (read-only) /// </summary> [iOSVersion(5)] [Export("conflict")] public bool Conflict { get; private set; } /// <summary> /// A Boolean value that indicates the version object is not in conflict (true) or is in conflict (false). /// </summary> [iOSVersion(5)] [Export("resolved")] public bool Resolved { get; set; } } /// <summary> /// Options for adding a new file version. /// </summary> public enum NSFileVersionAddingOptions { /// <summary> /// When adding a file, you can specify this option if you want to create the version by moving the source file to the specified location. /// </summary> [iOSVersion(5)] ByMoving, } /// <summary> /// Options for replacing a file version. /// </summary> public enum NSFileVersionReplacingOptions { /// <summary> /// When replacing a file, move the old version of the file out of the version store instead of copying the new contents into the file’s version. You should use this option in conjunction with a file coordinator to make sure the operation is coordinated with other clients of the file. /// </summary> [iOSVersion(5)] ByMoving, } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSFileWrapper.cs b/CocoaSharp/Foundation/NSFileWrapper.cs
index f9f1bf3b..7353afd7 100644
--- a/CocoaSharp/Foundation/NSFileWrapper.cs
+++ b/CocoaSharp/Foundation/NSFileWrapper.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSFileWrapper class provides access to the attributes and contents of file-system nodes. A file-system node is a file, directory, or symbolic link. Instances of this class are known as file wrappers. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/ApplicationKit/Classes/NSFileWrapper_Class/index.html#//apple_ref/occ/cl/NSFileWrapper"/> [iOSVersion(4)] public class NSFileWrapper : NSObject//, AnyObject, NSCoding, NSObjectProtocol { /// <summary> /// Initializes a file wrapper instance whose kind is determined by the type of file-system node located by the URL. /// </summary> /// <param name="URL">URL of the file-system node the file wrapper is to represent.</param> /// <param name="options">Option flags for reading the node located at url. See File Wrapper Reading Options for possible values.</param> /// <param name="error">If an error occurs, upon return contains an NSError object that describes the problem. Pass NULL if you do not want error information.</param> [iOSVersion(4)] public NSFileWrapper(NSURL URL, NSFileWrapperReadingOptions options, NSErrorPointer error) { } /// <summary> /// Initializes the receiver as a directory file wrapper, with a given file-wrapper list. /// </summary> /// <param name="directoryWithFileWrappers">Key-value dictionary of file wrappers with which to initialize the receiver. The dictionary must contain entries whose values are the file wrappers that are to become children and whose keys are filenames. See Working with Directory Wrappers in File System Programming Guide for more information about the file-wrapper list structure.</param> [iOSVersion(4)] public NSFileWrapper(Dictionary<NSObject, AnyObject> directoryWithFileWrappers) { } /// <summary> /// Initializes the receiver as a regular-file file wrapper. /// </summary> /// <param name="regularFileWithContents">Contents of the file.</param> [iOSVersion(4)] public NSFileWrapper(NSData regularFileWithContents) { } /// <summary> /// Initializes the receiver as a symbolic-link file wrapper that links to a specified file. /// </summary> /// <param name="symbolicLinkWithDestinationURL">URL of the file the file wrapper is to reference.</param> [iOSVersion(4)] public NSFileWrapper(NSURL symbolicLinkWithDestinationURL) { } /// <summary> /// Initializes the receiver as a regular-file file wrapper from given serialized data. /// </summary> /// <param name="serializedRepresentation">Serialized representation of a file wrapper in the format used for the NSFileContentsPboardType pasteboard type. Data of this format is returned by such methods as serializedRepresentation and RTFDFromRange:documentAttributes: (NSAttributedString).</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(4)] [IgnoreParameter("NAME_YOUR_PARAMS")] public NSFileWrapper(NSData serializedRepresentation, bool NAME_YOUR_PARAMS = false) { } /// <summary> /// Adds a child file wrapper to the receiver, which must be a directory file wrapper. /// </summary> /// <param name="child">File wrapper to add to the directory.</param> [iOSVersion(4)] [Export("addFileWrapper")] public string AddFileWrapper(NSFileWrapper child) { return default(string); } /// <summary> /// Removes a child file wrapper from the receiver, which must be a directory file wrapper. /// </summary> /// <param name="child">File wrapper to remove from the directory.</param> [iOSVersion(4)] [Export("removeFileWrapper")] public void RemoveFileWrapper(NSFileWrapper child) { } /// <summary> /// Creates a regular-file file wrapper with the given contents and adds it to the receiver, which must be a directory file wrapper. /// </summary> /// <param name="data">Contents for the new regular-file file wrapper.</param> /// <param name="preferredFilename">Preferred filename for the new regular-file file wrapper.</param> [iOSVersion(4)] [Export("addRegularFileWithContents")] public string AddRegularFileWithContents(NSData data, string preferredFilename) { return default(string); } /// <summary> /// Returns the dictionary key used by a directory to identify a given file wrapper. /// </summary> /// <param name="child">The child file wrapper for which you want the key.</param> [iOSVersion(4)] [Export("keyForFileWrapper")] public string KeyForFileWrapper(NSFileWrapper child) { return default(string); } /// <summary> /// Indicates whether the contents of a file wrapper matches a directory, regular file, or symbolic link on disk. /// </summary> /// <param name="url">URL of the file-system node with which to compare the file wrapper.</param> [iOSVersion(4)] [Export("matchesContentsOfURL")] public bool MatchesContentsOfURL(NSURL url) { return default(bool); } /// <summary> /// Recursively rereads the entire contents of a file wrapper from the specified location on disk. /// </summary> /// <param name="url">URL of the file-system node corresponding to the file wrapper.</param> /// <param name="options">Option flags for reading the node located at url. See File Wrapper Reading Options for possible values.</param> /// <param name="error">If an error occurs, upon return contains an NSError object that describes the problem. Pass NULL if you do not want error information.</param> [iOSVersion(4)] [Export("readFromURL")] public bool ReadFromURL(NSURL url, NSFileWrapperReadingOptions options, NSErrorPointer error) { return default(bool); } /// <summary> /// Recursively writes the entire contents of a file wrapper to a given file-system URL. /// </summary> /// <param name="url">URL of the file-system node to which the file wrapper’s contents are written.</param> /// <param name="options">Option flags for writing to the node located at url. See File Wrapper Writing Options for possible values.</param> /// <param name="originalContentsURL">The location of a previous revision of the contents being written. The default implementation of this method attempts to avoid unnecessary I/O by writing hard links to regular files instead of actually writing out their contents when the contents have not changed. The child file wrappers must return accurate values when sent the filename method for this to work. Use the NSFileWrapperWritingWithNameUpdating writing option to increase the likelihood of that. /// Specify nil for this parameter if there is no earlier version of the contents or if you want to ensure that all the contents are written to files.</param> /// <param name="error">If an error occurs, upon return contains an NSError object that describes the problem. Pass NULL if you do not want error information.</param> [iOSVersion(4)] [Export("writeToURL")] public bool WriteToURL(NSURL url, NSFileWrapperWritingOptions options, NSURL originalContentsURL, NSErrorPointer error) { return default(bool); } /// <summary> /// Returns the file wrappers contained by a directory file wrapper. /// </summary> [iOSVersion(4)] [Export("fileWrappers")] public Dictionary<NSObject, AnyObject> FileWrappers { get; private set; } /// <summary> /// Provides the URL referenced by the receiver, which must be a symbolic-link file wrapper. /// </summary> [iOSVersion(4)] [Export("symbolicLinkDestinationURL")] public NSURL SymbolicLinkDestinationURL { get; private set; } /// <summary> /// Returns the contents of the file wrapper as an opaque collection of data. /// </summary> [iOSVersion(4)] [Export("serializedRepresentation")] public NSData SerializedRepresentation { get; private set; } /// <summary> /// Provides the filename of a file wrapper. /// </summary> [iOSVersion(4)] [Export("filename")] public string Filename { get; set; } /// <summary> /// Provides the preferred filename for a file wrapper. /// </summary> [iOSVersion(4)] [Export("preferredFilename")] public string PreferredFilename { get; set; } /// <summary> /// Returns a file wrapper’s file attributes. /// </summary> [iOSVersion(4)] [Export("fileAttributes")] public Dictionary<NSObject, AnyObject> FileAttributes { get; set; } /// <summary> /// Returns the contents of the file-system node associated with a regular-file file wrapper. /// </summary> [iOSVersion(4)] [Export("regularFileContents")] public NSData RegularFileContents { get; private set; } } /// <summary> /// Reading options that can be set by the initWithURL:options:error: and readFromURL:options:error: methods. /// </summary> [iOSVersion(4)] public enum NSFileWrapperReadingOptions { /// <summary> /// If reading with this option succeeds, then subsequent invocations of fileWrappers, regularFileContents, symbolicLinkDestinationURL, and serializedRepresentation sent to the file wrapper and all its child file wrappers will fail and return nil only if an actual error occurs (for example, the volume has disappeared or the file server is unreachable)—not as a result of the user moving or deleting files. /// For performance reasons, NSFileWrapper may not read the contents of some file packages immediately even when this option is chosen. For example, because the contents of bundles (not all file packages are bundles) are immutable to the user, NSFileWrapper may read the children of such a directory lazily. /// You can use this option to take a snapshot of a file or folder for writing later. For example, an application like TextEdit can use this option when creating new file wrappers to represent attachments that the user creates by copying and pasting or dragging and dropping from the Finder to a TextEdit document. Don't use this option when reading a document file package, because that would cause unnecessarily bad performance. For example, an application wouldn't use this option when creating file wrappers to represent attachments as it's opening a document stored in a file package. /// </summary> [iOSVersion(4)] Immediate, /// <summary> /// Whether file mapping for regular file wrappers is disallowed. /// You can use this option to keep NSFileWrapper from memory-mapping files. This is useful if you want to make sure your application doesn't hold files open (mapped files are open files), therefore preventing the user from ejecting DVDs, unmounting disk partitions, or unmounting disk images. In OS X v10.6 and later, NSFileWrapper memory-maps files that are on internal drives only. It never memory-maps files on external drives or network volumes, regardless of whether this option is used. /// </summary> [iOSVersion(4)] WithoutMapping, } /// <summary> /// Writing options that can be set by the writeToURL:options:originalContentsURL:error: method. /// </summary> [iOSVersion(4)] public enum NSFileWrapperWritingOptions { /// <summary> /// Whether writing is done atomically. /// You can use this option to ensure that, when overwriting a file package, the overwriting either completely succeeds or completely fails, with no possibility of leaving the file package in an inconsistent state. Because this option causes additional I/O, you shouldn't use it unnecessarily. For example, don't use this option in an override of -[NSDocument writeToURL:ofType:error:], because NSDocument safe-saving is already done atomically. /// </summary> [iOSVersion(4)] Atomic, /// <summary> /// Whether descendant file wrappers are sent the setFilename: method if the writing succeeds. /// This option is necessary when your application passes a URL in the originalContentsURL parameter to the writeToURL:options:originalContentsURL:error: method. Without using this option (and reusing child file wrappers properly), subsequent invocations of writeToURL:options:originalContentsURL:error: would not be able to reliably create hard links in a new file package, because the record of names in the old file package would be out of date. /// </summary> [iOSVersion(4)] WithNameUpdating, } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSFileWrapper class provides access to the attributes and contents of file-system nodes. A file-system node is a file, directory, or symbolic link. Instances of this class are known as file wrappers. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/ApplicationKit/Classes/NSFileWrapper_Class/index.html#//apple_ref/occ/cl/NSFileWrapper"/> [iOSVersion(4)] [Export("")] public class NSFileWrapper : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSObjectProtocol, Printable { public NSFileWrapper() { } /// <summary> /// Initializes the receiver as a directory file wrapper, with a given file-wrapper list. /// </summary> /// <param name="directoryWithFileWrappers">Key-value dictionary of file wrappers with which to initialize the receiver. The dictionary must contain entries whose values are the file wrappers that are to become children and whose keys are filenames. See Working with Directory Wrappers in File System Programming Guide for more information about the file-wrapper list structure.</param> [iOSVersion(4)] public NSFileWrapper(Dictionary<NSObject, AnyObject> directoryWithFileWrappers) { } /// <summary> /// Initializes the receiver as a regular-file file wrapper. /// </summary> /// <param name="regularFileWithContents">Contents of the file.</param> [iOSVersion(4)] public NSFileWrapper(NSData regularFileWithContents) { } /// <summary> /// Initializes the receiver as a symbolic-link file wrapper that links to a specified file. /// </summary> /// <param name="symbolicLinkWithDestinationURL">URL of the file the file wrapper is to reference.</param> [iOSVersion(4)] public NSFileWrapper(NSURL symbolicLinkWithDestinationURL) { } /// <summary> /// Adds a child file wrapper to the receiver, which must be a directory file wrapper. /// </summary> /// <param name="child">File wrapper to add to the directory.</param> [iOSVersion(4)] [Export("addFileWrapper")] public virtual string AddFileWrapper(NSFileWrapper child) { return default(string); } /// <summary> /// Removes a child file wrapper from the receiver, which must be a directory file wrapper. /// </summary> /// <param name="child">File wrapper to remove from the directory.</param> [iOSVersion(4)] [Export("removeFileWrapper")] public virtual void RemoveFileWrapper(NSFileWrapper child) { } /// <summary> /// Creates a regular-file file wrapper with the given contents and adds it to the receiver, which must be a directory file wrapper. /// </summary> /// <param name="data">Contents for the new regular-file file wrapper.</param> /// <param name="preferredFilename">Preferred filename for the new regular-file file wrapper.</param> [iOSVersion(4)] [Export("addRegularFileWithContents")] public virtual string AddRegularFileWithContents(NSData data, string preferredFilename) { return default(string); } /// <summary> /// Returns the dictionary key used by a directory to identify a given file wrapper. /// </summary> /// <param name="child">The child file wrapper for which you want the key.</param> [iOSVersion(4)] [Export("keyForFileWrapper")] [return:Optional] public virtual string KeyForFileWrapper(NSFileWrapper child) { return default(string); } /// <summary> /// Indicates whether the contents of a file wrapper matches a directory, regular file, or symbolic link on disk. /// </summary> /// <param name="url">URL of the file-system node with which to compare the file wrapper.</param> [iOSVersion(4)] [Export("matchesContentsOfURL")] public virtual bool MatchesContentsOfURL(NSURL url) { return default(bool); } /// <summary> /// Recursively rereads the entire contents of a file wrapper from the specified location on disk. /// </summary> /// <param name="url">URL of the file-system node corresponding to the file wrapper.</param> /// <param name="options">Option flags for reading the node located at url. See File Wrapper Reading Options for possible values.</param> /// <param name="error">If an error occurs, upon return contains an NSError object that describes the problem. Pass NULL if you do not want error information.</param> [iOSVersion(4)] [Export("readFromURL")] public virtual bool ReadFromURL(NSURL url, NSFileWrapperReadingOptions options, NSErrorPointer error) { return default(bool); } /// <summary> /// Recursively writes the entire contents of a file wrapper to a given file-system URL. /// </summary> /// <param name="url">URL of the file-system node to which the file wrapper’s contents are written.</param> /// <param name="options">Option flags for writing to the node located at url. See File Wrapper Writing Options for possible values.</param> /// <param name="originalContentsURL">The location of a previous revision of the contents being written. The default implementation of this method attempts to avoid unnecessary I/O by writing hard links to regular files instead of actually writing out their contents when the contents have not changed. The child file wrappers must return accurate values when its filename property is accessed for this to work. Use the NSFileWrapperWritingWithNameUpdating writing option to increase the likelihood of that. /// Specify nil for this parameter if there is no earlier version of the contents or if you want to ensure that all the contents are written to files.</param> /// <param name="error">If an error occurs, upon return contains an NSError object that describes the problem. Pass NULL if you do not want error information.</param> [iOSVersion(4)] [Export("writeToURL")] public virtual bool WriteToURL(NSURL url, NSFileWrapperWritingOptions options, [Optional] NSURL originalContentsURL, NSErrorPointer error) { return default(bool); } /// <summary> /// This property contains a boolean value that indicates whether the file wrapper object is a regular-file. (read-only) /// </summary> [iOSVersion(8)] [Export("regularFile")] public bool RegularFile { get; private set; } /// <summary> /// This property contains a boolean value indicating whether the file wrapper is a directory file wrapper. (read-only) /// </summary> [iOSVersion(8)] [Export("directory")] public bool Directory { get; private set; } /// <summary> /// A boolean that indicates whether the file wrapper object is a symbolic-link file wrapper. (read-only) /// </summary> [iOSVersion(8)] [Export("symbolicLink")] public bool SymbolicLink { get; private set; } /// <summary> /// The file wrappers contained by a directory file wrapper. (read-only) /// </summary> [iOSVersion(4)] [Export("fileWrappers")] public Dictionary<NSObject, AnyObject> FileWrappers { get; private set; } /// <summary> /// The URL referenced by the file wrapper object, which must be a symbolic-link file wrapper. (read-only) /// </summary> [iOSVersion(4)] [Export("symbolicLinkDestinationURL")] public NSURL SymbolicLinkDestinationURL { get; private set; } /// <summary> /// The contents of the file wrapper as an opaque collection of data. (read-only) /// </summary> [iOSVersion(4)] [Export("serializedRepresentation")] public NSData SerializedRepresentation { get; private set; } /// <summary> /// The filename of the file wrapper object /// </summary> [iOSVersion(4)] [Export("filename")] [Optional] public string Filename { get; set; } /// <summary> /// The preferred filename for the file wrapper object. /// </summary> [iOSVersion(4)] [Export("preferredFilename")] public string PreferredFilename { get; set; } /// <summary> /// A dictionary of file attributes. /// </summary> [iOSVersion(4)] [Export("fileAttributes")] public Dictionary<NSObject, AnyObject> FileAttributes { get; set; } /// <summary> /// The contents of the file-system node associated with a regular-file file wrapper. (read-only) /// </summary> [iOSVersion(4)] [Export("regularFileContents")] [Optional] public NSData RegularFileContents { get; private set; } } /// <summary> /// Reading options that can be set by the initWithURL:options:error: and readFromURL:options:error: methods. /// </summary> public enum NSFileWrapperReadingOptions { /// <summary> /// If reading with this option succeeds, then subsequent uses of fileWrappers, regularFileContents, symbolicLinkDestinationURL, and serializedRepresentation sent to the file wrapper and all its child file wrappers will fail and return nil only if an actual error occurs (for example, the volume has disappeared or the file server is unreachable)—not as a result of the user moving or deleting files. /// For performance reasons, NSFileWrapper may not read the contents of some file packages immediately even when this option is chosen. For example, because the contents of bundles (not all file packages are bundles) are immutable to the user, NSFileWrapper may read the children of such a directory lazily. /// You can use this option to take a snapshot of a file or folder for writing later. For example, an application like TextEdit can use this option when creating new file wrappers to represent attachments that the user creates by copying and pasting or dragging and dropping from the Finder to a TextEdit document. Don&#39;t use this option when reading a document file package, because that would cause unnecessarily bad performance. For example, an application wouldn&#39;t use this option when creating file wrappers to represent attachments as it&#39;s opening a document stored in a file package. /// </summary> [iOSVersion(4)] Immediate, /// <summary> /// Whether file mapping for regular file wrappers is disallowed. /// You can use this option to keep NSFileWrapper from memory-mapping files. This is useful if you want to make sure your application doesn&#39;t hold files open (mapped files are open files), therefore preventing the user from ejecting DVDs, unmounting disk partitions, or unmounting disk images. In OS X v10.6 and later, NSFileWrapper memory-maps files that are on internal drives only. It never memory-maps files on external drives or network volumes, regardless of whether this option is used. /// </summary> [iOSVersion(4)] WithoutMapping, } /// <summary> /// Writing options that can be set by the writeToURL:options:originalContentsURL:error: method. /// </summary> public enum NSFileWrapperWritingOptions { /// <summary> /// Whether writing is done atomically. /// You can use this option to ensure that, when overwriting a file package, the overwriting either completely succeeds or completely fails, with no possibility of leaving the file package in an inconsistent state. Because this option causes additional I/O, you shouldn&#39;t use it unnecessarily. For example, don&#39;t use this option in an override of -[NSDocument writeToURL:ofType:error:], because NSDocument safe-saving is already done atomically. /// </summary> [iOSVersion(4)] Atomic, /// <summary> /// Whether descendant file wrappers’filename properties are set if the writing succeeds. /// This option is necessary when your application passes a URL in the originalContentsURL parameter to the writeToURL:options:originalContentsURL:error: method. Without using this option (and reusing child file wrappers properly), subsequent invocations of writeToURL:options:originalContentsURL:error: would not be able to reliably create hard links in a new file package, because the record of names in the old file package would be out of date. /// </summary> [iOSVersion(4)] WithNameUpdating, } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSFormatter.cs b/CocoaSharp/Foundation/NSFormatter.cs
index 4622d232..80b56143 100644
--- a/CocoaSharp/Foundation/NSFormatter.cs
+++ b/CocoaSharp/Foundation/NSFormatter.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSFormatter is an abstract class that declares an interface for objects that create, interpret, and validate the textual representation of cell contents. The Foundation framework provides two concrete subclasses of NSFormatter to generate these objects: NSNumberFormatter and NSDateFormatter. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSFormatter_Class/index.html#//apple_ref/occ/cl/NSFormatter"/> [iOSVersion(2)] public class NSFormatter : NSLengthFormatter//, AnyObject, NSCoding, NSCopying, NSObjectProtocol { /// <summary> /// The default implementation of this method raises an exception. /// </summary> /// <param name="anObject">The object for which a textual representation is returned.</param> [iOSVersion(2)] [Export("stringForObjectValue")] public string StringForObjectValue(AnyObject anObject) { return default(string); } /// <summary> /// The default implementation returns nil to indicate that the formatter object does not provide an attributed string. /// </summary> /// <param name="anObject">The object for which a textual representation is returned.</param> /// <param name="withDefaultAttributes">The default attributes to use for the returned attributed string.</param> [iOSVersion(2)] [Export("attributedStringForObjectValue")] public NSAttributedString AttributedStringForObjectValue(AnyObject anObject, Dictionary<NSObject, AnyObject> withDefaultAttributes) { return default(NSAttributedString); } /// <summary> /// The default implementation of this method invokes stringForObjectValue:. /// </summary> /// <param name="anObject">The object for which to return an editing string.</param> [iOSVersion(2)] [Export("editingStringForObjectValue")] public string EditingStringForObjectValue(AnyObject anObject) { return default(string); } /// <summary> /// The default implementation of this method raises an exception. /// </summary> /// <param name="anObject">If conversion is successful, upon return contains the object created from string.</param> /// <param name="forString">The string to parse.</param> /// <param name="errorDescription">If non-nil, if there is a error during the conversion, upon return contains an NSString object that describes the problem.</param> [iOSVersion(2)] [Export("getObjectValue")] public bool GetObjectValue(AutoreleasingUnsafePointer<AnyObject> anObject, string forString, AutoreleasingUnsafePointer<string> errorDescription) { return default(bool); } /// <summary> /// Returns a Boolean value that indicates whether a partial string is valid. /// </summary> /// <param name="partialString">The text currently in a cell.</param> /// <param name="newEditingString">If partialString needs to be modified, upon return contains the replacement string.</param> /// <param name="errorDescription">If non-nil, if validation fails contains an NSString object that describes the problem.</param> [iOSVersion(2)] [Export("isPartialStringValid")] public bool IsPartialStringValid(string partialString, AutoreleasingUnsafePointer<string> newEditingString, AutoreleasingUnsafePointer<string> errorDescription) { return default(bool); } /// <summary> /// This method should be implemented in subclasses that want to validate user changes to a string in a field, where the user changes are not necessarily at the end of the string, and preserve the selection (or set a different one, such as selecting the erroneous part of the string the user has typed). /// </summary> /// <param name="partialStringPtr">The new string to validate.</param> /// <param name="proposedSelectedRange">The selection range that will be used if the string is accepted or replaced.</param> /// <param name="originalString">The original string, before the proposed change.</param> /// <param name="originalSelectedRange">The selection range over which the change is to take place.</param> /// <param name="errorDescription">If non-nil, if validation fails contains an NSString object that describes the problem.</param> [iOSVersion(2)] [Export("isPartialStringValid")] public bool IsPartialStringValid(AutoreleasingUnsafePointer<string> partialStringPtr, NSRangePointer proposedSelectedRange, string originalString, NSRange originalSelectedRange, AutoreleasingUnsafePointer<string> errorDescription) { return default(bool); } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSFormatter is an abstract class that declares an interface for objects that create, interpret, and validate the textual representation of cell contents. The Foundation framework provides two concrete subclasses of NSFormatter to generate these objects: NSNumberFormatter and NSDateFormatter. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSFormatter_Class/index.html#//apple_ref/occ/cl/NSFormatter"/> [iOSVersion(2)] [Export("")] public class NSFormatter/* : NSDateFormatter*///, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSObjectProtocol, Printable { public NSFormatter() { } /// <summary> /// The default implementation of this method raises an exception. /// </summary> /// <param name="anObject">The object for which a textual representation is returned.</param> [iOSVersion(2)] [Export("stringForObjectValue")] [return:Optional] public virtual string StringForObjectValue(AnyObject anObject) { return default(string); } /// <summary> /// The default implementation returns nil to indicate that the formatter object does not provide an attributed string. /// </summary> /// <param name="anObject">The object for which a textual representation is returned.</param> /// <param name="withDefaultAttributes">The default attributes to use for the returned attributed string.</param> [iOSVersion(2)] [Export("attributedStringForObjectValue")] [return:Optional] public virtual NSAttributedString AttributedStringForObjectValue(AnyObject anObject, Dictionary<NSObject, AnyObject> withDefaultAttributes) { return default(NSAttributedString); } /// <summary> /// The default implementation of this method invokes stringForObjectValue:. /// </summary> /// <param name="anObject">The object for which to return an editing string.</param> [iOSVersion(2)] [Export("editingStringForObjectValue")] public virtual string EditingStringForObjectValue(AnyObject anObject) { return default(string); } /// <summary> /// The default implementation of this method raises an exception. /// </summary> /// <param name="anObject">If conversion is successful, upon return contains the object created from string.</param> /// <param name="forString">The string to parse.</param> /// <param name="errorDescription">If non-nil, if there is a error during the conversion, upon return contains an NSString object that describes the problem.</param> [iOSVersion(2)] [Export("getObjectValue")] public virtual bool GetObjectValue(AutoreleasingUnsafeMutablePointer<AnyObject> anObject, string forString, AutoreleasingUnsafeMutablePointer<string> errorDescription) { return default(bool); } /// <summary> /// Returns a Boolean value that indicates whether a partial string is valid. /// </summary> /// <param name="partialString">The text currently in a cell.</param> /// <param name="newEditingString">If partialString needs to be modified, upon return contains the replacement string.</param> /// <param name="errorDescription">If non-nil, if validation fails contains an NSString object that describes the problem.</param> [iOSVersion(2)] [Export("isPartialStringValid")] public virtual bool IsPartialStringValid(string partialString, AutoreleasingUnsafeMutablePointer<string> newEditingString, AutoreleasingUnsafeMutablePointer<string> errorDescription) { return default(bool); } /// <summary> /// This method should be implemented in subclasses that want to validate user changes to a string in a field, where the user changes are not necessarily at the end of the string, and preserve the selection (or set a different one, such as selecting the erroneous part of the string the user has typed). /// </summary> /// <param name="partialStringPtr">The new string to validate.</param> /// <param name="proposedSelectedRange">The selection range that will be used if the string is accepted or replaced.</param> /// <param name="originalString">The original string, before the proposed change.</param> /// <param name="originalSelectedRange">The selection range over which the change is to take place.</param> /// <param name="errorDescription">If non-nil, if validation fails contains an NSString object that describes the problem.</param> [iOSVersion(2)] [Export("isPartialStringValid")] public virtual bool IsPartialStringValid(AutoreleasingUnsafeMutablePointer<string> partialStringPtr, NSRangePointer proposedSelectedRange, string originalString, NSRange originalSelectedRange, AutoreleasingUnsafeMutablePointer<string> errorDescription) { return default(bool); } } /// <summary> /// Specifies the width of the unit, determining the textual representation. /// </summary> public enum NSFormattingUnitStyle { /// <summary> /// Specifies a short width. /// The corresponding value is an NSInteger, equal to 1. /// </summary> [iOSVersion(8)] Short, /// <summary> /// Specifies a medium width. /// The corresponding value is an NSInteger, equal to 2. /// </summary> [iOSVersion(8)] Medium, /// <summary> /// Specifies a long width. /// The corresponding value is an NSInteger, equal to 3. /// </summary> [iOSVersion(8)] Long, } /// <summary> /// Specifies the capitalization context. /// </summary> public enum NSFormattingContext { /// <summary> /// Specifies the capitalization context to be used is unknown. /// This is the default value. The corresponding value is an NSInteger, equal to 0. /// </summary> [iOSVersion(8)] Unknown, /// <summary> /// Specifies an undetermined format. /// The capitalization context is determined dynamically from the set {NSFormattingContextStandalone, NSFormattingContextBeginningOfSentence, NSFormattingContextMiddleOfSentence}. /// When the string proxy is used in stringWithFormat:, the formatter returns a string proxy for a generic string and then formats the string using NSFormattingContextUnknown. The formatter derives the context from the generic string’s location and then formats the string appropriately. /// The corresponding value is an NSInteger, equal to 1. /// </summary> [iOSVersion(8)] Dynamic, /// <summary> /// Specifies formatting for the beginning of a sentences. /// The capitalization context if a date or date symbol is to be formatted with capitalization appropriate for stand-alone usage such as an isolated name on a calendar page. /// The corresponding value is an NSInteger, equal to 2. /// </summary> [iOSVersion(8)] Standalone, /// <summary> /// Specifies formatting for a list or menu. /// The capitalization context if a date or date symbol is to be formatted with capitalization appropriate for a list or menu item. /// The corresponding value is an NSInteger, equal to 3. /// </summary> [iOSVersion(8)] ListItem, /// <summary> /// Specifies formatting for the beginning of a sentence. /// The capitalization context if a date or date symbol is to be formatted with capitalization appropriate for the beginning of a sentence. /// The corresponding value is an NSInteger, equal to 4. /// </summary> [iOSVersion(8)] BeginningOfSentence, /// <summary> /// Specifies formatting for the middle of a sentence. /// The capitalization context if a date or date symbol is to be formatted with capitalization appropriate for the middle of a sentence. /// The corresponding value is an NSInteger, equal to 5. /// </summary> [iOSVersion(8)] MiddleOfSentence, } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSHTTPCookie.cs b/CocoaSharp/Foundation/NSHTTPCookie.cs
index d6eb0abb..db9d2770 100644
--- a/CocoaSharp/Foundation/NSHTTPCookie.cs
+++ b/CocoaSharp/Foundation/NSHTTPCookie.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// An NSHTTPCookie object represents an HTTP cookie. It is an immutable object, initialized from a dictionary containing the cookie attributes. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSHTTPCookie_Class/index.html#//apple_ref/occ/cl/NSHTTPCookie"/> [iOSVersion(2)] public class NSHTTPCookie : NSObject//, AnyObject, NSObjectProtocol { /// <summary> /// Returns an array of NSHTTPCookie objects corresponding to the provided response header fields for the provided URL. /// </summary> /// <param name="headerFields">The header fields used to create the NSHTTPCookie objects.</param> /// <param name="forURL">The URL associated with the created cookies.</param> [iOSVersion(2)] [Export("cookiesWithResponseHeaderFields")] public static AnyObject[] CookiesWithResponseHeaderFields(Dictionary<NSObject, AnyObject> headerFields, NSURL forURL) { return default(AnyObject[]); } /// <summary> /// Creates and initializes an NSHTTPCookie object using the provided properties. /// </summary> /// <param name="properties">The properties for the new cookie object, expressed as key value pairs.</param> [iOSVersion(2)] [Export("cookieWithProperties")] public static NSHTTPCookie CookieWithProperties(Dictionary<NSObject, AnyObject> properties) { return default(NSHTTPCookie); } /// <summary> /// Returns an initialized NSHTTPCookie object using the provided properties. /// </summary> /// <param name="properties">The properties for the new cookie object, expressed as key value pairs.</param> [iOSVersion(2)] public NSHTTPCookie(Dictionary<NSObject, AnyObject> properties) { } /// <summary> /// Returns a dictionary of header fields corresponding to a provided array of cookies. /// </summary> /// <param name="cookies">The cookies from which the header fields are created.</param> [iOSVersion(2)] [Export("requestHeaderFieldsWithCookies")] public static Dictionary<NSObject, AnyObject> RequestHeaderFieldsWithCookies(AnyObject[] cookies) { return default(Dictionary<NSObject, AnyObject>); } /// <summary> /// Returns the receiver's comment string. /// </summary> [iOSVersion(2)] [Export("comment")] public string Comment { get; private set; } /// <summary> /// Returns the receiver’s comment URL. /// </summary> [iOSVersion(2)] [Export("commentURL")] public NSURL CommentURL { get; private set; } /// <summary> /// Returns the domain of the receiver’s cookie. /// </summary> [iOSVersion(2)] [Export("domain")] public string Domain { get; private set; } /// <summary> /// Returns the receiver’s expiration date. /// </summary> [iOSVersion(2)] [Export("expiresDate")] public NSDate ExpiresDate { get; private set; } /// <summary> /// Returns the receiver’s name. /// </summary> [iOSVersion(2)] [Export("name")] public string Name { get; private set; } /// <summary> /// Returns the receiver’s path. /// </summary> [iOSVersion(2)] [Export("path")] public string Path { get; private set; } /// <summary> /// Returns the receiver's port list. /// </summary> [iOSVersion(2)] [Export("portList")] public AnyObject[] PortList { get; private set; } /// <summary> /// Returns the receiver’s cookie properties. /// </summary> [iOSVersion(2)] [Export("properties")] public Dictionary<NSObject, AnyObject> Properties { get; private set; } /// <summary> /// Returns the receiver’s value. /// </summary> [iOSVersion(2)] [Export("value")] public string Value { get; private set; } /// <summary> /// Returns the receiver’s version. /// </summary> [iOSVersion(2)] [Export("version")] public int Version { get; private set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// An NSHTTPCookie object represents an HTTP cookie. It is an immutable object, initialized from a dictionary containing the cookie attributes. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSHTTPCookie_Class/index.html#//apple_ref/occ/cl/NSHTTPCookie"/> [iOSVersion(2)] [Export("")] public class NSHTTPCookie : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSObjectProtocol, Printable { public NSHTTPCookie() { } /// <summary> /// Returns an array of NSHTTPCookie objects corresponding to the provided response header fields for the provided URL. /// </summary> /// <param name="headerFields">The header fields used to create the NSHTTPCookie objects.</param> /// <param name="forURL">The URL associated with the created cookies.</param> [iOSVersion(2)] [Export("cookiesWithResponseHeaderFields")] public static AnyObject[] CookiesWithResponseHeaderFields(Dictionary<NSObject, AnyObject> headerFields, NSURL forURL) { return default(AnyObject[]); } /// <summary> /// Returns a dictionary of header fields corresponding to a provided array of cookies. /// </summary> /// <param name="cookies">The cookies from which the header fields are created.</param> [iOSVersion(2)] [Export("requestHeaderFieldsWithCookies")] public static Dictionary<NSObject, AnyObject> RequestHeaderFieldsWithCookies(AnyObject[] cookies) { return default(Dictionary<NSObject, AnyObject>); } /// <summary> /// The receiver&#39;s comment string. (read-only) /// </summary> [iOSVersion(2)] [Export("comment")] [Optional] public string Comment { get; private set; } /// <summary> /// The receiver’s comment URL. (read-only) /// </summary> [iOSVersion(2)] [Export("commentURL")] [Optional] public NSURL CommentURL { get; private set; } /// <summary> /// The domain of the receiver’s cookie. (read-only) /// </summary> [iOSVersion(2)] [Export("domain")] public string Domain { get; private set; } /// <summary> /// The receiver’s expiration date. (read-only) /// </summary> [iOSVersion(2)] [Export("expiresDate")] [Unwrapped] public NSDate ExpiresDate { get; private set; } /// <summary> /// A boolean value that indicates whether the receiver should only be sent to HTTP servers per RFC 2965. (read-only) /// </summary> [iOSVersion(8)] public bool HTTPOnly { get; private set; } /// <summary> /// A boolean value that indicates whether this cookie should only be sent over secure channels. (read-only) /// </summary> [iOSVersion(8)] [Export("secure")] public bool Secure { get; private set; } /// <summary> /// A boolean value that indicates whether the receiver should be discarded at the end of the session (regardless of expiration date). (read-only) /// </summary> [iOSVersion(8)] [Export("sessionOnly")] public bool SessionOnly { get; private set; } /// <summary> /// The receiver’s name. (read-only) /// </summary> [iOSVersion(2)] [Export("name")] public string Name { get; private set; } /// <summary> /// The receiver’s path. (read-only) /// </summary> [iOSVersion(2)] [Export("path")] [Optional] public string Path { get; private set; } /// <summary> /// The receiver&#39;s port list. (read-only) /// </summary> [iOSVersion(2)] [Export("portList")] public AnyObject[] PortList { get; private set; } /// <summary> /// The receiver’s cookie properties. (read-only) /// </summary> [iOSVersion(2)] [Export("properties")] public Dictionary<NSObject, AnyObject> Properties { get; private set; } /// <summary> /// The receiver’s value. (read-only) /// </summary> [iOSVersion(2)] [Export("value")] [Optional] public string Value { get; private set; } /// <summary> /// The receiver’s version. (read-only) /// </summary> [iOSVersion(2)] [Export("version")] public int Version { get; private set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSHTTPCookieStorage.cs b/CocoaSharp/Foundation/NSHTTPCookieStorage.cs
index d3c71548..743b8cd6 100644
--- a/CocoaSharp/Foundation/NSHTTPCookieStorage.cs
+++ b/CocoaSharp/Foundation/NSHTTPCookieStorage.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSHTTPCookieStorage implements a singleton object (shared instance) that manages storage of cookies. Each cookie is represented by an instance of the NSHTTPCookie class. As a rule, cookies are shared among all applications and are kept in sync across process boundaries. Session cookies (where the cookie object’s isSessionOnly method returns true) are local to a single process and are not shared. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSHTTPCookieStorage_Class/index.html#//apple_ref/occ/cl/NSHTTPCookieStorage"/> [iOSVersion(2)] public class NSHTTPCookieStorage : NSObject//, AnyObject, NSObjectProtocol { /// <summary> /// Returns the shared cookie storage instance. /// </summary> [iOSVersion(2)] [Export("sharedHTTPCookieStorage")] public static NSHTTPCookieStorage SharedHTTPCookieStorage() { return default(NSHTTPCookieStorage); } /// <summary> /// Deletes the specified cookie from the cookie storage. /// </summary> /// <param name="aCookie">The cookie to delete.</param> [iOSVersion(2)] [Export("deleteCookie")] public void DeleteCookie(NSHTTPCookie aCookie) { } /// <summary> /// Stores a specified cookie in the cookie storage if the cookie accept policy permits. /// </summary> /// <param name="aCookie">The cookie to store.</param> [iOSVersion(2)] [Export("setCookie")] public void SetCookie(NSHTTPCookie aCookie) { } /// <summary> /// Adds an array of cookies to the receiver if the receiver’s cookie acceptance policy permits. /// </summary> /// <param name="cookies">The cookies to add.</param> /// <param name="forURL">The URL associated with the added cookies.</param> /// <param name="mainDocumentURL">The URL of the main HTML document for the top-level frame, if known. Can be nil. This URL is used to determine if the cookie should be accepted if the cookie accept policy is NSHTTPCookieAcceptPolicyOnlyFromMainDocumentDomain.</param> [iOSVersion(2)] [Export("setCookies")] public void SetCookies(AnyObject[] cookies, NSURL forURL, NSURL mainDocumentURL) { } /// <summary> /// Returns all the cookie storage’s cookies that are sent to a specified URL. /// </summary> /// <param name="theURL">The URL to filter on.</param> [iOSVersion(2)] [Export("cookiesForURL")] public AnyObject[] CookiesForURL(NSURL theURL) { return default(AnyObject[]); } /// <summary> /// Returns all of the cookie storage’s cookies, sorted according to a given set of sort descriptors. /// </summary> /// <param name="sortOrder">The sort descriptors to use for sorting, as an array of NSSortDescriptor objects.</param> [iOSVersion(5)] [Export("sortedCookiesUsingDescriptors")] public AnyObject[] SortedCookiesUsingDescriptors(AnyObject[] sortOrder) { return default(AnyObject[]); } /// <summary> /// Returns the cookie storage’s cookie accept policy. /// </summary> [iOSVersion(2)] [Export("cookieAcceptPolicy")] public NSHTTPCookieAcceptPolicy CookieAcceptPolicy { get; set; } /// <summary> /// Returns the cookie storage’s cookies. /// </summary> [iOSVersion(2)] [Export("cookies")] public AnyObject[] Cookies { get; private set; } } /// <summary> /// NSHTTPCookieAcceptPolicy specifies the cookie acceptance policies implemented by the NSHTTPCookieStorage class. /// </summary> [iOSVersion(2)] public enum NSHTTPCookieAcceptPolicy { /// <summary> /// Accept all cookies. This is the default cookie accept policy. /// </summary> [iOSVersion(2)] Always, /// <summary> /// Reject all cookies. /// </summary> [iOSVersion(2)] Never, /// <summary> /// Accept cookies only from the main document domain. /// </summary> [iOSVersion(2)] OnlyFromMainDocumentDomain, } /// <summary> /// In OS X, cookies are shared among applications, meaning this notification can be sent in response to another application’s actions. Cookies are not shared among applications in iOS. /// </summary> [iOSVersion(2)] public class NSHTTPCookieManagerCookiesChangedNotification : NSNotification { public NSHTTPCookieManagerCookiesChangedNotification() : base("", null) { } } /// <summary> /// In OS X, cookies are shared among applications, meaning this notification can be sent in response to another application’s actions. Cookies are not shared among applications in iOS. /// </summary> [iOSVersion(2)] public class NSHTTPCookieManagerAcceptPolicyChangedNotification : NSNotification { public NSHTTPCookieManagerAcceptPolicyChangedNotification() : base("", null) { } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSHTTPCookieStorage implements a singleton object (shared instance) that manages storage of cookies. Each cookie is represented by an instance of the NSHTTPCookie class. As a rule, cookies are shared among all applications and are kept in sync across process boundaries. Session cookies (where the cookie object’s isSessionOnly method returns true) are local to a single process and are not shared. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSHTTPCookieStorage_Class/index.html#//apple_ref/occ/cl/NSHTTPCookieStorage"/> [iOSVersion(2)] [Export("")] public class NSHTTPCookieStorage : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSObjectProtocol, Printable { public NSHTTPCookieStorage() { } /// <summary> /// Returns the shared cookie storage instance. /// </summary> [iOSVersion(2)] [Export("sharedHTTPCookieStorage")] public static NSHTTPCookieStorage SharedHTTPCookieStorage() { return default(NSHTTPCookieStorage); } /// <summary> /// Deletes the specified cookie from the cookie storage. /// </summary> /// <param name="aCookie">The cookie to delete.</param> [iOSVersion(2)] [Export("deleteCookie")] public virtual void DeleteCookie(NSHTTPCookie aCookie) { } /// <summary> /// Stores a specified cookie in the cookie storage if the cookie accept policy permits. /// </summary> /// <param name="aCookie">The cookie to store.</param> [iOSVersion(2)] [Export("setCookie")] public virtual void SetCookie(NSHTTPCookie aCookie) { } /// <summary> /// Adds an array of cookies to the receiver if the receiver’s cookie acceptance policy permits. /// </summary> /// <param name="cookies">The cookies to add.</param> /// <param name="forURL">The URL associated with the added cookies.</param> /// <param name="mainDocumentURL">The URL of the main HTML document for the top-level frame, if known. Can be nil. This URL is used to determine if the cookie should be accepted if the cookie accept policy is NSHTTPCookieAcceptPolicyOnlyFromMainDocumentDomain.</param> [iOSVersion(2)] [Export("setCookies")] public virtual void SetCookies(AnyObject[] cookies, [Optional] NSURL forURL, [Optional] NSURL mainDocumentURL) { } /// <summary> /// Returns all the cookie storage’s cookies that are sent to a specified URL. /// </summary> /// <param name="theURL">The URL to filter on.</param> [iOSVersion(2)] [Export("cookiesForURL")] public virtual AnyObject[] CookiesForURL(NSURL theURL) { return default(AnyObject[]); } /// <summary> /// Returns all of the cookie storage’s cookies, sorted according to a given set of sort descriptors. /// </summary> /// <param name="sortOrder">The sort descriptors to use for sorting, as an array of NSSortDescriptor objects.</param> [iOSVersion(5)] [Export("sortedCookiesUsingDescriptors")] public virtual AnyObject[] SortedCookiesUsingDescriptors(AnyObject[] sortOrder) { return default(AnyObject[]); } /// <summary> /// The cookie storage’s cookie accept policy. /// </summary> [iOSVersion(2)] [Export("cookieAcceptPolicy")] public NSHTTPCookieAcceptPolicy CookieAcceptPolicy { get; set; } /// <summary> /// The cookie storage’s cookies. (read-only) /// </summary> [iOSVersion(2)] [Export("cookies")] public AnyObject[] Cookies { get; private set; } } /// <summary> /// NSHTTPCookieAcceptPolicy specifies the cookie acceptance policies implemented by the NSHTTPCookieStorage class. /// </summary> public enum NSHTTPCookieAcceptPolicy { /// <summary> /// Accept all cookies. This is the default cookie accept policy. /// </summary> [iOSVersion(2)] Always, /// <summary> /// Reject all cookies. /// </summary> [iOSVersion(2)] Never, /// <summary> /// Accept cookies only from the main document domain. /// </summary> [iOSVersion(2)] OnlyFromMainDocumentDomain, } /// <summary> /// This notification is posted when the cookies stored in the NSHTTPCookieStorage instance have changed. /// In OS X, cookies are shared among applications, meaning this notification can be sent in response to another application’s actions. Cookies are not shared among applications in iOS. /// The notification object is the NSHTTPCookieStorage instance. This notification does not contain a userInfo dictionary. /// </summary> public class NSHTTPCookieManagerCookiesChangedNotification : NSNotification { public NSHTTPCookieManagerCookiesChangedNotification() : base("", null) { } } /// <summary> /// This notification is posted when the acceptance policy of the NSHTTPCookieStorage instance has changed. /// In OS X, cookies are shared among applications, meaning this notification can be sent in response to another application’s actions. Cookies are not shared among applications in iOS. /// The notification object is the NSHTTPCookieStorage instance. This notification does not contain a userInfo dictionary. /// </summary> public class NSHTTPCookieManagerAcceptPolicyChangedNotification : NSNotification { public NSHTTPCookieManagerAcceptPolicyChangedNotification() : base("", null) { } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSHTTPURLResponse.cs b/CocoaSharp/Foundation/NSHTTPURLResponse.cs
index a66f210c..233ee674 100644
--- a/CocoaSharp/Foundation/NSHTTPURLResponse.cs
+++ b/CocoaSharp/Foundation/NSHTTPURLResponse.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSHTTPURLResponse class is a subclass of NSURLResponse that provides methods for accessing information specific to HTTP protocol responses. Whenever you make HTTP URL load requests, any response objects you get back from the NSURLSession, NSURLConnection, or NSURLDownload class are instances of the NSHTTPURLResponse class. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSHTTPURLResponse_Class/index.html#//apple_ref/occ/cl/NSHTTPURLResponse"/> [iOSVersion(2)] public class NSHTTPURLResponse : NSURLResponse//, AnyObject, NSCoding, NSCopying, NSObjectProtocol, NSSecureCoding { /// <summary> /// Initializes an HTTP URL response object with a status code, protocol version, and response headers. /// </summary> /// <param name="URL">The URL from which the response was generated.</param> /// <param name="statusCode">The HTTP status code to return (404, for example). See RFC 2616 for details.</param> /// <param name="HTTPVersion">The version of the HTTP response as returned by the server. This is typically represented as &quot;HTTP/1.1&quot;.</param> /// <param name="headerFields">A dictionary representing the keys and values from the server’s response header.</param> [iOSVersion(5)] public NSHTTPURLResponse(NSURL URL, int statusCode, string HTTPVersion, Dictionary<NSObject, AnyObject> headerFields) : base(null, "", 0, "") { } /// <summary> /// Returns a localized string corresponding to a specified HTTP status code. /// </summary> /// <param name="statusCode">The HTTP status code. See RFC 2616 for details.</param> [iOSVersion(2)] [Export("localizedStringForStatusCode")] public static string LocalizedStringForStatusCode(int statusCode) { return default(string); } /// <summary> /// All HTTP header fields of the receiver. (read-only) /// </summary> [iOSVersion(2)] [Export("allHeaderFields")] public Dictionary<NSObject, AnyObject> AllHeaderFields { get; private set; } /// <summary> /// The receiver’s HTTP status code. (read-only) /// </summary> [iOSVersion(2)] [Export("statusCode")] public int StatusCode { get; private set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSHTTPURLResponse class is a subclass of NSURLResponse that provides methods for accessing information specific to HTTP protocol responses. Whenever you make HTTP URL load requests, any response objects you get back from the NSURLSession, NSURLConnection, or NSURLDownload class are instances of the NSHTTPURLResponse class. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSHTTPURLResponse_Class/index.html#//apple_ref/occ/cl/NSHTTPURLResponse"/> [iOSVersion(2)] [Export("")] public class NSHTTPURLResponse : NSURLResponse//, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSObjectProtocol, NSSecureCoding, Printable { public NSHTTPURLResponse() { } /// <summary> /// Returns a localized string corresponding to a specified HTTP status code. /// </summary> /// <param name="statusCode">The HTTP status code. See RFC 2616 for details.</param> [iOSVersion(2)] [Export("localizedStringForStatusCode")] public static string LocalizedStringForStatusCode(int statusCode) { return default(string); } /// <summary> /// All HTTP header fields of the receiver. (read-only) /// </summary> [iOSVersion(2)] [Export("allHeaderFields")] public Dictionary<NSObject, AnyObject> AllHeaderFields { get; private set; } /// <summary> /// The receiver’s HTTP status code. (read-only) /// </summary> [iOSVersion(2)] [Export("statusCode")] public int StatusCode { get; private set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSHashTable.cs b/CocoaSharp/Foundation/NSHashTable.cs
index b5aa46a1..725645d5 100644
--- a/CocoaSharp/Foundation/NSHashTable.cs
+++ b/CocoaSharp/Foundation/NSHashTable.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSHashTable is modeled after NSSet but provides different options, in particular to support weak relationships. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/NSHashTable_class/index.html#//apple_ref/occ/cl/NSHashTable"/> [iOSVersion(6)] public class NSHashTable : NSObject//, AnyObject, NSCoding, NSCopying, NSFastEnumeration, NSObjectProtocol { /// <summary> /// Returns a hash table initialized with the given attributes. /// </summary> /// <param name="options">A bit field that specifies the options for the elements in the hash table. For possible values, see “Hash Table Options”.</param> /// <param name="capacity">The initial number of elements the hash table can hold.</param> [iOSVersion(6)] public NSHashTable(NSPointerFunctionsOptions options, int capacity) { } /// <summary> /// Returns a hash table initialized with the given functions and capacity. /// </summary> /// <param name="pointerFunctions">The pointer functions for the new hash table.</param> /// <param name="capacity">The initial capacity of the hash table.</param> [iOSVersion(6)] public NSHashTable(NSPointerFunctions pointerFunctions, int capacity) { } /// <summary> /// Returns a new hash table for storing weak references to its contents. /// </summary> [iOSVersion(6)] [Export("weakObjectsHashTable")] public static NSHashTable WeakObjectsHashTable() { return default(NSHashTable); } /// <summary> /// Returns a hash table with given pointer functions options. /// </summary> /// <param name="options">A bit field that specifies the options for the elements in the hash table. For possible values, see “Hash Table Options”.</param> [iOSVersion(6)] public NSHashTable(NSPointerFunctionsOptions options) { } /// <summary> /// Returns a Boolean value that indicates whether the hash table contains a given object. /// </summary> /// <param name="anObject">The object to test for membership in the hash table.</param> [iOSVersion(6)] [Export("containsObject")] public bool ContainsObject(AnyObject anObject) { return default(bool); } /// <summary> /// Determines whether the hash table contains a given object, and returns that object if it is present /// </summary> /// <param name="@object">The object to test for membership in the hash table.</param> [iOSVersion(6)] [Export("member")] public AnyObject Member(AnyObject @object) { return default(AnyObject); } /// <summary> /// Returns an enumerator object that lets you access each object in the hash table. /// </summary> [iOSVersion(6)] [Export("objectEnumerator")] public NSEnumerator ObjectEnumerator() { return default(NSEnumerator); } /// <summary> /// Adds a given object to the hash table. /// </summary> /// <param name="@object">The object to add to the hash table.</param> [iOSVersion(6)] [Export("addObject")] public void AddObject(AnyObject @object) { } /// <summary> /// Removes all objects from the hash table. /// </summary> [iOSVersion(6)] [Export("removeAllObjects")] public void RemoveAllObjects() { } /// <summary> /// Removes a given object from the hash table. /// </summary> /// <param name="@object">The object to remove from the hash table.</param> [iOSVersion(6)] [Export("removeObject")] public void RemoveObject(AnyObject @object) { } /// <summary> /// Returns a Boolean value that indicates whether a given hash table intersects with the receiving hash table. /// </summary> /// <param name="other">The hash table with which to compare the receiving hash table.</param> [iOSVersion(6)] [Export("intersectsHashTable")] public bool IntersectsHashTable(NSHashTable other) { return default(bool); } /// <summary> /// Removes from the receiving hash table each element that isn’t a member of another given hash table. /// </summary> /// <param name="other">The hash table with which to perform the intersection.</param> [iOSVersion(6)] [Export("intersectHashTable")] public void IntersectHashTable(NSHashTable other) { } /// <summary> /// Returns a Boolean value that indicates whether a given hash table is equal to the receiving hash table. /// </summary> /// <param name="other">The hash table with which to compare the receiving hash table.</param> [iOSVersion(6)] [Export("isEqualToHashTable")] public bool IsEqualToHashTable(NSHashTable other) { return default(bool); } /// <summary> /// Returns a Boolean value that indicates whether every element in the receiving hash table is also present in another given hash table. /// </summary> /// <param name="other">The hash table with which to compare the receiving hash table.</param> [iOSVersion(6)] [Export("isSubsetOfHashTable")] public bool IsSubsetOfHashTable(NSHashTable other) { return default(bool); } /// <summary> /// Removes each element in another given hash table from the receiving hash table, if present. /// </summary> /// <param name="other">The hash table of elements to remove from the receiving hash table.</param> [iOSVersion(6)] [Export("minusHashTable")] public void MinusHashTable(NSHashTable other) { } /// <summary> /// Adds each element in another given hash table to the receiving hash table, if not present. /// </summary> /// <param name="other">The hash table of elements to add to the receiving hash table.</param> [iOSVersion(6)] [Export("unionHashTable")] public void UnionHashTable(NSHashTable other) { } /// <summary> /// Returns an array that contains the hash table’s members. /// </summary> [iOSVersion(6)] [Export("allObjects")] public AnyObject[] AllObjects { get; private set; } /// <summary> /// Returns one of the objects in the hash table. /// </summary> [iOSVersion(6)] [Export("anyObject")] public AnyObject AnyObject { get; private set; } /// <summary> /// Returns the number of elements in the hash table. /// </summary> [iOSVersion(6)] [Export("count")] public int Count { get; private set; } /// <summary> /// Returns a set that contains the hash table’s members. /// </summary> [iOSVersion(6)] [Export("setRepresentation")] public NSSet SetRepresentation { get; private set; } /// <summary> /// Returns the pointer functions for the hash table. /// </summary> [iOSVersion(6)] [Export("pointerFunctions")] public NSPointerFunctions PointerFunctions { get; private set; } } /// <summary> /// Components in a bit-field to specify the behavior of elements in an NSHashTable object. /// </summary> [iOSVersion(6)] public struct NSHashTableOptions { static public implicit operator NSHashTableOptions(int value) { return default(NSHashTableOptions); } static public implicit operator int(NSHashTableOptions value) { return default(int); } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSHashTable is modeled after NSSet but provides different options, in particular to support weak relationships. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/NSHashTable_class/index.html#//apple_ref/occ/cl/NSHashTable"/> [iOSVersion(6)] [Export("")] public class NSHashTable : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSFastEnumeration, NSObjectProtocol, Printable { public NSHashTable() { } /// <summary> /// Returns a hash table initialized with the given attributes. /// </summary> /// <param name="options">A bit field that specifies the options for the elements in the hash table. For possible values, see “Hash Table Options”.</param> /// <param name="capacity">The initial number of elements the hash table can hold.</param> [iOSVersion(6)] public NSHashTable(NSPointerFunctionsOptions options, int capacity) { } /// <summary> /// Returns a hash table initialized with the given functions and capacity. /// </summary> /// <param name="pointerFunctions">The pointer functions for the new hash table.</param> /// <param name="capacity">The initial capacity of the hash table.</param> [iOSVersion(6)] public NSHashTable(NSPointerFunctions pointerFunctions, int capacity) { } /// <summary> /// Returns a new hash table for storing weak references to its contents. /// </summary> [iOSVersion(6)] [Export("weakObjectsHashTable")] public static NSHashTable WeakObjectsHashTable() { return default(NSHashTable); } /// <summary> /// Returns a hash table with given pointer functions options. /// </summary> /// <param name="options">A bit field that specifies the options for the elements in the hash table. For possible values, see “Hash Table Options”.</param> [iOSVersion(6)] public NSHashTable(NSPointerFunctionsOptions options) { } /// <summary> /// Returns a Boolean value that indicates whether the hash table contains a given object. /// </summary> /// <param name="anObject">The object to test for membership in the hash table.</param> [iOSVersion(6)] [Export("containsObject")] public virtual bool ContainsObject(AnyObject anObject) { return default(bool); } /// <summary> /// Determines whether the hash table contains a given object, and returns that object if it is present /// </summary> /// <param name="@object">The object to test for membership in the hash table.</param> [iOSVersion(6)] [Export("member")] [return:Optional] public virtual AnyObject Member(AnyObject @object) { return default(AnyObject); } /// <summary> /// Returns an enumerator object that lets you access each object in the hash table. /// </summary> [iOSVersion(6)] [Export("objectEnumerator")] public virtual NSEnumerator ObjectEnumerator() { return default(NSEnumerator); } /// <summary> /// Adds a given object to the hash table. /// </summary> /// <param name="@object">The object to add to the hash table.</param> [iOSVersion(6)] [Export("addObject")] public virtual void AddObject(AnyObject @object) { } /// <summary> /// Removes all objects from the hash table. /// </summary> [iOSVersion(6)] [Export("removeAllObjects")] public virtual void RemoveAllObjects() { } /// <summary> /// Removes a given object from the hash table. /// </summary> /// <param name="@object">The object to remove from the hash table.</param> [iOSVersion(6)] [Export("removeObject")] public virtual void RemoveObject(AnyObject @object) { } /// <summary> /// Returns a Boolean value that indicates whether a given hash table intersects with the receiving hash table. /// </summary> /// <param name="other">The hash table with which to compare the receiving hash table.</param> [iOSVersion(6)] [Export("intersectsHashTable")] public virtual bool IntersectsHashTable(NSHashTable other) { return default(bool); } /// <summary> /// Removes from the receiving hash table each element that isn’t a member of another given hash table. /// </summary> /// <param name="other">The hash table with which to perform the intersection.</param> [iOSVersion(6)] [Export("intersectHashTable")] public virtual void IntersectHashTable(NSHashTable other) { } /// <summary> /// Returns a Boolean value that indicates whether a given hash table is equal to the receiving hash table. /// </summary> /// <param name="other">The hash table with which to compare the receiving hash table.</param> [iOSVersion(6)] [Export("isEqualToHashTable")] public virtual bool IsEqualToHashTable(NSHashTable other) { return default(bool); } /// <summary> /// Returns a Boolean value that indicates whether every element in the receiving hash table is also present in another given hash table. /// </summary> /// <param name="other">The hash table with which to compare the receiving hash table.</param> [iOSVersion(6)] [Export("isSubsetOfHashTable")] public virtual bool IsSubsetOfHashTable(NSHashTable other) { return default(bool); } /// <summary> /// Removes each element in another given hash table from the receiving hash table, if present. /// </summary> /// <param name="other">The hash table of elements to remove from the receiving hash table.</param> [iOSVersion(6)] [Export("minusHashTable")] public virtual void MinusHashTable(NSHashTable other) { } /// <summary> /// Adds each element in another given hash table to the receiving hash table, if not present. /// </summary> /// <param name="other">The hash table of elements to add to the receiving hash table.</param> [iOSVersion(6)] [Export("unionHashTable")] public virtual void UnionHashTable(NSHashTable other) { } /// <summary> /// The hash table’s members. (read-only) /// </summary> [iOSVersion(6)] [Export("allObjects")] public AnyObject[] AllObjects { get; private set; } /// <summary> /// One of the objects in the hash table. (read-only) /// </summary> [iOSVersion(6)] [Export("anyObject")] [Optional] public AnyObject AnyObject { get; private set; } /// <summary> /// The number of elements in the hash table. (read-only) /// </summary> [iOSVersion(6)] [Export("count")] public int Count { get; private set; } /// <summary> /// A set that contains the hash table’s members. (read-only) /// </summary> [iOSVersion(6)] [Export("setRepresentation")] public NSSet SetRepresentation { get; private set; } /// <summary> /// The pointer functions for the hash table. (read-only) /// </summary> [iOSVersion(6)] [Export("pointerFunctions")] public NSPointerFunctions PointerFunctions { get; private set; } } /// <summary> /// Components in a bit-field to specify the behavior of elements in an NSHashTable object. /// </summary> [iOSVersion(6)] public struct NSHashTableOptions { static public implicit operator NSHashTableOptions(int value) { return default(NSHashTableOptions); } static public implicit operator int(NSHashTableOptions value) { return default(int); } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSIndexPath.cs b/CocoaSharp/Foundation/NSIndexPath.cs
index af0fa0df..e1fac8cb 100644
--- a/CocoaSharp/Foundation/NSIndexPath.cs
+++ b/CocoaSharp/Foundation/NSIndexPath.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSIndexPath class represents the path to a specific node in a tree of nested array collections. This path is known as an index path. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSIndexPath_Class/index.html#//apple_ref/occ/cl/NSIndexPath"/> [iOSVersion(2)] public class NSIndexPath : NSObject//, AnyObject, NSCoding, NSCopying, NSObjectProtocol, NSSecureCoding { /// <summary> /// Initializes an allocated NSIndexPath object with a one-node index path. /// </summary> /// <param name="index">Index of the item in node 0 to point to.</param> [iOSVersion(2)] [Export("convenience init")] public NSIndexPath(int index) { } /// <summary> /// Initializes an allocated NSIndexPath object with an index path of a specific length. /// </summary> /// <param name="indexes">Array of indexes to make up the index path.</param> /// <param name="length">Number of nodes to include in the index path.</param> [iOSVersion(2)] public NSIndexPath(ConstUnsafePointer<int> indexes, int length) { } /// <summary> /// Provides the index at a particular node in the index path. /// </summary> /// <param name="node">Index value of the desired node. Node numbering starts at zero.</param> [iOSVersion(2)] [Export("indexAtPosition")] public int IndexAtPosition(int node) { return default(int); } /// <summary> /// Provides an index path containing the indexes in the receiving index path and another index. /// </summary> /// <param name="index">Index to append to the index path’s indexes.</param> [iOSVersion(2)] [Export("indexPathByAddingIndex")] public NSIndexPath IndexPathByAddingIndex(int index) { return default(NSIndexPath); } /// <summary> /// Provides an index path with the indexes in the receiving index path, excluding the last one. /// </summary> [iOSVersion(2)] [Export("indexPathByRemovingLastIndex")] public NSIndexPath IndexPathByRemovingLastIndex() { return default(NSIndexPath); } /// <summary> /// Copies the objects contained in the index path into indexes. /// </summary> /// <param name="indexes">Pointer to a C array of objects of size at least the length of the index path. On return, the index path’s indexes.</param> [iOSVersion(2)] [Export("getIndexes")] public void GetIndexes(UnsafePointer<int> indexes) { } /// <summary> /// Indicates the depth-first traversal order of the receiving index path and another index path. /// </summary> /// <param name="indexPath">Index path to compare. /// This value must not be nil. If the value is nil, the behavior is undefined.</param> [iOSVersion(2)] [Export("compare")] public NSComparisonResult Compare(NSIndexPath indexPath) { return default(NSComparisonResult); } /// <summary> /// Provides the number of indexes in the index path. /// </summary> [iOSVersion(2)] [Export("length")] public int Length { get; private set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSIndexPath class represents the path to a specific node in a tree of nested array collections. This path is known as an index path. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSIndexPath_Class/index.html#//apple_ref/occ/cl/NSIndexPath"/> [iOSVersion(2)] [Export("")] public class NSIndexPath : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSObjectProtocol, NSSecureCoding, Printable { public NSIndexPath() { } /// <summary> /// Initializes an allocated NSIndexPath object with a one-node index path. /// </summary> /// <param name="index">Index of the item in node 0 to point to.</param> [iOSVersion(2)] [Export("convenience init")] public NSIndexPath(int index) { } /// <summary> /// Initializes an allocated NSIndexPath object with an index path of a specific length. /// </summary> /// <param name="indexes">Array of indexes to make up the index path.</param> /// <param name="length">Number of nodes to include in the index path.</param> [iOSVersion(2)] public NSIndexPath(UnsafePointer<int> indexes, int length) { } /// <summary> /// Provides the index at a particular node in the index path. /// </summary> /// <param name="node">Index value of the desired node. Node numbering starts at zero.</param> [iOSVersion(2)] [Export("indexAtPosition")] public virtual int IndexAtPosition(int node) { return default(int); } /// <summary> /// Provides an index path containing the indexes in the receiving index path and another index. /// </summary> /// <param name="index">Index to append to the index path’s indexes.</param> [iOSVersion(2)] [Export("indexPathByAddingIndex")] public virtual NSIndexPath IndexPathByAddingIndex(int index) { return default(NSIndexPath); } /// <summary> /// Provides an index path with the indexes in the receiving index path, excluding the last one. /// </summary> [iOSVersion(2)] [Export("indexPathByRemovingLastIndex")] public virtual NSIndexPath IndexPathByRemovingLastIndex() { return default(NSIndexPath); } /// <summary> /// Copies the objects contained in the index path into indexes. /// </summary> /// <param name="indexes">Pointer to a C array of objects of size at least the length of the index path. On return, the index path’s indexes.</param> [iOSVersion(2)] [Export("getIndexes")] public virtual void GetIndexes(UnsafeMutablePointer<int> indexes) { } /// <summary> /// Indicates the depth-first traversal order of the receiving index path and another index path. /// </summary> /// <param name="indexPath">Index path to compare. /// This value must not be nil. If the value is nil, the behavior is undefined.</param> [iOSVersion(2)] [Export("compare")] public virtual NSComparisonResult Compare(NSIndexPath indexPath) { return default(NSComparisonResult); } /// <summary> /// The number of indexes in the index path. (read-only) /// </summary> [iOSVersion(2)] [Export("length")] public int Length { get; private set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSIndexSet.cs b/CocoaSharp/Foundation/NSIndexSet.cs
index 39e8d1da..3e66f892 100644
--- a/CocoaSharp/Foundation/NSIndexSet.cs
+++ b/CocoaSharp/Foundation/NSIndexSet.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSIndexSet class represents an immutable collection of unique unsigned integers, known as indexes because of the way they are used. This collection is referred to as an index set. Indexes must be in the range 0 .. NSNotFound - 1. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSIndexSet_Class/index.html#//apple_ref/occ/cl/NSIndexSet"/> [iOSVersion(2)] public class NSIndexSet : NSObject//, AnyObject, NSCoding, NSCopying, NSMutableCopying, NSObjectProtocol, NSSecureCoding { /// <summary> /// Initializes an allocated NSIndexSet object with an index. /// </summary> /// <param name="index">An index. Must be in the range 0 .. NSNotFound - 1.</param> [iOSVersion(2)] [Export("convenience init")] public NSIndexSet(int index) { } /// <summary> /// Initializes an allocated NSIndexSet object with an index range. /// </summary> /// <param name="indexesInRange">An index range. Must be in the range 0 .. NSNotFound - 1..</param> [iOSVersion(2)] public NSIndexSet(NSRange indexesInRange) { } /// <summary> /// Initializes an allocated NSIndexSet object with an index set. /// </summary> /// <param name="indexSet">An index set.</param> [iOSVersion(2)] public NSIndexSet(NSIndexSet indexSet) { } /// <summary> /// Indicates whether the index set contains a specific index. /// </summary> /// <param name="index">Index being inquired about.</param> [iOSVersion(2)] [Export("containsIndex")] public bool ContainsIndex(int index) { return default(bool); } /// <summary> /// Indicates whether the receiving index set contains a superset of the indexes in another index set. /// </summary> /// <param name="indexSet">Index set being inquired about.</param> [iOSVersion(2)] [Export("containsIndexes")] public bool ContainsIndexes(NSIndexSet indexSet) { return default(bool); } /// <summary> /// Indicates whether the index set contains the indexes represented by an index range. /// </summary> /// <param name="indexRange">The index range being inquired about.</param> [iOSVersion(2)] [Export("containsIndexesInRange")] public bool ContainsIndexesInRange(NSRange indexRange) { return default(bool); } /// <summary> /// Indicates whether the index set contains any of the indexes in a range. /// </summary> /// <param name="indexRange">Index range being inquired about.</param> [iOSVersion(2)] [Export("intersectsIndexesInRange")] public bool IntersectsIndexesInRange(NSRange indexRange) { return default(bool); } /// <summary> /// Returns the number of indexes in the index set that are members of a given range. /// </summary> /// <param name="indexRange">Index range being inquired about.</param> [iOSVersion(2)] [Export("countOfIndexesInRange")] public int CountOfIndexesInRange(NSRange indexRange) { return default(int); } /// <summary> /// Returns the index of the first object that passes the predicate Block test. /// </summary> /// <param name="predicate">The Block to apply to elements in the set. /// The Block takes two arguments: /// idx /// The index of the object. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the set. The stop argument is an out-only argument. You should only ever set this Boolean to YES within the Block. /// The Block returns a Boolean value that indicates whether obj passed the test.</param> [iOSVersion(4)] [Export("indexPassingTest")] public int IndexPassingTest(Func<int, UnsafePointer<ObjCBool>, bool> predicate) { return default(int); } /// <summary> /// Returns an NSIndexSet containing the receiving index set’s objects that pass the Block test. /// </summary> /// <param name="predicate">The Block to apply to elements in the set. /// The Block takes two arguments: /// idx /// The index of the object. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the set. The stop argument is an out-only argument. You should only ever set this Boolean to YES within the Block. /// The Block returns a Boolean value that indicates whether obj passed the test.</param> [iOSVersion(4)] [Export("indexesPassingTest")] public NSIndexSet IndexesPassingTest(Func<int, UnsafePointer<ObjCBool>, bool> predicate) { return default(NSIndexSet); } /// <summary> /// Returns the index of the first object that passes the predicate Block test using the specified enumeration options. /// </summary> /// <param name="opts">A bitmask that specifies the options for the enumeration (whether it should be performed concurrently and whether it should be performed in reverse order). See NSEnumerationOptions for the supported values.</param> /// <param name="passingTest">The Block to apply to elements in the set. /// The Block takes two arguments: /// idx /// The index of the object. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the set. The stop argument is an out-only argument. You should only ever set this Boolean to YES within the Block. /// The Block returns a Boolean value that indicates whether obj passed the test.</param> [iOSVersion(4)] [Export("indexWithOptions")] public int IndexWithOptions(NSEnumerationOptions opts, Func<int, UnsafePointer<ObjCBool>, bool> passingTest) { return default(int); } /// <summary> /// Returns an NSIndexSet containing the receiving index set’s objects that pass the Block test using the specified enumeration options. /// </summary> /// <param name="opts">A bitmask that specifies the options for the enumeration (whether it should be performed concurrently and whether it should be performed in reverse order). See NSEnumerationOptions for the supported values.</param> /// <param name="passingTest">The Block to apply to elements in the set. /// The Block takes two arguments: /// idx /// The index of the object. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the set. The stop argument is an out-only argument. You should only ever set this Boolean to YES within the Block. /// The Block returns a Boolean value that indicates whether obj passed the test.</param> [iOSVersion(4)] [Export("indexesWithOptions")] public NSIndexSet IndexesWithOptions(NSEnumerationOptions opts, Func<int, UnsafePointer<ObjCBool>, bool> passingTest) { return default(NSIndexSet); } /// <summary> /// Returns the index of the first object in the specified range that passes the predicate Block test. /// </summary> /// <param name="range">The range of indexes to test.</param> /// <param name="options">A bitmask that specifies the options for the enumeration (whether it should be performed concurrently and whether it should be performed in reverse order). See NSEnumerationOptions for the supported values.</param> /// <param name="passingTest">The Block to apply to elements in the set. /// The Block takes two arguments: /// idx /// The index of the object. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the set. The stop argument is an out-only argument. You should only ever set this Boolean to YES within the Block. /// The Block returns a Boolean value that indicates whether obj passed the test.</param> [iOSVersion(4)] [Export("indexInRange")] public int IndexInRange(NSRange range, NSEnumerationOptions options, Func<int, UnsafePointer<ObjCBool>, bool> passingTest) { return default(int); } /// <summary> /// Returns an NSIndexSet containing the receiving index set’s objects in the specified range that pass the Block test. /// </summary> /// <param name="range">The range of indexes to test.</param> /// <param name="options">A bitmask that specifies the options for the enumeration (whether it should be performed concurrently and whether it should be performed in reverse order). See NSEnumerationOptions for the supported values.</param> /// <param name="passingTest">The Block to apply to elements in the set. /// The Block takes two arguments: /// idx /// The index of the object. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the set. The stop argument is an out-only argument. You should only ever set this Boolean to YES within the Block. /// The Block returns a Boolean value that indicates whether obj passed the test.</param> [iOSVersion(4)] [Export("indexesInRange")] public NSIndexSet IndexesInRange(NSRange range, NSEnumerationOptions options, Func<int, UnsafePointer<ObjCBool>, bool> passingTest) { return default(NSIndexSet); } /// <summary> /// Enumerates over the ranges in the range of objects using the block /// </summary> /// <param name="range">The range of items to enumerate. If the range intersects a range of the receiver's indexes, then that intersection will be passed to the block.</param> /// <param name="options">A bitmask that specifies the NSEnumerationOptions for the enumeration.</param> /// <param name="usingBlock">The block to apply to elements in the index set. /// The block takes two arguments: /// range /// The range of elements. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the array. The stop argument is an out-only argument. You should only ever set this Boolean to true within the Block.</param> [iOSVersion(5)] [Export("enumerateRangesInRange")] public void EnumerateRangesInRange(NSRange range, NSEnumerationOptions options, Action<NSRange, UnsafePointer<ObjCBool>> usingBlock) { } /// <summary> /// Executes a given block using each object in the index set, in the specified ranges. /// </summary> /// <param name="block">The block to apply to elements in the index set. /// The block takes two arguments: /// range /// The range of objects of the elements in the index set. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the array. The stop argument is an out-only argument. You should only ever set this Boolean to true within the Block.</param> [iOSVersion(5)] [Export("enumerateRangesUsingBlock")] public void EnumerateRangesUsingBlock(Action<NSRange, UnsafePointer<ObjCBool>> block) { } /// <summary> /// Executes a given block using each object in the index set, in the specified ranges. /// </summary> /// <param name="opts">A bitmask that specifies the NSEnumerationOptions for the enumeration (whether it should be performed concurrently and whether it should be performed in reverse order).</param> /// <param name="usingBlock">The block to apply to elements in the index set. /// The block takes two arguments: /// range /// The range of objects of the elements in the index set. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the array. The stop argument is an out-only argument. You should only ever set this Boolean to true within the Block.</param> [iOSVersion(5)] [Export("enumerateRangesWithOptions")] public void EnumerateRangesWithOptions(NSEnumerationOptions opts, Action<NSRange, UnsafePointer<ObjCBool>> usingBlock) { } /// <summary> /// Indicates whether the indexes in the receiving index set are the same indexes contained in another index set. /// </summary> /// <param name="indexSet">Index set being inquired about.</param> [iOSVersion(2)] [Export("isEqualToIndexSet")] public bool IsEqualToIndexSet(NSIndexSet indexSet) { return default(bool); } /// <summary> /// Returns either the closest index in the index set that is less than a specific index or the not-found indicator. /// </summary> /// <param name="index">Index being inquired about.</param> [iOSVersion(2)] [Export("indexLessThanIndex")] public int IndexLessThanIndex(int index) { return default(int); } /// <summary> /// Returns either the closest index in the index set that is less than or equal to a specific index or the not-found indicator. /// </summary> /// <param name="index">Index being inquired about.</param> [iOSVersion(2)] [Export("indexLessThanOrEqualToIndex")] public int IndexLessThanOrEqualToIndex(int index) { return default(int); } /// <summary> /// Returns either the closest index in the index set that is greater than or equal to a specific index or the not-found indicator. /// </summary> /// <param name="index">Index being inquired about.</param> [iOSVersion(2)] [Export("indexGreaterThanOrEqualToIndex")] public int IndexGreaterThanOrEqualToIndex(int index) { return default(int); } /// <summary> /// Returns either the closest index in the index set that is greater than a specific index or the not-found indicator. /// </summary> /// <param name="index">Index being inquired about.</param> [iOSVersion(2)] [Export("indexGreaterThanIndex")] public int IndexGreaterThanIndex(int index) { return default(int); } /// <summary> /// The index set fills an index buffer with the indexes contained both in the index set and in an index range, returning the number of indexes copied. /// </summary> /// <param name="indexBuffer">Index buffer to fill.</param> /// <param name="maxCount">Maximum size of indexBuffer.</param> /// <param name="inIndexRange">Index range to compare with indexes in the index set; nil represents all the indexes in the index set. Indexes in the index range and in the index set are copied to indexBuffer. On output, the range of indexes not copied to indexBuffer.</param> [iOSVersion(2)] [Export("getIndexes")] public int GetIndexes(UnsafePointer<int> indexBuffer, int maxCount, NSRangePointer inIndexRange) { return default(int); } /// <summary> /// Executes a given Block using each object in the index set. /// </summary> /// <param name="block">The Block to apply to elements in the set. /// The Block takes two arguments: /// idx /// The index of the object. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the set. The stop argument is an out-only argument. You should only ever set this Boolean to YES within the Block.</param> [iOSVersion(4)] [Export("enumerateIndexesUsingBlock")] public void EnumerateIndexesUsingBlock(Action<int, UnsafePointer<ObjCBool>> block) { } /// <summary> /// Executes a given Block over the index set’s indexes, using the specified enumeration options. /// </summary> /// <param name="opts">A bitmask that specifies the options for the enumeration (whether it should be performed concurrently and whether it should be performed in reverse order). See NSEnumerationOptions for the supported values.</param> /// <param name="usingBlock">The Block to apply to elements in the set. /// The Block takes two arguments: /// idx /// The index of the object. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the set. The stop argument is an out-only argument. You should only ever set this Boolean to YES within the Block.</param> [iOSVersion(4)] [Export("enumerateIndexesWithOptions")] public void EnumerateIndexesWithOptions(NSEnumerationOptions opts, Action<int, UnsafePointer<ObjCBool>> usingBlock) { } /// <summary> /// Executes a given Block using the indexes in the specified range, using the specified enumeration options. /// </summary> /// <param name="range">The range to enumerate.</param> /// <param name="options">A bitmask that specifies the options for the enumeration (whether it should be performed concurrently and whether it should be performed in reverse order). See NSEnumerationOptions for the supported values.</param> /// <param name="usingBlock">The Block to apply to elements in the set. /// The Block takes two arguments: /// idx /// The index of the object. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the set. The stop argument is an out-only argument. You should only ever set this Boolean to YES within the Block.</param> [iOSVersion(4)] [Export("enumerateIndexesInRange")] public void EnumerateIndexesInRange(NSRange range, NSEnumerationOptions options, Action<int, UnsafePointer<ObjCBool>> usingBlock) { } /// <summary> /// The number of indexes in the index set. (read-only) /// </summary> [iOSVersion(2)] [Export("count")] public int Count { get; private set; } /// <summary> /// The first index in the index set. (read-only) /// </summary> [iOSVersion(2)] [Export("firstIndex")] public int FirstIndex { get; private set; } /// <summary> /// The last index in the index set. (read-only) /// </summary> [iOSVersion(2)] [Export("lastIndex")] public int LastIndex { get; private set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSIndexSet class represents an immutable collection of unique unsigned integers, known as indexes because of the way they are used. This collection is referred to as an index set. Indexes must be in the range 0 .. NSNotFound - 1. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSIndexSet_Class/index.html#//apple_ref/occ/cl/NSIndexSet"/> [iOSVersion(2)] [Export("")] public class NSIndexSet : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSMutableCopying, NSObjectProtocol, NSSecureCoding, Printable { public NSIndexSet() { } /// <summary> /// Initializes an allocated NSIndexSet object with an index. /// </summary> /// <param name="index">An index. Must be in the range 0 .. NSNotFound - 1.</param> [iOSVersion(2)] [Export("convenience init")] public NSIndexSet(int index) { } /// <summary> /// Initializes an allocated NSIndexSet object with an index range. /// </summary> /// <param name="indexesInRange">An index range. Must be in the range 0 .. NSNotFound - 1..</param> [iOSVersion(2)] public NSIndexSet(NSRange indexesInRange) { } /// <summary> /// Initializes an allocated NSIndexSet object with an index set. /// </summary> /// <param name="indexSet">An index set.</param> [iOSVersion(2)] public NSIndexSet(NSIndexSet indexSet) { } /// <summary> /// Indicates whether the index set contains a specific index. /// </summary> /// <param name="index">Index being inquired about.</param> [iOSVersion(2)] [Export("containsIndex")] public virtual bool ContainsIndex(int index) { return default(bool); } /// <summary> /// Indicates whether the receiving index set contains a superset of the indexes in another index set. /// </summary> /// <param name="indexSet">Index set being inquired about.</param> [iOSVersion(2)] [Export("containsIndexes")] public virtual bool ContainsIndexes(NSIndexSet indexSet) { return default(bool); } /// <summary> /// Indicates whether the index set contains the indexes represented by an index range. /// </summary> /// <param name="indexRange">The index range being inquired about.</param> [iOSVersion(2)] [Export("containsIndexesInRange")] public virtual bool ContainsIndexesInRange(NSRange indexRange) { return default(bool); } /// <summary> /// Indicates whether the index set contains any of the indexes in a range. /// </summary> /// <param name="indexRange">Index range being inquired about.</param> [iOSVersion(2)] [Export("intersectsIndexesInRange")] public virtual bool IntersectsIndexesInRange(NSRange indexRange) { return default(bool); } /// <summary> /// Returns the number of indexes in the index set that are members of a given range. /// </summary> /// <param name="indexRange">Index range being inquired about.</param> [iOSVersion(2)] [Export("countOfIndexesInRange")] public virtual int CountOfIndexesInRange(NSRange indexRange) { return default(int); } /// <summary> /// Returns the index of the first object that passes the predicate Block test. /// </summary> /// <param name="predicate">The Block to apply to elements in the set. /// The Block takes two arguments: /// idx /// The index of the object. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the set. The stop argument is an out-only argument. You should only ever set this Boolean to YES within the Block. /// The Block returns a Boolean value that indicates whether obj passed the test.</param> [iOSVersion(4)] [Export("indexPassingTest")] public virtual int IndexPassingTest(Func<int, UnsafeMutablePointer<ObjCBool>, bool> predicate) { return default(int); } /// <summary> /// Returns an NSIndexSet containing the receiving index set’s objects that pass the Block test. /// </summary> /// <param name="predicate">The Block to apply to elements in the set. /// The Block takes two arguments: /// idx /// The index of the object. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the set. The stop argument is an out-only argument. You should only ever set this Boolean to YES within the Block. /// The Block returns a Boolean value that indicates whether obj passed the test.</param> [iOSVersion(4)] [Export("indexesPassingTest")] public virtual NSIndexSet IndexesPassingTest(Func<int, UnsafeMutablePointer<ObjCBool>, bool> predicate) { return default(NSIndexSet); } /// <summary> /// Returns the index of the first object that passes the predicate Block test using the specified enumeration options. /// </summary> /// <param name="opts">A bitmask that specifies the options for the enumeration (whether it should be performed concurrently and whether it should be performed in reverse order). See NSEnumerationOptions for the supported values.</param> /// <param name="passingTest">The Block to apply to elements in the set. /// The Block takes two arguments: /// idx /// The index of the object. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the set. The stop argument is an out-only argument. You should only ever set this Boolean to YES within the Block. /// The Block returns a Boolean value that indicates whether obj passed the test.</param> [iOSVersion(4)] [Export("indexWithOptions")] public virtual int IndexWithOptions(NSEnumerationOptions opts, Func<int, UnsafeMutablePointer<ObjCBool>, bool> passingTest) { return default(int); } /// <summary> /// Returns an NSIndexSet containing the receiving index set’s objects that pass the Block test using the specified enumeration options. /// </summary> /// <param name="opts">A bitmask that specifies the options for the enumeration (whether it should be performed concurrently and whether it should be performed in reverse order). See NSEnumerationOptions for the supported values.</param> /// <param name="passingTest">The Block to apply to elements in the set. /// The Block takes two arguments: /// idx /// The index of the object. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the set. The stop argument is an out-only argument. You should only ever set this Boolean to YES within the Block. /// The Block returns a Boolean value that indicates whether obj passed the test.</param> [iOSVersion(4)] [Export("indexesWithOptions")] public virtual NSIndexSet IndexesWithOptions(NSEnumerationOptions opts, Func<int, UnsafeMutablePointer<ObjCBool>, bool> passingTest) { return default(NSIndexSet); } /// <summary> /// Returns the index of the first object in the specified range that passes the predicate Block test. /// </summary> /// <param name="range">The range of indexes to test.</param> /// <param name="options">A bitmask that specifies the options for the enumeration (whether it should be performed concurrently and whether it should be performed in reverse order). See NSEnumerationOptions for the supported values.</param> /// <param name="passingTest">The Block to apply to elements in the set. /// The Block takes two arguments: /// idx /// The index of the object. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the set. The stop argument is an out-only argument. You should only ever set this Boolean to YES within the Block. /// The Block returns a Boolean value that indicates whether obj passed the test.</param> [iOSVersion(4)] [Export("indexInRange")] public virtual int IndexInRange(NSRange range, NSEnumerationOptions options, Func<int, UnsafeMutablePointer<ObjCBool>, bool> passingTest) { return default(int); } /// <summary> /// Returns an NSIndexSet containing the receiving index set’s objects in the specified range that pass the Block test. /// </summary> /// <param name="range">The range of indexes to test.</param> /// <param name="options">A bitmask that specifies the options for the enumeration (whether it should be performed concurrently and whether it should be performed in reverse order). See NSEnumerationOptions for the supported values.</param> /// <param name="passingTest">The Block to apply to elements in the set. /// The Block takes two arguments: /// idx /// The index of the object. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the set. The stop argument is an out-only argument. You should only ever set this Boolean to YES within the Block. /// The Block returns a Boolean value that indicates whether obj passed the test.</param> [iOSVersion(4)] [Export("indexesInRange")] public virtual NSIndexSet IndexesInRange(NSRange range, NSEnumerationOptions options, Func<int, UnsafeMutablePointer<ObjCBool>, bool> passingTest) { return default(NSIndexSet); } /// <summary> /// Enumerates over the ranges in the range of objects using the block /// </summary> /// <param name="range">The range of items to enumerate. If the range intersects a range of the receiver&#39;s indexes, then that intersection will be passed to the block.</param> /// <param name="options">A bitmask that specifies the NSEnumerationOptions for the enumeration.</param> /// <param name="usingBlock">The block to apply to elements in the index set. /// The block takes two arguments: /// range /// The range of elements. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the array. The stop argument is an out-only argument. You should only ever set this Boolean to true within the Block.</param> [iOSVersion(5)] [Export("enumerateRangesInRange")] public virtual void EnumerateRangesInRange(NSRange range, NSEnumerationOptions options, Action<NSRange, UnsafeMutablePointer<ObjCBool>> usingBlock) { } /// <summary> /// Executes a given block using each object in the index set, in the specified ranges. /// </summary> /// <param name="block">The block to apply to elements in the index set. /// The block takes two arguments: /// range /// The range of objects of the elements in the index set. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the array. The stop argument is an out-only argument. You should only ever set this Boolean to true within the Block.</param> [iOSVersion(5)] [Export("enumerateRangesUsingBlock")] public virtual void EnumerateRangesUsingBlock(Action<NSRange, UnsafeMutablePointer<ObjCBool>> block) { } /// <summary> /// Executes a given block using each object in the index set, in the specified ranges. /// </summary> /// <param name="opts">A bitmask that specifies the NSEnumerationOptions for the enumeration (whether it should be performed concurrently and whether it should be performed in reverse order).</param> /// <param name="usingBlock">The block to apply to elements in the index set. /// The block takes two arguments: /// range /// The range of objects of the elements in the index set. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the array. The stop argument is an out-only argument. You should only ever set this Boolean to true within the Block.</param> [iOSVersion(5)] [Export("enumerateRangesWithOptions")] public virtual void EnumerateRangesWithOptions(NSEnumerationOptions opts, Action<NSRange, UnsafeMutablePointer<ObjCBool>> usingBlock) { } /// <summary> /// Indicates whether the indexes in the receiving index set are the same indexes contained in another index set. /// </summary> /// <param name="indexSet">Index set being inquired about.</param> [iOSVersion(2)] [Export("isEqualToIndexSet")] public virtual bool IsEqualToIndexSet(NSIndexSet indexSet) { return default(bool); } /// <summary> /// Returns either the closest index in the index set that is less than a specific index or the not-found indicator. /// </summary> /// <param name="index">Index being inquired about.</param> [iOSVersion(2)] [Export("indexLessThanIndex")] public virtual int IndexLessThanIndex(int index) { return default(int); } /// <summary> /// Returns either the closest index in the index set that is less than or equal to a specific index or the not-found indicator. /// </summary> /// <param name="index">Index being inquired about.</param> [iOSVersion(2)] [Export("indexLessThanOrEqualToIndex")] public virtual int IndexLessThanOrEqualToIndex(int index) { return default(int); } /// <summary> /// Returns either the closest index in the index set that is greater than or equal to a specific index or the not-found indicator. /// </summary> /// <param name="index">Index being inquired about.</param> [iOSVersion(2)] [Export("indexGreaterThanOrEqualToIndex")] public virtual int IndexGreaterThanOrEqualToIndex(int index) { return default(int); } /// <summary> /// Returns either the closest index in the index set that is greater than a specific index or the not-found indicator. /// </summary> /// <param name="index">Index being inquired about.</param> [iOSVersion(2)] [Export("indexGreaterThanIndex")] public virtual int IndexGreaterThanIndex(int index) { return default(int); } /// <summary> /// The index set fills an index buffer with the indexes contained both in the index set and in an index range, returning the number of indexes copied. /// </summary> /// <param name="indexBuffer">Index buffer to fill.</param> /// <param name="maxCount">Maximum size of indexBuffer.</param> /// <param name="inIndexRange">Index range to compare with indexes in the index set; nil represents all the indexes in the index set. Indexes in the index range and in the index set are copied to indexBuffer. On output, the range of indexes not copied to indexBuffer.</param> [iOSVersion(2)] [Export("getIndexes")] public virtual int GetIndexes(UnsafeMutablePointer<int> indexBuffer, int maxCount, NSRangePointer inIndexRange) { return default(int); } /// <summary> /// Executes a given Block using each object in the index set. /// </summary> /// <param name="block">The Block to apply to elements in the set. /// The Block takes two arguments: /// idx /// The index of the object. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the set. The stop argument is an out-only argument. You should only ever set this Boolean to YES within the Block.</param> [iOSVersion(4)] [Export("enumerateIndexesUsingBlock")] public virtual void EnumerateIndexesUsingBlock(Action<int, UnsafeMutablePointer<ObjCBool>> block) { } /// <summary> /// Executes a given Block over the index set’s indexes, using the specified enumeration options. /// </summary> /// <param name="opts">A bitmask that specifies the options for the enumeration (whether it should be performed concurrently and whether it should be performed in reverse order). See NSEnumerationOptions for the supported values.</param> /// <param name="usingBlock">The Block to apply to elements in the set. /// The Block takes two arguments: /// idx /// The index of the object. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the set. The stop argument is an out-only argument. You should only ever set this Boolean to YES within the Block.</param> [iOSVersion(4)] [Export("enumerateIndexesWithOptions")] public virtual void EnumerateIndexesWithOptions(NSEnumerationOptions opts, Action<int, UnsafeMutablePointer<ObjCBool>> usingBlock) { } /// <summary> /// Executes a given Block using the indexes in the specified range, using the specified enumeration options. /// </summary> /// <param name="range">The range to enumerate.</param> /// <param name="options">A bitmask that specifies the options for the enumeration (whether it should be performed concurrently and whether it should be performed in reverse order). See NSEnumerationOptions for the supported values.</param> /// <param name="usingBlock">The Block to apply to elements in the set. /// The Block takes two arguments: /// idx /// The index of the object. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the set. The stop argument is an out-only argument. You should only ever set this Boolean to YES within the Block.</param> [iOSVersion(4)] [Export("enumerateIndexesInRange")] public virtual void EnumerateIndexesInRange(NSRange range, NSEnumerationOptions options, Action<int, UnsafeMutablePointer<ObjCBool>> usingBlock) { } /// <summary> /// The number of indexes in the index set. (read-only) /// </summary> [iOSVersion(2)] [Export("count")] public int Count { get; private set; } /// <summary> /// The first index in the index set. (read-only) /// </summary> [iOSVersion(2)] [Export("firstIndex")] public int FirstIndex { get; private set; } /// <summary> /// The last index in the index set. (read-only) /// </summary> [iOSVersion(2)] [Export("lastIndex")] public int LastIndex { get; private set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSInputStream.cs b/CocoaSharp/Foundation/NSInputStream.cs
index 95245aad..441cc3ee 100644
--- a/CocoaSharp/Foundation/NSInputStream.cs
+++ b/CocoaSharp/Foundation/NSInputStream.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSInputStream is a subclass of NSStream that provides read-only stream functionality. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSInputStream_Class/index.html#//apple_ref/occ/cl/NSInputStream"/> [iOSVersion(2)] public class NSInputStream : NSStream//, AnyObject, NSObjectProtocol { /// <summary> /// Creates and returns an initialized NSInputStream object that reads data from the file at a given path. /// </summary> /// <param name="path">The path to the file.</param> [iOSVersion(2)] [Export("inputStreamWithFileAtPath")] public static NSInputStream InputStreamWithFileAtPath(string path) { return default(NSInputStream); } /// <summary> /// Initializes and returns an NSInputStream object for reading from a given NSData object. /// </summary> /// <param name="data">The data object from which to read. The contents of data are copied.</param> [iOSVersion(2)] public NSInputStream(NSData data) { } /// <summary> /// Initializes and returns an NSInputStream object that reads data from the file at a given path. /// </summary> /// <param name="fileAtPath">The path to the file.</param> [iOSVersion(2)] [Export("convenience init")] public NSInputStream(string fileAtPath) { } /// <summary> /// Initializes and returns an NSInputStream object that reads data from the file at a given URL. /// </summary> /// <param name="URL">The URL to the file.</param> [iOSVersion(4)] public NSInputStream(NSURL URL) { } /// <summary> /// Reads up to a given number of bytes into a given buffer. /// </summary> /// <param name="buffer">A data buffer. The buffer must be large enough to contain the number of bytes specified by len.</param> /// <param name="maxLength">The maximum number of bytes to read.</param> [iOSVersion(2)] [Export("read")] public int Read(UnsafePointer<UInt8> buffer, int maxLength) { return default(int); } /// <summary> /// Returns by reference a pointer to a read buffer and, by reference, the number of bytes available, and returns a Boolean value that indicates whether the buffer is available. /// </summary> /// <param name="buffer">Upon return, contains a pointer to a read buffer. The buffer is only valid until the next stream operation is performed.</param> /// <param name="length">Upon return, contains the number of bytes available.</param> [iOSVersion(2)] [Export("getBuffer")] public bool GetBuffer(UnsafePointer<UnsafePointer<UInt8>> buffer, UnsafePointer<int> length) { return default(bool); } /// <summary> /// A Boolean value that indicates whether the receiver has bytes available to read. (read-only) /// </summary> [iOSVersion(2)] [Export("hasBytesAvailable")] public bool HasBytesAvailable { get; private set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSInputStream is a subclass of NSStream that provides read-only stream functionality. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSInputStream_Class/index.html#//apple_ref/occ/cl/NSInputStream"/> [iOSVersion(2)] [Export("")] public class NSInputStream : NSStream//, AnyObject, CVarArgType, Equatable, Hashable, NSObjectProtocol, Printable { public NSInputStream() { } /// <summary> /// Initializes and returns an NSInputStream object for reading from a given NSData object. /// </summary> /// <param name="data">The data object from which to read. The contents of data are copied.</param> [iOSVersion(2)] public NSInputStream(NSData data) { } /// <summary> /// Reads up to a given number of bytes into a given buffer. /// </summary> /// <param name="buffer">A data buffer. The buffer must be large enough to contain the number of bytes specified by len.</param> /// <param name="maxLength">The maximum number of bytes to read.</param> [iOSVersion(2)] [Export("read")] public virtual int Read(UnsafeMutablePointer<UInt8> buffer, int maxLength) { return default(int); } /// <summary> /// Returns by reference a pointer to a read buffer and, by reference, the number of bytes available, and returns a Boolean value that indicates whether the buffer is available. /// </summary> /// <param name="buffer">Upon return, contains a pointer to a read buffer. The buffer is only valid until the next stream operation is performed.</param> /// <param name="length">Upon return, contains the number of bytes available.</param> [iOSVersion(2)] [Export("getBuffer")] public virtual bool GetBuffer(UnsafeMutablePointer<UnsafeMutablePointer<UInt8>> buffer, UnsafeMutablePointer<int> length) { return default(bool); } /// <summary> /// A Boolean value that indicates whether the receiver has bytes available to read. (read-only) /// </summary> [iOSVersion(2)] [Export("hasBytesAvailable")] public bool HasBytesAvailable { get; private set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSInvocation.cs b/CocoaSharp/Foundation/NSInvocation.cs
index 965f386a..2d8c53e1 100644
--- a/CocoaSharp/Foundation/NSInvocation.cs
+++ b/CocoaSharp/Foundation/NSInvocation.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// An NSInvocation is an Objective-C message rendered static, that is, it is an action turned into an object. NSInvocation objects are used to store and forward messages between objects and between applications, primarily by NSTimer objects and the distributed objects system. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSInvocation_Class/index.html#//apple_ref/occ/cl/NSInvocation"/> [iOSVersion(2)] public class NSInvocation//: { } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// An NSInvocation is an Objective-C message rendered static, that is, it is an action turned into an object. NSInvocation objects are used to store and forward messages between objects and between applications, primarily by NSTimer objects and the distributed objects system. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSInvocation_Class/index.html#//apple_ref/occ/cl/NSInvocation"/> [iOSVersion(2)] [Export("")] public class NSInvocation//: { public NSInvocation() { } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSInvocationOperation.cs b/CocoaSharp/Foundation/NSInvocationOperation.cs
index 2faa401d..3b3bd2cd 100644
--- a/CocoaSharp/Foundation/NSInvocationOperation.cs
+++ b/CocoaSharp/Foundation/NSInvocationOperation.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSInvocationOperation class is a concrete subclass of NSOperation that manages the execution of a single encapsulated task specified as an invocation. You can use this class to initiate an operation that consists of invoking a selector on a specified object. This class implements a non-concurrent operation. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/NSInvocationOperation_Class/index.html#//apple_ref/occ/cl/NSInvocationOperation"/> [iOSVersion(2)] public class NSInvocationOperation : NSOperation//, AnyObject, NSObjectProtocol { /// <summary> /// Returns an NSInvocationOperation object initialized with the specified target and selector. /// </summary> /// <param name="target">The object defining the specified selector.</param> /// <param name="selector">The selector to invoke when running the operation. The selector may take 0 or 1 parameters; if it accepts a parameter, the type of that parameter must be id. The return type of the method may be void, a scalar value, or an object that can be returned as an id type.</param> /// <param name="@object">The parameter object to pass to the selector. If the selector does not take an argument, specify nil.</param> [iOSVersion(2)] [Export("convenience init")] public NSInvocationOperation(AnyObject target, Selector selector, AnyObject @object) { } /// <summary> /// Returns an NSInvocationOperation object initialized with the specified invocation object. /// </summary> /// <param name="invocation">The invocation object identifying the target object, selector, and parameter objects.</param> [iOSVersion(2)] public NSInvocationOperation(NSInvocation invocation) { } /// <summary> /// The receiver’s invocation object. (read-only) /// </summary> [iOSVersion(2)] [Export("invocation")] public NSInvocation Invocation { get; private set; } /// <summary> /// The result of the invocation or method. (read-only) /// </summary> [iOSVersion(2)] [Export("result")] public AnyObject Result { get; private set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSInvocationOperation class is a concrete subclass of NSOperation that manages the execution of a single encapsulated task specified as an invocation. You can use this class to initiate an operation that consists of invoking a selector on a specified object. This class implements a non-concurrent operation. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/NSInvocationOperation_Class/index.html#//apple_ref/occ/cl/NSInvocationOperation"/> [iOSVersion(2)] [Export("")] public class NSInvocationOperation//: { public NSInvocationOperation() { } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSItemProvider.cs b/CocoaSharp/Foundation/NSItemProvider.cs
index be2080b7..d1056de0 100644
--- a/CocoaSharp/Foundation/NSItemProvider.cs
+++ b/CocoaSharp/Foundation/NSItemProvider.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSItemProvider class defines an object that represents a high-level abstraction for data objects that can be found in an NSExtensionItem object’s attachments property, such as text, images, and URLs. An extension uses an NSItemProvider object to query the host app for available item formats, load items of specific types, and support efficient item previewing. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSItemProvider_Class/index.html#//apple_ref/occ/cl/NSItemProvider"/> [iOSVersion(8)] public class NSItemProvider : NSObject//, AnyObject, NSCopying, NSObjectProtocol { /// <summary> /// Returns an item provider initialized with the contents of the specified file and an appropriate load handler. /// </summary> /// <param name="contentsOfURL">The URL of the file in the extension object’s attachments property.</param> [iOSVersion(8)] [Export("convenience init")] public NSItemProvider(NSURL contentsOfURL) { } /// <summary> /// Returns an item provider initialized with a load handler appropriate for the specified item. /// </summary> /// <param name="item">An NSItemProvider object or nil.</param> /// <param name="typeIdentifier">A string that represents the UTI of the item.</param> [iOSVersion(8)] public NSItemProvider(NSSecureCoding item, string typeIdentifier) { } /// <summary> /// Returns a Boolean value that indicates whether the item provider has at least one item that conforms to the specified type. /// </summary> /// <param name="typeIdentifier">The UTI that specifies the desired item type.</param> [iOSVersion(8)] [Export("hasItemConformingToTypeIdentifier")] public bool HasItemConformingToTypeIdentifier(string typeIdentifier) { return default(bool); } /// <summary> /// Loads the item whose type most closely matches the specified type identifier. /// </summary> /// <param name="typeIdentifier">A string that represents the desired UTI.</param> /// <param name="options">A dictionary of keys and values that provide information about the item, such as the size of an image. (See NSItemProviderPreferredImageSizeKey for a key you can use.)</param> /// <param name="completionHandler">A completion handler block that uses the form specified by NSItemProviderCompletionHandler.</param> [iOSVersion(8)] [Export("loadItemForTypeIdentifier")] public void LoadItemForTypeIdentifier(string typeIdentifier, Dictionary<NSObject, AnyObject> options, NSItemProviderCompletionHandler completionHandler) { } /// <summary> /// Sets the load handler block to use for the specified type identifier. /// </summary> /// <param name="typeIdentifier">A string that represents the desired UTI.</param> /// <param name="loadHandler">A completion handler block that uses the form specified by NSItemProviderLoadHandler.</param> [iOSVersion(8)] [Export("registerItemForTypeIdentifier")] public void RegisterItemForTypeIdentifier(string typeIdentifier, NSItemProviderLoadHandler loadHandler) { } /// <summary> /// Loads the preview image for the specified item. /// </summary> /// <param name="options">A dictionary of keys and values that provide information about the item, such as the size of an image. (See NSItemProviderPreferredImageSizeKey for a key you can use.)</param> /// <param name="completionHandler">A completion handler block that uses the form specified by NSItemProviderCompletionHandler.</param> [iOSVersion(8)] [Export("loadPreviewImageWithOptions")] public void LoadPreviewImageWithOptions(Dictionary<NSObject, AnyObject> options, NSItemProviderCompletionHandler completionHandler) { } /// <summary> /// Returns an array of registered type identifiers for this item provider. (read-only) /// </summary> [iOSVersion(8)] [Export("registeredTypeIdentifiers")] public AnyObject[] RegisteredTypeIdentifiers { get; private set; } /// <summary> /// The custom preview image handler block to use with this item provider. /// </summary> [iOSVersion(8)] [Export("previewImageHandler")] public NSItemProviderLoadHandler PreviewImageHandler { get; set; } } /// <summary> /// A block to be called when an item provider loads an item from an extension object’s attachments property. /// </summary> [iOSVersion(8)] public struct NSItemProviderCompletionHandler { static public implicit operator NSItemProviderCompletionHandler(Action<NSSecureCoding, NSError> value) { return default(NSItemProviderCompletionHandler); } static public implicit operator Action<NSSecureCoding, NSError>(NSItemProviderCompletionHandler value) { return default(Action<NSSecureCoding, NSError>); } } /// <summary> /// A block to be called when an item of a specific type is being loaded from an extension object’s attachments property. /// </summary> [iOSVersion(8)] public struct NSItemProviderLoadHandler { static public implicit operator NSItemProviderLoadHandler(Action<NSSecureCoding, NSError> value) { return default(NSItemProviderLoadHandler); } static public implicit operator Action<NSSecureCoding, NSError>(NSItemProviderLoadHandler value) { return default(Action<NSSecureCoding, NSError>); } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSItemProvider class defines an object that represents a high-level abstraction for data objects that can be found in an NSExtensionItem object’s attachments property, such as text, images, and URLs. An extension uses an NSItemProvider object to query the host app for available item formats, load items of specific types, and support efficient item previewing. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSItemProvider_Class/index.html#//apple_ref/occ/cl/NSItemProvider"/> [iOSVersion(8)] [Export("")] public class NSItemProvider : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSCopying, NSObjectProtocol, Printable { public NSItemProvider() { } /// <summary> /// Returns an item provider initialized with a load handler appropriate for the specified item. /// </summary> /// <param name="item">An NSItemProvider object or nil.</param> /// <param name="typeIdentifier">A string that represents the UTI of the item.</param> [iOSVersion(8)] public NSItemProvider([Optional] NSSecureCoding item, [Optional] string typeIdentifier) { } /// <summary> /// Returns a Boolean value that indicates whether the item provider has at least one item that conforms to the specified type. /// </summary> /// <param name="typeIdentifier">The UTI that specifies the desired item type.</param> [iOSVersion(8)] [Export("hasItemConformingToTypeIdentifier")] public virtual bool HasItemConformingToTypeIdentifier(string typeIdentifier) { return default(bool); } /// <summary> /// Loads the item whose type most closely matches the specified type identifier. /// </summary> /// <param name="typeIdentifier">A string that represents the desired UTI.</param> /// <param name="options">A dictionary of keys and values that provide information about the item, such as the size of an image. (See NSItemProviderPreferredImageSizeKey for a key you can use.)</param> /// <param name="completionHandler">A completion handler block that uses the form specified by NSItemProviderCompletionHandler.</param> [iOSVersion(8)] [Export("loadItemForTypeIdentifier")] public virtual void LoadItemForTypeIdentifier(string typeIdentifier, Dictionary<NSObject, AnyObject> options, [Optional] NSItemProviderCompletionHandler completionHandler) { } /// <summary> /// Sets the load handler block to use for the specified type identifier. /// </summary> /// <param name="typeIdentifier">A string that represents the desired UTI.</param> /// <param name="loadHandler">A completion handler block that uses the form specified by NSItemProviderLoadHandler.</param> [iOSVersion(8)] [Export("registerItemForTypeIdentifier")] public virtual void RegisterItemForTypeIdentifier(string typeIdentifier, NSItemProviderLoadHandler loadHandler) { } /// <summary> /// Loads the preview image for the specified item. /// </summary> /// <param name="options">A dictionary of keys and values that provide information about the item, such as the size of an image. (See NSItemProviderPreferredImageSizeKey for a key you can use.)</param> /// <param name="completionHandler">A completion handler block that uses the form specified by NSItemProviderCompletionHandler.</param> [iOSVersion(8)] [Export("loadPreviewImageWithOptions")] public virtual void LoadPreviewImageWithOptions(Dictionary<NSObject, AnyObject> options, [Unwrapped] NSItemProviderCompletionHandler completionHandler) { } /// <summary> /// Returns an array of registered type identifiers for this item provider. (read-only) /// </summary> [iOSVersion(8)] [Export("registeredTypeIdentifiers")] public AnyObject[] RegisteredTypeIdentifiers { get; private set; } /// <summary> /// The custom preview image handler block to use with this item provider. /// </summary> [iOSVersion(8)] [Export("previewImageHandler")] [Optional] public NSItemProviderLoadHandler PreviewImageHandler { get; set; } } /// <summary> /// A block to be called when an item provider loads an item from an extension object’s attachments property. /// </summary> [iOSVersion(8)] public struct NSItemProviderCompletionHandler { static public implicit operator NSItemProviderCompletionHandler(Action<NSSecureCoding, NSError> value) { return default(NSItemProviderCompletionHandler); } static public implicit operator Action<NSSecureCoding, NSError>(NSItemProviderCompletionHandler value) { return default(Action<NSSecureCoding, NSError>); } } /// <summary> /// A block to be called when an item of a specific type is being loaded from an extension object’s attachments property. /// </summary> [iOSVersion(8)] public struct NSItemProviderLoadHandler { static public implicit operator NSItemProviderLoadHandler(Action<NSItemProviderCompletionHandler, AnyClass, NSObject[]> value) { return default(NSItemProviderLoadHandler); } static public implicit operator Action<NSItemProviderCompletionHandler, AnyClass, NSObject[]>(NSItemProviderLoadHandler value) { return default(Action<NSItemProviderCompletionHandler, AnyClass, NSObject[]>); } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSJSONSerialization.cs b/CocoaSharp/Foundation/NSJSONSerialization.cs
index 8a213edf..8bf53d6a 100644
--- a/CocoaSharp/Foundation/NSJSONSerialization.cs
+++ b/CocoaSharp/Foundation/NSJSONSerialization.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// You use the NSJSONSerialization class to convert JSON to Foundation objects and convert Foundation objects to JSON. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSJSONSerialization_Class/index.html#//apple_ref/occ/cl/NSJSONSerialization"/> [iOSVersion(5)] public class NSJSONSerialization : NSObject//, AnyObject, NSObjectProtocol { /// <summary> /// Returns a Foundation object from given JSON data. /// </summary> /// <param name="data">A data object containing JSON data.</param> /// <param name="options">Options for reading the JSON data and creating the Foundation objects. /// For possible values, see NSJSONReadingOptions.</param> /// <param name="error">If an error occurs, upon return contains an NSError object that describes the problem.</param> [iOSVersion(5)] public static AnyObject JSONObjectWithData(NSData data, NSJSONReadingOptions options, NSErrorPointer error) { return default(AnyObject); } /// <summary> /// Returns a Foundation object from JSON data in a given stream. /// </summary> /// <param name="stream">A stream from which to read JSON data. /// The stream should be opened and configured.</param> /// <param name="options">Options for reading the JSON data and creating the Foundation objects. /// For possible values, see NSJSONReadingOptions.</param> /// <param name="error">If an error occurs, upon return contains an NSError object that describes the problem.</param> public static AnyObject JSONObjectWithStream(NSInputStream stream, NSJSONReadingOptions options, NSErrorPointer error) { return default(AnyObject); } /// <summary> /// Returns JSON data from a Foundation object. /// </summary> /// <param name="obj">The object from which to generate JSON data. Must not be nil.</param> /// <param name="options">Options for creating the JSON data. /// See NSJSONWritingOptions for possible values. Pass 0 to specify no options.</param> /// <param name="error">If an internal error occurs, upon return contains an NSError object that describes the problem.</param> [iOSVersion(5)] [Export("dataWithJSONObject")] public static NSData DataWithJSONObject(AnyObject obj, NSJSONWritingOptions options, NSErrorPointer error) { return default(NSData); } /// <summary> /// Writes a given JSON object to a stream. /// </summary> /// <param name="obj">The object to write to stream.</param> /// <param name="toStream">The stream to which to write. /// The stream should be opened and configured.</param> /// <param name="options">Options for writing the JSON data. /// See NSJSONWritingOptions for possible values. Pass 0 to specify no options.</param> /// <param name="error">If an error occurs, upon return contains an NSError object that describes the problem.</param> [iOSVersion(5)] [Export("writeJSONObject")] public static int WriteJSONObject(AnyObject obj, NSOutputStream toStream, NSJSONWritingOptions options, NSErrorPointer error) { return default(int); } /// <summary> /// Returns a Boolean value that indicates whether a given object can be converted to JSON data. /// </summary> /// <param name="obj">The object to test.</param> [iOSVersion(5)] [Export("isValidJSONObject")] public static bool IsValidJSONObject(AnyObject obj) { return default(bool); } } /// <summary> /// Options used when creating Foundation objects from JSON data—see JSONObjectWithData:options:error: and JSONObjectWithStream:options:error:. /// </summary> [iOSVersion(5)] public enum NSJSONReadingOptions { /// <summary> /// Specifies that arrays and dictionaries are created as mutable objects. /// </summary> [iOSVersion(5)] MutableContainers, /// <summary> /// Specifies that leaf strings in the JSON object graph are created as instances of NSMutableString. /// </summary> [iOSVersion(5)] MutableLeaves, /// <summary> /// Specifies that the parser should allow top-level objects that are not an instance of NSArray or NSDictionary. /// </summary> [iOSVersion(5)] AllowFragments, } /// <summary> /// Options for writing JSON data. /// </summary> [iOSVersion(5)] public enum NSJSONWritingOptions { /// <summary> /// Specifies that the JSON data should be generated with whitespace designed to make the output more readable. If this option is not set, the most compact possible JSON representation is generated. /// </summary> [iOSVersion(5)] PrettyPrinted, } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// You use the NSJSONSerialization class to convert JSON to Foundation objects and convert Foundation objects to JSON. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSJSONSerialization_Class/index.html#//apple_ref/occ/cl/NSJSONSerialization"/> [iOSVersion(5)] [Export("")] public class NSJSONSerialization : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSObjectProtocol, Printable { public NSJSONSerialization() { } /// <summary> /// Returns a Foundation object from given JSON data. /// </summary> /// <param name="data">A data object containing JSON data.</param> /// <param name="options">Options for reading the JSON data and creating the Foundation objects. /// For possible values, see NSJSONReadingOptions.</param> /// <param name="error">If an error occurs, upon return contains an NSError object that describes the problem.</param> [iOSVersion(5)] [return:Optional] public static AnyObject JSONObjectWithData(NSData data, NSJSONReadingOptions options, NSErrorPointer error) { return default(AnyObject); } /// <summary> /// Returns a Foundation object from JSON data in a given stream. /// </summary> /// <param name="stream">A stream from which to read JSON data. /// The stream should be opened and configured.</param> /// <param name="options">Options for reading the JSON data and creating the Foundation objects. /// For possible values, see NSJSONReadingOptions.</param> /// <param name="error">If an error occurs, upon return contains an NSError object that describes the problem.</param> [return:Optional] public static AnyObject JSONObjectWithStream(NSInputStream stream, NSJSONReadingOptions options, NSErrorPointer error) { return default(AnyObject); } /// <summary> /// Returns JSON data from a Foundation object. /// </summary> /// <param name="obj">The object from which to generate JSON data. Must not be nil.</param> /// <param name="options">Options for creating the JSON data. /// See NSJSONWritingOptions for possible values. Pass 0 to specify no options.</param> /// <param name="error">If an internal error occurs, upon return contains an NSError object that describes the problem.</param> [iOSVersion(5)] [Export("dataWithJSONObject")] [return:Optional] public static NSData DataWithJSONObject(AnyObject obj, NSJSONWritingOptions options, NSErrorPointer error) { return default(NSData); } /// <summary> /// Writes a given JSON object to a stream. /// </summary> /// <param name="obj">The object to write to stream.</param> /// <param name="toStream">The stream to which to write. /// The stream should be opened and configured.</param> /// <param name="options">Options for writing the JSON data. /// See NSJSONWritingOptions for possible values. Pass 0 to specify no options.</param> /// <param name="error">If an error occurs, upon return contains an NSError object that describes the problem.</param> [iOSVersion(5)] [Export("writeJSONObject")] public static int WriteJSONObject(AnyObject obj, NSOutputStream toStream, NSJSONWritingOptions options, NSErrorPointer error) { return default(int); } /// <summary> /// Returns a Boolean value that indicates whether a given object can be converted to JSON data. /// </summary> /// <param name="obj">The object to test.</param> [iOSVersion(5)] [Export("isValidJSONObject")] public static bool IsValidJSONObject(AnyObject obj) { return default(bool); } } /// <summary> /// Options used when creating Foundation objects from JSON data—see JSONObjectWithData:options:error: and JSONObjectWithStream:options:error:. /// </summary> public enum NSJSONReadingOptions { /// <summary> /// Specifies that arrays and dictionaries are created as mutable objects. /// </summary> [iOSVersion(5)] MutableContainers, /// <summary> /// Specifies that leaf strings in the JSON object graph are created as instances of NSMutableString. /// </summary> [iOSVersion(5)] MutableLeaves, /// <summary> /// Specifies that the parser should allow top-level objects that are not an instance of NSArray or NSDictionary. /// </summary> [iOSVersion(5)] AllowFragments, } /// <summary> /// Options for writing JSON data. /// </summary> public enum NSJSONWritingOptions { /// <summary> /// Specifies that the JSON data should be generated with whitespace designed to make the output more readable. If this option is not set, the most compact possible JSON representation is generated. /// </summary> [iOSVersion(5)] PrettyPrinted, } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSKeyedArchiver.cs b/CocoaSharp/Foundation/NSKeyedArchiver.cs
index 83dc7061..964e7508 100644
--- a/CocoaSharp/Foundation/NSKeyedArchiver.cs
+++ b/CocoaSharp/Foundation/NSKeyedArchiver.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSKeyedArchiver, a concrete subclass of NSCoder, provides a way to encode objects (and scalar values) into an architecture-independent format that can be stored in a file. When you archive a set of objects, the class information and instance variables for each object are written to the archive. NSKeyedArchiver’s companion class, NSKeyedUnarchiver, decodes the data in an archive and creates a set of objects equivalent to the original set. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSKeyedArchiver_Class/index.html#//apple_ref/occ/cl/NSKeyedArchiver"/> [iOSVersion(2)] public class NSKeyedArchiver : NSCoder//, AnyObject, NSObjectProtocol { /// <summary> /// Returns the receiver, initialized for encoding an archive into a given a mutable-data object. /// </summary> /// <param name="forWritingWithMutableData">The mutable-data object into which the archive is written.</param> [iOSVersion(2)] public NSKeyedArchiver(NSMutableData forWritingWithMutableData) { } /// <summary> /// Returns an NSData object containing the encoded form of the object graph whose root object is given. /// </summary> /// <param name="rootObject">The root of the object graph to archive.</param> [iOSVersion(2)] [Export("archivedDataWithRootObject")] public static NSData ArchivedDataWithRootObject(AnyObject rootObject) { return default(NSData); } /// <summary> /// Archives an object graph rooted at a given object by encoding it into a data object then atomically writes the resulting data object to a file at a given path, and returns a Boolean value that indicates whether the operation was successful. /// </summary> /// <param name="rootObject">The root of the object graph to archive.</param> /// <param name="toFile">The path of the file in which to write the archive.</param> [iOSVersion(2)] [Export("archiveRootObject")] public static bool ArchiveRootObject(AnyObject rootObject, string toFile) { return default(bool); } /// <summary> /// Instructs the receiver to construct the final data stream. /// </summary> [iOSVersion(2)] [Export("finishEncoding")] public void FinishEncoding() { } /// <summary> /// Indicates whether the receiver requires all archived classes to conform to NSSecureCoding. /// </summary> /// <param name="flag">true if the receiver requires NSSecureCoding; false if not.</param> [iOSVersion(6)] [Export("setRequiresSecureCoding")] public void SetRequiresSecureCoding(bool flag) { } /// <summary> /// Encodes a given Boolean value and associates it with a given key. /// </summary> /// <param name="boolv">The value to encode.</param> /// <param name="forKey">The key with which to associate boolv. This value must not be nil.</param> [iOSVersion(2)] [Export("encodeBool")] public void EncodeBool(bool boolv, string forKey) { } /// <summary> /// Encodes a given number of bytes from a given C array of bytes and associates them with the a given key. /// </summary> /// <param name="bytesp">A C array of bytes to encode.</param> /// <param name="length">The number of bytes from bytesp to encode.</param> /// <param name="forKey">The key with which to associate the encoded value. This value must not be nil.</param> [iOSVersion(2)] [Export("encodeBytes")] public void EncodeBytes(ConstUnsafePointer<UInt8> bytesp, int length, string forKey) { } /// <summary> /// Encodes a reference to a given object and associates it with a given key only if it has been unconditionally encoded elsewhere in the archive with encodeObject:forKey:. /// </summary> /// <param name="objv">The object to encode.</param> /// <param name="forKey">The key with which to associate the encoded value. This value must not be nil.</param> [iOSVersion(2)] [Export("encodeConditionalObject")] public void EncodeConditionalObject(AnyObject objv, string forKey) { } /// <summary> /// Encodes a given double value and associates it with a given key. /// </summary> /// <param name="realv">The value to encode.</param> /// <param name="forKey">The key with which to associate realv. This value must not be nil.</param> [iOSVersion(2)] [Export("encodeDouble")] public void EncodeDouble(Double realv, string forKey) { } /// <summary> /// Encodes a given float value and associates it with a given key. /// </summary> /// <param name="realv">The value to encode.</param> /// <param name="forKey">The key with which to associate realv. This value must not be nil.</param> [iOSVersion(2)] [Export("encodeFloat")] public void EncodeFloat(float realv, string forKey) { } /// <summary> /// Encodes a given int value and associates it with a given key. /// </summary> /// <param name="intv">The value to encode.</param> /// <param name="forKey">The key with which to associate intv. This value must not be nil.</param> [iOSVersion(2)] [Export("encodeInt")] public void EncodeInt(int intv, string forKey) { } /// <summary> /// Encodes a given 32-bit integer value and associates it with a given key. /// </summary> /// <param name="intv">The value to encode.</param> /// <param name="forKey">The key with which to associate intv. This value must not be nil.</param> [iOSVersion(2)] [Export("encodeInt32")] public void EncodeInt32(int intv, string forKey) { } /// <summary> /// Encodes a given 64-bit integer value and associates it with a given key. /// </summary> /// <param name="intv">The value to encode.</param> /// <param name="forKey">The key with which to associate intv. This value must not be nil.</param> [iOSVersion(2)] [Export("encodeInt64")] public void EncodeInt64(Int64 intv, string forKey) { } /// <summary> /// Encodes a given object and associates it with a given key. /// </summary> /// <param name="objv">The value to encode. This value may be nil.</param> /// <param name="forKey">The key with which to associate objv. This value must not be nil.</param> [iOSVersion(2)] [Export("encodeObject")] public void EncodeObject(AnyObject objv, string forKey) { } /// <summary> /// Adds a class translation mapping to NSKeyedArchiver whereby instances of of a given class are encoded with a given class name instead of their real class names. /// </summary> /// <param name="codedName">The name of the class that NSKeyedArchiver uses in place of cls.</param> /// <param name="forClass">The class for which to set up a translation mapping.</param> [iOSVersion(2)] [Export("setClassName")] public static void SetClassName(string codedName, AnyClass forClass) { } /// <summary> /// Returns the class name with which NSKeyedArchiver encodes instances of a given class. /// </summary> /// <param name="cls">The class for which to determine the translation mapping.</param> [iOSVersion(2)] [Export("classNameForClass")] public static string ClassNameForClass(AnyClass cls) { return default(string); } /// <summary> /// Adds a class translation mapping to the receiver whereby instances of of a given class are encoded with a given class name instead of their real class names. /// </summary> /// <param name="codedName">The name of the class that the receiver uses uses in place of cls.</param> /// <param name="forClass">The class for which to set up a translation mapping.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [Export("setClassName")] [IgnoreParameter("NAME_YOUR_PARAMS")] public void SetClassName(string codedName, AnyClass forClass, bool NAME_YOUR_PARAMS = false) { } /// <summary> /// Returns the class name with which the receiver encodes instances of a given class. /// </summary> /// <param name="cls">The class for which to determine the translation mapping.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [Export("classNameForClass")] [IgnoreParameter("NAME_YOUR_PARAMS")] public string ClassNameForClass(AnyClass cls, bool NAME_YOUR_PARAMS = false) { return default(string); } /// <summary> /// Returns the format in which the receiver encodes its data. /// </summary> [iOSVersion(2)] [Export("outputFormat")] public NSPropertyListFormat OutputFormat { get; set; } /// <summary> /// Returns the receiver’s delegate. /// </summary> [iOSVersion(2)] [Export("delegate")] public NSKeyedArchiverDelegate Delegate { get; set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSKeyedArchiver, a concrete subclass of NSCoder, provides a way to encode objects (and scalar values) into an architecture-independent format that can be stored in a file. When you archive a set of objects, the class information and instance variables for each object are written to the archive. NSKeyedArchiver’s companion class, NSKeyedUnarchiver, decodes the data in an archive and creates a set of objects equivalent to the original set. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSKeyedArchiver_Class/index.html#//apple_ref/occ/cl/NSKeyedArchiver"/> [iOSVersion(2)] [Export("")] public class NSKeyedArchiver : NSCoder//, AnyObject, CVarArgType, Equatable, Hashable, NSObjectProtocol, Printable { public NSKeyedArchiver() { } /// <summary> /// Returns the receiver, initialized for encoding an archive into a given a mutable-data object. /// </summary> /// <param name="forWritingWithMutableData">The mutable-data object into which the archive is written.</param> [iOSVersion(2)] public NSKeyedArchiver(NSMutableData forWritingWithMutableData) { } /// <summary> /// Returns an NSData object containing the encoded form of the object graph whose root object is given. /// </summary> /// <param name="rootObject">The root of the object graph to archive.</param> [iOSVersion(2)] [Export("archivedDataWithRootObject")] public static NSData ArchivedDataWithRootObject(AnyObject rootObject) { return default(NSData); } /// <summary> /// Archives an object graph rooted at a given object by encoding it into a data object then atomically writes the resulting data object to a file at a given path, and returns a Boolean value that indicates whether the operation was successful. /// </summary> /// <param name="rootObject">The root of the object graph to archive.</param> /// <param name="toFile">The path of the file in which to write the archive.</param> [iOSVersion(2)] [Export("archiveRootObject")] public static bool ArchiveRootObject(AnyObject rootObject, string toFile) { return default(bool); } /// <summary> /// Instructs the receiver to construct the final data stream. /// </summary> [iOSVersion(2)] [Export("finishEncoding")] public virtual void FinishEncoding() { } /// <summary> /// Indicates whether the receiver requires all archived classes to conform to NSSecureCoding. /// </summary> /// <param name="flag">true if the receiver requires NSSecureCoding; false if not.</param> [iOSVersion(6)] [Export("setRequiresSecureCoding")] public virtual void SetRequiresSecureCoding(bool flag) { } /// <summary> /// Encodes a given Boolean value and associates it with a given key. /// </summary> /// <param name="boolv">The value to encode.</param> /// <param name="forKey">The key with which to associate boolv. This value must not be nil.</param> [iOSVersion(2)] [Export("encodeBool")] public virtual void EncodeBool(bool boolv, string forKey) { } /// <summary> /// Encodes a given number of bytes from a given C array of bytes and associates them with the a given key. /// </summary> /// <param name="bytesp">A C array of bytes to encode.</param> /// <param name="length">The number of bytes from bytesp to encode.</param> /// <param name="forKey">The key with which to associate the encoded value. This value must not be nil.</param> [iOSVersion(2)] [Export("encodeBytes")] public virtual void EncodeBytes(UnsafePointer<UInt8> bytesp, int length, string forKey) { } /// <summary> /// Encodes a reference to a given object and associates it with a given key only if it has been unconditionally encoded elsewhere in the archive with encodeObject:forKey:. /// </summary> /// <param name="objv">The object to encode.</param> /// <param name="forKey">The key with which to associate the encoded value. This value must not be nil.</param> [iOSVersion(2)] [Export("encodeConditionalObject")] public virtual void EncodeConditionalObject([Optional] AnyObject objv, string forKey) { } /// <summary> /// Encodes a given double value and associates it with a given key. /// </summary> /// <param name="realv">The value to encode.</param> /// <param name="forKey">The key with which to associate realv. This value must not be nil.</param> [iOSVersion(2)] [Export("encodeDouble")] public virtual void EncodeDouble(Double realv, string forKey) { } /// <summary> /// Encodes a given float value and associates it with a given key. /// </summary> /// <param name="realv">The value to encode.</param> /// <param name="forKey">The key with which to associate realv. This value must not be nil.</param> [iOSVersion(2)] [Export("encodeFloat")] public virtual void EncodeFloat(float realv, string forKey) { } /// <summary> /// Encodes a given int value and associates it with a given key. /// </summary> /// <param name="intv">The value to encode.</param> /// <param name="forKey">The key with which to associate intv. This value must not be nil.</param> [iOSVersion(2)] [Export("encodeInt")] public virtual void EncodeInt(int intv, string forKey) { } /// <summary> /// Encodes a given 32-bit integer value and associates it with a given key. /// </summary> /// <param name="intv">The value to encode.</param> /// <param name="forKey">The key with which to associate intv. This value must not be nil.</param> [iOSVersion(2)] [Export("encodeInt32")] public virtual void EncodeInt32(int intv, string forKey) { } /// <summary> /// Encodes a given 64-bit integer value and associates it with a given key. /// </summary> /// <param name="intv">The value to encode.</param> /// <param name="forKey">The key with which to associate intv. This value must not be nil.</param> [iOSVersion(2)] [Export("encodeInt64")] public virtual void EncodeInt64(Int64 intv, string forKey) { } /// <summary> /// Encodes a given object and associates it with a given key. /// </summary> /// <param name="objv">The value to encode. This value may be nil.</param> /// <param name="forKey">The key with which to associate objv. This value must not be nil.</param> [iOSVersion(2)] [Export("encodeObject")] public virtual void EncodeObject([Optional] AnyObject objv, string forKey) { } /// <summary> /// Adds a class translation mapping to NSKeyedArchiver whereby instances of of a given class are encoded with a given class name instead of their real class names. /// </summary> /// <param name="codedName">The name of the class that NSKeyedArchiver uses in place of cls.</param> /// <param name="forClass">The class for which to set up a translation mapping.</param> [iOSVersion(2)] [Export("setClassName")] public static void SetClassName([Optional] string codedName, AnyClass forClass) { } /// <summary> /// Returns the class name with which NSKeyedArchiver encodes instances of a given class. /// </summary> /// <param name="cls">The class for which to determine the translation mapping.</param> [iOSVersion(2)] [Export("classNameForClass")] [return:Optional] public static string ClassNameForClass(AnyClass cls) { return default(string); } /// <summary> /// Adds a class translation mapping to the receiver whereby instances of of a given class are encoded with a given class name instead of their real class names. /// </summary> /// <param name="codedName">The name of the class that the receiver uses uses in place of cls.</param> /// <param name="forClass">The class for which to set up a translation mapping.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [Export("setClassName")] [IgnoreParameter("NAME_YOUR_PARAMS")] public virtual void SetClassName([Optional] string codedName, AnyClass forClass, bool NAME_YOUR_PARAMS = false) { } /// <summary> /// Returns the class name with which the receiver encodes instances of a given class. /// </summary> /// <param name="cls">The class for which to determine the translation mapping.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [Export("classNameForClass")] [return:Optional] [IgnoreParameter("NAME_YOUR_PARAMS")] public virtual string ClassNameForClass(AnyClass cls, bool NAME_YOUR_PARAMS = false) { return default(string); } /// <summary> /// The format in which the receiver encodes its data. /// </summary> [iOSVersion(2)] [Export("outputFormat")] public NSPropertyListFormat OutputFormat { get; set; } /// <summary> /// The archiver’s delegate. /// </summary> [iOSVersion(2)] [Export("delegate")] [Optional] public NSKeyedArchiverDelegate Delegate { get; set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSKeyedUnarchiver.cs b/CocoaSharp/Foundation/NSKeyedUnarchiver.cs
index bf041b57..3ad065f7 100644
--- a/CocoaSharp/Foundation/NSKeyedUnarchiver.cs
+++ b/CocoaSharp/Foundation/NSKeyedUnarchiver.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSKeyedUnarchiver, a concrete subclass of NSCoder, defines methods for decoding a set of named objects (and scalar values) from a keyed archive. Such archives are produced by instances of the NSKeyedArchiver class. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSKeyedUnarchiver_Class/index.html#//apple_ref/occ/cl/NSKeyedUnarchiver"/> [iOSVersion(2)] public class NSKeyedUnarchiver : NSCoder//, AnyObject, NSObjectProtocol { /// <summary> /// Initializes the receiver for decoding an archive previously encoded by NSKeyedArchiver. /// </summary> /// <param name="forReadingWithData">An archive previously encoded by NSKeyedArchiver.</param> [iOSVersion(2)] public NSKeyedUnarchiver(NSData forReadingWithData) { } /// <summary> /// Decodes and returns the object graph previously encoded by NSKeyedArchiver and stored in a given NSData object. /// </summary> /// <param name="data">An object graph previously encoded by NSKeyedArchiver.</param> [iOSVersion(2)] [Export("unarchiveObjectWithData")] public static AnyObject UnarchiveObjectWithData(NSData data) { return default(AnyObject); } /// <summary> /// Decodes and returns the object graph previously encoded by NSKeyedArchiver written to the file at a given path. /// </summary> /// <param name="path">A path to a file that contains an object graph previously encoded by NSKeyedArchiver.</param> [iOSVersion(2)] [Export("unarchiveObjectWithFile")] public static AnyObject UnarchiveObjectWithFile(string path) { return default(AnyObject); } /// <summary> /// Indicates whether the receiver requires all unarchived classes to conform to NSSecureCoding. /// </summary> /// <param name="flag">true if the receiver requires NSSecureCoding; false if not.</param> [iOSVersion(6)] [Export("setRequiresSecureCoding")] public void SetRequiresSecureCoding(bool flag) { } /// <summary> /// Returns a Boolean value that indicates whether the archive contains a value for a given key within the current decoding scope. /// </summary> /// <param name="key">A key in the archive within the current decoding scope. key must not be nil.</param> [iOSVersion(2)] [Export("containsValueForKey")] public bool ContainsValueForKey(string key) { return default(bool); } /// <summary> /// Decodes a Boolean value associated with a given key. /// </summary> /// <param name="key">A key in the archive within the current decoding scope. key must not be nil.</param> [iOSVersion(2)] [Export("decodeBoolForKey")] public bool DecodeBoolForKey(string key) { return default(bool); } /// <summary> /// Decodes a stream of bytes associated with a given key. /// </summary> /// <param name="key">A key in the archive within the current decoding scope. key must not be nil.</param> /// <param name="returnedLength">Upon return, contains the number of bytes returned.</param> [iOSVersion(2)] [Export("decodeBytesForKey")] public ConstUnsafePointer<UInt8> DecodeBytesForKey(string key, UnsafePointer<int> returnedLength) { return default(ConstUnsafePointer<UInt8>); } /// <summary> /// Decodes a double-precision floating-point value associated with a given key. /// </summary> /// <param name="key">A key in the archive within the current decoding scope. key must not be nil.</param> [iOSVersion(2)] [Export("decodeDoubleForKey")] public Double DecodeDoubleForKey(string key) { return default(Double); } /// <summary> /// Decodes a single-precision floating-point value associated with a given key. /// </summary> /// <param name="key">A key in the archive within the current decoding scope. key must not be nil.</param> [iOSVersion(2)] [Export("decodeFloatForKey")] public float DecodeFloatForKey(string key) { return default(float); } /// <summary> /// Decodes an integer value associated with a given key. /// </summary> /// <param name="key">A key in the archive within the current decoding scope. key must not be nil.</param> [iOSVersion(2)] [Export("decodeIntForKey")] public int DecodeIntForKey(string key) { return default(int); } /// <summary> /// Decodes a 32-bit integer value associated with a given key. /// </summary> /// <param name="key">A key in the archive within the current decoding scope. key must not be nil.</param> [iOSVersion(2)] [Export("decodeInt32ForKey")] public int DecodeInt32ForKey(string key) { return default(int); } /// <summary> /// Decodes a 64-bit integer value associated with a given key. /// </summary> /// <param name="key">A key in the archive within the current decoding scope. key must not be nil.</param> [iOSVersion(2)] [Export("decodeInt64ForKey")] public Int64 DecodeInt64ForKey(string key) { return default(Int64); } /// <summary> /// Decodes and returns an object associated with a given key. /// </summary> /// <param name="key">A key in the archive within the current decoding scope. key must not be nil.</param> [iOSVersion(2)] [Export("decodeObjectForKey")] public AnyObject DecodeObjectForKey(string key) { return default(AnyObject); } /// <summary> /// Tells the receiver that you are finished decoding objects. /// </summary> [iOSVersion(2)] [Export("finishDecoding")] public void FinishDecoding() { } /// <summary> /// Adds a class translation mapping to NSKeyedUnarchiver whereby objects encoded with a given class name are decoded as instances of a given class instead. /// </summary> /// <param name="cls">The class with which to replace instances of the class named codedName.</param> /// <param name="forClassName">The ostensible name of a class in an archive.</param> [iOSVersion(2)] [Export("setClass")] public static void SetClass(AnyClass cls, string forClassName) { } /// <summary> /// Returns the class from which NSKeyedUnarchiver instantiates an encoded object with a given class name. /// </summary> /// <param name="codedName">The ostensible name of a class in an archive.</param> [iOSVersion(2)] [Export("classForClassName")] public static AnyClass ClassForClassName(string codedName) { return default(AnyClass); } /// <summary> /// Adds a class translation mapping to the receiver whereby objects encoded with a given class name are decoded as instances of a given class instead. /// </summary> /// <param name="cls">The class with which to replace instances of the class named codedName.</param> /// <param name="forClassName">The ostensible name of a class in an archive.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [Export("setClass")] [IgnoreParameter("NAME_YOUR_PARAMS")] public void SetClass(AnyClass cls, string forClassName, bool NAME_YOUR_PARAMS = false) { } /// <summary> /// Returns the class from which the receiver instantiates an encoded object with a given class name. /// </summary> /// <param name="codedName">The name of a class.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [Export("classForClassName")] [IgnoreParameter("NAME_YOUR_PARAMS")] public AnyClass ClassForClassName(string codedName, bool NAME_YOUR_PARAMS = false) { return default(AnyClass); } /// <summary> /// Returns the receiver’s delegate. /// </summary> [iOSVersion(2)] [Export("delegate")] public NSKeyedUnarchiverDelegate Delegate { get; set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSKeyedUnarchiver, a concrete subclass of NSCoder, defines methods for decoding a set of named objects (and scalar values) from a keyed archive. Such archives are produced by instances of the NSKeyedArchiver class. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSKeyedUnarchiver_Class/index.html#//apple_ref/occ/cl/NSKeyedUnarchiver"/> [iOSVersion(2)] [Export("")] public class NSKeyedUnarchiver : NSCoder//, AnyObject, CVarArgType, Equatable, Hashable, NSObjectProtocol, Printable { public NSKeyedUnarchiver() { } /// <summary> /// Initializes the receiver for decoding an archive previously encoded by NSKeyedArchiver. /// </summary> /// <param name="forReadingWithData">An archive previously encoded by NSKeyedArchiver.</param> [iOSVersion(2)] public NSKeyedUnarchiver(NSData forReadingWithData) { } /// <summary> /// Decodes and returns the object graph previously encoded by NSKeyedArchiver and stored in a given NSData object. /// </summary> /// <param name="data">An object graph previously encoded by NSKeyedArchiver.</param> [iOSVersion(2)] [Export("unarchiveObjectWithData")] [return:Optional] public static AnyObject UnarchiveObjectWithData(NSData data) { return default(AnyObject); } /// <summary> /// Decodes and returns the object graph previously encoded by NSKeyedArchiver written to the file at a given path. /// </summary> /// <param name="path">A path to a file that contains an object graph previously encoded by NSKeyedArchiver.</param> [iOSVersion(2)] [Export("unarchiveObjectWithFile")] [return:Optional] public static AnyObject UnarchiveObjectWithFile(string path) { return default(AnyObject); } /// <summary> /// Indicates whether the receiver requires all unarchived classes to conform to NSSecureCoding. /// </summary> /// <param name="flag">true if the receiver requires NSSecureCoding; false if not.</param> [iOSVersion(6)] [Export("setRequiresSecureCoding")] public virtual void SetRequiresSecureCoding(bool flag) { } /// <summary> /// Returns a Boolean value that indicates whether the archive contains a value for a given key within the current decoding scope. /// </summary> /// <param name="key">A key in the archive within the current decoding scope. key must not be nil.</param> [iOSVersion(2)] [Export("containsValueForKey")] public virtual bool ContainsValueForKey(string key) { return default(bool); } /// <summary> /// Decodes a Boolean value associated with a given key. /// </summary> /// <param name="key">A key in the archive within the current decoding scope. key must not be nil.</param> [iOSVersion(2)] [Export("decodeBoolForKey")] public virtual bool DecodeBoolForKey(string key) { return default(bool); } /// <summary> /// Decodes a stream of bytes associated with a given key. /// </summary> /// <param name="key">A key in the archive within the current decoding scope. key must not be nil.</param> /// <param name="returnedLength">Upon return, contains the number of bytes returned.</param> [iOSVersion(2)] [Export("decodeBytesForKey")] public virtual UnsafePointer<UInt8> DecodeBytesForKey(string key, UnsafeMutablePointer<int> returnedLength) { return default(UnsafePointer<UInt8>); } /// <summary> /// Decodes a double-precision floating-point value associated with a given key. /// </summary> /// <param name="key">A key in the archive within the current decoding scope. key must not be nil.</param> [iOSVersion(2)] [Export("decodeDoubleForKey")] public virtual Double DecodeDoubleForKey(string key) { return default(Double); } /// <summary> /// Decodes a single-precision floating-point value associated with a given key. /// </summary> /// <param name="key">A key in the archive within the current decoding scope. key must not be nil.</param> [iOSVersion(2)] [Export("decodeFloatForKey")] public virtual float DecodeFloatForKey(string key) { return default(float); } /// <summary> /// Decodes an integer value associated with a given key. /// </summary> /// <param name="key">A key in the archive within the current decoding scope. key must not be nil.</param> [iOSVersion(2)] [Export("decodeIntForKey")] public virtual int DecodeIntForKey(string key) { return default(int); } /// <summary> /// Decodes a 32-bit integer value associated with a given key. /// </summary> /// <param name="key">A key in the archive within the current decoding scope. key must not be nil.</param> [iOSVersion(2)] [Export("decodeInt32ForKey")] public virtual int DecodeInt32ForKey(string key) { return default(int); } /// <summary> /// Decodes a 64-bit integer value associated with a given key. /// </summary> /// <param name="key">A key in the archive within the current decoding scope. key must not be nil.</param> [iOSVersion(2)] [Export("decodeInt64ForKey")] public virtual Int64 DecodeInt64ForKey(string key) { return default(Int64); } /// <summary> /// Decodes and returns an object associated with a given key. /// </summary> /// <param name="key">A key in the archive within the current decoding scope. key must not be nil.</param> [iOSVersion(2)] [Export("decodeObjectForKey")] [return:Optional] public virtual AnyObject DecodeObjectForKey(string key) { return default(AnyObject); } /// <summary> /// Tells the receiver that you are finished decoding objects. /// </summary> [iOSVersion(2)] [Export("finishDecoding")] public virtual void FinishDecoding() { } /// <summary> /// Adds a class translation mapping to NSKeyedUnarchiver whereby objects encoded with a given class name are decoded as instances of a given class instead. /// </summary> /// <param name="cls">The class with which to replace instances of the class named codedName.</param> /// <param name="forClassName">The ostensible name of a class in an archive.</param> [iOSVersion(2)] [Export("setClass")] public static void SetClass([Optional] AnyClass cls, string forClassName) { } /// <summary> /// Returns the class from which NSKeyedUnarchiver instantiates an encoded object with a given class name. /// </summary> /// <param name="codedName">The ostensible name of a class in an archive.</param> [iOSVersion(2)] [Export("classForClassName")] [return:Optional] public static AnyClass ClassForClassName(string codedName) { return default(AnyClass); } /// <summary> /// Adds a class translation mapping to the receiver whereby objects encoded with a given class name are decoded as instances of a given class instead. /// </summary> /// <param name="cls">The class with which to replace instances of the class named codedName.</param> /// <param name="forClassName">The ostensible name of a class in an archive.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [Export("setClass")] [IgnoreParameter("NAME_YOUR_PARAMS")] public virtual void SetClass([Optional] AnyClass cls, string forClassName, bool NAME_YOUR_PARAMS = false) { } /// <summary> /// Returns the class from which the receiver instantiates an encoded object with a given class name. /// </summary> /// <param name="codedName">The name of a class.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [Export("classForClassName")] [return:Optional] [IgnoreParameter("NAME_YOUR_PARAMS")] public virtual AnyClass ClassForClassName(string codedName, bool NAME_YOUR_PARAMS = false) { return default(AnyClass); } /// <summary> /// The receiver’s delegate. /// </summary> [iOSVersion(2)] [Export("delegate")] [Optional] public NSKeyedUnarchiverDelegate Delegate { get; set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSLengthFormatter.cs b/CocoaSharp/Foundation/NSLengthFormatter.cs
new file mode 100644
index 00000000..5555f892
--- /dev/null
+++ b/CocoaSharp/Foundation/NSLengthFormatter.cs
@@ -0,0 +1 @@
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSLengthFormatter class provides properly formatted, localized descriptions of linear distances (for example, length and height measurements). Use this class to create localized length strings when displaying distance information to users. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Miscellaneous/Reference/NSLengthFormatter_Class/index.html#//apple_ref/occ/cl/NSLengthFormatter"/> [iOSVersion(8)] [Export("")] public class NSLengthFormatter : NSFormatter//, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSObjectProtocol, Printable { public NSLengthFormatter() { } /// <summary> /// This method is not supported for the NSLengthFormatter class. /// </summary> /// <param name="obj">An output parameter. If overridden, this parameter should contain the object created from the provided string.</param> /// <param name="forString">A string representation of the object.</param> /// <param name="errorDescription">An output parameter. If overridden, this parameter should contain a description of any errors that occur. If you do not want to receive error messages, set this parameter to NULL.</param> [iOSVersion(8)] [Export("getObjectValue")] public virtual bool GetObjectValue(AutoreleasingUnsafeMutablePointer<AnyObject> obj, string forString, AutoreleasingUnsafeMutablePointer<string> errorDescription) { return default(bool); } /// <summary> /// Returns a length string for the provided value. /// </summary> /// <param name="numberInMeters">The length’s value in meters.</param> [iOSVersion(8)] [Export("stringFromMeters")] public virtual string StringFromMeters(Double numberInMeters) { return default(string); } /// <summary> /// Returns a properly formatted length string for the given value and unit. /// </summary> /// <param name="value">The length’s value in the given unit.</param> /// <param name="unit">The unit used in the resulting length string.</param> [iOSVersion(8)] [Export("stringFromValue")] public virtual string StringFromValue(Double value, NSLengthFormatterUnit unit) { return default(string); } /// <summary> /// Returns the unit string for the provided value. /// </summary> /// <param name="numberInMeters">The length’s value in meters.</param> /// <param name="usedUnit">An output parameter. This will hold the NSLengthFormatterUnit value that corresponds to the returned units.</param> [iOSVersion(8)] [Export("unitStringFromMeters")] public virtual string UnitStringFromMeters(Double numberInMeters, UnsafeMutablePointer<NSLengthFormatterUnit> usedUnit) { return default(string); } /// <summary> /// Returns the unit string based on the provided value and unit. /// </summary> /// <param name="value">The length’s value for the provided unit.</param> /// <param name="unit">The unit to use in the resulting length string.</param> [iOSVersion(8)] [Export("unitStringFromValue")] public virtual string UnitStringFromValue(Double value, NSLengthFormatterUnit unit) { return default(string); } /// <summary> /// A Boolean value that indicates whether the resulting string represents a person’s height. /// </summary> [iOSVersion(8)] [Export("forPersonHeightUse")] public bool ForPersonHeightUse { get; set; } /// <summary> /// The number formatter used to format the numbers in length strings. /// </summary> [iOSVersion(8)] [Export("numberFormatter")] [Unwrapped] public NSNumberFormatter NumberFormatter { get; set; } /// <summary> /// The unit style used by this formatter. /// </summary> [iOSVersion(8)] [Export("unitStyle")] public NSFormattingUnitStyle UnitStyle { get; set; } } /// <summary> /// The units supported by the NSLengthFormatter class. /// </summary> public enum NSLengthFormatterUnit { /// <summary> /// The millimeter unit. /// </summary> [iOSVersion(8)] Millimeter, /// <summary> /// The centimeter unit. /// </summary> [iOSVersion(8)] Centimeter, /// <summary> /// The meter unit. /// </summary> [iOSVersion(8)] Meter, /// <summary> /// The kilometer unit. /// </summary> [iOSVersion(8)] Kilometer, /// <summary> /// The inch unit. /// </summary> [iOSVersion(8)] Inch, /// <summary> /// The foot unit. /// </summary> [iOSVersion(8)] Foot, /// <summary> /// The yard unit. /// </summary> [iOSVersion(8)] Yard, /// <summary> /// The mile unit. /// </summary> [iOSVersion(8)] Mile, } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSLinguisticTagger.cs b/CocoaSharp/Foundation/NSLinguisticTagger.cs
index a6605f07..fcd4cbee 100644
--- a/CocoaSharp/Foundation/NSLinguisticTagger.cs
+++ b/CocoaSharp/Foundation/NSLinguisticTagger.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSLinguisticTagger class is used to automatically segment natural-language text and tag it with information, such as parts of speech. It can also tag languages, scripts, stem forms of words, etc. An instance of this class is assigned a string to tag, and clients can then obtain tags and ranges for tokens in that string appropriate to a given tag scheme. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/NSLinguisticTagger_Class/index.html#//apple_ref/occ/cl/NSLinguisticTagger"/> [iOSVersion(5)] public class NSLinguisticTagger : NSObject//, AnyObject, NSObjectProtocol { /// <summary> /// Creates a linguistic tagger instance using the specified tag schemes and options. /// </summary> /// <param name="tagSchemes">An array of tag schemes. See Linguistic Tag Schemes for the possible values.</param> /// <param name="options">The linguistic tagger options to use. See NSLinguisticTaggerOptions for the constants. These constants can be combined using the C-Bitwise OR operator.</param> [iOSVersion(5)] public NSLinguisticTagger(AnyObject[] tagSchemes, int options) { } /// <summary> /// Returns the tag schemes supported by the linguistic tagger for a particular language. /// </summary> /// <param name="language">A standard abbreviation as with NSOrthography.</param> [iOSVersion(5)] [Export("availableTagSchemesForLanguage")] public static AnyObject[] AvailableTagSchemesForLanguage(string language) { return default(AnyObject[]); } /// <summary> /// Notifies the linguistic tagger that the string (if mutable) has changed as specified by the parameters. /// </summary> /// <param name="newCharRange">The range in the final string that was edited.</param> /// <param name="changeInLength">The change in length.</param> [iOSVersion(5)] [Export("stringEditedInRange")] public void StringEditedInRange(NSRange newCharRange, int changeInLength) { } /// <summary> /// Sets the orthography for the specified range. /// </summary> /// <param name="orthography">The orthography.</param> /// <param name="range">The range.</param> [iOSVersion(5)] [Export("setOrthography")] public void SetOrthography(NSOrthography orthography, NSRange range) { } /// <summary> /// Returns the orthography at the index and also returns the effective range. /// </summary> /// <param name="charIndex">The character index to begin examination.</param> /// <param name="effectiveRange">An NSRangePointer that, upon completion, contains the range of the orthography containing charIndex.</param> [iOSVersion(5)] [Export("orthographyAtIndex")] public NSOrthography OrthographyAtIndex(int charIndex, NSRangePointer effectiveRange) { return default(NSOrthography); } /// <summary> /// Enumerates the specific range of the string, providing the Block with the located tags. /// </summary> /// <param name="range">The range to analyze</param> /// <param name="scheme">The tag scheme.</param> /// <param name="options">The linguistic tagger options to use. See NSLinguisticTaggerOptions for the constants. These constants can be combined using the C Bitwise operator.</param> /// <param name="usingBlock">The Block to apply to ranges of the string. /// The Block takes four arguments: /// tag /// The located linguistic tag. /// tokenRange /// The range of the linguistic tag. /// sentenceRange /// The range of the sentence in which the tag occurs. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the set. The stop argument is an out-only argument. You should only ever set this Boolean to true within the Block.</param> [iOSVersion(5)] [Export("enumerateTagsInRange")] public void EnumerateTagsInRange(NSRange range, string scheme, NSLinguisticTaggerOptions options, Action<string, NSRange, NSRange, UnsafePointer<ObjCBool>> usingBlock) { } /// <summary> /// Returns an array of possible tags for the given scheme at the specified range, supplying matching scores. /// </summary> /// <param name="charIndex">The initial character index.</param> /// <param name="scheme">The tag scheme. See Linguistic Tag Schemes for the possible values.</param> /// <param name="tokenRange">The token range.</param> /// <param name="sentenceRange">The range of the sentence.</param> /// <param name="scores">Returns by-reference an array of numeric scores (wrapped as NSValue objects) indicating the likelihood that the range matches the tag scheme.</param> [iOSVersion(5)] [Export("possibleTagsAtIndex")] public AnyObject[] PossibleTagsAtIndex(int charIndex, string scheme, NSRangePointer tokenRange, NSRangePointer sentenceRange, AutoreleasingUnsafePointer<NSArray> scores) { return default(AnyObject[]); } /// <summary> /// Returns a tag for a single scheme at the specified index. /// </summary> /// <param name="charIndex">The initial character index.</param> /// <param name="scheme">The tag scheme. See Linguistic Tag Schemes for the possible values.</param> /// <param name="tokenRange">A pointer to the token range. If NULL, no pointer range is returned.</param> /// <param name="sentenceRange">A pointer to the range of the sentence. If NULL, no pointer range is returned.</param> [iOSVersion(5)] [Export("tagAtIndex")] public string TagAtIndex(int charIndex, string scheme, NSRangePointer tokenRange, NSRangePointer sentenceRange) { return default(string); } /// <summary> /// Returns an array of linguistic tags and token ranges. /// </summary> /// <param name="range">The range from which to return tags.</param> /// <param name="scheme">The tag scheme. See Linguistic Tag Schemes for the possible values.</param> /// <param name="options">The linguistic tagger options to use. See NSLinguisticTaggerOptions for the constants. These constants can be combined using the C-Bitwise OR operator.</param> /// <param name="tokenRanges">Returns by-reference an array of token range objects wrapped in NSValue objects.</param> [iOSVersion(5)] [Export("tagsInRange")] public AnyObject[] TagsInRange(NSRange range, string scheme, NSLinguisticTaggerOptions options, AutoreleasingUnsafePointer<NSArray> tokenRanges) { return default(AnyObject[]); } /// <summary> /// Returns the range of a sentence boundary containing the specified range. /// </summary> /// <param name="charRange">The range.</param> [iOSVersion(5)] [Export("sentenceRangeForRange")] public NSRange SentenceRangeForRange(NSRange charRange) { return default(NSRange); } /// <summary> /// Returns the tag schemes supported by the linguistic tagger for a particular language. /// </summary> [iOSVersion(5)] [Export("tagSchemes")] public AnyObject[] TagSchemes { get; private set; } /// <summary> /// Returns the string being analyzed by the linguistic tagger. /// </summary> [iOSVersion(5)] [Export("string")] public string String { get; set; } } /// <summary> /// These constants specify the linguistic tagger options. They can be combined using the C-Bitwise OR operator. /// </summary> [iOSVersion(5)] public enum NSLinguisticTaggerOptions { /// <summary> /// Omit tokens of type NSLinguisticTagWord (items considered to be words). /// </summary> [iOSVersion(5)] OmitWords, /// <summary> /// Omit tokens of type NSLinguisticTagPunctuation (all punctuation). /// </summary> [iOSVersion(5)] OmitPunctuation, /// <summary> /// Omit tokens of type NSLinguisticTagWhitespace (whitespace of all sorts). /// </summary> [iOSVersion(5)] OmitWhitespace, /// <summary> /// Omit tokens of type NSLinguisticTagOther (non-linguistic items such as symbols). /// </summary> [iOSVersion(5)] OmitOther, /// <summary> /// Typically, multiple-word names will be returned as multiple tokens, following the standard tokenization practice of the tagger. If this option is set, then multiple-word names will be joined together and returned as a single token. /// </summary> [iOSVersion(5)] JoinNames, } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSLinguisticTagger class is used to automatically segment natural-language text and tag it with information, such as parts of speech. It can also tag languages, scripts, stem forms of words, etc. An instance of this class is assigned a string to tag, and clients can then obtain tags and ranges for tokens in that string appropriate to a given tag scheme. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/NSLinguisticTagger_Class/index.html#//apple_ref/occ/cl/NSLinguisticTagger"/> [iOSVersion(5)] [Export("")] public class NSLinguisticTagger : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSObjectProtocol, Printable { public NSLinguisticTagger() { } /// <summary> /// Creates a linguistic tagger instance using the specified tag schemes and options. /// </summary> /// <param name="tagSchemes">An array of tag schemes. See Linguistic Tag Schemes for the possible values.</param> /// <param name="options">The linguistic tagger options to use. See NSLinguisticTaggerOptions for the constants. These constants can be combined using the C-Bitwise OR operator.</param> [iOSVersion(5)] public NSLinguisticTagger(AnyObject[] tagSchemes, int options) { } /// <summary> /// Returns the tag schemes supported by the linguistic tagger for a particular language. /// </summary> /// <param name="language">A standard abbreviation as with NSOrthography.</param> [iOSVersion(5)] [Export("availableTagSchemesForLanguage")] public static AnyObject[] AvailableTagSchemesForLanguage(string language) { return default(AnyObject[]); } /// <summary> /// Notifies the linguistic tagger that the string (if mutable) has changed as specified by the parameters. /// </summary> /// <param name="newCharRange">The range in the final string that was edited.</param> /// <param name="changeInLength">The change in length.</param> [iOSVersion(5)] [Export("stringEditedInRange")] public virtual void StringEditedInRange(NSRange newCharRange, int changeInLength) { } /// <summary> /// Sets the orthography for the specified range. /// </summary> /// <param name="orthography">The orthography.</param> /// <param name="range">The range.</param> [iOSVersion(5)] [Export("setOrthography")] public virtual void SetOrthography([Optional] NSOrthography orthography, NSRange range) { } /// <summary> /// Returns the orthography at the index and also returns the effective range. /// </summary> /// <param name="charIndex">The character index to begin examination.</param> /// <param name="effectiveRange">An NSRangePointer that, upon completion, contains the range of the orthography containing charIndex.</param> [iOSVersion(5)] [Export("orthographyAtIndex")] [return:Optional] public virtual NSOrthography OrthographyAtIndex(int charIndex, NSRangePointer effectiveRange) { return default(NSOrthography); } /// <summary> /// Enumerates the specific range of the string, providing the Block with the located tags. /// </summary> /// <param name="range">The range to analyze</param> /// <param name="scheme">The tag scheme.</param> /// <param name="options">The linguistic tagger options to use. See NSLinguisticTaggerOptions for the constants. These constants can be combined using the C Bitwise operator.</param> /// <param name="usingBlock">The Block to apply to ranges of the string. /// The Block takes four arguments: /// tag /// The located linguistic tag. /// tokenRange /// The range of the linguistic tag. /// sentenceRange /// The range of the sentence in which the tag occurs. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the set. The stop argument is an out-only argument. You should only ever set this Boolean to true within the Block.</param> [iOSVersion(5)] [Export("enumerateTagsInRange")] public virtual void EnumerateTagsInRange(NSRange range, string scheme, NSLinguisticTaggerOptions options, Action<string, NSRange, NSRange, UnsafeMutablePointer<ObjCBool>> usingBlock) { } /// <summary> /// Returns an array of possible tags for the given scheme at the specified range, supplying matching scores. /// </summary> /// <param name="charIndex">The initial character index.</param> /// <param name="scheme">The tag scheme. See Linguistic Tag Schemes for the possible values.</param> /// <param name="tokenRange">The token range.</param> /// <param name="sentenceRange">The range of the sentence.</param> /// <param name="scores">Returns by-reference an array of numeric scores (wrapped as NSValue objects) indicating the likelihood that the range matches the tag scheme.</param> [iOSVersion(5)] [Export("possibleTagsAtIndex")] public virtual AnyObject[] PossibleTagsAtIndex(int charIndex, string scheme, NSRangePointer tokenRange, NSRangePointer sentenceRange, AutoreleasingUnsafeMutablePointer<NSArray> scores) { return default(AnyObject[]); } /// <summary> /// Returns a tag for a single scheme at the specified index. /// </summary> /// <param name="charIndex">The initial character index.</param> /// <param name="scheme">The tag scheme. See Linguistic Tag Schemes for the possible values.</param> /// <param name="tokenRange">A pointer to the token range. If NULL, no pointer range is returned.</param> /// <param name="sentenceRange">A pointer to the range of the sentence. If NULL, no pointer range is returned.</param> [iOSVersion(5)] [Export("tagAtIndex")] [return:Optional] public virtual string TagAtIndex(int charIndex, string scheme, NSRangePointer tokenRange, NSRangePointer sentenceRange) { return default(string); } /// <summary> /// Returns an array of linguistic tags and token ranges. /// </summary> /// <param name="range">The range from which to return tags.</param> /// <param name="scheme">The tag scheme. See Linguistic Tag Schemes for the possible values.</param> /// <param name="options">The linguistic tagger options to use. See NSLinguisticTaggerOptions for the constants. These constants can be combined using the C-Bitwise OR operator.</param> /// <param name="tokenRanges">Returns by-reference an array of token range objects wrapped in NSValue objects.</param> [iOSVersion(5)] [Export("tagsInRange")] public virtual AnyObject[] TagsInRange(NSRange range, string scheme, NSLinguisticTaggerOptions options, AutoreleasingUnsafeMutablePointer<NSArray> tokenRanges) { return default(AnyObject[]); } /// <summary> /// Returns the range of a sentence boundary containing the specified range. /// </summary> /// <param name="charRange">The range.</param> [iOSVersion(5)] [Export("sentenceRangeForRange")] public virtual NSRange SentenceRangeForRange(NSRange charRange) { return default(NSRange); } /// <summary> /// The tag schemes configured for this linguistic tagger. (read-only) /// </summary> [iOSVersion(5)] [Export("tagSchemes")] public AnyObject[] TagSchemes { get; private set; } /// <summary> /// The string being analyzed by the linguistic tagger. /// </summary> [iOSVersion(5)] [Export("string")] [Optional] public string String { get; set; } } /// <summary> /// These constants specify the linguistic tagger options. They can be combined using the C-Bitwise OR operator. /// </summary> public enum NSLinguisticTaggerOptions { /// <summary> /// Omit tokens of type NSLinguisticTagWord (items considered to be words). /// </summary> [iOSVersion(5)] OmitWords, /// <summary> /// Omit tokens of type NSLinguisticTagPunctuation (all punctuation). /// </summary> [iOSVersion(5)] OmitPunctuation, /// <summary> /// Omit tokens of type NSLinguisticTagWhitespace (whitespace of all sorts). /// </summary> [iOSVersion(5)] OmitWhitespace, /// <summary> /// Omit tokens of type NSLinguisticTagOther (non-linguistic items such as symbols). /// </summary> [iOSVersion(5)] OmitOther, /// <summary> /// Typically, multiple-word names will be returned as multiple tokens, following the standard tokenization practice of the tagger. If this option is set, then multiple-word names will be joined together and returned as a single token. /// </summary> [iOSVersion(5)] JoinNames, } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSLocale.cs b/CocoaSharp/Foundation/NSLocale.cs
index 24819102..591dceae 100644
--- a/CocoaSharp/Foundation/NSLocale.cs
+++ b/CocoaSharp/Foundation/NSLocale.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// Locales encapsulate information about linguistic, cultural, and technological conventions and standards. Examples of information encapsulated by a locale include the symbol used for the decimal separator in numbers and the way dates are formatted. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSLocale_Class/index.html#//apple_ref/occ/cl/NSLocale"/> [iOSVersion(2)] public class NSLocale : NSObject//, AnyObject, NSCoding, NSCopying, NSObjectProtocol, NSSecureCoding { /// <summary> /// Initializes the receiver using a given locale identifier. /// </summary> /// <param name="localeIdentifier">The identifier for the new locale.</param> [iOSVersion(2)] public NSLocale(string localeIdentifier) { } /// <summary> /// Returns the current logical locale for the current user. /// </summary> [iOSVersion(2)] [Export("autoupdatingCurrentLocale")] public static NSLocale AutoupdatingCurrentLocale() { return default(NSLocale); } /// <summary> /// Returns the logical locale for the current user. /// </summary> [iOSVersion(2)] [Export("currentLocale")] public static NSLocale CurrentLocale() { return default(NSLocale); } /// <summary> /// Returns the generic locale that contains fixed “backstop” settings that provide values for otherwise undefined keys. /// </summary> [iOSVersion(2)] [Export("systemLocale")] public static NSLocale SystemLocale() { return default(NSLocale); } /// <summary> /// Returns the display name for the given value. /// </summary> /// <param name="key">Specifies which of the locale property keys value is (see Constants),</param> /// <param name="value">A value for key.</param> [iOSVersion(2)] [Export("displayNameForKey")] public string DisplayNameForKey(AnyObject key, AnyObject value) { return default(string); } /// <summary> /// Returns the object corresponding to the specified key. /// </summary> /// <param name="key">The key for which to return the corresponding value. For valid values of key, see Constants.</param> [iOSVersion(2)] [Export("objectForKey")] public AnyObject ObjectForKey(AnyObject key) { return default(AnyObject); } /// <summary> /// Returns an array of NSString objects, each of which identifies a locale available on the system. /// </summary> [iOSVersion(2)] [Export("availableLocaleIdentifiers")] public static AnyObject[] AvailableLocaleIdentifiers() { return default(AnyObject[]); } /// <summary> /// Returns an array of NSString objects that represents all known legal country codes. /// </summary> [iOSVersion(2)] public static AnyObject[] ISOCountryCodes() { return default(AnyObject[]); } /// <summary> /// Returns an array of NSString objects that represents all known legal ISO currency codes. /// </summary> [iOSVersion(2)] public static AnyObject[] ISOCurrencyCodes() { return default(AnyObject[]); } /// <summary> /// Returns an array of NSString objects that represents all known legal ISO language codes. /// </summary> [iOSVersion(2)] public static AnyObject[] ISOLanguageCodes() { return default(AnyObject[]); } /// <summary> /// Returns an array of common ISO currency codes /// </summary> [iOSVersion(2)] [Export("commonISOCurrencyCodes")] public static AnyObject[] CommonISOCurrencyCodes() { return default(AnyObject[]); } /// <summary> /// Returns the canonical identifier for a given locale identification string. /// </summary> /// <param name="@string">A locale identification string.</param> [iOSVersion(2)] [Export("canonicalLocaleIdentifierFromString")] public static string CanonicalLocaleIdentifierFromString(string @string) { return default(string); } /// <summary> /// Returns a dictionary that is the result of parsing a locale ID. /// </summary> /// <param name="@string">A locale ID, consisting of language, script, country, variant, and keyword/value pairs, for example, &quot;en_US@calendar=japanese&quot;.</param> [iOSVersion(2)] [Export("componentsFromLocaleIdentifier")] public static Dictionary<NSObject, AnyObject> ComponentsFromLocaleIdentifier(string @string) { return default(Dictionary<NSObject, AnyObject>); } /// <summary> /// Returns a locale identifier from the components specified in a given dictionary. /// </summary> /// <param name="dict">A dictionary containing components that specify a locale. For valid dictionary keys, see Constants.</param> [iOSVersion(2)] [Export("localeIdentifierFromComponents")] public static string LocaleIdentifierFromComponents(Dictionary<NSObject, AnyObject> dict) { return default(string); } /// <summary> /// Returns a canonical language identifier by mapping an arbitrary locale identification string to the canonical identifier. /// </summary> /// <param name="@string">A string representation of an arbitrary locale identifier.</param> [iOSVersion(4)] [Export("canonicalLanguageIdentifierFromString")] public static string CanonicalLanguageIdentifierFromString(string @string) { return default(string); } /// <summary> /// Returns a locale identifier from a Windows locale code. /// </summary> /// <param name="lcid">The Windows locale code.</param> [iOSVersion(4)] [Export("localeIdentifierFromWindowsLocaleCode")] public static string LocaleIdentifierFromWindowsLocaleCode(uint lcid) { return default(string); } /// <summary> /// Returns a Window locale code from the locale identifier. /// </summary> /// <param name="localeIdentifier">The locale identifier.</param> [iOSVersion(4)] [Export("windowsLocaleCodeFromLocaleIdentifier")] public static uint WindowsLocaleCodeFromLocaleIdentifier(string localeIdentifier) { return default(uint); } /// <summary> /// Returns the user's language preference order as an array of strings. /// </summary> [iOSVersion(2)] [Export("preferredLanguages")] public static AnyObject[] PreferredLanguages() { return default(AnyObject[]); } /// <summary> /// Returns the character direction for the specified ISO language code. /// </summary> /// <param name="isoLangCode">The ISO language code.</param> [iOSVersion(4)] [Export("characterDirectionForLanguage")] public static NSLocaleLanguageDirection CharacterDirectionForLanguage(string isoLangCode) { return default(NSLocaleLanguageDirection); } /// <summary> /// Returns the line direction for the specified ISO language code. /// </summary> /// <param name="isoLangCode">The ISO language code.</param> [iOSVersion(4)] [Export("lineDirectionForLanguage")] public static NSLocaleLanguageDirection LineDirectionForLanguage(string isoLangCode) { return default(NSLocaleLanguageDirection); } /// <summary> /// The identifier for the receiver. (read-only) /// </summary> [iOSVersion(2)] [Export("localeIdentifier")] public string LocaleIdentifier { get; private set; } } /// <summary> /// These constants describe the text direction for a language. Used by the methods lineDirectionForLanguage: and characterDirectionForLanguage:. /// </summary> [iOSVersion(4)] public enum NSLocaleLanguageDirection { /// <summary> /// The direction of the language is unknown. /// </summary> [iOSVersion(4)] Unknown, /// <summary> /// The language direction is from left to right. /// </summary> [iOSVersion(4)] LeftToRight, /// <summary> /// The language direction is from right to left. /// </summary> [iOSVersion(4)] RightToLeft, /// <summary> /// The language direction is from top to bottom. /// </summary> [iOSVersion(4)] TopToBottom, /// <summary> /// The language direction is from bottom to top. /// </summary> [iOSVersion(4)] BottomToTop, } /// <summary> /// /// </summary> [iOSVersion(2)] public class NSCurrentLocaleDidChangeNotification : NSNotification { public NSCurrentLocaleDidChangeNotification() : base("", null) { } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// Locales encapsulate information about linguistic, cultural, and technological conventions and standards. Examples of information encapsulated by a locale include the symbol used for the decimal separator in numbers and the way dates are formatted. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSLocale_Class/index.html#//apple_ref/occ/cl/NSLocale"/> [iOSVersion(2)] [Export("")] public class NSLocale : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSObjectProtocol, NSSecureCoding, Printable { public NSLocale() { } /// <summary> /// Initializes the receiver using a given locale identifier. /// </summary> /// <param name="localeIdentifier">The identifier for the new locale.</param> [iOSVersion(2)] public NSLocale(string localeIdentifier) { } /// <summary> /// Returns the current logical locale for the current user. /// </summary> [iOSVersion(2)] [Export("autoupdatingCurrentLocale")] public static NSLocale AutoupdatingCurrentLocale() { return default(NSLocale); } /// <summary> /// Returns the logical locale for the current user. /// </summary> [iOSVersion(2)] [Export("currentLocale")] public static NSLocale CurrentLocale() { return default(NSLocale); } /// <summary> /// Returns the generic locale that contains fixed “backstop” settings that provide values for otherwise undefined keys. /// </summary> [iOSVersion(2)] [Export("systemLocale")] public static NSLocale SystemLocale() { return default(NSLocale); } /// <summary> /// Returns the display name for the given value. /// </summary> /// <param name="key">Specifies which of the locale property keys value is (see Constants),</param> /// <param name="value">A value for key.</param> [iOSVersion(2)] [Export("displayNameForKey")] [return:Optional] public virtual string DisplayNameForKey(AnyObject key, AnyObject value) { return default(string); } /// <summary> /// Returns the object corresponding to the specified key. /// </summary> /// <param name="key">The key for which to return the corresponding value. For valid values of key, see Constants.</param> [iOSVersion(2)] [Export("objectForKey")] [return:Optional] public virtual AnyObject ObjectForKey(AnyObject key) { return default(AnyObject); } /// <summary> /// Returns an array of NSString objects, each of which identifies a locale available on the system. /// </summary> [iOSVersion(2)] [Export("availableLocaleIdentifiers")] public static AnyObject[] AvailableLocaleIdentifiers() { return default(AnyObject[]); } /// <summary> /// Returns an array of NSString objects that represents all known legal country codes. /// </summary> [iOSVersion(2)] public static AnyObject[] ISOCountryCodes() { return default(AnyObject[]); } /// <summary> /// Returns an array of NSString objects that represents all known legal ISO currency codes. /// </summary> [iOSVersion(2)] public static AnyObject[] ISOCurrencyCodes() { return default(AnyObject[]); } /// <summary> /// Returns an array of NSString objects that represents all known legal ISO language codes. /// </summary> [iOSVersion(2)] public static AnyObject[] ISOLanguageCodes() { return default(AnyObject[]); } /// <summary> /// Returns an array of common ISO currency codes /// </summary> [iOSVersion(2)] [Export("commonISOCurrencyCodes")] public static AnyObject[] CommonISOCurrencyCodes() { return default(AnyObject[]); } /// <summary> /// Returns the canonical identifier for a given locale identification string. /// </summary> /// <param name="@string">A locale identification string.</param> [iOSVersion(2)] [Export("canonicalLocaleIdentifierFromString")] public static string CanonicalLocaleIdentifierFromString(string @string) { return default(string); } /// <summary> /// Returns a dictionary that is the result of parsing a locale ID. /// </summary> /// <param name="@string">A locale ID, consisting of language, script, country, variant, and keyword/value pairs, for example, &quot;en_US@calendar=japanese&quot;.</param> [iOSVersion(2)] [Export("componentsFromLocaleIdentifier")] public static Dictionary<NSObject, AnyObject> ComponentsFromLocaleIdentifier(string @string) { return default(Dictionary<NSObject, AnyObject>); } /// <summary> /// Returns a locale identifier from the components specified in a given dictionary. /// </summary> /// <param name="dict">A dictionary containing components that specify a locale. For valid dictionary keys, see Constants.</param> [iOSVersion(2)] [Export("localeIdentifierFromComponents")] public static string LocaleIdentifierFromComponents(Dictionary<NSObject, AnyObject> dict) { return default(string); } /// <summary> /// Returns a canonical language identifier by mapping an arbitrary locale identification string to the canonical identifier. /// </summary> /// <param name="@string">A string representation of an arbitrary locale identifier.</param> [iOSVersion(4)] [Export("canonicalLanguageIdentifierFromString")] public static string CanonicalLanguageIdentifierFromString(string @string) { return default(string); } /// <summary> /// Returns a locale identifier from a Windows locale code. /// </summary> /// <param name="lcid">The Windows locale code.</param> [iOSVersion(4)] [Export("localeIdentifierFromWindowsLocaleCode")] [return:Optional] public static string LocaleIdentifierFromWindowsLocaleCode(uint lcid) { return default(string); } /// <summary> /// Returns a Window locale code from the locale identifier. /// </summary> /// <param name="localeIdentifier">The locale identifier.</param> [iOSVersion(4)] [Export("windowsLocaleCodeFromLocaleIdentifier")] public static uint WindowsLocaleCodeFromLocaleIdentifier(string localeIdentifier) { return default(uint); } /// <summary> /// Returns the user&#39;s language preference order as an array of strings. /// </summary> [iOSVersion(2)] [Export("preferredLanguages")] public static AnyObject[] PreferredLanguages() { return default(AnyObject[]); } /// <summary> /// Returns the character direction for the specified ISO language code. /// </summary> /// <param name="isoLangCode">The ISO language code.</param> [iOSVersion(4)] [Export("characterDirectionForLanguage")] public static NSLocaleLanguageDirection CharacterDirectionForLanguage(string isoLangCode) { return default(NSLocaleLanguageDirection); } /// <summary> /// Returns the line direction for the specified ISO language code. /// </summary> /// <param name="isoLangCode">The ISO language code.</param> [iOSVersion(4)] [Export("lineDirectionForLanguage")] public static NSLocaleLanguageDirection LineDirectionForLanguage(string isoLangCode) { return default(NSLocaleLanguageDirection); } /// <summary> /// The identifier for the receiver. (read-only) /// </summary> [iOSVersion(2)] [Export("localeIdentifier")] public string LocaleIdentifier { get; private set; } } /// <summary> /// These constants describe the text direction for a language. Used by the methods lineDirectionForLanguage: and characterDirectionForLanguage:. /// </summary> public enum NSLocaleLanguageDirection { /// <summary> /// The direction of the language is unknown. /// </summary> [iOSVersion(4)] Unknown, /// <summary> /// The language direction is from left to right. /// </summary> [iOSVersion(4)] LeftToRight, /// <summary> /// The language direction is from right to left. /// </summary> [iOSVersion(4)] RightToLeft, /// <summary> /// The language direction is from top to bottom. /// </summary> [iOSVersion(4)] TopToBottom, /// <summary> /// The language direction is from bottom to top. /// </summary> [iOSVersion(4)] BottomToTop, } /// <summary> /// Notification that indicates that the user’s locale changed. /// </summary> public class NSCurrentLocaleDidChangeNotification : NSNotification { public NSCurrentLocaleDidChangeNotification() : base("", null) { } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSLock.cs b/CocoaSharp/Foundation/NSLock.cs
index 55e30ed6..fb96f5e9 100644
--- a/CocoaSharp/Foundation/NSLock.cs
+++ b/CocoaSharp/Foundation/NSLock.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// An NSLock object is used to coordinate the operation of multiple threads of execution within the same application. An NSLock object can be used to mediate access to an application’s global data or to protect a critical section of code, allowing it to run atomically. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSLock_Class/index.html#//apple_ref/occ/cl/NSLock"/> [iOSVersion(2)] public class NSLock : NSObject//, AnyObject, NSLocking, NSObjectProtocol { /// <summary> /// Attempts to acquire a lock before a given time and returns a Boolean value indicating whether the attempt was successful. /// </summary> /// <param name="limit">The time limit for attempting to acquire a lock.</param> [iOSVersion(2)] [Export("lockBeforeDate")] public bool LockBeforeDate(NSDate limit) { return default(bool); } /// <summary> /// Attempts to acquire a lock and immediately returns a Boolean value that indicates whether the attempt was successful. /// </summary> [iOSVersion(2)] [Export("tryLock")] public bool TryLock() { return default(bool); } /// <summary> /// Assigns a name to the receiver. /// </summary> [iOSVersion(2)] [Export("name")] public string Name { get; set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// An NSLock object is used to coordinate the operation of multiple threads of execution within the same application. An NSLock object can be used to mediate access to an application’s global data or to protect a critical section of code, allowing it to run atomically. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSLock_Class/index.html#//apple_ref/occ/cl/NSLock"/> [iOSVersion(2)] [Export("")] public class NSLock : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSLocking, NSObjectProtocol, Printable { public NSLock() { } /// <summary> /// Attempts to acquire a lock before a given time and returns a Boolean value indicating whether the attempt was successful. /// </summary> /// <param name="limit">The time limit for attempting to acquire a lock.</param> [iOSVersion(2)] [Export("lockBeforeDate")] public virtual bool LockBeforeDate(NSDate limit) { return default(bool); } /// <summary> /// Attempts to acquire a lock and immediately returns a Boolean value that indicates whether the attempt was successful. /// </summary> [iOSVersion(2)] [Export("tryLock")] public virtual bool TryLock() { return default(bool); } /// <summary> /// The name associated with the receiver. /// </summary> [iOSVersion(2)] [Export("name")] [Optional] public string Name { get; set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSMachPort.cs b/CocoaSharp/Foundation/NSMachPort.cs
index 37ae05fa..a22f0fa6 100644
--- a/CocoaSharp/Foundation/NSMachPort.cs
+++ b/CocoaSharp/Foundation/NSMachPort.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSMachPort is a subclass of NSPort that can be used as an endpoint for distributed object connections (or raw messaging). NSMachPort is an object wrapper for a Mach port, the fundamental communication port in OS X. NSMachPort allows for local (on the same machine) communication only. A companion class, NSSocketPort, allows for both local and remote distributed object communication, but may be more expensive than NSMachPort for the local case. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSMachPort_Class/index.html#//apple_ref/occ/cl/NSMachPort"/> [iOSVersion(2)] public class NSMachPort : NSPort//, AnyObject, NSCoding, NSCopying, NSObjectProtocol { /// <summary> /// Creates and returns a port object configured with the given Mach port. /// </summary> /// <param name="machPort">The Mach port for the new port. This parameter should originally be of type mach_port_t.</param> [iOSVersion(2)] [Export("portWithMachPort")] public static NSPort PortWithMachPort(uint machPort) { return default(NSPort); } /// <summary> /// Creates and returns a port object configured with the specified options and the given Mach port. /// </summary> /// <param name="machPort">The Mach port for the new port. This parameter should originally be of type mach_port_t.</param> /// <param name="options">Specifies options for what to do with the underlying port rights when the NSMachPort object is invalidated or destroyed. For a list of constants, see Mach Port Rights.</param> [iOSVersion(2)] [Export("portWithMachPort")] public static NSPort PortWithMachPort(uint machPort, int options) { return default(NSPort); } /// <summary> /// Initializes a newly allocated NSMachPort object with a given Mach port. /// </summary> /// <param name="machPort">The Mach port for the new port. This parameter should originally be of type mach_port_t.</param> [iOSVersion(2)] [Export("convenience init")] public NSMachPort(uint machPort) { } /// <summary> /// Initializes a newly allocated NSMachPort object with a given Mach port and the specified options. /// </summary> /// <param name="machPort">The Mach port for the new port. This parameter should originally be of type mach_port_t.</param> /// <param name="options">Specifies options for what to do with the underlying port rights when the NSMachPort object is invalidated or destroyed. For a list of constants, see Mach Port Rights.</param> [iOSVersion(2)] public NSMachPort(uint machPort, int options) { } /// <summary> /// Removes the receiver from the run loop mode mode of runLoop. /// </summary> /// <param name="runLoop">The run loop from which to remove the receiver.</param> /// <param name="forMode">The run loop mode from which to remove the receiver.</param> [iOSVersion(2)] [Export("removeFromRunLoop")] public void RemoveFromRunLoop(NSRunLoop runLoop, string forMode) { } /// <summary> /// Schedules the receiver into the run loop mode mode of runLoop. /// </summary> /// <param name="runLoop">The run loop to which to add the receiver.</param> /// <param name="forMode">The run loop mode in which to add the receiver.</param> [iOSVersion(2)] [Export("scheduleInRunLoop")] public void ScheduleInRunLoop(NSRunLoop runLoop, string forMode) { } /// <summary> /// Returns the receiver’s delegate. /// </summary> [iOSVersion(4)] [Export("delegate")] public NSMachPortDelegate Delegate() { return default(NSMachPortDelegate); } /// <summary> /// Sets the receiver’s delegate to a given object. /// </summary> /// <param name="anObject">The delegate for the receiver.</param> [iOSVersion(4)] [Export("setDelegate")] public void SetDelegate(NSMachPortDelegate anObject) { } /// <summary> /// Returns as an int the Mach port used by the receiver. /// </summary> [iOSVersion(2)] [Export("machPort")] public uint MachPort { get; private set; } /// <summary> /// Used to remove access rights to a mach port when the NSMachPort object is invalidated or destroyed. /// </summary> public int NSMachPortDeallocateNone { get; set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSMachPort is a subclass of NSPort that can be used as an endpoint for distributed object connections (or raw messaging). NSMachPort is an object wrapper for a Mach port, the fundamental communication port in OS X. NSMachPort allows for local (on the same machine) communication only. A companion class, NSSocketPort, allows for both local and remote distributed object communication, but may be more expensive than NSMachPort for the local case. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSMachPort_Class/index.html#//apple_ref/occ/cl/NSMachPort"/> [iOSVersion(2)] [Export("")] public class NSMachPort : NSPort//, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSObjectProtocol, Printable { public NSMachPort() { } /// <summary> /// Creates and returns a port object configured with the given Mach port. /// </summary> /// <param name="machPort">The Mach port for the new port. This parameter should originally be of type mach_port_t.</param> [iOSVersion(2)] [Export("portWithMachPort")] public static NSPort PortWithMachPort(uint machPort) { return default(NSPort); } /// <summary> /// Creates and returns a port object configured with the specified options and the given Mach port. /// </summary> /// <param name="machPort">The Mach port for the new port. This parameter should originally be of type mach_port_t.</param> /// <param name="options">Specifies options for what to do with the underlying port rights when the NSMachPort object is invalidated or destroyed. For a list of constants, see Mach Port Rights.</param> [iOSVersion(2)] [Export("portWithMachPort")] public static NSPort PortWithMachPort(uint machPort, int options) { return default(NSPort); } /// <summary> /// Initializes a newly allocated NSMachPort object with a given Mach port. /// </summary> /// <param name="machPort">The Mach port for the new port. This parameter should originally be of type mach_port_t.</param> [iOSVersion(2)] [Export("convenience init")] public NSMachPort(uint machPort) { } /// <summary> /// Initializes a newly allocated NSMachPort object with a given Mach port and the specified options. /// </summary> /// <param name="machPort">The Mach port for the new port. This parameter should originally be of type mach_port_t.</param> /// <param name="options">Specifies options for what to do with the underlying port rights when the NSMachPort object is invalidated or destroyed. For a list of constants, see Mach Port Rights.</param> [iOSVersion(2)] public NSMachPort(uint machPort, int options) { } /// <summary> /// Removes the receiver from the run loop mode mode of runLoop. /// </summary> /// <param name="runLoop">The run loop from which to remove the receiver.</param> /// <param name="forMode">The run loop mode from which to remove the receiver.</param> [iOSVersion(2)] [Export("removeFromRunLoop")] public virtual void RemoveFromRunLoop(NSRunLoop runLoop, string forMode) { } /// <summary> /// Schedules the receiver into the run loop mode mode of runLoop. /// </summary> /// <param name="runLoop">The run loop to which to add the receiver.</param> /// <param name="forMode">The run loop mode in which to add the receiver.</param> [iOSVersion(2)] [Export("scheduleInRunLoop")] public virtual void ScheduleInRunLoop(NSRunLoop runLoop, string forMode) { } /// <summary> /// Returns the receiver’s delegate. /// </summary> [iOSVersion(4)] [Export("delegate")] [return:Optional] public virtual NSMachPortDelegate Delegate() { return default(NSMachPortDelegate); } /// <summary> /// Sets the receiver’s delegate to a given object. /// </summary> /// <param name="anObject">The delegate for the receiver.</param> [iOSVersion(4)] [Export("setDelegate")] public virtual void SetDelegate([Optional] NSMachPortDelegate anObject) { } /// <summary> /// The Mach port used by the receiver, represented as an integer. (read-only) /// </summary> [iOSVersion(2)] [Export("machPort")] public uint MachPort { get; private set; } /// <summary> /// Used to remove access rights to a mach port when the NSMachPort object is invalidated or destroyed. /// </summary> public int NSMachPortDeallocateNone { get; private set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSMapTable.cs b/CocoaSharp/Foundation/NSMapTable.cs
index 624a63d9..5af462f8 100644
--- a/CocoaSharp/Foundation/NSMapTable.cs
+++ b/CocoaSharp/Foundation/NSMapTable.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSMapTable is a mutable collection modeled after NSDictionary but provides different options. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/NSMapTable_class/index.html#//apple_ref/occ/cl/NSMapTable"/> [iOSVersion(6)] public class NSMapTable : NSObject//, AnyObject, NSCoding, NSCopying, NSFastEnumeration, NSObjectProtocol { /// <summary> /// Returns a map table, initialized with the given options. /// </summary> /// <param name="keyOptions">A bit field that specifies the options for the keys in the map table. For possible values, see “NSMapTableOptions”.</param> /// <param name="valueOptions">A bit field that specifies the options for the values in the map table. For possible values, see “NSMapTableOptions”.</param> /// <param name="capacity">The initial capacity of the map table. This is just a hint; the map table may subsequently grow and shrink as required.</param> [iOSVersion(6)] public NSMapTable(NSPointerFunctionsOptions keyOptions, NSPointerFunctionsOptions valueOptions, int capacity) { } /// <summary> /// Returns a new map table, initialized with the given options /// </summary> /// <param name="keyOptions">A bit field that specifies the options for the keys in the map table. For possible values, see “NSMapTableOptions”.</param> /// <param name="valueOptions">A bit field that specifies the options for the values in the map table. For possible values, see “NSMapTableOptions”.</param> [iOSVersion(6)] public NSMapTable(NSPointerFunctionsOptions keyOptions, NSPointerFunctionsOptions valueOptions) { } /// <summary> /// Returns a map table, initialized with the given functions. /// </summary> /// <param name="keyPointerFunctions">The functions the map table uses to manage keys.</param> /// <param name="valuePointerFunctions">The functions the map table uses to manage values.</param> /// <param name="capacity">The initial capacity of the map table. This is just a hint; the map table may subsequently grow and shrink as required.</param> [iOSVersion(6)] public NSMapTable(NSPointerFunctions keyPointerFunctions, NSPointerFunctions valuePointerFunctions, int capacity) { } /// <summary> /// Returns a new map table object which has strong references to the keys and values. /// </summary> [iOSVersion(6)] [Export("strongToStrongObjectsMapTable")] public static NSMapTable StrongToStrongObjectsMapTable() { return default(NSMapTable); } /// <summary> /// Returns a new map table object which has weak references to the keys and strong references to the values. /// </summary> [iOSVersion(6)] [Export("weakToStrongObjectsMapTable")] public static NSMapTable WeakToStrongObjectsMapTable() { return default(NSMapTable); } /// <summary> /// Returns a new map table object which has strong references to the keys and weak references to the values. /// </summary> [iOSVersion(6)] [Export("strongToWeakObjectsMapTable")] public static NSMapTable StrongToWeakObjectsMapTable() { return default(NSMapTable); } /// <summary> /// Returns a new map table object which has weak references to the keys and values. /// </summary> [iOSVersion(6)] [Export("weakToWeakObjectsMapTable")] public static NSMapTable WeakToWeakObjectsMapTable() { return default(NSMapTable); } /// <summary> /// Returns a the value associated with a given key. /// </summary> /// <param name="aKey">The key for which to return the corresponding value.</param> [iOSVersion(6)] [Export("objectForKey")] public AnyObject ObjectForKey(AnyObject aKey) { return default(AnyObject); } /// <summary> /// Returns an enumerator object that lets you access each key in the map table. /// </summary> [iOSVersion(6)] [Export("keyEnumerator")] public NSEnumerator KeyEnumerator() { return default(NSEnumerator); } /// <summary> /// Returns an enumerator object that lets you access each value in the map table. /// </summary> [iOSVersion(6)] [Export("objectEnumerator")] public NSEnumerator ObjectEnumerator() { return default(NSEnumerator); } /// <summary> /// Adds a given key-value pair to the map table. /// </summary> /// <param name="anObject">The value for aKey. This value must not be nil.</param> /// <param name="forKey">The key for anObject. This value must not be nil.</param> [iOSVersion(6)] [Export("setObject")] public void SetObject(AnyObject anObject, AnyObject forKey) { } /// <summary> /// Removes a given key and its associated value from the map table. /// </summary> /// <param name="aKey">The key to remove.</param> [iOSVersion(6)] [Export("removeObjectForKey")] public void RemoveObjectForKey(AnyObject aKey) { } /// <summary> /// Empties the map table of its entries. /// </summary> [iOSVersion(6)] [Export("removeAllObjects")] public void RemoveAllObjects() { } /// <summary> /// Returns a dictionary representation of the map table. /// </summary> [iOSVersion(6)] [Export("dictionaryRepresentation")] public Dictionary<NSObject, AnyObject> DictionaryRepresentation() { return default(Dictionary<NSObject, AnyObject>); } /// <summary> /// The number of key-value pairs in the map table. (read-only) /// </summary> [iOSVersion(6)] [Export("count")] public int Count { get; private set; } /// <summary> /// The pointer functions the map table uses to manage keys. (read-only) /// </summary> [iOSVersion(6)] [Export("keyPointerFunctions")] public NSPointerFunctions KeyPointerFunctions { get; private set; } /// <summary> /// The pointer functions the map table uses to manage values. (read-only) /// </summary> [iOSVersion(6)] [Export("valuePointerFunctions")] public NSPointerFunctions ValuePointerFunctions { get; private set; } } /// <summary> /// Constants used as components in a bitfield to specify the behavior of elements (keys and values) in an NSMapTable object. /// </summary> [iOSVersion(6)] public struct NSMapTableOptions { static public implicit operator NSMapTableOptions(int value) { return default(NSMapTableOptions); } static public implicit operator int(NSMapTableOptions value) { return default(int); } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSMapTable is a mutable collection modeled after NSDictionary but provides different options. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/NSMapTable_class/index.html#//apple_ref/occ/cl/NSMapTable"/> [iOSVersion(6)] [Export("")] public class NSMapTable : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSFastEnumeration, NSObjectProtocol, Printable { public NSMapTable() { } /// <summary> /// Returns a map table, initialized with the given options. /// </summary> /// <param name="keyOptions">A bit field that specifies the options for the keys in the map table. For possible values, see “NSMapTableOptions”.</param> /// <param name="valueOptions">A bit field that specifies the options for the values in the map table. For possible values, see “NSMapTableOptions”.</param> /// <param name="capacity">The initial capacity of the map table. This is just a hint; the map table may subsequently grow and shrink as required.</param> [iOSVersion(6)] public NSMapTable(NSPointerFunctionsOptions keyOptions, NSPointerFunctionsOptions valueOptions, int capacity) { } /// <summary> /// Returns a new map table, initialized with the given options /// </summary> /// <param name="keyOptions">A bit field that specifies the options for the keys in the map table. For possible values, see “NSMapTableOptions”.</param> /// <param name="valueOptions">A bit field that specifies the options for the values in the map table. For possible values, see “NSMapTableOptions”.</param> [iOSVersion(6)] public NSMapTable(NSPointerFunctionsOptions keyOptions, NSPointerFunctionsOptions valueOptions) { } /// <summary> /// Returns a map table, initialized with the given functions. /// </summary> /// <param name="keyPointerFunctions">The functions the map table uses to manage keys.</param> /// <param name="valuePointerFunctions">The functions the map table uses to manage values.</param> /// <param name="capacity">The initial capacity of the map table. This is just a hint; the map table may subsequently grow and shrink as required.</param> [iOSVersion(6)] public NSMapTable(NSPointerFunctions keyPointerFunctions, NSPointerFunctions valuePointerFunctions, int capacity) { } /// <summary> /// Returns a new map table object which has strong references to the keys and values. /// </summary> [iOSVersion(6)] [Export("strongToStrongObjectsMapTable")] public static NSMapTable StrongToStrongObjectsMapTable() { return default(NSMapTable); } /// <summary> /// Returns a new map table object which has weak references to the keys and strong references to the values. /// </summary> [iOSVersion(6)] [Export("weakToStrongObjectsMapTable")] public static NSMapTable WeakToStrongObjectsMapTable() { return default(NSMapTable); } /// <summary> /// Returns a new map table object which has strong references to the keys and weak references to the values. /// </summary> [iOSVersion(6)] [Export("strongToWeakObjectsMapTable")] public static NSMapTable StrongToWeakObjectsMapTable() { return default(NSMapTable); } /// <summary> /// Returns a new map table object which has weak references to the keys and values. /// </summary> [iOSVersion(6)] [Export("weakToWeakObjectsMapTable")] public static NSMapTable WeakToWeakObjectsMapTable() { return default(NSMapTable); } /// <summary> /// Returns a the value associated with a given key. /// </summary> /// <param name="aKey">The key for which to return the corresponding value.</param> [iOSVersion(6)] [Export("objectForKey")] [return:Optional] public virtual AnyObject ObjectForKey(AnyObject aKey) { return default(AnyObject); } /// <summary> /// Returns an enumerator object that lets you access each key in the map table. /// </summary> [iOSVersion(6)] [Export("keyEnumerator")] public virtual NSEnumerator KeyEnumerator() { return default(NSEnumerator); } /// <summary> /// Returns an enumerator object that lets you access each value in the map table. /// </summary> [iOSVersion(6)] [Export("objectEnumerator")] public virtual NSEnumerator ObjectEnumerator() { return default(NSEnumerator); } /// <summary> /// Adds a given key-value pair to the map table. /// </summary> /// <param name="anObject">The value for aKey. This value must not be nil.</param> /// <param name="forKey">The key for anObject. This value must not be nil.</param> [iOSVersion(6)] [Export("setObject")] public virtual void SetObject(AnyObject anObject, AnyObject forKey) { } /// <summary> /// Removes a given key and its associated value from the map table. /// </summary> /// <param name="aKey">The key to remove.</param> [iOSVersion(6)] [Export("removeObjectForKey")] public virtual void RemoveObjectForKey(AnyObject aKey) { } /// <summary> /// Empties the map table of its entries. /// </summary> [iOSVersion(6)] [Export("removeAllObjects")] public virtual void RemoveAllObjects() { } /// <summary> /// Returns a dictionary representation of the map table. /// </summary> [iOSVersion(6)] [Export("dictionaryRepresentation")] public virtual Dictionary<NSObject, AnyObject> DictionaryRepresentation() { return default(Dictionary<NSObject, AnyObject>); } /// <summary> /// The number of key-value pairs in the map table. (read-only) /// </summary> [iOSVersion(6)] [Export("count")] public int Count { get; private set; } /// <summary> /// The pointer functions the map table uses to manage keys. (read-only) /// </summary> [iOSVersion(6)] [Export("keyPointerFunctions")] public NSPointerFunctions KeyPointerFunctions { get; private set; } /// <summary> /// The pointer functions the map table uses to manage values. (read-only) /// </summary> [iOSVersion(6)] [Export("valuePointerFunctions")] public NSPointerFunctions ValuePointerFunctions { get; private set; } } /// <summary> /// Constants used as components in a bitfield to specify the behavior of elements (keys and values) in an NSMapTable object. /// </summary> [iOSVersion(6)] public struct NSMapTableOptions { static public implicit operator NSMapTableOptions(int value) { return default(NSMapTableOptions); } static public implicit operator int(NSMapTableOptions value) { return default(int); } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSMassFormatter.cs b/CocoaSharp/Foundation/NSMassFormatter.cs
new file mode 100644
index 00000000..70b59d30
--- /dev/null
+++ b/CocoaSharp/Foundation/NSMassFormatter.cs
@@ -0,0 +1 @@
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSMassFormatter class provides properly formatted, localized descriptions of mass and weight values. Use this class to create localized mass strings when displaying mass information to the users. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Miscellaneous/Reference/NSMassFormatter_Class/index.html#//apple_ref/occ/cl/NSMassFormatter"/> [iOSVersion(8)] [Export("")] public class NSMassFormatter : NSFormatter//, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSObjectProtocol, Printable { public NSMassFormatter() { } /// <summary> /// This method is not supported for the NSMassFormatter class. /// </summary> /// <param name="obj">An output parameter. If overridden, this parameter should contain the object created from the provided string.</param> /// <param name="forString">A string representation of the object.</param> /// <param name="errorDescription">An output parameter. If overridden, this parameter should contain a description of any errors that occur. If you do not want to receive error messages, set this parameter to NULL.</param> [iOSVersion(8)] [Export("getObjectValue")] public virtual bool GetObjectValue(AutoreleasingUnsafeMutablePointer<AnyObject> obj, string forString, AutoreleasingUnsafeMutablePointer<string> errorDescription) { return default(bool); } /// <summary> /// Returns a mass string for the provided value. /// </summary> /// <param name="numberInKilograms">The mass’s value in kilograms.</param> [iOSVersion(8)] [Export("stringFromKilograms")] public virtual string StringFromKilograms(Double numberInKilograms) { return default(string); } /// <summary> /// Returns a properly formatted mass string for the given value and unit. /// </summary> /// <param name="value">The mass’s value in the given unit.</param> /// <param name="unit">The unit used in the resulting mass string.</param> [iOSVersion(8)] [Export("stringFromValue")] public virtual string StringFromValue(Double value, NSMassFormatterUnit unit) { return default(string); } /// <summary> /// Returns the unit string for the provided value. /// </summary> /// <param name="numberInKilograms">The mass’s value in kilograms.</param> /// <param name="usedUnit">An output parameter. This will hold the NSMassFormatterUnit value that corresponds to the returned units.</param> [iOSVersion(8)] [Export("unitStringFromKilograms")] public virtual string UnitStringFromKilograms(Double numberInKilograms, UnsafeMutablePointer<NSMassFormatterUnit> usedUnit) { return default(string); } /// <summary> /// Returns the unit string based on the provided value and unit. /// </summary> /// <param name="value">The mass’s value for the provided unit.</param> /// <param name="unit">The unit to use in the resulting mass string.</param> [iOSVersion(8)] [Export("unitStringFromValue")] public virtual string UnitStringFromValue(Double value, NSMassFormatterUnit unit) { return default(string); } /// <summary> /// A Boolean value that indicates whether the resulting string represents a person’s mass. /// </summary> [iOSVersion(8)] [Export("forPersonMassUse")] public bool ForPersonMassUse { get; set; } /// <summary> /// The number formatter used to format the numbers in a mass strings. /// </summary> [iOSVersion(8)] [Export("numberFormatter")] [Unwrapped] public NSNumberFormatter NumberFormatter { get; set; } /// <summary> /// The unit style used by this formatter. /// </summary> [iOSVersion(8)] [Export("unitStyle")] public NSFormattingUnitStyle UnitStyle { get; set; } } /// <summary> /// The units supported by the NSMassFormatter class. /// </summary> public enum NSMassFormatterUnit { /// <summary> /// The gram unit. /// </summary> [iOSVersion(8)] Gram, /// <summary> /// The kilogram unit. /// </summary> [iOSVersion(8)] Kilogram, /// <summary> /// The ounce unit. /// </summary> [iOSVersion(8)] Ounce, /// <summary> /// The pound unit. /// </summary> [iOSVersion(8)] Pound, /// <summary> /// The stone unit. /// </summary> [iOSVersion(8)] Stone, } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSMessagePort.cs b/CocoaSharp/Foundation/NSMessagePort.cs
index 27743f5c..689d6414 100644
--- a/CocoaSharp/Foundation/NSMessagePort.cs
+++ b/CocoaSharp/Foundation/NSMessagePort.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSMessagePort is a subclass of NSPort that can be used as an endpoint for distributed object connections (or raw messaging). NSMessagePort allows for local (on the same machine) communication only. A companion class, NSSocketPort, allows for both local and remote communication, but may be more expensive than NSMessagePort for the local case. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSMessagePort_Class/index.html#//apple_ref/occ/cl/NSMessagePort"/> [iOSVersion(2)] public class NSMessagePort : NSPort//, AnyObject, NSCoding, NSCopying, NSObjectProtocol { } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSMessagePort is a subclass of NSPort that can be used as an endpoint for distributed object connections (or raw messaging). NSMessagePort allows for local (on the same machine) communication only. A companion class, NSSocketPort, allows for both local and remote communication, but may be more expensive than NSMessagePort for the local case. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSMessagePort_Class/index.html#//apple_ref/occ/cl/NSMessagePort"/> [iOSVersion(2)] [Export("")] public class NSMessagePort : NSPort//, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSObjectProtocol, Printable { public NSMessagePort() { } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSMetadataItem.cs b/CocoaSharp/Foundation/NSMetadataItem.cs
index a5367df8..99deb86e 100644
--- a/CocoaSharp/Foundation/NSMetadataItem.cs
+++ b/CocoaSharp/Foundation/NSMetadataItem.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSMetadataItem class represents the metadata associated with a file, providing a simple interface to retrieve the available attribute names and values. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSMetadataItem_Class/index.html#//apple_ref/occ/cl/NSMetadataItem"/> [iOSVersion(5)] public class NSMetadataItem : NSObject//, AnyObject, NSObjectProtocol { /// <summary> /// Returns the receiver’s metadata attribute name specified by a given key. /// </summary> /// <param name="key">The name of a metadata attribute. See the “Constants” section for a list of possible keys.</param> [iOSVersion(5)] [Export("valueForAttribute")] public AnyObject ValueForAttribute(string key) { return default(AnyObject); } /// <summary> /// Returns a dictionary containing the key-value pairs for the attribute names specified by a given array of keys. /// </summary> /// <param name="keys">An array containing NSString objects that specify the names of a metadata attributes. See the “Constants” section for a list of possible keys.</param> [iOSVersion(5)] [Export("valuesForAttributes")] public Dictionary<NSObject, AnyObject> ValuesForAttributes(AnyObject[] keys) { return default(Dictionary<NSObject, AnyObject>); } /// <summary> /// An array containing the attribute keys for the metadata item’s values. (read-only) /// </summary> [iOSVersion(5)] [Export("attributes")] public AnyObject[] Attributes { get; private set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSMetadataItem class represents the metadata associated with a file, providing a simple interface to retrieve the available attribute names and values. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSMetadataItem_Class/index.html#//apple_ref/occ/cl/NSMetadataItem"/> [iOSVersion(5)] [Export("")] public class NSMetadataItem : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSObjectProtocol, Printable { public NSMetadataItem() { } /// <summary> /// Returns the receiver’s metadata attribute name specified by a given key. /// </summary> /// <param name="key">The name of a metadata attribute. See the “Constants” section for a list of possible keys.</param> [iOSVersion(5)] [Export("valueForAttribute")] [return:Optional] public virtual AnyObject ValueForAttribute(string key) { return default(AnyObject); } /// <summary> /// Returns a dictionary containing the key-value pairs for the attribute names specified by a given array of keys. /// </summary> /// <param name="keys">An array containing NSString objects that specify the names of a metadata attributes. See the “Constants” section for a list of possible keys.</param> [iOSVersion(5)] [Export("valuesForAttributes")] public virtual Dictionary<NSObject, AnyObject> ValuesForAttributes(AnyObject[] keys) { return default(Dictionary<NSObject, AnyObject>); } /// <summary> /// An array containing the attribute keys for the metadata item’s values. (read-only) /// </summary> [iOSVersion(5)] [Export("attributes")] public AnyObject[] Attributes { get; private set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSMetadataQuery.cs b/CocoaSharp/Foundation/NSMetadataQuery.cs
index 809d0729..dd2f5e26 100644
--- a/CocoaSharp/Foundation/NSMetadataQuery.cs
+++ b/CocoaSharp/Foundation/NSMetadataQuery.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSMetadataQuery class encapsulates the functionality provided by the MDQuery opaque type for querying the Spotlight metadata. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSMetadataQuery_Class/index.html#//apple_ref/occ/cl/NSMetadataQuery"/> [iOSVersion(5)] public class NSMetadataQuery : NSObject//, AnyObject, NSObjectProtocol { /// <summary> /// Attempts to start the query. /// </summary> [iOSVersion(5)] [Export("startQuery")] public bool StartQuery() { return default(bool); } /// <summary> /// Stops the receiver’s current query from gathering any further results. /// </summary> [iOSVersion(5)] [Export("stopQuery")] public void StopQuery() { } /// <summary> /// Returns the query result at a specific index. /// </summary> /// <param name="index">Index of the desired result in the query result array.</param> [iOSVersion(5)] [Export("resultAtIndex")] public AnyObject ResultAtIndex(int index) { return default(AnyObject); } /// <summary> /// Returns the index of a query result object in the receiver’s results array. /// </summary> /// <param name="result">Query result object being inquired about.</param> [iOSVersion(5)] [Export("indexOfResult")] public int IndexOfResult(AnyObject result) { return default(int); } /// <summary> /// Enumerates the current set of results using the given block. /// </summary> /// <param name="block">The block to execute for each current result.</param> [iOSVersion(7)] [Export("enumerateResultsUsingBlock")] public void EnumerateResultsUsingBlock(Action<AnyObject, int, UnsafePointer<ObjCBool>> block) { } /// <summary> /// Enumerates the current set of results using the given options and block. /// </summary> /// <param name="opts">Options for the enumeration. You can</param> /// <param name="usingBlock">The block to execute for each current result.</param> [iOSVersion(7)] [Export("enumerateResultsWithOptions")] public void EnumerateResultsWithOptions(NSEnumerationOptions opts, Action<AnyObject, int, UnsafePointer<ObjCBool>> usingBlock) { } /// <summary> /// Returns the value for the attribute name attrName at the index in the results specified by idx. /// </summary> /// <param name="attributeName">The attribute of the result object at index being inquired about. The attribute must be specified in valueListAttributes, as a sorting key in a specified sort descriptor, or as one of the grouping attributes specified set for the query.</param> /// <param name="forResultAtIndex">Index of the desired return object in the query results array.</param> [iOSVersion(5)] [Export("valueOfAttribute")] public AnyObject ValueOfAttribute(string attributeName, int forResultAtIndex) { return default(AnyObject); } /// <summary> /// Enables updates to the query results. /// </summary> [iOSVersion(5)] [Export("enableUpdates")] public void EnableUpdates() { } /// <summary> /// Disables updates to the query results. /// </summary> [iOSVersion(5)] [Export("disableUpdates")] public void DisableUpdates() { } /// <summary> /// An array containing the search scopes. /// </summary> [iOSVersion(5)] [Export("searchScopes")] public AnyObject[] SearchScopes { get; set; } /// <summary> /// The predicate used to filter query results. /// </summary> [iOSVersion(5)] [Export("predicate")] public NSPredicate Predicate { get; set; } /// <summary> /// An array of sort descriptor objects. /// </summary> [iOSVersion(5)] [Export("sortDescriptors")] public AnyObject[] SortDescriptors { get; set; } /// <summary> /// An array of attributes whose values are gathered by the query. /// </summary> [iOSVersion(5)] [Export("valueListAttributes")] public AnyObject[] ValueListAttributes { get; set; } /// <summary> /// An array of grouping attributes. (read-only) /// </summary> [iOSVersion(5)] [Export("groupingAttributes")] public AnyObject[] GroupingAttributes { get; set; } /// <summary> /// The interval at which notification of updated results occurs. /// </summary> [iOSVersion(5)] [Export("notificationBatchingInterval")] public NSTimeInterval NotificationBatchingInterval { get; set; } /// <summary> /// The query’s delegate. /// </summary> [iOSVersion(5)] [Export("delegate")] public NSMetadataQueryDelegate Delegate { get; set; } /// <summary> /// An array of objects that define the query’s scope. /// </summary> [iOSVersion(7)] [Export("searchItems")] public AnyObject[] SearchItems { get; set; } /// <summary> /// A Boolean value that indicates whether the query has started. (read-only) /// </summary> [iOSVersion(8)] [Export("started")] public bool Started { get; private set; } /// <summary> /// A Boolean value that indicates whether the receiver is in the initial gathering phase of the query. (read-only) /// </summary> [iOSVersion(8)] [Export("gathering")] public bool Gathering { get; private set; } /// <summary> /// A Boolean value that indicates whether the query has stopped. (read-only) /// </summary> [iOSVersion(8)] [Export("stopped")] public bool Stopped { get; private set; } /// <summary> /// An array containing the query’s results. (read-only) /// </summary> [iOSVersion(5)] [Export("results")] public AnyObject[] Results { get; private set; } /// <summary> /// The number of results returned by the query. (read-only) /// </summary> [iOSVersion(5)] [Export("resultCount")] public int ResultCount { get; private set; } /// <summary> /// An array containing hierarchical groups of query results. (read-only) /// </summary> [iOSVersion(5)] [Export("groupedResults")] public AnyObject[] GroupedResults { get; private set; } /// <summary> /// A dictionary containing the value lists generated by the query. (read-only) /// </summary> [iOSVersion(5)] [Export("valueLists")] public Dictionary<NSObject, AnyObject> ValueLists { get; private set; } /// <summary> /// The queue on which query result notifications are posted. /// </summary> [iOSVersion(7)] [Export("operationQueue")] public NSOperationQueue OperationQueue { get; set; } } /// <summary> /// /// </summary> [iOSVersion(5)] public class NSMetadataQueryDidFinishGatheringNotification : NSNotification { public NSMetadataQueryDidFinishGatheringNotification() : base("", null) { } } /// <summary> /// /// </summary> [iOSVersion(5)] public class NSMetadataQueryDidStartGatheringNotification : NSNotification { public NSMetadataQueryDidStartGatheringNotification() : base("", null) { } } /// <summary> /// /// </summary> [iOSVersion(5)] public class NSMetadataQueryDidUpdateNotification : NSNotification { public NSMetadataQueryDidUpdateNotification() : base("", null) { } } /// <summary> /// /// </summary> [iOSVersion(5)] public class NSMetadataQueryGatheringProgressNotification : NSNotification { public NSMetadataQueryGatheringProgressNotification() : base("", null) { } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSMetadataQuery class encapsulates the functionality provided by the MDQuery opaque type for querying the Spotlight metadata. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSMetadataQuery_Class/index.html#//apple_ref/occ/cl/NSMetadataQuery"/> [iOSVersion(5)] [Export("")] public class NSMetadataQuery : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSObjectProtocol, Printable { public NSMetadataQuery() { } /// <summary> /// Attempts to start the query. /// </summary> [iOSVersion(5)] [Export("startQuery")] public virtual bool StartQuery() { return default(bool); } /// <summary> /// Stops the receiver’s current query from gathering any further results. /// </summary> [iOSVersion(5)] [Export("stopQuery")] public virtual void StopQuery() { } /// <summary> /// Returns the query result at a specific index. /// </summary> /// <param name="index">The index of the desired result in the query result array.</param> [iOSVersion(5)] [Export("resultAtIndex")] public virtual AnyObject ResultAtIndex(int index) { return default(AnyObject); } /// <summary> /// Returns the index of a query result object in the receiver’s results array. /// </summary> /// <param name="result">The query result object being inquired about.</param> [iOSVersion(5)] [Export("indexOfResult")] public virtual int IndexOfResult(AnyObject result) { return default(int); } /// <summary> /// Enumerates the current set of results using the given block. /// </summary> /// <param name="block">The block to execute for each current result.</param> [iOSVersion(7)] [Export("enumerateResultsUsingBlock")] public virtual void EnumerateResultsUsingBlock(Action<AnyObject, int, UnsafeMutablePointer<ObjCBool>> block) { } /// <summary> /// Enumerates the current set of results using the given options and block. /// </summary> /// <param name="opts">Options for the enumeration. For a complete list of options, see NSEnumerationOptions.</param> /// <param name="usingBlock">The block to execute for each current result.</param> [iOSVersion(7)] [Export("enumerateResultsWithOptions")] public virtual void EnumerateResultsWithOptions(NSEnumerationOptions opts, Action<AnyObject, int, UnsafeMutablePointer<ObjCBool>> usingBlock) { } /// <summary> /// Returns the value for the attribute name attrName at the index in the results specified by idx. /// </summary> /// <param name="attributeName">The attribute of the result object at index being inquired about. The attribute must be specified in valueListAttributes, as a sorting key in a specified sort descriptor, or as one of the grouping attributes specified set for the query.</param> /// <param name="forResultAtIndex">The index of the desired return object in the query results array.</param> [iOSVersion(5)] [Export("valueOfAttribute")] [return:Optional] public virtual AnyObject ValueOfAttribute(string attributeName, int forResultAtIndex) { return default(AnyObject); } /// <summary> /// Enables updates to the query results. /// </summary> [iOSVersion(5)] [Export("enableUpdates")] public virtual void EnableUpdates() { } /// <summary> /// Disables updates to the query results. /// </summary> [iOSVersion(5)] [Export("disableUpdates")] public virtual void DisableUpdates() { } /// <summary> /// An array containing the search scopes. /// </summary> [iOSVersion(5)] [Export("searchScopes")] public AnyObject[] SearchScopes { get; set; } /// <summary> /// The predicate used to filter query results. /// </summary> [iOSVersion(5)] [Export("predicate")] [Optional] public NSPredicate Predicate { get; set; } /// <summary> /// An array of sort descriptor objects. /// </summary> [iOSVersion(5)] [Export("sortDescriptors")] public AnyObject[] SortDescriptors { get; set; } /// <summary> /// An array of attributes whose values are gathered by the query. /// </summary> [iOSVersion(5)] [Export("valueListAttributes")] public AnyObject[] ValueListAttributes { get; set; } /// <summary> /// An array of grouping attributes. (read-only) /// </summary> [iOSVersion(5)] [Export("groupingAttributes")] public AnyObject[] GroupingAttributes { get; set; } /// <summary> /// The interval at which notification of updated results occurs. /// </summary> [iOSVersion(5)] [Export("notificationBatchingInterval")] public NSTimeInterval NotificationBatchingInterval { get; set; } /// <summary> /// The query’s delegate. /// </summary> [iOSVersion(5)] [Export("delegate")] [Optional] public NSMetadataQueryDelegate Delegate { get; set; } /// <summary> /// An array of objects that define the query’s scope. /// </summary> [iOSVersion(7)] [Export("searchItems")] public AnyObject[] SearchItems { get; set; } /// <summary> /// A Boolean value that indicates whether the query has started. (read-only) /// </summary> [iOSVersion(8)] [Export("started")] public bool Started { get; private set; } /// <summary> /// A Boolean value that indicates whether the receiver is in the initial gathering phase of the query. (read-only) /// </summary> [iOSVersion(8)] [Export("gathering")] public bool Gathering { get; private set; } /// <summary> /// A Boolean value that indicates whether the query has stopped. (read-only) /// </summary> [iOSVersion(8)] [Export("stopped")] public bool Stopped { get; private set; } /// <summary> /// An array containing the query’s results. (read-only) /// </summary> [iOSVersion(5)] [Export("results")] public AnyObject[] Results { get; private set; } /// <summary> /// The number of results returned by the query. (read-only) /// </summary> [iOSVersion(5)] [Export("resultCount")] public int ResultCount { get; private set; } /// <summary> /// An array containing hierarchical groups of query results. (read-only) /// </summary> [iOSVersion(5)] [Export("groupedResults")] public AnyObject[] GroupedResults { get; private set; } /// <summary> /// A dictionary containing the value lists generated by the query. (read-only) /// </summary> [iOSVersion(5)] [Export("valueLists")] public Dictionary<NSObject, AnyObject> ValueLists { get; private set; } /// <summary> /// The queue on which query result notifications are posted. /// </summary> [iOSVersion(7)] [Export("operationQueue")] [Optional] public NSOperationQueue OperationQueue { get; set; } } /// <summary> /// Posted when the receiver has finished with the initial result-gathering phase of the query. /// </summary> public class NSMetadataQueryDidFinishGatheringNotification : NSNotification { public NSMetadataQueryDidFinishGatheringNotification() : base("", null) { } } /// <summary> /// Posted when the receiver begins with the initial result-gathering phase of the query. /// </summary> public class NSMetadataQueryDidStartGatheringNotification : NSNotification { public NSMetadataQueryDidStartGatheringNotification() : base("", null) { } } /// <summary> /// Posted when the receiver’s results have changed during the live-update phase of the query. /// </summary> public class NSMetadataQueryDidUpdateNotification : NSNotification { public NSMetadataQueryDidUpdateNotification() : base("", null) { } } /// <summary> /// Posted as the receiver is collecting results during the initial result-gathering phase of the query. /// </summary> public class NSMetadataQueryGatheringProgressNotification : NSNotification { public NSMetadataQueryGatheringProgressNotification() : base("", null) { } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSMetadataQueryAttributeValueTuple.cs b/CocoaSharp/Foundation/NSMetadataQueryAttributeValueTuple.cs
index 7ed13fff..f5f1725b 100644
--- a/CocoaSharp/Foundation/NSMetadataQueryAttributeValueTuple.cs
+++ b/CocoaSharp/Foundation/NSMetadataQueryAttributeValueTuple.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSMetadataQueryAttributeValueTuple class represents attribute-value tuples, which are objects that contain the attribute name and value of a metadata attribute. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSMetadataQueryAttributeValueTuple_Class/index.html#//apple_ref/occ/cl/NSMetadataQueryAttributeValueTuple"/> [iOSVersion(5)] public class NSMetadataQueryAttributeValueTuple : NSObject//, AnyObject, NSObjectProtocol { /// <summary> /// The attribute name for the tuple’s value. (read-only) /// </summary> [iOSVersion(5)] [Export("attribute")] public string Attribute { get; private set; } /// <summary> /// The number of instances of the value for the tuple’s attribute. (read-only) /// </summary> [iOSVersion(5)] [Export("count")] public int Count { get; private set; } /// <summary> /// The value of the tuple’s attribute. (read-only) /// </summary> [iOSVersion(5)] [Export("value")] public AnyObject Value { get; private set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSMetadataQueryAttributeValueTuple class represents attribute-value tuples, which are objects that contain the attribute name and value of a metadata attribute. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSMetadataQueryAttributeValueTuple_Class/index.html#//apple_ref/occ/cl/NSMetadataQueryAttributeValueTuple"/> [iOSVersion(5)] [Export("")] public class NSMetadataQueryAttributeValueTuple : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSObjectProtocol, Printable { public NSMetadataQueryAttributeValueTuple() { } /// <summary> /// The attribute name for the tuple’s value. (read-only) /// </summary> [iOSVersion(5)] [Export("attribute")] public string Attribute { get; private set; } /// <summary> /// The number of instances of the value for the tuple’s attribute. (read-only) /// </summary> [iOSVersion(5)] [Export("count")] public int Count { get; private set; } /// <summary> /// The value of the tuple’s attribute. (read-only) /// </summary> [iOSVersion(5)] [Export("value")] [Optional] public AnyObject Value { get; private set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSMetadataQueryResultGroup.cs b/CocoaSharp/Foundation/NSMetadataQueryResultGroup.cs
index 036e0f2f..0cb36cce 100644
--- a/CocoaSharp/Foundation/NSMetadataQueryResultGroup.cs
+++ b/CocoaSharp/Foundation/NSMetadataQueryResultGroup.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSMetadataQueryResultGroup class represents a collection of grouped attribute results returned by an NSMetadataQuery object. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSMetadataQueryResultGroup_Class/index.html#//apple_ref/occ/cl/NSMetadataQueryResultGroup"/> [iOSVersion(5)] public class NSMetadataQueryResultGroup : NSObject//, AnyObject, NSObjectProtocol { /// <summary> /// Returns the query result at a specific index. /// </summary> /// <param name="index">The index of the desired result.</param> [iOSVersion(5)] [Export("resultAtIndex")] public AnyObject ResultAtIndex(int index) { return default(AnyObject); } /// <summary> /// The result group’s attribute name. (read-only) /// </summary> [iOSVersion(5)] [Export("attribute")] public string Attribute { get; private set; } /// <summary> /// The result group’s value. (read-only) /// </summary> [iOSVersion(5)] [Export("value")] public AnyObject Value { get; private set; } /// <summary> /// An array containing the result group’s result objects. (read-only) /// </summary> [iOSVersion(5)] [Export("results")] public AnyObject[] Results { get; private set; } /// <summary> /// The number of results returned by the result group. (read-only) /// </summary> [iOSVersion(5)] [Export("resultCount")] public int ResultCount { get; private set; } /// <summary> /// An array containing the result group’s subgroups. (read-only) /// </summary> [iOSVersion(5)] [Export("subgroups")] public AnyObject[] Subgroups { get; private set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSMetadataQueryResultGroup class represents a collection of grouped attribute results returned by an NSMetadataQuery object. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSMetadataQueryResultGroup_Class/index.html#//apple_ref/occ/cl/NSMetadataQueryResultGroup"/> [iOSVersion(5)] [Export("")] public class NSMetadataQueryResultGroup : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSObjectProtocol, Printable { public NSMetadataQueryResultGroup() { } /// <summary> /// Returns the query result at a specific index. /// </summary> /// <param name="index">The index of the desired result.</param> [iOSVersion(5)] [Export("resultAtIndex")] [return:Unwrapped] public virtual AnyObject ResultAtIndex(int index) { return default(AnyObject); } /// <summary> /// The result group’s attribute name. (read-only) /// </summary> [iOSVersion(5)] [Export("attribute")] public string Attribute { get; private set; } /// <summary> /// The result group’s value. (read-only) /// </summary> [iOSVersion(5)] [Export("value")] public AnyObject Value { get; private set; } /// <summary> /// An array containing the result group’s result objects. (read-only) /// </summary> [iOSVersion(5)] [Export("results")] public AnyObject[] Results { get; private set; } /// <summary> /// The number of results returned by the result group. (read-only) /// </summary> [iOSVersion(5)] [Export("resultCount")] public int ResultCount { get; private set; } /// <summary> /// An array containing the result group’s subgroups. (read-only) /// </summary> [iOSVersion(5)] [Export("subgroups")] public AnyObject[] Subgroups { get; private set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSMethodSignature.cs b/CocoaSharp/Foundation/NSMethodSignature.cs
index 5432daff..0df31174 100644
--- a/CocoaSharp/Foundation/NSMethodSignature.cs
+++ b/CocoaSharp/Foundation/NSMethodSignature.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// An NSMethodSignature object records type information for the arguments and return value of a method. It is used to forward messages that the receiving object does not respond to—most notably in the case of distributed objects. You typically create an NSMethodSignature object using NSObject’s methodSignatureForSelector: instance method (on OS X v10.5 and later you can also use signatureWithObjCTypes:). It is then used to create an NSInvocation object, which is passed as the argument to a forwardInvocation: message to send the invocation on to whatever other object can handle the message. In the default case, NSObject invokes doesNotRecognizeSelector:, which raises an exception. For distributed objects, the NSInvocation object is encoded using the information in the NSMethodSignature object and sent to the real object represented by the receiver of the message. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSMethodSignature_Class/index.html#//apple_ref/occ/cl/NSMethodSignature"/> [iOSVersion(2)] public class NSMethodSignature : NSObject//, AnyObject, NSObjectProtocol { /// <summary> /// Returns an NSMethodSignature object for the given Objective C method type string. /// </summary> /// <param name="objCTypes">An array of characters containing the type encodings for the method arguments. /// Indices begin with 0. The hidden arguments self (of type id) and _cmd (of type SEL) are at indices 0 and 1; method-specific arguments begin at index 2.</param> [iOSVersion(2)] public NSMethodSignature(ConstUnsafePointer<Int8> objCTypes) { } /// <summary> /// Returns the type encoding for the argument at a given index. /// </summary> /// <param name="index">The index of the argument to get.</param> [iOSVersion(2)] [Export("getArgumentTypeAtIndex")] public ConstUnsafePointer<Int8> GetArgumentTypeAtIndex(int index) { return default(ConstUnsafePointer<Int8>); } /// <summary> /// Returns a Boolean value that indicates whether the receiver is asynchronous when invoked through distributed objects. /// </summary> [iOSVersion(2)] [Export("isOneway")] public bool IsOneway() { return default(bool); } /// <summary> /// The number of arguments recorded in the receiver. (read-only) /// </summary> [iOSVersion(2)] [Export("numberOfArguments")] public int NumberOfArguments { get; private set; } /// <summary> /// The number of bytes that the arguments, taken together, occupy on the stack. (read-only) /// </summary> [iOSVersion(2)] [Export("frameLength")] public int FrameLength { get; private set; } /// <summary> /// A C string encoding the return type of the method in Objective-C type encoding. (read-only) /// </summary> [iOSVersion(2)] [Export("methodReturnType")] public ConstUnsafePointer<Int8> MethodReturnType { get; private set; } /// <summary> /// The number of bytes required for the return value. (read-only) /// </summary> [iOSVersion(2)] [Export("methodReturnLength")] public int MethodReturnLength { get; private set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// An NSMethodSignature object records type information for the arguments and return value of a method. It is used to forward messages that the receiving object does not respond to—most notably in the case of distributed objects. You typically create an NSMethodSignature object using NSObject’s methodSignatureForSelector: instance method (on OS X v10.5 and later you can also use signatureWithObjCTypes:). It is then used to create an NSInvocation object, which is passed as the argument to a forwardInvocation: message to send the invocation on to whatever other object can handle the message. In the default case, NSObject invokes doesNotRecognizeSelector:, which raises an exception. For distributed objects, the NSInvocation object is encoded using the information in the NSMethodSignature object and sent to the real object represented by the receiver of the message. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSMethodSignature_Class/index.html#//apple_ref/occ/cl/NSMethodSignature"/> [iOSVersion(2)] [Export("")] public class NSMethodSignature//: { public NSMethodSignature() { } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSMutableArray.cs b/CocoaSharp/Foundation/NSMutableArray.cs
index c4978b36..4b0ca3f4 100644
--- a/CocoaSharp/Foundation/NSMutableArray.cs
+++ b/CocoaSharp/Foundation/NSMutableArray.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSMutableArray class declares the programmatic interface to objects that manage a modifiable array of objects. This class adds insertion and deletion operations to the basic array-handling behavior inherited from NSArray. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSMutableArray_Class/index.html#//apple_ref/occ/cl/NSMutableArray"/> [iOSVersion(2)] public class NSMutableArray : NSArray//, AnyObject, ArrayLiteralConvertible, NSCoding, NSCopying, NSFastEnumeration, NSMutableCopying, NSObjectProtocol, NSSecureCoding, Reflectable, Sequence { /// <summary> /// Returns an array, initialized with enough memory to initially hold a given number of objects. /// </summary> /// <param name="capacity">The initial capacity of the new array.</param> [iOSVersion(2)] public NSMutableArray(int capacity) { } /// <summary> /// Initializes a newly allocated array. /// </summary> [iOSVersion(7)] public NSMutableArray() { } /// <summary> /// Inserts a given object at the end of the array. /// </summary> /// <param name="anObject">The object to add to the end of the array's content. This value must not be nil. /// Important /// Raises an NSInvalidArgumentException if anObject is nil.</param> [iOSVersion(2)] [Export("addObject")] public void AddObject(AnyObject anObject) { } /// <summary> /// Adds the objects contained in another given array to the end of the receiving array’s content. /// </summary> /// <param name="otherArray">An array of objects to add to the end of the receiving array’s content.</param> [iOSVersion(2)] [Export("addObjectsFromArray")] public void AddObjectsFromArray(AnyObject[] otherArray) { } /// <summary> /// Inserts a given object into the array's contents at a given index. /// </summary> /// <param name="anObject">The object to add to the array's content. This value must not be nil. /// Important /// Raises an NSInvalidArgumentException if anObject is nil.</param> /// <param name="atIndex">The index in the array at which to insert anObject. This value must not be greater than the count of elements in the array. /// Important /// Raises an NSRangeException if index is greater than the number of elements in the array.</param> [iOSVersion(2)] [Export("insertObject")] public void InsertObject(AnyObject anObject, int atIndex) { } /// <summary> /// Inserts the objects in the provided array into the receiving array at the specified indexes. /// </summary> /// <param name="objects">An array of objects to insert into the receiving array.</param> /// <param name="atIndexes">The indexes at which the objects in objects should be inserted. The count of locations in indexes must equal the count of objects. For more details, see the Discussion.</param> [iOSVersion(2)] [Export("insertObjects")] public void InsertObjects(AnyObject[] objects, NSIndexSet atIndexes) { } /// <summary> /// Empties the array of all its elements. /// </summary> [iOSVersion(2)] [Export("removeAllObjects")] public void RemoveAllObjects() { } /// <summary> /// Removes the object with the highest-valued index in the array /// </summary> [iOSVersion(2)] [Export("removeLastObject")] public void RemoveLastObject() { } /// <summary> /// Removes all occurrences in the array of a given object. /// </summary> /// <param name="anObject">The object to remove from the array.</param> [iOSVersion(2)] [Export("removeObject")] public void RemoveObject(AnyObject anObject) { } /// <summary> /// Removes all occurrences within a specified range in the array of a given object. /// </summary> /// <param name="anObject">The object to remove from the array's content.</param> /// <param name="inRange">The range from which to remove anObject. /// Important /// Raises an NSRangeException if aRange exceeds the bounds of the array.</param> [iOSVersion(2)] [Export("removeObject")] public void RemoveObject(AnyObject anObject, NSRange inRange) { } /// <summary> /// Removes the object at index . /// </summary> /// <param name="index">The index from which to remove the object in the array. The value must not exceed the bounds of the array. /// Important /// Raises an NSRangeException if index is beyond the end of the array.</param> [iOSVersion(2)] [Export("removeObjectAtIndex")] public void RemoveObjectAtIndex(int index) { } /// <summary> /// Removes the objects at the specified indexes from the array. /// </summary> /// <param name="indexes">The indexes of the objects to remove from the array. The locations specified by indexes must lie within the bounds of the array.</param> [iOSVersion(2)] [Export("removeObjectsAtIndexes")] public void RemoveObjectsAtIndexes(NSIndexSet indexes) { } /// <summary> /// Removes all occurrences of a given object in the array. /// </summary> /// <param name="anObject">The object to remove from the array.</param> [iOSVersion(2)] [Export("removeObjectIdenticalTo")] public void RemoveObjectIdenticalTo(AnyObject anObject) { } /// <summary> /// Removes all occurrences of anObject within the specified range in the array. /// </summary> /// <param name="anObject">The object to remove from the array within aRange.</param> /// <param name="inRange">The range in the array from which to remove anObject. /// Important /// Raises an NSRangeException if aRange exceeds the bounds of the array.</param> [iOSVersion(2)] [Export("removeObjectIdenticalTo")] public void RemoveObjectIdenticalTo(AnyObject anObject, NSRange inRange) { } /// <summary> /// Removes from the receiving array the objects in another given array. /// </summary> /// <param name="otherArray">An array containing the objects to be removed from the receiving array.</param> [iOSVersion(2)] [Export("removeObjectsInArray")] public void RemoveObjectsInArray(AnyObject[] otherArray) { } /// <summary> /// Removes from the array each of the objects within a given range. /// </summary> /// <param name="aRange">The range of the objects to remove from the array.</param> [iOSVersion(2)] [Export("removeObjectsInRange")] public void RemoveObjectsInRange(NSRange aRange) { } /// <summary> /// Replaces the object at index with anObject. /// </summary> /// <param name="index">The index of the object to be replaced. This value must not exceed the bounds of the array. /// Important /// Raises an NSRangeException if index is beyond the end of the array.</param> /// <param name="withObject">The object with which to replace the object at index index in the array. This value must not be nil. /// Important /// Raises an NSInvalidArgumentException if anObject is nil.</param> [iOSVersion(2)] [Export("replaceObjectAtIndex")] public void ReplaceObjectAtIndex(int index, AnyObject withObject) { } /// <summary> /// Replaces the object at the index with the new object, possibly adding the object. /// </summary> /// <param name="anObject">The object with which to replace the object at index index in the array. This value must not be nil. /// Important /// Raises an NSInvalidArgumentException if anObject is nil.</param> /// <param name="atIndexedSubscript">The index of the object to be replaced. This value must not exceed the bounds of the array. /// Important /// Raises an NSRangeException if index is beyond the end of the array.</param> [iOSVersion(6)] [Export("setObject")] public void SetObject(AnyObject anObject, int atIndexedSubscript) { } /// <summary> /// Replaces the objects in the receiving array at specified locations specified with the objects from a given array. /// </summary> /// <param name="indexes">The indexes of the objects to be replaced.</param> /// <param name="withObjects">The objects with which to replace the objects in the receiving array at the indexes specified by indexes. The count of locations in indexes must equal the count of objects.</param> [iOSVersion(2)] [Export("replaceObjectsAtIndexes")] public void ReplaceObjectsAtIndexes(NSIndexSet indexes, AnyObject[] withObjects) { } /// <summary> /// Replaces the objects in the receiving array specified by one given range with the objects in another array specified by another range. /// </summary> /// <param name="aRange">The range of objects to replace in (or remove from) the receiving array.</param> /// <param name="withObjectsFromArray">The array of objects from which to select replacements for the objects in aRange.</param> /// <param name="range">The range of objects to select from otherArray as replacements for the objects in aRange.</param> [iOSVersion(2)] [Export("replaceObjectsInRange")] public void ReplaceObjectsInRange(NSRange aRange, AnyObject[] withObjectsFromArray, NSRange range) { } /// <summary> /// Replaces the objects in the receiving array specified by a given range with all of the objects from a given array. /// </summary> /// <param name="aRange">The range of objects to replace in (or remove from) the receiving array.</param> /// <param name="withObjectsFromArray">The array of objects from which to select replacements for the objects in aRange.</param> [iOSVersion(2)] [Export("replaceObjectsInRange")] public void ReplaceObjectsInRange(NSRange aRange, AnyObject[] withObjectsFromArray) { } /// <summary> /// Sets the receiving array’s elements to those in another given array. /// </summary> /// <param name="otherArray">The array of objects with which to replace the receiving array's content.</param> [iOSVersion(2)] [Export("setArray")] public void SetArray(AnyObject[] otherArray) { } /// <summary> /// Evaluates a given predicate against the array’s content and leaves only objects that match /// </summary> /// <param name="predicate">The predicate to evaluate against the array's elements.</param> [iOSVersion(3)] [Export("filterUsingPredicate")] public void FilterUsingPredicate(NSPredicate predicate) { } /// <summary> /// Exchanges the objects in the array at given indices. /// </summary> /// <param name="idx1">The index of the object with which to replace the object at index idx2.</param> /// <param name="withObjectAtIndex">The index of the object with which to replace the object at index idx1.</param> [iOSVersion(2)] [Export("exchangeObjectAtIndex")] public void ExchangeObjectAtIndex(int idx1, int withObjectAtIndex) { } /// <summary> /// Sorts the receiving array using a given array of sort descriptors. /// </summary> /// <param name="sortDescriptors">An array containing the NSSortDescriptor objects to use to sort the receiving array's contents.</param> [iOSVersion(2)] [Export("sortUsingDescriptors")] public void SortUsingDescriptors(AnyObject[] sortDescriptors) { } /// <summary> /// Sorts the array using the comparison method specified by a given NSComparator Block. /// </summary> /// <param name="cmptr">A comparator block.</param> [iOSVersion(4)] [Export("sortUsingComparator")] public void SortUsingComparator(NSComparator cmptr) { } /// <summary> /// Sorts the array using the specified options and the comparison method specified by a given NSComparator Block. /// </summary> /// <param name="opts">A bitmask that specifies the options for the sort (whether it should be performed concurrently and whether it should be performed stably).</param> /// <param name="usingComparator">A comparator block.</param> [iOSVersion(4)] [Export("sortWithOptions")] public void SortWithOptions(NSSortOptions opts, NSComparator usingComparator) { } /// <summary> /// Sorts the array’s elements in ascending order as defined by the comparison function compare. /// </summary> /// <param name="compare">The comparison function to use to compare two elements at a time. /// The function's parameters are two objects to compare and the context parameter, context. The function should return NSOrderedAscending if the first element is smaller than the second, NSOrderedDescending if the first element is larger than the second, and NSOrderedSame if the elements are equal.</param> /// <param name="context">The context argument to pass to the compare function.</param> [iOSVersion(2)] [Export("sortUsingFunction")] public void SortUsingFunction(CFunctionPointer<Func<AnyObject, AnyObject, UnsafePointer<Action>, int>> compare, UnsafePointer<Action> context) { } /// <summary> /// Sorts the array’s elements in ascending order, as determined by the comparison method specified by a given selector. /// </summary> /// <param name="comparator">A selector that specifies the comparison method to use to compare elements in the array. /// The comparator message is sent to each object in the array and has as its single argument another object in the array. The comparator method should return NSOrderedAscending if the array is smaller than the argument, NSOrderedDescending if the array is larger than the argument, and NSOrderedSame if they are equal.</param> [iOSVersion(2)] [Export("sortUsingSelector")] public void SortUsingSelector(Selector comparator) { } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSMutableArray class declares the programmatic interface to objects that manage a modifiable array of objects. This class adds insertion and deletion operations to the basic array-handling behavior inherited from NSArray. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSMutableArray_Class/index.html#//apple_ref/occ/cl/NSMutableArray"/> [iOSVersion(2)] [Export("")] public class NSMutableArray : NSArray//, AnyObject, ArrayLiteralConvertible, CKRecordValue, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSFastEnumeration, NSMutableCopying, NSObjectProtocol, NSSecureCoding, Printable, Reflectable, SequenceType { /// <summary> /// Initializes a newly allocated array. /// </summary> [iOSVersion(7)] public NSMutableArray() { } /// <summary> /// Returns an array, initialized with enough memory to initially hold a given number of objects. /// </summary> /// <param name="capacity">The initial capacity of the new array.</param> [iOSVersion(2)] public NSMutableArray(int capacity) { } /// <summary> /// Inserts a given object at the end of the array. /// </summary> /// <param name="anObject">The object to add to the end of the array’s content. This value must not be nil. /// Important /// Raises an NSInvalidArgumentException if anObject is nil.</param> [iOSVersion(2)] [Export("addObject")] public virtual void AddObject(AnyObject anObject) { } /// <summary> /// Adds the objects contained in another given array to the end of the receiving array’s content. /// </summary> /// <param name="otherArray">An array of objects to add to the end of the receiving array’s content.</param> [iOSVersion(2)] [Export("addObjectsFromArray")] public virtual void AddObjectsFromArray(AnyObject[] otherArray) { } /// <summary> /// Inserts a given object into the array’s contents at a given index. /// </summary> /// <param name="anObject">The object to add to the array&#39;s content. This value must not be nil. /// Important /// Raises an NSInvalidArgumentException if anObject is nil.</param> /// <param name="atIndex">The index in the array at which to insert anObject. This value must not be greater than the count of elements in the array. /// Important /// Raises an NSRangeException if index is greater than the number of elements in the array.</param> [iOSVersion(2)] [Export("insertObject")] public virtual void InsertObject(AnyObject anObject, int atIndex) { } /// <summary> /// Inserts the objects in the provided array into the receiving array at the specified indexes. /// </summary> /// <param name="objects">An array of objects to insert into the receiving array.</param> /// <param name="atIndexes">The indexes at which the objects in objects should be inserted. The count of locations in indexes must equal the count of objects. For more details, see the Discussion.</param> [iOSVersion(2)] [Export("insertObjects")] public virtual void InsertObjects(AnyObject[] objects, NSIndexSet atIndexes) { } /// <summary> /// Empties the array of all its elements. /// </summary> [iOSVersion(2)] [Export("removeAllObjects")] public virtual void RemoveAllObjects() { } /// <summary> /// Removes the object with the highest-valued index in the array /// </summary> [iOSVersion(2)] [Export("removeLastObject")] public virtual void RemoveLastObject() { } /// <summary> /// Removes all occurrences in the array of a given object. /// </summary> /// <param name="anObject">The object to remove from the array.</param> [iOSVersion(2)] [Export("removeObject")] public virtual void RemoveObject(AnyObject anObject) { } /// <summary> /// Removes all occurrences within a specified range in the array of a given object. /// </summary> /// <param name="anObject">The object to be removed from the array’s content.</param> /// <param name="inRange">The range from which to remove anObject. /// Important /// Raises an exception NSRangeException if aRange exceeds the bounds of the array.</param> [iOSVersion(2)] [Export("removeObject")] public virtual void RemoveObject(AnyObject anObject, NSRange inRange) { } /// <summary> /// Removes the object at index . /// </summary> /// <param name="index">The index from which to remove the object in the array. The value must not exceed the bounds of the array. /// Important /// Raises an exception NSRangeException if index is beyond the end of the array.</param> [iOSVersion(2)] [Export("removeObjectAtIndex")] public virtual void RemoveObjectAtIndex(int index) { } /// <summary> /// Removes the objects at the specified indexes from the array. /// </summary> /// <param name="indexes">The indexes of the objects to remove from the array. The locations specified by indexes must lie within the bounds of the array.</param> [iOSVersion(2)] [Export("removeObjectsAtIndexes")] public virtual void RemoveObjectsAtIndexes(NSIndexSet indexes) { } /// <summary> /// Removes all occurrences of a given object in the array. /// </summary> /// <param name="anObject">The object to remove from the array.</param> [iOSVersion(2)] [Export("removeObjectIdenticalTo")] public virtual void RemoveObjectIdenticalTo(AnyObject anObject) { } /// <summary> /// Removes all occurrences of anObject within the specified range in the array. /// </summary> /// <param name="anObject">The object to remove from the array within aRange.</param> /// <param name="inRange">The range in the array from which to remove anObject. /// Important /// Raises an exception NSRangeException if aRange exceeds the bounds of the array.</param> [iOSVersion(2)] [Export("removeObjectIdenticalTo")] public virtual void RemoveObjectIdenticalTo(AnyObject anObject, NSRange inRange) { } /// <summary> /// Removes from the receiving array the objects in another given array. /// </summary> /// <param name="otherArray">An array containing the objects to be removed from the receiving array.</param> [iOSVersion(2)] [Export("removeObjectsInArray")] public virtual void RemoveObjectsInArray(AnyObject[] otherArray) { } /// <summary> /// Removes from the array each of the objects within a given range. /// </summary> /// <param name="aRange">The range of the objects to be removed from the array.</param> [iOSVersion(2)] [Export("removeObjectsInRange")] public virtual void RemoveObjectsInRange(NSRange aRange) { } /// <summary> /// Replaces the object at index with anObject. /// </summary> /// <param name="index">The index of the object to be replaced. This value must not exceed the bounds of the array. /// Important /// Raises an NSRangeException if index is beyond the end of the array.</param> /// <param name="withObject">The object with which to replace the object at index index in the array. This value must not be nil. /// Important /// Raises an NSInvalidArgumentException if anObject is nil.</param> [iOSVersion(2)] [Export("replaceObjectAtIndex")] public virtual void ReplaceObjectAtIndex(int index, AnyObject withObject) { } /// <summary> /// Replaces the objects in the receiving array at locations specified with the objects from a given array. /// </summary> /// <param name="indexes">The indexes of the objects to be replaced.</param> /// <param name="withObjects">The objects with which to replace the objects in the receiving array at the indexes specified by indexes. The count of locations in indexes must equal the count of objects.</param> [iOSVersion(2)] [Export("replaceObjectsAtIndexes")] public virtual void ReplaceObjectsAtIndexes(NSIndexSet indexes, AnyObject[] withObjects) { } /// <summary> /// Replaces the objects in the receiving array specified by one given range with the objects in another array specified by another range. /// </summary> /// <param name="aRange">The range of objects to be replaced in (or removed from) the receiving array.</param> /// <param name="withObjectsFromArray">The array of objects from which to select replacements for the objects in aRange.</param> /// <param name="range">The range of objects be selected from otherArray as replacements for the objects in aRange.</param> [iOSVersion(2)] [Export("replaceObjectsInRange")] public virtual void ReplaceObjectsInRange(NSRange aRange, AnyObject[] withObjectsFromArray, NSRange range) { } /// <summary> /// Replaces the objects in the receiving array specified by a given range with all of the objects from a given array. /// </summary> /// <param name="aRange">The range of objects to be replaced in (or removed from) the receiving array.</param> /// <param name="withObjectsFromArray">The array of objects from which to select replacements for the objects in aRange.</param> [iOSVersion(2)] [Export("replaceObjectsInRange")] public virtual void ReplaceObjectsInRange(NSRange aRange, AnyObject[] withObjectsFromArray) { } /// <summary> /// Sets the receiving array’s elements to those in another given array. /// </summary> /// <param name="otherArray">The array of objects with which to replace the receiving array’s content.</param> [iOSVersion(2)] [Export("setArray")] public virtual void SetArray(AnyObject[] otherArray) { } /// <summary> /// Evaluates a given predicate against the array’s content and leaves only objects that match. /// </summary> /// <param name="predicate">The predicate to evaluate against the array’s elements.</param> [iOSVersion(3)] [Export("filterUsingPredicate")] public virtual void FilterUsingPredicate(NSPredicate predicate) { } /// <summary> /// Exchanges the objects in the array at given indexes. /// </summary> /// <param name="idx1">The index of the object with which to replace the object at index idx2.</param> /// <param name="withObjectAtIndex">The index of the object with which to replace the object at index idx1.</param> [iOSVersion(2)] [Export("exchangeObjectAtIndex")] public virtual void ExchangeObjectAtIndex(int idx1, int withObjectAtIndex) { } /// <summary> /// Sorts the receiving array using a given array of sort descriptors. /// </summary> /// <param name="sortDescriptors">An array containing the NSSortDescriptor objects to use to sort the receiving array’s contents.</param> [iOSVersion(2)] [Export("sortUsingDescriptors")] public virtual void SortUsingDescriptors(AnyObject[] sortDescriptors) { } /// <summary> /// Sorts the array using the comparison method specified by a given NSComparator block. /// </summary> /// <param name="cmptr">A comparator block.</param> [iOSVersion(4)] [Export("sortUsingComparator")] public virtual void SortUsingComparator(NSComparator cmptr) { } /// <summary> /// Sorts the array using the specified options and the comparison method specified by a given NSComparator block. /// </summary> /// <param name="opts">A bitmask that specifies the options for the sort (whether it should be performed concurrently and whether it should be performed stably).</param> /// <param name="usingComparator">A comparator block.</param> [iOSVersion(4)] [Export("sortWithOptions")] public virtual void SortWithOptions(NSSortOptions opts, NSComparator usingComparator) { } /// <summary> /// Sorts the array’s elements in ascending order as defined by the comparison function compare. /// </summary> /// <param name="compare">The comparison function to use to compare two elements at a time. /// The function’s parameters are two objects to compare and the context parameter, context. The function should return NSOrderedAscending if the first element is smaller than the second, NSOrderedDescending if the first element is larger than the second, and NSOrderedSame if the elements are equal.</param> /// <param name="context">The context argument to be passed to the compare function.</param> [iOSVersion(2)] [Export("sortUsingFunction")] public virtual void SortUsingFunction(CFunctionPointer<Func<AnyObject, AnyObject, UnsafeMutablePointer, int>> compare, UnsafeMutablePointer context) { } /// <summary> /// Sorts the array’s elements in ascending order, as determined by the comparison method specified by a given selector. /// </summary> /// <param name="comparator">A selector that specifies the comparison method to use to compare elements in the array. /// The comparator message is sent to each object in the array and has as its single argument another object in the array. The comparator method should return NSOrderedAscending if the array is smaller than the argument, NSOrderedDescending if the array is larger than the argument, and NSOrderedSame if they are equal.</param> [iOSVersion(2)] [Export("sortUsingSelector")] public virtual void SortUsingSelector(Selector comparator) { } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSMutableAttributedString.cs b/CocoaSharp/Foundation/NSMutableAttributedString.cs
index 56e4ca45..d95c8ca7 100644
--- a/CocoaSharp/Foundation/NSMutableAttributedString.cs
+++ b/CocoaSharp/Foundation/NSMutableAttributedString.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSMutableAttributedString declares the programmatic interface to objects that manage mutable attributed strings. You can add and remove characters (raw strings) and attributes separately or together as attributed strings. See the class description for NSAttributedString for more information about attributed strings. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSMutableAttributedString_Class/index.html#//apple_ref/occ/cl/NSMutableAttributedString"/> [iOSVersion(3.2)] public class NSMutableAttributedString : NSAttributedString//, AnyObject, NSCoding, NSCopying, NSMutableCopying, NSObjectProtocol, NSSecureCoding { //NOTE: added this public NSMutableAttributedString() : base("") { } /// <summary> /// Replaces the characters in the given range with the characters of the given string. /// </summary> /// <param name="aRange">A range specifying the characters to replace.</param> /// <param name="withString">A string specifying the characters to replace those in aRange.</param> [iOSVersion(3.2)] [Export("replaceCharactersInRange")] public void ReplaceCharactersInRange(NSRange aRange, string withString) { } /// <summary> /// Deletes the characters in the given range along with their associated attributes. /// </summary> /// <param name="aRange">A range specifying the characters to delete.</param> [iOSVersion(3.2)] [Export("deleteCharactersInRange")] public void DeleteCharactersInRange(NSRange aRange) { } /// <summary> /// Sets the attributes for the characters in the specified range to the specified attributes. /// </summary> /// <param name="attributes">A dictionary containing the attributes to set. Attribute keys can be supplied by another framework or can be custom ones you define. For information about where to find the system-supplied attribute keys, see the overview section in NSAttributedString Class Reference.</param> /// <param name="range">The range of characters whose attributes are set.</param> [iOSVersion(3.2)] [Export("setAttributes")] public void SetAttributes(Dictionary<NSObject, AnyObject> attributes, NSRange range) { } /// <summary> /// Adds an attribute with the given name and value to the characters in the specified range. /// </summary> /// <param name="name">A string specifying the attribute name. Attribute keys can be supplied by another framework or can be custom ones you define. For information about where to find the system-supplied attribute keys, see the overview section in NSAttributedString Class Reference.</param> /// <param name="value">The attribute value associated with name.</param> /// <param name="range">The range of characters to which the specified attribute/value pair applies.</param> [iOSVersion(3.2)] [Export("addAttribute")] public void AddAttribute(string name, AnyObject value, NSRange range) { } /// <summary> /// Adds the given collection of attributes to the characters in the specified range. /// </summary> /// <param name="attributes">A dictionary containing the attributes to add. Attribute keys can be supplied by another framework or can be custom ones you define. For information about where to find the system-supplied attribute keys, see the overview section in NSAttributedString Class Reference.</param> /// <param name="range">The range of characters to which the specified attributes apply.</param> [iOSVersion(3.2)] [Export("addAttributes")] public void AddAttributes(Dictionary<NSObject, AnyObject> attributes, NSRange range) { } /// <summary> /// Removes the named attribute from the characters in the specified range. /// </summary> /// <param name="name">A string specifying the attribute name to remove. Attribute keys can be supplied by another framework or can be custom ones you define. For information about where to find the system-supplied attribute keys, see the overview section in NSAttributedString Class Reference.</param> /// <param name="range">The range of characters from which the specified attribute is removed.</param> [iOSVersion(3.2)] [Export("removeAttribute")] public void RemoveAttribute(string name, NSRange range) { } /// <summary> /// Adds the characters and attributes of a given attributed string to the end of the receiver. /// </summary> /// <param name="attributedString">The string whose characters and attributes are added.</param> [iOSVersion(3.2)] [Export("appendAttributedString")] public void AppendAttributedString(NSAttributedString attributedString) { } /// <summary> /// Inserts the characters and attributes of the given attributed string into the receiver at the given index. /// </summary> /// <param name="attributedString">The string whose characters and attributes are inserted.</param> /// <param name="atIndex">The index at which the characters and attributes are inserted.</param> [iOSVersion(3.2)] [Export("insertAttributedString")] public void InsertAttributedString(NSAttributedString attributedString, int atIndex) { } /// <summary> /// Replaces the characters and attributes in a given range with the characters and attributes of the given attributed string. /// </summary> /// <param name="aRange">The range of characters and attributes replaced.</param> /// <param name="withAttributedString">The attributed string whose characters and attributes replace those in the specified range.</param> [iOSVersion(3.2)] [Export("replaceCharactersInRange")] public void ReplaceCharactersInRange(NSRange aRange, NSAttributedString withAttributedString) { } /// <summary> /// Replaces the receiver’s entire contents with the characters and attributes of the given attributed string. /// </summary> /// <param name="attributedString">The attributed string whose characters and attributes replace those in the receiver.</param> [iOSVersion(3.2)] [Export("setAttributedString")] public void SetAttributedString(NSAttributedString attributedString) { } /// <summary> /// Overridden by subclasses to buffer or optimize a series of changes to the receiver’s characters or attributes, until it receives a matching endEditing message, upon which it can consolidate changes and notify any observers that it has changed. /// </summary> [iOSVersion(3.2)] [Export("beginEditing")] public void BeginEditing() { } /// <summary> /// Overridden by subclasses to consolidate changes made since a previous beginEditing message and to notify any observers of the changes. /// </summary> [iOSVersion(3.2)] [Export("endEditing")] public void EndEditing() { } /// <summary> /// The character contents of the receiver as an NSMutableString object. /// </summary> [iOSVersion(3.2)] [Export("mutableString")] public NSMutableString MutableString { get; private set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSMutableAttributedString declares the programmatic interface to objects that manage mutable attributed strings. You can add and remove characters (raw strings) and attributes separately or together as attributed strings. See the class description for NSAttributedString for more information about attributed strings. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSMutableAttributedString_Class/index.html#//apple_ref/occ/cl/NSMutableAttributedString"/> [iOSVersion(3.2)] [Export("")] public class NSMutableAttributedString : NSAttributedString//, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSMutableCopying, NSObjectProtocol, NSSecureCoding, Printable { public NSMutableAttributedString() { } /// <summary> /// Replaces the characters in the given range with the characters of the given string. /// </summary> /// <param name="aRange">A range specifying the characters to replace.</param> /// <param name="withString">A string specifying the characters to replace those in aRange.</param> [iOSVersion(3.2)] [Export("replaceCharactersInRange")] public virtual void ReplaceCharactersInRange(NSRange aRange, string withString) { } /// <summary> /// Deletes the characters in the given range along with their associated attributes. /// </summary> /// <param name="aRange">A range specifying the characters to delete.</param> [iOSVersion(3.2)] [Export("deleteCharactersInRange")] public virtual void DeleteCharactersInRange(NSRange aRange) { } /// <summary> /// Sets the attributes for the characters in the specified range to the specified attributes. /// </summary> /// <param name="attributes">A dictionary containing the attributes to set. Attribute keys can be supplied by another framework or can be custom ones you define. For information about where to find the system-supplied attribute keys, see the overview section in NSAttributedString Class Reference.</param> /// <param name="range">The range of characters whose attributes are set.</param> [iOSVersion(3.2)] [Export("setAttributes")] public virtual void SetAttributes(Dictionary<NSObject, AnyObject> attributes, NSRange range) { } /// <summary> /// Adds an attribute with the given name and value to the characters in the specified range. /// </summary> /// <param name="name">A string specifying the attribute name. Attribute keys can be supplied by another framework or can be custom ones you define. For information about where to find the system-supplied attribute keys, see the overview section in NSAttributedString Class Reference.</param> /// <param name="value">The attribute value associated with name.</param> /// <param name="range">The range of characters to which the specified attribute/value pair applies.</param> [iOSVersion(3.2)] [Export("addAttribute")] public virtual void AddAttribute(string name, AnyObject value, NSRange range) { } /// <summary> /// Adds the given collection of attributes to the characters in the specified range. /// </summary> /// <param name="attributes">A dictionary containing the attributes to add. Attribute keys can be supplied by another framework or can be custom ones you define. For information about where to find the system-supplied attribute keys, see the overview section in NSAttributedString Class Reference.</param> /// <param name="range">The range of characters to which the specified attributes apply.</param> [iOSVersion(3.2)] [Export("addAttributes")] public virtual void AddAttributes(Dictionary<NSObject, AnyObject> attributes, NSRange range) { } /// <summary> /// Removes the named attribute from the characters in the specified range. /// </summary> /// <param name="name">A string specifying the attribute name to remove. Attribute keys can be supplied by another framework or can be custom ones you define. For information about where to find the system-supplied attribute keys, see the overview section in NSAttributedString Class Reference.</param> /// <param name="range">The range of characters from which the specified attribute is removed.</param> [iOSVersion(3.2)] [Export("removeAttribute")] public virtual void RemoveAttribute(string name, NSRange range) { } /// <summary> /// Adds the characters and attributes of a given attributed string to the end of the receiver. /// </summary> /// <param name="attributedString">The string whose characters and attributes are added.</param> [iOSVersion(3.2)] [Export("appendAttributedString")] public virtual void AppendAttributedString(NSAttributedString attributedString) { } /// <summary> /// Inserts the characters and attributes of the given attributed string into the receiver at the given index. /// </summary> /// <param name="attributedString">The string whose characters and attributes are inserted.</param> /// <param name="atIndex">The index at which the characters and attributes are inserted.</param> [iOSVersion(3.2)] [Export("insertAttributedString")] public virtual void InsertAttributedString(NSAttributedString attributedString, int atIndex) { } /// <summary> /// Replaces the characters and attributes in a given range with the characters and attributes of the given attributed string. /// </summary> /// <param name="aRange">The range of characters and attributes replaced.</param> /// <param name="withAttributedString">The attributed string whose characters and attributes replace those in the specified range.</param> [iOSVersion(3.2)] [Export("replaceCharactersInRange")] public virtual void ReplaceCharactersInRange(NSRange aRange, NSAttributedString withAttributedString) { } /// <summary> /// Replaces the receiver’s entire contents with the characters and attributes of the given attributed string. /// </summary> /// <param name="attributedString">The attributed string whose characters and attributes replace those in the receiver.</param> [iOSVersion(3.2)] [Export("setAttributedString")] public virtual void SetAttributedString(NSAttributedString attributedString) { } /// <summary> /// Overridden by subclasses to buffer or optimize a series of changes to the receiver’s characters or attributes, until it receives a matching endEditing message, upon which it can consolidate changes and notify any observers that it has changed. /// </summary> [iOSVersion(3.2)] [Export("beginEditing")] public virtual void BeginEditing() { } /// <summary> /// Overridden by subclasses to consolidate changes made since a previous beginEditing message and to notify any observers of the changes. /// </summary> [iOSVersion(3.2)] [Export("endEditing")] public virtual void EndEditing() { } /// <summary> /// The character contents of the receiver as an NSMutableString object. /// </summary> [iOSVersion(3.2)] [Export("mutableString")] public NSMutableString MutableString { get; private set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSMutableCharacterSet.cs b/CocoaSharp/Foundation/NSMutableCharacterSet.cs
index b0b44a46..9402dccc 100644
--- a/CocoaSharp/Foundation/NSMutableCharacterSet.cs
+++ b/CocoaSharp/Foundation/NSMutableCharacterSet.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSMutableCharacterSet class declares the programmatic interface to objects that manage a modifiable set of Unicode characters. You can add or remove characters from a mutable character set as numeric values in NSRange structures or as character values in strings, combine character sets by union or intersection, and invert a character set. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSMutableCharacterSet_Class/index.html#//apple_ref/occ/cl/NSMutableCharacterSet"/> [iOSVersion(2)] public class NSMutableCharacterSet : NSCharacterSet//, AnyObject, NSCoding, NSCopying, NSMutableCopying, NSObjectProtocol { //NOTE: added this public NSMutableCharacterSet() : base("") { } /// <summary> /// Adds to the receiver the characters whose Unicode values are in a given range. /// </summary> /// <param name="aRange">The range of characters to add. /// aRange.location is the value of the first character to add; aRange.location + aRange.length– 1 is the value of the last. If aRange.length is 0, this method has no effect.</param> [iOSVersion(2)] [Export("addCharactersInRange")] public void AddCharactersInRange(NSRange aRange) { } /// <summary> /// Removes from the receiver the characters whose Unicode values are in a given range. /// </summary> /// <param name="aRange">The range of characters to remove. /// aRange.location is the value of the first character to remove; aRange.location + aRange.length– 1 is the value of the last. If aRange.length is 0, this method has no effect.</param> [iOSVersion(2)] [Export("removeCharactersInRange")] public void RemoveCharactersInRange(NSRange aRange) { } /// <summary> /// Adds to the receiver the characters in a given string. /// </summary> /// <param name="aString">The characters to add to the receiver.</param> [iOSVersion(2)] [Export("addCharactersInString")] public void AddCharactersInString(string aString) { } /// <summary> /// Removes from the receiver the characters in a given string. /// </summary> /// <param name="aString">The characters to remove from the receiver.</param> [iOSVersion(2)] [Export("removeCharactersInString")] public void RemoveCharactersInString(string aString) { } /// <summary> /// Modifies the receiver so it contains only characters that exist in both the receiver and otherSet. /// </summary> /// <param name="otherSet">The character set with which to perform the intersection.</param> [iOSVersion(2)] [Export("formIntersectionWithCharacterSet")] public void FormIntersectionWithCharacterSet(NSCharacterSet otherSet) { } /// <summary> /// Modifies the receiver so it contains all characters that exist in either the receiver or otherSet. /// </summary> /// <param name="otherSet"></param> [iOSVersion(2)] [Export("formUnionWithCharacterSet")] public void FormUnionWithCharacterSet(NSCharacterSet otherSet) { } /// <summary> /// Replaces all the characters in the receiver with all the characters it didn’t previously contain. /// </summary> [iOSVersion(2)] [Export("invert")] public void Invert() { } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSMutableCharacterSet class declares the programmatic interface to objects that manage a modifiable set of Unicode characters. You can add or remove characters from a mutable character set as numeric values in NSRange structures or as character values in strings, combine character sets by union or intersection, and invert a character set. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSMutableCharacterSet_Class/index.html#//apple_ref/occ/cl/NSMutableCharacterSet"/> [iOSVersion(2)] [Export("")] public class NSMutableCharacterSet : NSCharacterSet//, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSMutableCopying, NSObjectProtocol, Printable { public NSMutableCharacterSet() { } /// <summary> /// Adds to the receiver the characters whose Unicode values are in a given range. /// </summary> /// <param name="aRange">The range of characters to add. /// aRange.location is the value of the first character to add; aRange.location + aRange.length– 1 is the value of the last. If aRange.length is 0, this method has no effect.</param> [iOSVersion(2)] [Export("addCharactersInRange")] public virtual void AddCharactersInRange(NSRange aRange) { } /// <summary> /// Removes from the receiver the characters whose Unicode values are in a given range. /// </summary> /// <param name="aRange">The range of characters to remove. /// aRange.location is the value of the first character to remove; aRange.location + aRange.length– 1 is the value of the last. If aRange.length is 0, this method has no effect.</param> [iOSVersion(2)] [Export("removeCharactersInRange")] public virtual void RemoveCharactersInRange(NSRange aRange) { } /// <summary> /// Adds to the receiver the characters in a given string. /// </summary> /// <param name="aString">The characters to add to the receiver.</param> [iOSVersion(2)] [Export("addCharactersInString")] public virtual void AddCharactersInString(string aString) { } /// <summary> /// Removes from the receiver the characters in a given string. /// </summary> /// <param name="aString">The characters to remove from the receiver.</param> [iOSVersion(2)] [Export("removeCharactersInString")] public virtual void RemoveCharactersInString(string aString) { } /// <summary> /// Modifies the receiver so it contains only characters that exist in both the receiver and otherSet. /// </summary> /// <param name="otherSet">The character set with which to perform the intersection.</param> [iOSVersion(2)] [Export("formIntersectionWithCharacterSet")] public virtual void FormIntersectionWithCharacterSet(NSCharacterSet otherSet) { } /// <summary> /// Modifies the receiver so it contains all characters that exist in either the receiver or otherSet. /// </summary> /// <param name="otherSet"></param> [iOSVersion(2)] [Export("formUnionWithCharacterSet")] public virtual void FormUnionWithCharacterSet(NSCharacterSet otherSet) { } /// <summary> /// Replaces all the characters in the receiver with all the characters it didn’t previously contain. /// </summary> [iOSVersion(2)] [Export("invert")] public virtual void Invert() { } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSMutableData.cs b/CocoaSharp/Foundation/NSMutableData.cs
index e80f2aeb..149caefb 100644
--- a/CocoaSharp/Foundation/NSMutableData.cs
+++ b/CocoaSharp/Foundation/NSMutableData.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSMutableData (and its superclass NSData) provide data objects, object-oriented wrappers for byte buffers. Data objects let simple allocated buffers (that is, data with no embedded pointers) take on the behavior of Foundation objects. They are typically used for data storage and are also useful in Distributed Objects applications, where data contained in data objects can be copied or moved between applications. NSData creates static data objects, and NSMutableData creates dynamic data objects. You can easily convert one type of data object to the other with the initializer that takes an NSData object or an NSMutableData object as an argument. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSMutableData_Class/index.html#//apple_ref/occ/cl/NSMutableData"/> [iOSVersion(2)] public class NSMutableData : NSData//, AnyObject, NSCoding, NSCopying, NSMutableCopying, NSObjectProtocol, NSSecureCoding { /// <summary> /// Returns an initialized NSMutableData object capable of holding the specified number of bytes. /// </summary> /// <param name="capacity">The number of bytes the data object can initially contain.</param> [iOSVersion(2)] public NSMutableData(int capacity) : base("") { } /// <summary> /// Initializes and returns an NSMutableData object containing a given number of zeroed bytes. /// </summary> /// <param name="length">The number of bytes the object initially contains.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [IgnoreParameter("NAME_YOUR_PARAMS")] public NSMutableData(int length, bool NAME_YOUR_PARAMS = false) : base("") { } /// <summary> /// Increases the length of the receiver by a given number of bytes. /// </summary> /// <param name="extraLength">The number of bytes by which to increase the receiver's length.</param> [iOSVersion(2)] [Export("increaseLengthBy")] public void IncreaseLengthBy(int extraLength) { } /// <summary> /// Appends to the receiver a given number of bytes from a given buffer. /// </summary> /// <param name="bytes">A buffer containing data to append to the receiver's content.</param> /// <param name="length">The number of bytes from bytes to append.</param> [iOSVersion(2)] [Export("appendBytes")] public void AppendBytes(ConstUnsafePointer<Action> bytes, int length) { } /// <summary> /// Appends the content of another NSData object to the receiver. /// </summary> /// <param name="otherData">The data object whose content is to be appended to the contents of the receiver.</param> [iOSVersion(2)] [Export("appendData")] public void AppendData(NSData otherData) { } /// <summary> /// Replaces with a given set of bytes a given range within the contents of the receiver. /// </summary> /// <param name="range">The range within the receiver's contents to replace with bytes. The range must not exceed the bounds of the receiver.</param> /// <param name="withBytes">The data to insert into the receiver's contents.</param> [iOSVersion(2)] [Export("replaceBytesInRange")] public void ReplaceBytesInRange(NSRange range, ConstUnsafePointer<Action> withBytes) { } /// <summary> /// Replaces with a given set of bytes a given range within the contents of the receiver. /// </summary> /// <param name="range">The range within the receiver's contents to replace with bytes. The range must not exceed the bounds of the receiver.</param> /// <param name="withBytes">The data to insert into the receiver's contents.</param> /// <param name="length">The number of bytes to take from replacementBytes.</param> [iOSVersion(2)] [Export("replaceBytesInRange")] public void ReplaceBytesInRange(NSRange range, ConstUnsafePointer<Action> withBytes, int length) { } /// <summary> /// Replaces with zeroes the contents of the receiver in a given range. /// </summary> /// <param name="range">The range within the contents of the receiver to be replaced by zeros. The range must not exceed the bounds of the receiver.</param> [iOSVersion(2)] [Export("resetBytesInRange")] public void ResetBytesInRange(NSRange range) { } /// <summary> /// Replaces the entire contents of the receiver with the contents of another data object. /// </summary> /// <param name="aData">The data object whose content replaces that of the receiver.</param> [iOSVersion(2)] [Export("setData")] public void SetData(NSData aData) { } /// <summary> /// The number of bytes contained in the mutable data object. /// </summary> [iOSVersion(8)] [Export("length")] public int Length { get; set; } /// <summary> /// A pointer to the data contained by the mutable data object. (read-only) /// </summary> [iOSVersion(2)] [Export("mutableBytes")] public UnsafePointer<Action> MutableBytes { get; private set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSMutableData (and its superclass NSData) provide data objects, object-oriented wrappers for byte buffers. Data objects let simple allocated buffers (that is, data with no embedded pointers) take on the behavior of Foundation objects. They are typically used for data storage and are also useful in Distributed Objects applications, where data contained in data objects can be copied or moved between applications. NSData creates static data objects, and NSMutableData creates dynamic data objects. You can easily convert one type of data object to the other with the initializer that takes an NSData object or an NSMutableData object as an argument. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSMutableData_Class/index.html#//apple_ref/occ/cl/NSMutableData"/> [iOSVersion(2)] [Export("")] public class NSMutableData : NSData//, AnyObject, CKRecordValue, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSMutableCopying, NSObjectProtocol, NSSecureCoding, Printable { public NSMutableData() { } /// <summary> /// Increases the length of the receiver by a given number of bytes. /// </summary> /// <param name="extraLength">The number of bytes by which to increase the receiver&#39;s length.</param> [iOSVersion(2)] [Export("increaseLengthBy")] public virtual void IncreaseLengthBy(int extraLength) { } /// <summary> /// Appends to the receiver a given number of bytes from a given buffer. /// </summary> /// <param name="bytes">A buffer containing data to append to the receiver&#39;s content.</param> /// <param name="length">The number of bytes from bytes to append.</param> [iOSVersion(2)] [Export("appendBytes")] public virtual void AppendBytes(UnsafePointer bytes, int length) { } /// <summary> /// Appends the content of another NSData object to the receiver. /// </summary> /// <param name="otherData">The data object whose content is to be appended to the contents of the receiver.</param> [iOSVersion(2)] [Export("appendData")] public virtual void AppendData(NSData otherData) { } /// <summary> /// Replaces with a given set of bytes a given range within the contents of the receiver. /// </summary> /// <param name="range">The range within the receiver&#39;s contents to replace with bytes. The range must not exceed the bounds of the receiver.</param> /// <param name="withBytes">The data to insert into the receiver&#39;s contents.</param> [iOSVersion(2)] [Export("replaceBytesInRange")] public virtual void ReplaceBytesInRange(NSRange range, UnsafePointer withBytes) { } /// <summary> /// Replaces with a given set of bytes a given range within the contents of the receiver. /// </summary> /// <param name="range">The range within the receiver&#39;s contents to replace with bytes. The range must not exceed the bounds of the receiver.</param> /// <param name="withBytes">The data to insert into the receiver&#39;s contents.</param> /// <param name="length">The number of bytes to take from replacementBytes.</param> [iOSVersion(2)] [Export("replaceBytesInRange")] public virtual void ReplaceBytesInRange(NSRange range, UnsafePointer withBytes, int length) { } /// <summary> /// Replaces with zeroes the contents of the receiver in a given range. /// </summary> /// <param name="range">The range within the contents of the receiver to be replaced by zeros. The range must not exceed the bounds of the receiver.</param> [iOSVersion(2)] [Export("resetBytesInRange")] public virtual void ResetBytesInRange(NSRange range) { } /// <summary> /// Replaces the entire contents of the receiver with the contents of another data object. /// </summary> /// <param name="aData">The data object whose content replaces that of the receiver.</param> [iOSVersion(2)] [Export("setData")] public virtual void SetData(NSData aData) { } /// <summary> /// The number of bytes contained in the mutable data object. /// </summary> [iOSVersion(8)] [Export("length")] public int Length { get; set; } /// <summary> /// A pointer to the data contained by the mutable data object. (read-only) /// </summary> [iOSVersion(2)] [Export("mutableBytes")] public UnsafeMutablePointer MutableBytes { get; private set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSMutableDictionary.cs b/CocoaSharp/Foundation/NSMutableDictionary.cs
index 44c12d62..d876381e 100644
--- a/CocoaSharp/Foundation/NSMutableDictionary.cs
+++ b/CocoaSharp/Foundation/NSMutableDictionary.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSMutableDictionary class declares the programmatic interface to objects that manage mutable associations of keys and values. It adds modification operations to the basic operations it inherits from NSDictionary. NSMutableDictionary is “toll-free bridged” with its Core Foundation counterpart, CFMutableDictionaryRef. See Toll-Free Bridging for more information. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSMutableDictionary_Class/index.html#//apple_ref/occ/cl/NSMutableDictionary"/> [iOSVersion(2)] public class NSMutableDictionary : NSDictionary//, AnyObject, DictionaryLiteralConvertible, NSCoding, NSCopying, NSFastEnumeration, NSMutableCopying, NSObjectProtocol, NSSecureCoding, Reflectable, Sequence { /// <summary> /// Initializes a newly allocated mutable dictionary, allocating enough memory to hold numItems entries. /// </summary> /// <param name="capacity">The initial capacity of the initialized dictionary.</param> [iOSVersion(2)] public NSMutableDictionary(int capacity) { } /// <summary> /// Initializes a newly allocated mutable dictionary. /// </summary> [iOSVersion(7)] public NSMutableDictionary() { } /// <summary> /// Creates a mutable dictionary which is optimized for dealing with a known set of keys. /// </summary> /// <param name="sharedKeySet">The keyset, created by the NSDictionary class method sharedKeySetForKeys:. /// Important /// If keyset is nil, an exception is raised. If keyset is not an object returned by sharedKeySetForKeys:, an exception is raised.</param> [iOSVersion(6)] public NSMutableDictionary(AnyObject sharedKeySet) { } /// <summary> /// Adds a given key-value pair to the dictionary. /// </summary> /// <param name="anObject">The value for aKey. A strong reference to the object is maintained by the dictionary. /// Important /// Raises an NSInvalidArgumentException if anObject is nil. If you need to represent a nil value in the dictionary, use NSNull.</param> /// <param name="forKey">The key for value. The key is copied (using copyWithZone:; keys must conform to the NSCopying protocol). If aKey already exists in the dictionary, anObject takes its place. /// Important /// Raises an NSInvalidArgumentException if aKey is nil.</param> [iOSVersion(2)] [Export("setObject")] public void SetObject(AnyObject anObject, NSCopying forKey) { } /// <summary> /// Adds a given key-value pair to the dictionary. /// </summary> /// <param name="@object">The value for aKey. A strong reference to the object is maintained by the dictionary. /// Important /// Raises an NSInvalidArgumentException if anObject is nil. If you need to represent a nil value in the dictionary, use NSNull.</param> /// <param name="forKeyedSubscript">The key for value. The key is copied (using copyWithZone:; keys must conform to the NSCopying protocol). If aKey already exists in the dictionary, anObject takes its place. /// Important /// Raises an NSInvalidArgumentException if aKey is nil.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(6)] [Export("setObject")] [IgnoreParameter("NAME_YOUR_PARAMS")] public void SetObject(AnyObject @object, NSCopying forKeyedSubscript, bool NAME_YOUR_PARAMS = false) { } /// <summary> /// Adds a given key-value pair to the dictionary. /// </summary> /// <param name="value">The value for key.</param> /// <param name="forKey">The key for value. Note that when using key-value coding, the key must be a string (see Key-Value Coding Fundamentals).</param> [iOSVersion(2)] [Export("setValue")] public void SetValue(AnyObject value, string forKey) { } /// <summary> /// Adds to the receiving dictionary the entries from another dictionary. /// </summary> /// <param name="otherDictionary">The dictionary from which to add entries</param> [iOSVersion(2)] [Export("addEntriesFromDictionary")] public void AddEntriesFromDictionary(Dictionary<NSObject, AnyObject> otherDictionary) { } /// <summary> /// Sets the contents of the receiving dictionary to entries in a given dictionary. /// </summary> /// <param name="otherDictionary">A dictionary containing the new entries.</param> [iOSVersion(2)] [Export("setDictionary")] public void SetDictionary(Dictionary<NSObject, AnyObject> otherDictionary) { } /// <summary> /// Removes a given key and its associated value from the dictionary. /// </summary> /// <param name="aKey">The key to remove. /// Important /// Raises an NSInvalidArgumentException if aKey is nil.</param> [iOSVersion(2)] [Export("removeObjectForKey")] public void RemoveObjectForKey(AnyObject aKey) { } /// <summary> /// Empties the dictionary of its entries. /// </summary> [iOSVersion(2)] [Export("removeAllObjects")] public void RemoveAllObjects() { } /// <summary> /// Removes from the dictionary entries specified by elements in a given array. /// </summary> /// <param name="keyArray">An array of objects specifying the keys to remove.</param> [iOSVersion(2)] [Export("removeObjectsForKeys")] public void RemoveObjectsForKeys(AnyObject[] keyArray) { } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSMutableDictionary class declares the programmatic interface to objects that manage mutable associations of keys and values. It adds modification operations to the basic operations it inherits from NSDictionary. NSMutableDictionary is “toll-free bridged” with its Core Foundation counterpart, CFMutableDictionaryRef. See Toll-Free Bridging in Concepts in Objective-C Programming for more information. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSMutableDictionary_Class/index.html#//apple_ref/occ/cl/NSMutableDictionary"/> [iOSVersion(2)] [Export("")] public class NSMutableDictionary : NSDictionary//, AnyObject, CVarArgType, DictionaryLiteralConvertible, Equatable, Hashable, NSCoding, NSCopying, NSFastEnumeration, NSMutableCopying, NSObjectProtocol, NSSecureCoding, Printable, Reflectable, SequenceType { /// <summary> /// Initializes a newly allocated mutable dictionary, allocating enough memory to hold numItems entries. /// </summary> /// <param name="capacity">The initial capacity of the initialized dictionary.</param> [iOSVersion(2)] public NSMutableDictionary(int capacity) { } /// <summary> /// Initializes a newly allocated mutable dictionary. /// </summary> [iOSVersion(7)] public NSMutableDictionary() { } /// <summary> /// Creates a mutable dictionary which is optimized for dealing with a known set of keys. /// </summary> /// <param name="sharedKeySet">The keyset, created by the NSDictionary class method sharedKeySetForKeys:. /// Important /// If keyset is nil, an exception is raised. If keyset is not an object returned by sharedKeySetForKeys:, an exception is raised.</param> [iOSVersion(6)] public NSMutableDictionary(AnyObject sharedKeySet) { } /// <summary> /// Adds a given key-value pair to the dictionary. /// </summary> /// <param name="anObject">The value for aKey. A strong reference to the object is maintained by the dictionary. /// Important /// Raises an NSInvalidArgumentException if anObject is nil. If you need to represent a nil value in the dictionary, use NSNull.</param> /// <param name="forKey">The key for value. The key is copied (using copyWithZone:; keys must conform to the NSCopying protocol). If aKey already exists in the dictionary, anObject takes its place. /// Important /// Raises an NSInvalidArgumentException if aKey is nil.</param> [iOSVersion(2)] [Export("setObject")] public virtual void SetObject(AnyObject anObject, NSCopying forKey) { } /// <summary> /// Adds a given key-value pair to the dictionary. /// </summary> /// <param name="value">The value for key.</param> /// <param name="forKey">The key for value. Note that when using key-value coding, the key must be a string (see Key-Value Coding Fundamentals in Key-Value Coding Programming Guide).</param> [iOSVersion(2)] [Export("setValue")] public virtual void SetValue([Optional] AnyObject value, string forKey) { } /// <summary> /// Adds to the receiving dictionary the entries from another dictionary. /// </summary> /// <param name="otherDictionary">The dictionary from which to add entries</param> [iOSVersion(2)] [Export("addEntriesFromDictionary")] public virtual void AddEntriesFromDictionary(Dictionary<NSObject, AnyObject> otherDictionary) { } /// <summary> /// Sets the contents of the receiving dictionary to entries in a given dictionary. /// </summary> /// <param name="otherDictionary">A dictionary containing the new entries.</param> [iOSVersion(2)] [Export("setDictionary")] public virtual void SetDictionary(Dictionary<NSObject, AnyObject> otherDictionary) { } /// <summary> /// Removes a given key and its associated value from the dictionary. /// </summary> /// <param name="aKey">The key to remove. /// Important /// Raises an NSInvalidArgumentException if aKey is nil.</param> [iOSVersion(2)] [Export("removeObjectForKey")] public virtual void RemoveObjectForKey(AnyObject aKey) { } /// <summary> /// Empties the dictionary of its entries. /// </summary> [iOSVersion(2)] [Export("removeAllObjects")] public virtual void RemoveAllObjects() { } /// <summary> /// Removes from the dictionary entries specified by elements in a given array. /// </summary> /// <param name="keyArray">An array of objects specifying the keys to remove.</param> [iOSVersion(2)] [Export("removeObjectsForKeys")] public virtual void RemoveObjectsForKeys(AnyObject[] keyArray) { } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSMutableIndexSet.cs b/CocoaSharp/Foundation/NSMutableIndexSet.cs
index b1312e40..6ea8033a 100644
--- a/CocoaSharp/Foundation/NSMutableIndexSet.cs
+++ b/CocoaSharp/Foundation/NSMutableIndexSet.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSMutableIndexSet class represents a mutable collection of unique unsigned integers, known as indexes because of the way they are used. This collection is referred to as a mutable index set. The set of valid indexes are 0 .. NSNotFound - 1; trying to use indexes outside this range is an error. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSMutableIndexSet_Class/index.html#//apple_ref/occ/cl/NSMutableIndexSet"/> [iOSVersion(2)] public class NSMutableIndexSet : NSIndexSet//, AnyObject, NSCoding, NSCopying, NSMutableCopying, NSObjectProtocol, NSSecureCoding { //NOTE: added this public NSMutableIndexSet() : base(0) { } /// <summary> /// Adds an index to the receiver. /// </summary> /// <param name="index">Index to add. Must be in the range 0 .. NSNotFound - 1.</param> [iOSVersion(2)] [Export("addIndex")] public void AddIndex(int index) { } /// <summary> /// Adds the indexes in an index set to the receiver. /// </summary> /// <param name="indexSet">Index set to add.</param> [iOSVersion(2)] [Export("addIndexes")] public void AddIndexes(NSIndexSet indexSet) { } /// <summary> /// Adds the indexes in an index range to the receiver. /// </summary> /// <param name="indexRange">Index range to add. Must be in the range 0 .. NSNotFound - 1.</param> [iOSVersion(2)] [Export("addIndexesInRange")] public void AddIndexesInRange(NSRange indexRange) { } /// <summary> /// Removes an index from the receiver. /// </summary> /// <param name="index">Index to remove.</param> [iOSVersion(2)] [Export("removeIndex")] public void RemoveIndex(int index) { } /// <summary> /// Removes the indexes in an index set from the receiver. /// </summary> /// <param name="indexSet">Index set to remove.</param> [iOSVersion(2)] [Export("removeIndexes")] public void RemoveIndexes(NSIndexSet indexSet) { } /// <summary> /// Removes the receiver’s indexes. /// </summary> [iOSVersion(2)] [Export("removeAllIndexes")] public void RemoveAllIndexes() { } /// <summary> /// Removes the indexes in an index range from the receiver. /// </summary> /// <param name="indexRange">Index range to remove.</param> [iOSVersion(2)] [Export("removeIndexesInRange")] public void RemoveIndexesInRange(NSRange indexRange) { } /// <summary> /// Shifts a group of indexes to the left or the right within the receiver. /// </summary> /// <param name="startIndex">Head of the group of indexes to shift.</param> /// <param name="by">Amount and direction of the shift. Positive integers shift the indexes to the right. Negative integers shift the indexes to the left.</param> [iOSVersion(2)] [Export("shiftIndexesStartingAtIndex")] public void ShiftIndexesStartingAtIndex(int startIndex, int by) { } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSMutableIndexSet class represents a mutable collection of unique unsigned integers, known as indexes because of the way they are used. This collection is referred to as a mutable index set. The set of valid indexes are 0 .. NSNotFound - 1; trying to use indexes outside this range is an error. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSMutableIndexSet_Class/index.html#//apple_ref/occ/cl/NSMutableIndexSet"/> [iOSVersion(2)] [Export("")] public class NSMutableIndexSet : NSIndexSet//, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSMutableCopying, NSObjectProtocol, NSSecureCoding, Printable { public NSMutableIndexSet() { } /// <summary> /// Adds an index to the receiver. /// </summary> /// <param name="index">Index to add. Must be in the range 0 .. NSNotFound - 1.</param> [iOSVersion(2)] [Export("addIndex")] public virtual void AddIndex(int index) { } /// <summary> /// Adds the indexes in an index set to the receiver. /// </summary> /// <param name="indexSet">Index set to add.</param> [iOSVersion(2)] [Export("addIndexes")] public virtual void AddIndexes(NSIndexSet indexSet) { } /// <summary> /// Adds the indexes in an index range to the receiver. /// </summary> /// <param name="indexRange">Index range to add. Must be in the range 0 .. NSNotFound - 1.</param> [iOSVersion(2)] [Export("addIndexesInRange")] public virtual void AddIndexesInRange(NSRange indexRange) { } /// <summary> /// Removes an index from the receiver. /// </summary> /// <param name="index">Index to remove.</param> [iOSVersion(2)] [Export("removeIndex")] public virtual void RemoveIndex(int index) { } /// <summary> /// Removes the indexes in an index set from the receiver. /// </summary> /// <param name="indexSet">Index set to remove.</param> [iOSVersion(2)] [Export("removeIndexes")] public virtual void RemoveIndexes(NSIndexSet indexSet) { } /// <summary> /// Removes the receiver’s indexes. /// </summary> [iOSVersion(2)] [Export("removeAllIndexes")] public virtual void RemoveAllIndexes() { } /// <summary> /// Removes the indexes in an index range from the receiver. /// </summary> /// <param name="indexRange">Index range to remove.</param> [iOSVersion(2)] [Export("removeIndexesInRange")] public virtual void RemoveIndexesInRange(NSRange indexRange) { } /// <summary> /// Shifts a group of indexes to the left or the right within the receiver. /// </summary> /// <param name="startIndex">Head of the group of indexes to shift.</param> /// <param name="by">Amount and direction of the shift. Positive integers shift the indexes to the right. Negative integers shift the indexes to the left.</param> [iOSVersion(2)] [Export("shiftIndexesStartingAtIndex")] public virtual void ShiftIndexesStartingAtIndex(int startIndex, int by) { } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSMutableOrderedSet.cs b/CocoaSharp/Foundation/NSMutableOrderedSet.cs
index 0d6ae36d..6fa4e882 100644
--- a/CocoaSharp/Foundation/NSMutableOrderedSet.cs
+++ b/CocoaSharp/Foundation/NSMutableOrderedSet.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSMutableOrderedSet class declares the programmatic interface to a mutable, ordered collection of distinct objects. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSMutableOrderedSet_Class/index.html#//apple_ref/occ/cl/NSMutableOrderedSet"/> [iOSVersion(5)] public class NSMutableOrderedSet : NSOrderedSet//, AnyObject, NSCoding, NSCopying, NSFastEnumeration, NSMutableCopying, NSObjectProtocol, NSSecureCoding { /// <summary> /// Returns an initialized mutable ordered set with a given initial capacity. /// </summary> /// <param name="capacity">The initial capacity of the new ordered set.</param> [iOSVersion(5)] public NSMutableOrderedSet(int capacity) { } /// <summary> /// Initializes a newly allocated mutable ordered set. /// </summary> [iOSVersion(7)] public NSMutableOrderedSet() { } /// <summary> /// Appends a given object to the end of the mutable ordered set, if it is not already a member. /// </summary> /// <param name="@object">The object to add to the set.</param> [iOSVersion(5)] [Export("addObject")] public void AddObject(AnyObject @object) { } /// <summary> /// Appends the given number of objects from a given C array to the end of the mutable ordered set. /// </summary> /// <param name="objects">A C array of objects.</param> /// <param name="count">The number of values from the objects C array to append to the mutable ordered set. This number will be the count of the new array—it must not be negative or greater than the number of elements in objects.</param> [iOSVersion(5)] [Export("addObjects")] public void AddObjects(ConstUnsafePointer<AnyObject> objects, int count) { } /// <summary> /// Appends to the end of the mutable ordered set each object contained in a given array that is not already a member. /// </summary> /// <param name="array">An array of objects to add to the set.</param> [iOSVersion(5)] [Export("addObjectsFromArray")] public void AddObjectsFromArray(AnyObject[] array) { } /// <summary> /// Inserts the given object at the specified index of the mutable ordered set. /// </summary> /// <param name="@object">The object to insert into to the set’s content. This value must not be nil. /// Important /// Important: Raises an NSInvalidArgumentException if object is nil.</param> /// <param name="atIndex">The index in the mutable ordered set at which to insert object. This value must not be greater than the count of elements in the array. /// Important /// Important: Raises an NSRangeException if idx is greater than the number of elements in the mutable ordered set.</param> [iOSVersion(5)] [Export("insertObject")] public void InsertObject(AnyObject @object, int atIndex) { } /// <summary> /// Inserts the given object at the specified index of the mutable ordered set. /// </summary> /// <param name="@object">The object to insert into to the set’s content. This value must not be nil. /// Important /// Important: Raises an NSInvalidArgumentException if object is nil.</param> /// <param name="atIndexedSubscript">The index in the mutable ordered set at which to insert object. This value must not be greater than the count of elements in the array. /// Important /// Important: Raises an NSRangeException if idx is greater than the number of elements in the mutable ordered set.</param> [iOSVersion(6)] [Export("setObject")] public void SetObject(AnyObject @object, int atIndexedSubscript) { } /// <summary> /// Inserts the objects in the array at the specified indexes. /// </summary> /// <param name="objects">An array of objects to insert into the mutable ordered set.</param> /// <param name="atIndexes">The indexes at which the objects in objects should be inserted. The count of locations in indexes must equal the count of objects.</param> [iOSVersion(5)] [Export("insertObjects")] public void InsertObjects(AnyObject[] objects, NSIndexSet atIndexes) { } /// <summary> /// Removes a given object from the mutable ordered set. /// </summary> /// <param name="@object">The object to remove from the mutable ordered set.</param> [iOSVersion(5)] [Export("removeObject")] public void RemoveObject(AnyObject @object) { } /// <summary> /// Removes a the object at the specified index from the mutable ordered set. /// </summary> /// <param name="idx">The index of the object to remove from the mutable ordered set. The value must not exceed the bounds of the set. /// Important /// Raises an NSRangeException if index is beyond the end of the mutable ordered set.</param> [iOSVersion(5)] [Export("removeObjectAtIndex")] public void RemoveObjectAtIndex(int idx) { } /// <summary> /// Removes the objects at the specified indexes from the mutable ordered set. /// </summary> /// <param name="indexes">The indexes of the objects to remove from the mutable ordered set. The locations specified by indexes must lie within the bounds of the mutable ordered .</param> [iOSVersion(5)] [Export("removeObjectsAtIndexes")] public void RemoveObjectsAtIndexes(NSIndexSet indexes) { } /// <summary> /// Removes the objects in the array from the mutable ordered set. /// </summary> /// <param name="array">An array containing the objects to be removed from the receiving mutable ordered set.</param> [iOSVersion(5)] [Export("removeObjectsInArray")] public void RemoveObjectsInArray(AnyObject[] array) { } /// <summary> /// Removes from the mutable ordered set each of the objects within a given range. /// </summary> /// <param name="range">The range of the objects to remove from the mutable ordered set.</param> [iOSVersion(5)] [Export("removeObjectsInRange")] public void RemoveObjectsInRange(NSRange range) { } /// <summary> /// Removes all the objects from the mutable ordered set. /// </summary> [iOSVersion(5)] [Export("removeAllObjects")] public void RemoveAllObjects() { } /// <summary> /// Replaces the object at the specified index with the new object. /// </summary> /// <param name="idx">The index of the object to be replaced. This value must not exceed the bounds of the mutable ordered set. /// Important /// Raises an NSRangeException if index is beyond the end of the mutable ordered set.</param> /// <param name="withObject">The object with which to replace the object at the index in the ordered set specified by idx. This value must not be nil. /// Important /// Raises an NSInvalidArgumentException if object is nil.</param> [iOSVersion(5)] [Export("replaceObjectAtIndex")] public void ReplaceObjectAtIndex(int idx, AnyObject withObject) { } /// <summary> /// Replaces the objects at the specified indexes with the new objects. /// </summary> /// <param name="indexes">The indexes of the objects to be replaced.</param> /// <param name="withObjects">The objects with which to replace the objects in the receiving mutable ordered set at the indexes specified by indexes. /// The count of locations in indexes must equal the count of objects.</param> [iOSVersion(5)] [Export("replaceObjectsAtIndexes")] public void ReplaceObjectsAtIndexes(NSIndexSet indexes, AnyObject[] withObjects) { } /// <summary> /// Replaces the objects in the receiving mutable ordered set at the range with the specified number of objects from a given C array. /// </summary> /// <param name="range">The range of the objects to replace.</param> /// <param name="withObjects">A C array of objects.</param> /// <param name="count">The number of values from the objects C array to insert in place of the objects in range. This number will be the count of the new array—it must not be negative or greater than the number of elements in objects.</param> [iOSVersion(5)] [Export("replaceObjectsInRange")] public void ReplaceObjectsInRange(NSRange range, ConstUnsafePointer<AnyObject> withObjects, int count) { } /// <summary> /// Appends or replaces the object at the specified index. /// </summary> /// <param name="obj">The object to insert or append.</param> /// <param name="atIndex">The index. If the index is equal to the length of the collection, then it inserts the object at that index, otherwise it replaces the object at that index with the given object.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(5)] [Export("setObject")] [IgnoreParameter("NAME_YOUR_PARAMS")] public void SetObject(AnyObject obj, int atIndex, bool NAME_YOUR_PARAMS = false) { } /// <summary> /// Moves the objects at the specified indexes to the new location. /// </summary> /// <param name="indexes">The indexes of the objects to move.</param> /// <param name="toIndex">The index in the mutable ordered set at which to insert the objects. The objects being moved are first removed from the set, then this index is used to find the location at which to insert the moved objects.</param> [iOSVersion(5)] [Export("moveObjectsAtIndexes")] public void MoveObjectsAtIndexes(NSIndexSet indexes, int toIndex) { } /// <summary> /// Exchanges the object at the specified index with the object at the other index. /// </summary> /// <param name="idx1">The index of the first object. /// Important /// Raises an NSRangeException if index is beyond the end of the mutable ordered set.</param> /// <param name="withObjectAtIndex">The index of the second object. /// Important /// Raises an NSRangeException if index is beyond the end of the mutable ordered set.</param> [iOSVersion(5)] [Export("exchangeObjectAtIndex")] public void ExchangeObjectAtIndex(int idx1, int withObjectAtIndex) { } /// <summary> /// Evaluates a given predicate against the mutable ordered set’s content and leaves only objects that match. /// </summary> /// <param name="predicate">The predicate to evaluate against the set’s elements.</param> [iOSVersion(5)] [Export("filterUsingPredicate")] public void FilterUsingPredicate(NSPredicate predicate) { } /// <summary> /// Sorts the receiving ordered set using a given array of sort descriptors. /// </summary> /// <param name="sortDescriptors">An array containing the NSSortDescriptor objects to use to sort the receiving ordered set’s contents.</param> [iOSVersion(5)] [Export("sortUsingDescriptors")] public void SortUsingDescriptors(AnyObject[] sortDescriptors) { } /// <summary> /// Sorts the mutable ordered set using the comparison method specified by the comparator block. /// </summary> /// <param name="cmptr">A comparator block.</param> [iOSVersion(5)] [Export("sortUsingComparator")] public void SortUsingComparator(NSComparator cmptr) { } /// <summary> /// Sorts the mutable ordered set using the specified options and the comparison method specified by a given comparator block. /// </summary> /// <param name="opts">A bitmask that specifies the options for the sort (whether it should be performed concurrently and whether it should be performed stably).</param> /// <param name="usingComparator">A comparator block.</param> [iOSVersion(5)] [Export("sortWithOptions")] public void SortWithOptions(NSSortOptions opts, NSComparator usingComparator) { } /// <summary> /// Sorts the specified range of the mutable ordered set using the specified options and the comparison method specified by a given comparator block. /// </summary> /// <param name="range">The range to sort.</param> /// <param name="options">A bitmask that specifies the options for the sort (whether it should be performed concurrently and whether it should be performed stably).</param> /// <param name="usingComparator">A comparator block.</param> [iOSVersion(5)] [Export("sortRange")] public void SortRange(NSRange range, NSSortOptions options, NSComparator usingComparator) { } /// <summary> /// Removes from the receiving ordered set each object that isn’t a member of another ordered set. /// </summary> /// <param name="other">The ordered set with which to perform the intersection.</param> [iOSVersion(5)] [Export("intersectOrderedSet")] public void IntersectOrderedSet(NSOrderedSet other) { } /// <summary> /// Removes from the receiving ordered set each object that isn’t a member of another set. /// </summary> /// <param name="other">The set with which to perform the intersection.</param> [iOSVersion(5)] [Export("intersectSet")] public void IntersectSet(NSSet other) { } /// <summary> /// Removes each object in another given ordered set from the receiving mutable ordered set, if present. /// </summary> /// <param name="other">The ordered set of objects to remove from the receiving set.</param> [iOSVersion(5)] [Export("minusOrderedSet")] public void MinusOrderedSet(NSOrderedSet other) { } /// <summary> /// Removes each object in another given set from the receiving mutable ordered set, if present. /// </summary> /// <param name="other">The set of objects to remove from the receiving set.</param> [iOSVersion(5)] [Export("minusSet")] public void MinusSet(NSSet other) { } /// <summary> /// Adds each object in another given ordered set to the receiving mutable ordered set, if not present. /// </summary> /// <param name="other">The set of objects to add to the receiving mutable ordered set.</param> [iOSVersion(5)] [Export("unionOrderedSet")] public void UnionOrderedSet(NSOrderedSet other) { } /// <summary> /// Adds each object in another given set to the receiving mutable ordered set, if not present. /// </summary> /// <param name="other">The set of objects to add to the receiving mutable ordered set.</param> [iOSVersion(5)] [Export("unionSet")] public void UnionSet(NSSet other) { } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSMutableOrderedSet class declares the programmatic interface to a mutable, ordered collection of distinct objects. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSMutableOrderedSet_Class/index.html#//apple_ref/occ/cl/NSMutableOrderedSet"/> [iOSVersion(5)] [Export("")] public class NSMutableOrderedSet : NSOrderedSet//, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSFastEnumeration, NSMutableCopying, NSObjectProtocol, NSSecureCoding, Printable { /// <summary> /// Returns an initialized mutable ordered set with a given initial capacity. /// </summary> /// <param name="capacity">The initial capacity of the new ordered set.</param> [iOSVersion(5)] public NSMutableOrderedSet(int capacity) { } /// <summary> /// Initializes a newly allocated mutable ordered set. /// </summary> [iOSVersion(7)] public NSMutableOrderedSet() { } /// <summary> /// Appends a given object to the end of the mutable ordered set, if it is not already a member. /// </summary> /// <param name="@object">The object to add to the set.</param> [iOSVersion(5)] [Export("addObject")] public virtual void AddObject(AnyObject @object) { } /// <summary> /// Appends the given number of objects from a given C array to the end of the mutable ordered set. /// </summary> /// <param name="objects">A C array of objects.</param> /// <param name="count">The number of values from the objects C array to append to the mutable ordered set. This number will be the count of the new array—it must not be negative or greater than the number of elements in objects.</param> [iOSVersion(5)] [Export("addObjects")] public virtual void AddObjects(UnsafePointer<AnyObject> objects, int count) { } /// <summary> /// Appends to the end of the mutable ordered set each object contained in a given array that is not already a member. /// </summary> /// <param name="array">An array of objects to add to the set.</param> [iOSVersion(5)] [Export("addObjectsFromArray")] public virtual void AddObjectsFromArray(AnyObject[] array) { } /// <summary> /// Inserts the given object at the specified index of the mutable ordered set. /// </summary> /// <param name="@object">The object to insert into to the set’s content. This value must not be nil. /// Important /// Important: Raises an NSInvalidArgumentException if object is nil.</param> /// <param name="atIndex">The index in the mutable ordered set at which to insert object. This value must not be greater than the count of elements in the array. /// Important /// Important: Raises an NSRangeException if idx is greater than the number of elements in the mutable ordered set.</param> [iOSVersion(5)] [Export("insertObject")] public virtual void InsertObject(AnyObject @object, int atIndex) { } /// <summary> /// Inserts the objects in the array at the specified indexes. /// </summary> /// <param name="objects">An array of objects to insert into the mutable ordered set.</param> /// <param name="atIndexes">The indexes at which the objects in objects should be inserted. The count of locations in indexes must equal the count of objects.</param> [iOSVersion(5)] [Export("insertObjects")] public virtual void InsertObjects(AnyObject[] objects, NSIndexSet atIndexes) { } /// <summary> /// Removes a given object from the mutable ordered set. /// </summary> /// <param name="@object">The object to remove from the mutable ordered set.</param> [iOSVersion(5)] [Export("removeObject")] public virtual void RemoveObject(AnyObject @object) { } /// <summary> /// Removes a the object at the specified index from the mutable ordered set. /// </summary> /// <param name="idx">The index of the object to remove from the mutable ordered set. The value must not exceed the bounds of the set. /// Important /// Raises an NSRangeException if index is beyond the end of the mutable ordered set.</param> [iOSVersion(5)] [Export("removeObjectAtIndex")] public virtual void RemoveObjectAtIndex(int idx) { } /// <summary> /// Removes the objects at the specified indexes from the mutable ordered set. /// </summary> /// <param name="indexes">The indexes of the objects to remove from the mutable ordered set. The locations specified by indexes must lie within the bounds of the mutable ordered .</param> [iOSVersion(5)] [Export("removeObjectsAtIndexes")] public virtual void RemoveObjectsAtIndexes(NSIndexSet indexes) { } /// <summary> /// Removes the objects in the array from the mutable ordered set. /// </summary> /// <param name="array">An array containing the objects to be removed from the receiving mutable ordered set.</param> [iOSVersion(5)] [Export("removeObjectsInArray")] public virtual void RemoveObjectsInArray(AnyObject[] array) { } /// <summary> /// Removes from the mutable ordered set each of the objects within a given range. /// </summary> /// <param name="range">The range of the objects to remove from the mutable ordered set.</param> [iOSVersion(5)] [Export("removeObjectsInRange")] public virtual void RemoveObjectsInRange(NSRange range) { } /// <summary> /// Removes all the objects from the mutable ordered set. /// </summary> [iOSVersion(5)] [Export("removeAllObjects")] public virtual void RemoveAllObjects() { } /// <summary> /// Replaces the object at the specified index with the new object. /// </summary> /// <param name="idx">The index of the object to be replaced. This value must not exceed the bounds of the mutable ordered set. /// Important /// Raises an NSRangeException if index is beyond the end of the mutable ordered set.</param> /// <param name="withObject">The object with which to replace the object at the index in the ordered set specified by idx. This value must not be nil. /// Important /// Raises an NSInvalidArgumentException if object is nil.</param> [iOSVersion(5)] [Export("replaceObjectAtIndex")] public virtual void ReplaceObjectAtIndex(int idx, AnyObject withObject) { } /// <summary> /// Replaces the objects at the specified indexes with the new objects. /// </summary> /// <param name="indexes">The indexes of the objects to be replaced.</param> /// <param name="withObjects">The objects with which to replace the objects in the receiving mutable ordered set at the indexes specified by indexes. /// The count of locations in indexes must equal the count of objects.</param> [iOSVersion(5)] [Export("replaceObjectsAtIndexes")] public virtual void ReplaceObjectsAtIndexes(NSIndexSet indexes, AnyObject[] withObjects) { } /// <summary> /// Replaces the objects in the receiving mutable ordered set at the range with the specified number of objects from a given C array. /// </summary> /// <param name="range">The range of the objects to replace.</param> /// <param name="withObjects">A C array of objects.</param> /// <param name="count">The number of values from the objects C array to insert in place of the objects in range. This number will be the count of the new array—it must not be negative or greater than the number of elements in objects.</param> [iOSVersion(5)] [Export("replaceObjectsInRange")] public virtual void ReplaceObjectsInRange(NSRange range, UnsafePointer<AnyObject> withObjects, int count) { } /// <summary> /// Appends or replaces the object at the specified index. /// </summary> /// <param name="obj">The object to insert or append.</param> /// <param name="atIndex">The index. If the index is equal to the length of the collection, then it inserts the object at that index, otherwise it replaces the object at that index with the given object.</param> [iOSVersion(5)] [Export("setObject")] public virtual void SetObject(AnyObject obj, int atIndex) { } /// <summary> /// Moves the objects at the specified indexes to the new location. /// </summary> /// <param name="indexes">The indexes of the objects to move.</param> /// <param name="toIndex">The index in the mutable ordered set at which to insert the objects. The objects being moved are first removed from the set, then this index is used to find the location at which to insert the moved objects.</param> [iOSVersion(5)] [Export("moveObjectsAtIndexes")] public virtual void MoveObjectsAtIndexes(NSIndexSet indexes, int toIndex) { } /// <summary> /// Exchanges the object at the specified index with the object at the other index. /// </summary> /// <param name="idx1">The index of the first object. /// Important /// Raises an NSRangeException if index is beyond the end of the mutable ordered set.</param> /// <param name="withObjectAtIndex">The index of the second object. /// Important /// Raises an NSRangeException if index is beyond the end of the mutable ordered set.</param> [iOSVersion(5)] [Export("exchangeObjectAtIndex")] public virtual void ExchangeObjectAtIndex(int idx1, int withObjectAtIndex) { } /// <summary> /// Evaluates a given predicate against the mutable ordered set’s content and leaves only objects that match. /// </summary> /// <param name="predicate">The predicate to evaluate against the set’s elements.</param> [iOSVersion(5)] [Export("filterUsingPredicate")] public virtual void FilterUsingPredicate(NSPredicate predicate) { } /// <summary> /// Sorts the receiving ordered set using a given array of sort descriptors. /// </summary> /// <param name="sortDescriptors">An array containing the NSSortDescriptor objects to use to sort the receiving ordered set’s contents.</param> [iOSVersion(5)] [Export("sortUsingDescriptors")] public virtual void SortUsingDescriptors(AnyObject[] sortDescriptors) { } /// <summary> /// Sorts the mutable ordered set using the comparison method specified by the comparator block. /// </summary> /// <param name="cmptr">A comparator block.</param> [iOSVersion(5)] [Export("sortUsingComparator")] public virtual void SortUsingComparator(NSComparator cmptr) { } /// <summary> /// Sorts the mutable ordered set using the specified options and the comparison method specified by a given comparator block. /// </summary> /// <param name="opts">A bitmask that specifies the options for the sort (whether it should be performed concurrently and whether it should be performed stably).</param> /// <param name="usingComparator">A comparator block.</param> [iOSVersion(5)] [Export("sortWithOptions")] public virtual void SortWithOptions(NSSortOptions opts, NSComparator usingComparator) { } /// <summary> /// Sorts the specified range of the mutable ordered set using the specified options and the comparison method specified by a given comparator block. /// </summary> /// <param name="range">The range to sort.</param> /// <param name="options">A bitmask that specifies the options for the sort (whether it should be performed concurrently and whether it should be performed stably).</param> /// <param name="usingComparator">A comparator block.</param> [iOSVersion(5)] [Export("sortRange")] public virtual void SortRange(NSRange range, NSSortOptions options, NSComparator usingComparator) { } /// <summary> /// Removes from the receiving ordered set each object that isn’t a member of another ordered set. /// </summary> /// <param name="other">The ordered set with which to perform the intersection.</param> [iOSVersion(5)] [Export("intersectOrderedSet")] public virtual void IntersectOrderedSet(NSOrderedSet other) { } /// <summary> /// Removes from the receiving ordered set each object that isn’t a member of another set. /// </summary> /// <param name="other">The set with which to perform the intersection.</param> [iOSVersion(5)] [Export("intersectSet")] public virtual void IntersectSet(NSSet other) { } /// <summary> /// Removes each object in another given ordered set from the receiving mutable ordered set, if present. /// </summary> /// <param name="other">The ordered set of objects to remove from the receiving set.</param> [iOSVersion(5)] [Export("minusOrderedSet")] public virtual void MinusOrderedSet(NSOrderedSet other) { } /// <summary> /// Removes each object in another given set from the receiving mutable ordered set, if present. /// </summary> /// <param name="other">The set of objects to remove from the receiving set.</param> [iOSVersion(5)] [Export("minusSet")] public virtual void MinusSet(NSSet other) { } /// <summary> /// Adds each object in another given ordered set to the receiving mutable ordered set, if not present. /// </summary> /// <param name="other">The set of objects to add to the receiving mutable ordered set.</param> [iOSVersion(5)] [Export("unionOrderedSet")] public virtual void UnionOrderedSet(NSOrderedSet other) { } /// <summary> /// Adds each object in another given set to the receiving mutable ordered set, if not present. /// </summary> /// <param name="other">The set of objects to add to the receiving mutable ordered set.</param> [iOSVersion(5)] [Export("unionSet")] public virtual void UnionSet(NSSet other) { } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSMutableSet.cs b/CocoaSharp/Foundation/NSMutableSet.cs
index 4f3a200f..6305cf13 100644
--- a/CocoaSharp/Foundation/NSMutableSet.cs
+++ b/CocoaSharp/Foundation/NSMutableSet.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSMutableSet class declares the programmatic interface to a mutable, unordered collection of distinct objects. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSMutableSet_Class/index.html#//apple_ref/occ/cl/NSMutableSet"/> [iOSVersion(2)] public class NSMutableSet : NSSet//, AnyObject, NSCoding, NSCopying, NSFastEnumeration, NSMutableCopying, NSObjectProtocol, NSSecureCoding, Reflectable, Sequence { /// <summary> /// Returns an initialized mutable set with a given initial capacity. /// </summary> /// <param name="capacity">The initial capacity of the set.</param> [iOSVersion(2)] public NSMutableSet(int capacity) { } /// <summary> /// Initializes a newly allocated set. /// </summary> [iOSVersion(7)] public NSMutableSet() { } /// <summary> /// Adds a given object to the set, if it is not already a member. /// </summary> /// <param name="@object">The object to add to the set.</param> [iOSVersion(2)] [Export("addObject")] public void AddObject(AnyObject @object) { } /// <summary> /// Evaluates a given predicate against the set’s content and removes from the set those objects for which the predicate returns false. /// </summary> /// <param name="predicate">A predicate.</param> [iOSVersion(3)] [Export("filterUsingPredicate")] public void FilterUsingPredicate(NSPredicate predicate) { } /// <summary> /// Removes a given object from the set. /// </summary> /// <param name="@object">The object to remove from the set.</param> [iOSVersion(2)] [Export("removeObject")] public void RemoveObject(AnyObject @object) { } /// <summary> /// Empties the set of all of its members. /// </summary> [iOSVersion(2)] [Export("removeAllObjects")] public void RemoveAllObjects() { } /// <summary> /// Adds to the set each object contained in a given array that is not already a member. /// </summary> /// <param name="array">An array of objects to add to the set.</param> [iOSVersion(2)] [Export("addObjectsFromArray")] public void AddObjectsFromArray(AnyObject[] array) { } /// <summary> /// Adds each object in another given set to the receiving set, if not present. /// </summary> /// <param name="otherSet">The set of objects to add to the receiving set.</param> [iOSVersion(2)] [Export("unionSet")] public void UnionSet(NSSet otherSet) { } /// <summary> /// Removes each object in another given set from the receiving set, if present. /// </summary> /// <param name="otherSet">The set of objects to remove from the receiving set.</param> [iOSVersion(2)] [Export("minusSet")] public void MinusSet(NSSet otherSet) { } /// <summary> /// Removes from the receiving set each object that isn’t a member of another given set. /// </summary> /// <param name="otherSet">The set with which to perform the intersection.</param> [iOSVersion(2)] [Export("intersectSet")] public void IntersectSet(NSSet otherSet) { } /// <summary> /// Empties the receiving set, then adds each object contained in another given set. /// </summary> /// <param name="otherSet">The set whose members replace the receiving set's content.</param> [iOSVersion(2)] [Export("setSet")] public void SetSet(NSSet otherSet) { } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSMutableSet class declares the programmatic interface to a mutable, unordered collection of distinct objects. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSMutableSet_Class/index.html#//apple_ref/occ/cl/NSMutableSet"/> [iOSVersion(2)] [Export("")] public class NSMutableSet : NSSet//, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSFastEnumeration, NSMutableCopying, NSObjectProtocol, NSSecureCoding, Printable, Reflectable, SequenceType { /// <summary> /// Returns an initialized mutable set with a given initial capacity. /// </summary> /// <param name="capacity">The initial capacity of the set.</param> [iOSVersion(2)] public NSMutableSet(int capacity) { } /// <summary> /// Initializes a newly allocated set. /// </summary> [iOSVersion(7)] public NSMutableSet() { } /// <summary> /// Adds a given object to the set, if it is not already a member. /// </summary> /// <param name="@object">The object to add to the set.</param> [iOSVersion(2)] [Export("addObject")] public virtual void AddObject(AnyObject @object) { } /// <summary> /// Evaluates a given predicate against the set’s content and removes from the set those objects for which the predicate returns false. /// </summary> /// <param name="predicate">A predicate.</param> [iOSVersion(3)] [Export("filterUsingPredicate")] public virtual void FilterUsingPredicate(NSPredicate predicate) { } /// <summary> /// Removes a given object from the set. /// </summary> /// <param name="@object">The object to remove from the set.</param> [iOSVersion(2)] [Export("removeObject")] public virtual void RemoveObject(AnyObject @object) { } /// <summary> /// Empties the set of all of its members. /// </summary> [iOSVersion(2)] [Export("removeAllObjects")] public virtual void RemoveAllObjects() { } /// <summary> /// Adds to the set each object contained in a given array that is not already a member. /// </summary> /// <param name="array">An array of objects to add to the set.</param> [iOSVersion(2)] [Export("addObjectsFromArray")] public virtual void AddObjectsFromArray(AnyObject[] array) { } /// <summary> /// Adds each object in another given set to the receiving set, if not present. /// </summary> /// <param name="otherSet">The set of objects to add to the receiving set.</param> [iOSVersion(2)] [Export("unionSet")] public virtual void UnionSet(NSSet otherSet) { } /// <summary> /// Removes each object in another given set from the receiving set, if present. /// </summary> /// <param name="otherSet">The set of objects to remove from the receiving set.</param> [iOSVersion(2)] [Export("minusSet")] public virtual void MinusSet(NSSet otherSet) { } /// <summary> /// Removes from the receiving set each object that isn’t a member of another given set. /// </summary> /// <param name="otherSet">The set with which to perform the intersection.</param> [iOSVersion(2)] [Export("intersectSet")] public virtual void IntersectSet(NSSet otherSet) { } /// <summary> /// Empties the receiving set, then adds each object contained in another given set. /// </summary> /// <param name="otherSet">The set whose members replace the receiving set&#39;s content.</param> [iOSVersion(2)] [Export("setSet")] public virtual void SetSet(NSSet otherSet) { } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSMutableString.cs b/CocoaSharp/Foundation/NSMutableString.cs
index b7ef3f52..9969f8cc 100644
--- a/CocoaSharp/Foundation/NSMutableString.cs
+++ b/CocoaSharp/Foundation/NSMutableString.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSMutableString class declares the programmatic interface to an object that manages a mutable string—that is, a string whose contents can be edited—that conceptually represents an array of Unicode characters. To construct and manage an immutable string—or a string that cannot be changed after it has been created—use an object of the NSString class. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSMutableString_Class/index.html#//apple_ref/occ/cl/NSMutableString"/> [iOSVersion(2)] public class NSMutableString : NSString//, AnyObject, NSCoding, NSCopying, NSMutableCopying, NSObjectProtocol, NSSecureCoding, Reflectable, StringLiteralConvertible { /// <summary> /// Returns an empty NSMutableString object with initial storage for a given number of characters. /// </summary> /// <param name="capacity">The number of characters the string is expected to initially contain.</param> [iOSVersion(2)] [Export("stringWithCapacity")] public static NSMutableString StringWithCapacity(int capacity) { return default(NSMutableString); } /// <summary> /// Returns an NSMutableString object initialized with initial storage for a given number of characters, /// </summary> /// <param name="capacity">The number of characters the string is expected to initially contain.</param> [iOSVersion(2)] public NSMutableString(int capacity) { } /// <summary> /// Adds to the end of the receiver the characters of a given string. /// </summary> /// <param name="aString">The string to append to the receiver. aString must not be nil</param> [iOSVersion(2)] [Export("appendString")] public void AppendString(string aString) { } /// <summary> /// Removes from the receiver the characters in a given range. /// </summary> /// <param name="aRange">The range of characters to delete. aRange must not exceed the bounds of the receiver. /// Important /// Raises an NSRangeException if any part of aRange lies beyond the end of the string.</param> [iOSVersion(2)] [Export("deleteCharactersInRange")] public void DeleteCharactersInRange(NSRange aRange) { } /// <summary> /// Inserts into the receiver the characters of a given string at a given location. /// </summary> /// <param name="aString">The string to insert into the receiver. aString must not be nil.</param> /// <param name="atIndex">The location at which aString is inserted. The location must not exceed the bounds of the receiver. /// Important /// Raises an NSRangeException if anIndex lies beyond the end of the string.</param> [iOSVersion(2)] [Export("insertString")] public void InsertString(string aString, int atIndex) { } /// <summary> /// Replaces the characters from aRange with those in aString. /// </summary> /// <param name="aRange">The range of characters to replace. aRange must not exceed the bounds of the receiver. /// Important /// Raises an NSRangeException if any part of aRange lies beyond the end of the receiver.</param> /// <param name="withString">The string with which to replace the characters in aRange. aString must not be nil.</param> [iOSVersion(2)] [Export("replaceCharactersInRange")] public void ReplaceCharactersInRange(NSRange aRange, string withString) { } /// <summary> /// Replaces all occurrences of a given string in a given range with another given string, returning the number of replacements. /// </summary> /// <param name="target">The string to replace. /// Important /// Raises an NSInvalidArgumentException if target is nil.</param> /// <param name="withString">The string with which to replace target. /// Important /// Raises an NSInvalidArgumentException if replacement is nil.</param> /// <param name="options">A mask specifying search options. See String Programming Guide for details. /// If opts is NSBackwardsSearch, the search is done from the end of the range. If opts is NSAnchoredSearch, only anchored (but potentially multiple) instances are replaced. NSLiteralSearch and NSCaseInsensitiveSearch also apply.</param> /// <param name="range">The range of characters to replace. aRange must not exceed the bounds of the receiver. Specify searchRange as NSMakeRange(0, [receiver length]) to process the entire string. /// Important /// Raises an NSRangeException if any part of searchRange lies beyond the end of the receiver.</param> [iOSVersion(2)] [Export("replaceOccurrencesOfString")] public int ReplaceOccurrencesOfString(string target, string withString, NSStringCompareOptions options, NSRange range) { return default(int); } /// <summary> /// Replaces the characters of the receiver with those in a given string. /// </summary> /// <param name="aString">The string with which to replace the receiver's content. aString must not be nil.</param> [iOSVersion(2)] [Export("setString")] public void SetString(string aString) { } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSMutableString class declares the programmatic interface to an object that manages a mutable string—that is, a string whose contents can be edited—that conceptually represents an array of Unicode characters. To construct and manage an immutable string—or a string that cannot be changed after it has been created—use an object of the NSString class. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSMutableString_Class/index.html#//apple_ref/occ/cl/NSMutableString"/> [iOSVersion(2)] [Export("")] public class NSMutableString : NSString//, AnyObject, CKRecordValue, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSMutableCopying, NSObjectProtocol, NSSecureCoding, Printable, Reflectable, StringLiteralConvertible { public NSMutableString() { } /// <summary> /// Returns an NSMutableString object initialized with initial storage for a given number of characters, /// </summary> /// <param name="capacity">The number of characters the string is expected to initially contain.</param> [iOSVersion(2)] public NSMutableString(int capacity) { } /// <summary> /// Adds to the end of the receiver the characters of a given string. /// </summary> /// <param name="aString">The string to append to the receiver. aString must not be nil</param> [iOSVersion(2)] [Export("appendString")] public virtual void AppendString(string aString) { } /// <summary> /// Removes from the receiver the characters in a given range. /// </summary> /// <param name="aRange">The range of characters to delete. aRange must not exceed the bounds of the receiver. /// Important /// Raises an NSRangeException if any part of aRange lies beyond the end of the string.</param> [iOSVersion(2)] [Export("deleteCharactersInRange")] public virtual void DeleteCharactersInRange(NSRange aRange) { } /// <summary> /// Inserts into the receiver the characters of a given string at a given location. /// </summary> /// <param name="aString">The string to insert into the receiver. aString must not be nil.</param> /// <param name="atIndex">The location at which aString is inserted. The location must not exceed the bounds of the receiver. /// Important /// Raises an NSRangeException if anIndex lies beyond the end of the string.</param> [iOSVersion(2)] [Export("insertString")] public virtual void InsertString(string aString, int atIndex) { } /// <summary> /// Replaces the characters from aRange with those in aString. /// </summary> /// <param name="aRange">The range of characters to replace. aRange must not exceed the bounds of the receiver. /// Important /// Raises an NSRangeException if any part of aRange lies beyond the end of the receiver.</param> /// <param name="withString">The string with which to replace the characters in aRange. aString must not be nil.</param> [iOSVersion(2)] [Export("replaceCharactersInRange")] public virtual void ReplaceCharactersInRange(NSRange aRange, string withString) { } /// <summary> /// Replaces all occurrences of a given string in a given range with another given string, returning the number of replacements. /// </summary> /// <param name="target">The string to replace. /// Important /// Raises an NSInvalidArgumentException if target is nil.</param> /// <param name="withString">The string with which to replace target. /// Important /// Raises an NSInvalidArgumentException if replacement is nil.</param> /// <param name="options">A mask specifying search options. See String Programming Guide for details. /// If opts is NSBackwardsSearch, the search is done from the end of the range. If opts is NSAnchoredSearch, only anchored (but potentially multiple) instances are replaced. NSLiteralSearch and NSCaseInsensitiveSearch also apply.</param> /// <param name="range">The range of characters to replace. aRange must not exceed the bounds of the receiver. Specify searchRange as NSMakeRange(0, [receiver length]) to process the entire string. /// Important /// Raises an NSRangeException if any part of searchRange lies beyond the end of the receiver.</param> [iOSVersion(2)] [Export("replaceOccurrencesOfString")] public virtual int ReplaceOccurrencesOfString(string target, string withString, NSStringCompareOptions options, NSRange range) { return default(int); } /// <summary> /// Replaces the characters of the receiver with those in a given string. /// </summary> /// <param name="aString">The string with which to replace the receiver&#39;s content. aString must not be nil.</param> [iOSVersion(2)] [Export("setString")] public virtual void SetString(string aString) { } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSMutableURLRequest.cs b/CocoaSharp/Foundation/NSMutableURLRequest.cs
index 7131a6fa..58c894e7 100644
--- a/CocoaSharp/Foundation/NSMutableURLRequest.cs
+++ b/CocoaSharp/Foundation/NSMutableURLRequest.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSMutableURLRequest is a subclass of NSURLRequest provided to aid developers who may find it more convenient to mutate a single request object for a series of URL load requests instead of creating an immutable NSURLRequest object for each load. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSMutableURLRequest_Class/index.html#//apple_ref/occ/cl/NSMutableURLRequest"/> [iOSVersion(2)] public class NSMutableURLRequest : NSURLRequest//, AnyObject, NSCoding, NSCopying, NSMutableCopying, NSObjectProtocol, NSSecureCoding { //NOTE: added this public NSMutableURLRequest() : base(null) { } /// <summary> /// Adds an HTTP header to the receiver’s HTTP header dictionary. /// </summary> /// <param name="value">The value for the header field.</param> /// <param name="forHTTPHeaderField">The name of the header field. In keeping with the HTTP RFC, HTTP header field names are case-insensitive.</param> [iOSVersion(2)] [Export("addValue")] public void AddValue(string value, string forHTTPHeaderField) { } /// <summary> /// Sets the specified HTTP header field. /// </summary> /// <param name="value">The new value for the header field. Any existing value for the field is replaced by the new value.</param> /// <param name="forHTTPHeaderField">The name of the header field to set. In keeping with the HTTP RFC, HTTP header field names are case-insensitive.</param> [iOSVersion(2)] [Export("setValue")] public void SetValue(string value, string forHTTPHeaderField) { } /// <summary> /// The cache policy of the receiver. /// </summary> [iOSVersion(8)] [Export("cachePolicy")] public NSURLRequestCachePolicy CachePolicy { get; set; } /// <summary> /// The main document URL for the receiver. /// </summary> [iOSVersion(8)] [Export("mainDocumentURL")] public NSURL MainDocumentURL { get; set; } /// <summary> /// The network service type of the connection. /// </summary> [iOSVersion(4)] [Export("networkServiceType")] public NSURLRequestNetworkServiceType NetworkServiceType { get; set; } /// <summary> /// The receiver’s timeout interval, in seconds. /// </summary> [iOSVersion(8)] [Export("timeoutInterval")] public NSTimeInterval TimeoutInterval { get; set; } /// <summary> /// The URL of the receiver /// </summary> [iOSVersion(8)] public NSURL URL { get; set; } /// <summary> /// A boolean value that indicates whether the connection can use the device’s cellular radio (if present). /// </summary> [iOSVersion(6)] [Export("allowsCellularAccess")] public bool AllowsCellularAccess { get; set; } /// <summary> /// The receiver's header fields. /// </summary> [iOSVersion(8)] [Export("allHTTPHeaderFields")] public Dictionary<NSObject, AnyObject> AllHTTPHeaderFields { get; set; } /// <summary> /// The request body of the receiver. /// </summary> [iOSVersion(8)] public NSData HTTPBody { get; set; } /// <summary> /// The request body as an input stream. /// </summary> [iOSVersion(8)] public NSInputStream HTTPBodyStream { get; set; } /// <summary> /// The receiver’s HTTP request method. /// </summary> [iOSVersion(8)] public string HTTPMethod { get; set; } /// <summary> /// A boolean value that indicates whether the receiver should use the default cookie handling for the request. /// </summary> [iOSVersion(8)] public bool HTTPShouldHandleCookies { get; set; } /// <summary> /// A boolean value that indicates whether the request can continue transmitting data before receiving a response from an earlier transmission. /// </summary> [iOSVersion(4)] public bool HTTPShouldUsePipelining { get; set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSMutableURLRequest is a subclass of NSURLRequest provided to aid developers who may find it more convenient to mutate a single request object for a series of URL load requests instead of creating an immutable NSURLRequest object for each load. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSMutableURLRequest_Class/index.html#//apple_ref/occ/cl/NSMutableURLRequest"/> [iOSVersion(2)] [Export("")] public class NSMutableURLRequest : NSURLRequest//, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSMutableCopying, NSObjectProtocol, NSSecureCoding, Printable { public NSMutableURLRequest() { } /// <summary> /// Adds an HTTP header to the receiver’s HTTP header dictionary. /// </summary> /// <param name="value">The value for the header field.</param> /// <param name="forHTTPHeaderField">The name of the header field. In keeping with the HTTP RFC, HTTP header field names are case-insensitive.</param> [iOSVersion(2)] [Export("addValue")] public virtual void AddValue([Optional] string value, string forHTTPHeaderField) { } /// <summary> /// Sets the specified HTTP header field. /// </summary> /// <param name="value">The new value for the header field. Any existing value for the field is replaced by the new value.</param> /// <param name="forHTTPHeaderField">The name of the header field to set. In keeping with the HTTP RFC, HTTP header field names are case-insensitive.</param> [iOSVersion(2)] [Export("setValue")] public virtual void SetValue([Optional] string value, string forHTTPHeaderField) { } /// <summary> /// The cache policy of the receiver. /// </summary> [iOSVersion(8)] [Export("cachePolicy")] public NSURLRequestCachePolicy CachePolicy { get; set; } /// <summary> /// The main document URL for the receiver. /// </summary> [iOSVersion(8)] [Export("mainDocumentURL")] [Optional] public NSURL MainDocumentURL { get; set; } /// <summary> /// The network service type of the connection. /// </summary> [iOSVersion(4)] [Export("networkServiceType")] public NSURLRequestNetworkServiceType NetworkServiceType { get; set; } /// <summary> /// The receiver’s timeout interval, in seconds. /// </summary> [iOSVersion(8)] [Export("timeoutInterval")] public NSTimeInterval TimeoutInterval { get; set; } /// <summary> /// The URL of the receiver /// </summary> [iOSVersion(8)] [Optional] public NSURL URL { get; set; } /// <summary> /// A boolean value that indicates whether the connection can use the device’s cellular radio (if present). /// </summary> [iOSVersion(6)] [Export("allowsCellularAccess")] public bool AllowsCellularAccess { get; set; } /// <summary> /// The receiver&#39;s header fields. /// </summary> [iOSVersion(8)] [Export("allHTTPHeaderFields")] public Dictionary<NSObject, AnyObject> AllHTTPHeaderFields { get; set; } /// <summary> /// The request body of the receiver. /// </summary> [iOSVersion(8)] [Optional] public NSData HTTPBody { get; set; } /// <summary> /// The request body as an input stream. /// </summary> [iOSVersion(8)] [Optional] public NSInputStream HTTPBodyStream { get; set; } /// <summary> /// The receiver’s HTTP request method. /// </summary> [iOSVersion(8)] public string HTTPMethod { get; set; } /// <summary> /// A boolean value that indicates whether the receiver should use the default cookie handling for the request. /// </summary> [iOSVersion(8)] public bool HTTPShouldHandleCookies { get; set; } /// <summary> /// A boolean value that indicates whether the request can continue transmitting data before receiving a response from an earlier transmission. /// </summary> [iOSVersion(4)] public bool HTTPShouldUsePipelining { get; set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSNetService.cs b/CocoaSharp/Foundation/NSNetService.cs
index 8a5dc001..db9d678c 100644
--- a/CocoaSharp/Foundation/NSNetService.cs
+++ b/CocoaSharp/Foundation/NSNetService.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSNetService class represents a network service, either one your application publishes or is a client of. This class and the NSNetServiceBrowser class use multicast DNS to convey information about network services to and from your application. The API of NSNetService provides a convenient way to publish the services offered by your application and to resolve the socket address for a service. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSNetService_Class/index.html#//apple_ref/occ/cl/NSNetService"/> [iOSVersion(2)] public class NSNetService : NSObject//, AnyObject, NSObjectProtocol { /// <summary> /// Returns the receiver, initialized as a network service of a given type and sets the initial host information. /// </summary> /// <param name="domain">The domain for the service. To resolve in the default domains, pass in an empty string (@&quot;&quot;). To limit resolution to the local domain, use @&quot;local.&quot;. /// If you are creating this object to resolve a service whose information your app stored previously, you should set this to the domain in which the service was originally discovered. /// You can also use a NSNetServiceBrowser object to obtain a list of possible domains in which you can discover and resolve services.</param> /// <param name="type">The network service type. /// type must contain both the service type and transport layer information. To ensure that the mDNS responder searches for services, as opposed to hosts, prefix both the service name and transport layer name with an underscore character (“_”). For example, to search for an HTTP service on TCP, you would use the type string &quot;_http._tcp.&quot;. Note that the period character at the end of the string, which indicates that the domain name is an absolute name, is required.</param> /// <param name="name">The name of the service to resolve.</param> [iOSVersion(2)] [Export("convenience init")] public NSNetService(string domain, string type, string name) { } /// <summary> /// Initializes the receiver for publishing a network service of type type at the socket location specified by domain, name, and port. /// </summary> /// <param name="domain">The domain for the service. To use the default registration domains, pass in an empty string (@&quot;&quot;). To limit registration to the local domain, use @&quot;local.&quot;. /// You can also use a NSNetServiceBrowser object to obtain a list of possible domains in which you can publish your service.</param> /// <param name="type">The network service type. /// type must contain both the service type and transport layer information. To ensure that the mDNS responder searches for services, as opposed to hosts, prefix both the service name and transport layer name with an underscore character (“_”). For example, to search for an HTTP service on TCP, you would use the type string &quot;_http._tcp.&quot;. Note that the period character at the end of the string, which indicates that the domain name is an absolute name, is required.</param> /// <param name="name">The name by which the service is identified to the network. The name must be unique. If you pass the empty string (@&quot;&quot;), the system automatically advertises your service using the computer name as the service name.</param> /// <param name="port">The port on which the service is published. /// If you specify the NSNetServiceListenForConnections flag, you may pass zero (0), in which case the service automatically allocates an arbitrary (ephemeral) port for your service. When the delegate’s netServiceDidPublish: is called, you can determine the actual port chosen by calling the service object’s Backward Compatibility Note method or accessing the corresponding property. /// If your app is listening for connections on its own, the value of port must be a port number acquired by your application for the service.</param> [iOSVersion(2)] public NSNetService(string domain, string type, string name, int port) { } /// <summary> /// Returns an NSData object representing a TXT record formed from a given dictionary. /// </summary> /// <param name="txtDictionary">A dictionary containing a TXT record.</param> [iOSVersion(2)] [Export("dataFromTXTRecordDictionary")] public static NSData DataFromTXTRecordDictionary(Dictionary<NSObject, AnyObject> txtDictionary) { return default(NSData); } /// <summary> /// Returns a dictionary representing a TXT record given as an NSData object. /// </summary> /// <param name="txtData">A data object encoding a TXT record.</param> [iOSVersion(2)] [Export("dictionaryFromTXTRecordData")] public static Dictionary<NSObject, AnyObject> DictionaryFromTXTRecordData(NSData txtData) { return default(Dictionary<NSObject, AnyObject>); } /// <summary> /// Creates a pair of input and output streams for the receiver and returns a Boolean value that indicates whether they were retrieved successfully. /// </summary> /// <param name="inputStream">Upon return, the input stream for the receiver. Pass NULL if you do not need this stream.</param> /// <param name="outputStream">Upon return, the output stream for the receiver. Pass NULL if you do not need this stream.</param> [iOSVersion(2)] [Export("getInputStream")] public bool GetInputStream(UnsafePointer<NSInputStream> inputStream, UnsafePointer<NSOutputStream> outputStream) { return default(bool); } /// <summary> /// Returns the TXT record for the receiver. /// </summary> [iOSVersion(2)] public NSData TXTRecordData() { return default(NSData); } /// <summary> /// Sets the TXT record for the receiver, and returns a Boolean value that indicates whether the operation was successful. /// </summary> /// <param name="recordData">The TXT record for the receiver.</param> [iOSVersion(2)] [Export("setTXTRecordData")] public bool SetTXTRecordData(NSData recordData) { return default(bool); } /// <summary> /// Adds the service to the specified run loop. /// </summary> /// <param name="aRunLoop">The run loop to which to add the receiver.</param> /// <param name="forMode">The run loop mode to which to add the receiver. Possible values for mode are discussed in the &quot;Constants&quot; section of NSRunLoop.</param> [iOSVersion(2)] [Export("scheduleInRunLoop")] public void ScheduleInRunLoop(NSRunLoop aRunLoop, string forMode) { } /// <summary> /// Removes the service from the given run loop for a given mode. /// </summary> /// <param name="aRunLoop">The run loop from which to remove the receiver.</param> /// <param name="forMode">The run loop mode from which to remove the receiver. Possible values for mode are discussed in the &quot;Constants&quot; section of NSRunLoop.</param> [iOSVersion(2)] [Export("removeFromRunLoop")] public void RemoveFromRunLoop(NSRunLoop aRunLoop, string forMode) { } /// <summary> /// Attempts to advertise the receiver’s on the network. /// </summary> [iOSVersion(2)] [Export("publish")] public void Publish() { } /// <summary> /// Attempts to advertise the receiver on the network, with the given options. /// </summary> /// <param name="serviceOptions">Options for the receiver. The supported options are described in NSNetServiceOptions.</param> [iOSVersion(2)] [Export("publishWithOptions")] public void PublishWithOptions(NSNetServiceOptions serviceOptions) { } /// <summary> /// Starts a resolve process of a finite duration for the service. /// </summary> /// <param name="timeout">The maximum number of seconds to attempt a resolve. A value of 0.0 indicates no timeout and a resolve process of indefinite duration.</param> [iOSVersion(2)] [Export("resolveWithTimeout")] public void ResolveWithTimeout(NSTimeInterval timeout) { } /// <summary> /// Starts the monitoring of TXT-record updates for the receiver. /// </summary> [iOSVersion(2)] [Export("startMonitoring")] public void StartMonitoring() { } /// <summary> /// Halts a currently running attempt to publish or resolve a service. /// </summary> [iOSVersion(2)] [Export("stop")] public void Stop() { } /// <summary> /// Stops the monitoring of TXT-record updates for the receiver. /// </summary> [iOSVersion(2)] [Export("stopMonitoring")] public void StopMonitoring() { } /// <summary> /// A read-only array containing NSData objects, each of which contains a socket address for the service. (read-only) /// </summary> [iOSVersion(2)] [Export("addresses")] public AnyObject[] Addresses { get; private set; } /// <summary> /// A string containing the domain for this service. (read-only) /// </summary> [iOSVersion(2)] [Export("domain")] public string Domain { get; private set; } /// <summary> /// A string containing the name of this service. (read-only) /// </summary> [iOSVersion(2)] [Export("name")] public string Name { get; private set; } /// <summary> /// The type of the published service. (read-only) /// </summary> [iOSVersion(2)] [Export("type")] public string Type { get; private set; } /// <summary> /// The delegate for the receiver. /// </summary> [iOSVersion(2)] [Export("delegate")] public NSNetServiceDelegate Delegate { get; set; } /// <summary> /// The port on which the service is listening for connections. (read-only) /// </summary> [iOSVersion(2)] [Export("port")] public int Port { get; private set; } /// <summary> /// A string containing the DNS hostname for this service. (read-only) /// </summary> [iOSVersion(2)] [Export("hostName")] public string HostName { get; private set; } } /// <summary> /// These constants specify options for a network service. /// </summary> [iOSVersion(2)] public enum NSNetServiceOptions { /// <summary> /// Specifies that the network service should not rename itself in the event of a name collision. /// </summary> [iOSVersion(2)] NoAutoRename, /// <summary> /// Specifies that a TCP listener should be started for both IPv4 and IPv6 on the port specified by this service. If the listening port can't be opened, the service calls its delegate’s netService:didNotPublish: method to report the error. /// The listener supports only TCP connections. If the service’s type does not end with _tcp, publication fails with NSNetServicesBadArgumentError. /// Whenever a client connects to the listening socket, the service calls its delegate’s netService:didAcceptConnectionWithInputStream:outputStream: method with a pair of NSStream objects. /// </summary> [iOSVersion(7)] ListenForConnections, } /// <summary> /// These constants identify errors that can occur when accessing net services. /// </summary> [iOSVersion(2)] public enum NSNetServicesError { /// <summary> /// An unknown error occurred. /// </summary> [iOSVersion(2)] UnknownError, /// <summary> /// The service could not be published because the name is already in use. The name could be in use locally or on another system. /// </summary> [iOSVersion(2)] CollisionError, /// <summary> /// The service could not be found on the network. /// </summary> [iOSVersion(2)] NotFoundError, /// <summary> /// The net service cannot process the request at this time. No additional information about the network state is known. /// </summary> [iOSVersion(2)] ActivityInProgress, /// <summary> /// An invalid argument was used when creating the NSNetService object. /// </summary> [iOSVersion(2)] BadArgumentError, /// <summary> /// The client canceled the action. /// </summary> [iOSVersion(2)] CancelledError, /// <summary> /// The net service was improperly configured. /// </summary> [iOSVersion(2)] InvalidError, /// <summary> /// The net service has timed out. /// </summary> [iOSVersion(2)] TimeoutError, } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSNetService class represents a network service, either one your application publishes or is a client of. This class and the NSNetServiceBrowser class use multicast DNS to convey information about network services to and from your application. The API of NSNetService provides a convenient way to publish the services offered by your application and to resolve the socket address for a service. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSNetService_Class/index.html#//apple_ref/occ/cl/NSNetService"/> [iOSVersion(2)] [Export("")] public class NSNetService : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSObjectProtocol, Printable { public NSNetService() { } /// <summary> /// Returns an NSData object representing a TXT record formed from a given dictionary. /// </summary> /// <param name="txtDictionary">A dictionary containing a TXT record.</param> [iOSVersion(2)] [Export("dataFromTXTRecordDictionary")] public static NSData DataFromTXTRecordDictionary(Dictionary<NSObject, AnyObject> txtDictionary) { return default(NSData); } /// <summary> /// Returns a dictionary representing a TXT record given as an NSData object. /// </summary> /// <param name="txtData">A data object encoding a TXT record.</param> [iOSVersion(2)] [Export("dictionaryFromTXTRecordData")] public static Dictionary<NSObject, AnyObject> DictionaryFromTXTRecordData(NSData txtData) { return default(Dictionary<NSObject, AnyObject>); } /// <summary> /// Creates a pair of input and output streams for the receiver and returns a Boolean value that indicates whether they were retrieved successfully. /// </summary> /// <param name="inputStream">Upon return, the input stream for the receiver. Pass NULL if you do not need this stream.</param> /// <param name="outputStream">Upon return, the output stream for the receiver. Pass NULL if you do not need this stream.</param> [iOSVersion(2)] [Export("getInputStream")] public virtual bool GetInputStream(UnsafeMutablePointer<NSInputStream> inputStream, UnsafeMutablePointer<NSOutputStream> outputStream) { return default(bool); } /// <summary> /// Returns the TXT record for the receiver. /// </summary> [iOSVersion(2)] [return:Unwrapped] public virtual NSData TXTRecordData() { return default(NSData); } /// <summary> /// Sets the TXT record for the receiver, and returns a Boolean value that indicates whether the operation was successful. /// </summary> /// <param name="recordData">The TXT record for the receiver.</param> [iOSVersion(2)] [Export("setTXTRecordData")] public virtual bool SetTXTRecordData([Unwrapped] NSData recordData) { return default(bool); } /// <summary> /// Adds the service to the specified run loop. /// </summary> /// <param name="aRunLoop">The run loop to which to add the receiver.</param> /// <param name="forMode">The run loop mode to which to add the receiver. Possible values for mode are discussed in the &quot;Constants&quot; section of NSRunLoop.</param> [iOSVersion(2)] [Export("scheduleInRunLoop")] public virtual void ScheduleInRunLoop(NSRunLoop aRunLoop, string forMode) { } /// <summary> /// Removes the service from the given run loop for a given mode. /// </summary> /// <param name="aRunLoop">The run loop from which to remove the receiver.</param> /// <param name="forMode">The run loop mode from which to remove the receiver. Possible values for mode are discussed in the &quot;Constants&quot; section of NSRunLoop.</param> [iOSVersion(2)] [Export("removeFromRunLoop")] public virtual void RemoveFromRunLoop(NSRunLoop aRunLoop, string forMode) { } /// <summary> /// Attempts to advertise the receiver’s on the network. /// </summary> [iOSVersion(2)] [Export("publish")] public virtual void Publish() { } /// <summary> /// Attempts to advertise the receiver on the network, with the given options. /// </summary> /// <param name="serviceOptions">Options for the receiver. The supported options are described in NSNetServiceOptions.</param> [iOSVersion(2)] [Export("publishWithOptions")] public virtual void PublishWithOptions(NSNetServiceOptions serviceOptions) { } /// <summary> /// Starts a resolve process of a finite duration for the service. /// </summary> /// <param name="timeout">The maximum number of seconds to attempt a resolve. A value of 0.0 indicates no timeout and a resolve process of indefinite duration.</param> [iOSVersion(2)] [Export("resolveWithTimeout")] public virtual void ResolveWithTimeout(NSTimeInterval timeout) { } /// <summary> /// Starts the monitoring of TXT-record updates for the receiver. /// </summary> [iOSVersion(2)] [Export("startMonitoring")] public virtual void StartMonitoring() { } /// <summary> /// Halts a currently running attempt to publish or resolve a service. /// </summary> [iOSVersion(2)] [Export("stop")] public virtual void Stop() { } /// <summary> /// Stops the monitoring of TXT-record updates for the receiver. /// </summary> [iOSVersion(2)] [Export("stopMonitoring")] public virtual void StopMonitoring() { } /// <summary> /// A read-only array containing NSData objects, each of which contains a socket address for the service. (read-only) /// </summary> [iOSVersion(2)] [Export("addresses")] public AnyObject[] Addresses { get; private set; } /// <summary> /// A string containing the domain for this service. (read-only) /// </summary> [iOSVersion(2)] [Export("domain")] [Unwrapped] public string Domain { get; private set; } /// <summary> /// A string containing the name of this service. (read-only) /// </summary> [iOSVersion(2)] [Export("name")] public string Name { get; private set; } /// <summary> /// The type of the published service. (read-only) /// </summary> [iOSVersion(2)] [Export("type")] public string Type { get; private set; } /// <summary> /// The delegate for the receiver. /// </summary> [iOSVersion(2)] [Export("delegate")] [Optional] public NSNetServiceDelegate Delegate { get; set; } /// <summary> /// The port on which the service is listening for connections. (read-only) /// </summary> [iOSVersion(2)] [Export("port")] public int Port { get; private set; } /// <summary> /// A string containing the DNS hostname for this service. (read-only) /// </summary> [iOSVersion(2)] [Export("hostName")] [Optional] public string HostName { get; private set; } } /// <summary> /// These constants specify options for a network service. /// </summary> public enum NSNetServiceOptions { /// <summary> /// Specifies that the network service should not rename itself in the event of a name collision. /// </summary> [iOSVersion(2)] NoAutoRename, /// <summary> /// Specifies that a TCP listener should be started for both IPv4 and IPv6 on the port specified by this service. If the listening port can&#39;t be opened, the service calls its delegate’s netService:didNotPublish: method to report the error. /// The listener supports only TCP connections. If the service’s type does not end with _tcp, publication fails with NSNetServicesBadArgumentError. /// Whenever a client connects to the listening socket, the service calls its delegate’s netService:didAcceptConnectionWithInputStream:outputStream: method with a pair of NSStream objects. /// </summary> [iOSVersion(7)] ListenForConnections, } /// <summary> /// These constants identify errors that can occur when accessing net services. /// </summary> public enum NSNetServicesError { /// <summary> /// An unknown error occurred. /// </summary> [iOSVersion(2)] UnknownError, /// <summary> /// The service could not be published because the name is already in use. The name could be in use locally or on another system. /// </summary> [iOSVersion(2)] CollisionError, /// <summary> /// The service could not be found on the network. /// </summary> [iOSVersion(2)] NotFoundError, /// <summary> /// The net service cannot process the request at this time. No additional information about the network state is known. /// </summary> [iOSVersion(2)] ActivityInProgress, /// <summary> /// An invalid argument was used when creating the NSNetService object. /// </summary> [iOSVersion(2)] BadArgumentError, /// <summary> /// The client canceled the action. /// </summary> [iOSVersion(2)] CancelledError, /// <summary> /// The net service was improperly configured. /// </summary> [iOSVersion(2)] InvalidError, /// <summary> /// The net service has timed out. /// </summary> [iOSVersion(2)] TimeoutError, } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSNetServiceBrowser.cs b/CocoaSharp/Foundation/NSNetServiceBrowser.cs
index 74a299bc..c6d7d046 100644
--- a/CocoaSharp/Foundation/NSNetServiceBrowser.cs
+++ b/CocoaSharp/Foundation/NSNetServiceBrowser.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSNetServiceBrowser class defines an interface for finding published services on a network using multicast DNS. An instance of NSNetServiceBrowser is known as a network service browser. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSNetServiceBrowser_Class/index.html#//apple_ref/occ/cl/NSNetServiceBrowser"/> [iOSVersion(2)] public class NSNetServiceBrowser : NSObject//, AnyObject, NSObjectProtocol { /// <summary> /// Initializes an allocated NSNetServiceBrowser object. /// </summary> [iOSVersion(2)] public NSNetServiceBrowser() { } /// <summary> /// Initiates a search for domains visible to the host. This method returns immediately. /// </summary> [iOSVersion(2)] [Export("searchForBrowsableDomains")] public void SearchForBrowsableDomains() { } /// <summary> /// Initiates a search for domains in which the host may register services. /// </summary> [iOSVersion(2)] [Export("searchForRegistrationDomains")] public void SearchForRegistrationDomains() { } /// <summary> /// Starts a search for services of a particular type within a specific domain. /// </summary> /// <param name="serviceType">Type of the service to search for.</param> /// <param name="inDomain">Domain name in which to perform the search.</param> [iOSVersion(2)] [Export("searchForServicesOfType")] public void SearchForServicesOfType(string serviceType, string inDomain) { } /// <summary> /// Halts a currently running search or resolution. /// </summary> [iOSVersion(2)] [Export("stop")] public void Stop() { } /// <summary> /// Adds the receiver to the specified run loop. /// </summary> /// <param name="runLoop">Run loop in which to schedule the receiver.</param> /// <param name="forMode">Run loop mode in which to perform this operation, such as NSDefaultRunLoopMode. See the Run Loop Modes section of the NSRunLoop class for other run loop mode values.</param> [iOSVersion(2)] [Export("scheduleInRunLoop")] public void ScheduleInRunLoop(NSRunLoop runLoop, string forMode) { } /// <summary> /// Removes the receiver from the specified run loop. /// </summary> /// <param name="runLoop">Run loop from which to remove the receiver.</param> /// <param name="forMode">Run loop mode in which to perform this operation, such as NSDefaultRunLoopMode. See the Run Loop Modes section of the NSRunLoop class for other run loop mode values.</param> [iOSVersion(2)] [Export("removeFromRunLoop")] public void RemoveFromRunLoop(NSRunLoop runLoop, string forMode) { } /// <summary> /// The delegate object for this instance. /// </summary> [iOSVersion(2)] [Export("delegate")] public NSNetServiceBrowserDelegate Delegate { get; set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSNetServiceBrowser class defines an interface for finding published services on a network using multicast DNS. An instance of NSNetServiceBrowser is known as a network service browser. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSNetServiceBrowser_Class/index.html#//apple_ref/occ/cl/NSNetServiceBrowser"/> [iOSVersion(2)] [Export("")] public class NSNetServiceBrowser : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSObjectProtocol, Printable { /// <summary> /// Initializes an allocated NSNetServiceBrowser object. /// </summary> [iOSVersion(2)] public NSNetServiceBrowser() { } /// <summary> /// Initiates a search for domains visible to the host. This method returns immediately. /// </summary> [iOSVersion(2)] [Export("searchForBrowsableDomains")] public virtual void SearchForBrowsableDomains() { } /// <summary> /// Initiates a search for domains in which the host may register services. /// </summary> [iOSVersion(2)] [Export("searchForRegistrationDomains")] public virtual void SearchForRegistrationDomains() { } /// <summary> /// Starts a search for services of a particular type within a specific domain. /// </summary> /// <param name="serviceType">Type of the service to search for.</param> /// <param name="inDomain">Domain name in which to perform the search.</param> [iOSVersion(2)] [Export("searchForServicesOfType")] public virtual void SearchForServicesOfType(string serviceType, string inDomain) { } /// <summary> /// Halts a currently running search or resolution. /// </summary> [iOSVersion(2)] [Export("stop")] public virtual void Stop() { } /// <summary> /// Adds the receiver to the specified run loop. /// </summary> /// <param name="runLoop">Run loop in which to schedule the receiver.</param> /// <param name="forMode">Run loop mode in which to perform this operation, such as NSDefaultRunLoopMode. See the Run Loop Modes section of the NSRunLoop class for other run loop mode values.</param> [iOSVersion(2)] [Export("scheduleInRunLoop")] public virtual void ScheduleInRunLoop(NSRunLoop runLoop, string forMode) { } /// <summary> /// Removes the receiver from the specified run loop. /// </summary> /// <param name="runLoop">Run loop from which to remove the receiver.</param> /// <param name="forMode">Run loop mode in which to perform this operation, such as NSDefaultRunLoopMode. See the Run Loop Modes section of the NSRunLoop class for other run loop mode values.</param> [iOSVersion(2)] [Export("removeFromRunLoop")] public virtual void RemoveFromRunLoop(NSRunLoop runLoop, string forMode) { } /// <summary> /// The delegate object for this instance. /// </summary> [iOSVersion(2)] [Export("delegate")] [Optional] public NSNetServiceBrowserDelegate Delegate { get; set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSNotification.cs b/CocoaSharp/Foundation/NSNotification.cs
index 58e91117..1f2b3d5c 100644
--- a/CocoaSharp/Foundation/NSNotification.cs
+++ b/CocoaSharp/Foundation/NSNotification.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSNotification objects encapsulate information so that it can be broadcast to other objects by an NSNotificationCenter object. An NSNotification object (referred to as a notification) contains a name, an object, and an optional dictionary. The name is a tag identifying the notification. The object is any object that the poster of the notification wants to send to observers of that notification (typically, it is the object that posted the notification). The dictionary stores other related objects, if any. NSNotification objects are immutable objects. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSNotification_Class/index.html#//apple_ref/occ/cl/NSNotification"/> [iOSVersion(2)] public class NSNotification : NSObject//, AnyObject, NSCoding, NSCopying, NSObjectProtocol { /// <summary> /// Returns a new notification object with a specified name and object. /// </summary> /// <param name="name">The name for the new notification. May not be nil.</param> /// <param name="@object">The object for the new notification.</param> [iOSVersion(2)] [Export("convenience init")] public NSNotification(string name, AnyObject @object) { } /// <summary> /// Initializes a notification with a specified name, object, and user information. /// </summary> /// <param name="name">The name for the new notification. May not be nil.</param> /// <param name="@object">The object for the new notification.</param> /// <param name="userInfo">The user information dictionary for the new notification. May be nil.</param> [iOSVersion(4)] public NSNotification(string name, AnyObject @object, Dictionary<NSObject, AnyObject> userInfo) { } /// <summary> /// The name of the notification. (read-only) /// </summary> [iOSVersion(2)] [Export("name")] public string Name { get; private set; } /// <summary> /// The object associated with the notification. (read-only) /// </summary> [iOSVersion(2)] [Export("object")] public AnyObject Object { get; private set; } /// <summary> /// The user information dictionary associated with the receiver. (read-only) /// </summary> [iOSVersion(2)] [Export("userInfo")] public Dictionary<NSObject, AnyObject> UserInfo { get; private set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSNotification objects encapsulate information so that it can be broadcast to other objects by an NSNotificationCenter object. An NSNotification object (referred to as a notification) contains a name, an object, and an optional dictionary. The name is a tag identifying the notification. The object is any object that the poster of the notification wants to send to observers of that notification (typically, it is the object that posted the notification). The dictionary stores other related objects, if any. NSNotification objects are immutable objects. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSNotification_Class/index.html#//apple_ref/occ/cl/NSNotification"/> [iOSVersion(2)] [Export("")] public class NSNotification : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSObjectProtocol, Printable { public NSNotification() { } /// <summary> /// Returns a new notification object with a specified name and object. /// </summary> /// <param name="name">The name for the new notification. May not be nil.</param> /// <param name="@object">The object for the new notification.</param> [iOSVersion(2)] [Export("convenience init")] public NSNotification(string name, [Optional] AnyObject @object) { } /// <summary> /// Initializes a notification with a specified name, object, and user information. /// </summary> /// <param name="name">The name for the new notification. May not be nil.</param> /// <param name="@object">The object for the new notification.</param> /// <param name="userInfo">The user information dictionary for the new notification. May be nil.</param> [iOSVersion(4)] public NSNotification(string name, [Optional] AnyObject @object, Dictionary<NSObject, AnyObject> userInfo) { } /// <summary> /// The name of the notification. (read-only) /// </summary> [iOSVersion(2)] [Export("name")] public string Name { get; private set; } /// <summary> /// The object associated with the notification. (read-only) /// </summary> [iOSVersion(2)] [Export("object")] [Optional] public AnyObject Object { get; private set; } /// <summary> /// The user information dictionary associated with the receiver. (read-only) /// </summary> [iOSVersion(2)] [Export("userInfo")] public Dictionary<NSObject, AnyObject> UserInfo { get; private set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSNotificationCenter.cs b/CocoaSharp/Foundation/NSNotificationCenter.cs
index 48e6fe2d..1926dc47 100644
--- a/CocoaSharp/Foundation/NSNotificationCenter.cs
+++ b/CocoaSharp/Foundation/NSNotificationCenter.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// An NSNotificationCenter object (or simply, notification center) provides a mechanism for broadcasting information within a program. An NSNotificationCenter object is essentially a notification dispatch table. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSNotificationCenter_Class/index.html#//apple_ref/occ/cl/NSNotificationCenter"/> [iOSVersion(2)] public class NSNotificationCenter : NSObject//, AnyObject, NSObjectProtocol { /// <summary> /// Returns the process’s default notification center. /// </summary> [iOSVersion(2)] [Export("defaultCenter")] public static NSNotificationCenter DefaultCenter() { return default(NSNotificationCenter); } /// <summary> /// Adds an entry to the receiver’s dispatch table with a notification queue and a block to add to the queue, and optional criteria: notification name and sender. /// </summary> /// <param name="name">The name of the notification for which to register the observer; that is, only notifications with this name are used to add the block to the operation queue. /// If you pass nil, the notification center doesn’t use a notification’s name to decide whether to add the block to the operation queue.</param> /// <param name="@object">The object whose notifications you want to add the block to the operation queue. /// If you pass nil, the notification center doesn’t use a notification’s sender to decide whether to add the block to the operation queue.</param> /// <param name="queue">The operation queue to which block should be added. /// If you pass nil, the block is run synchronously on the posting thread.</param> /// <param name="usingBlock">The block to be executed when the notification is received. /// The block is copied by the notification center and (the copy) held until the observer registration is removed. /// The block takes one argument: /// notification /// The notification.</param> [iOSVersion(4)] [Export("addObserverForName")] public NSObjectProtocol AddObserverForName(string name, AnyObject @object, NSOperationQueue queue, Action<NSNotification> usingBlock) { return default(NSObjectProtocol); } /// <summary> /// Adds an entry to the receiver’s dispatch table with an observer, a notification selector and optional criteria: notification name and sender. /// </summary> /// <param name="notificationObserver">Object registering as an observer. This value must not be nil.</param> /// <param name="selector">Selector that specifies the message the receiver sends notificationObserver to notify it of the notification posting. The method specified by notificationSelector must have one and only one argument (an instance of NSNotification).</param> /// <param name="name">The name of the notification for which to register the observer; that is, only notifications with this name are delivered to the observer. /// If you pass nil, the notification center doesn’t use a notification’s name to decide whether to deliver it to the observer.</param> /// <param name="@object">The object whose notifications the observer wants to receive; that is, only notifications sent by this sender are delivered to the observer. /// If you pass nil, the notification center doesn’t use a notification’s sender to decide whether to deliver it to the observer.</param> [iOSVersion(2)] [Export("addObserver")] public void AddObserver(AnyObject notificationObserver, Selector selector, string name, AnyObject @object) { } /// <summary> /// Removes all the entries specifying a given observer from the receiver’s dispatch table. /// </summary> /// <param name="notificationObserver">The observer to remove. Must not be nil.</param> [iOSVersion(2)] [Export("removeObserver")] public void RemoveObserver(AnyObject notificationObserver) { } /// <summary> /// Removes matching entries from the receiver’s dispatch table. /// </summary> /// <param name="notificationObserver">Observer to remove from the dispatch table. Specify an observer to remove only entries for this observer. Must not be nil, or message will have no effect.</param> /// <param name="name">Name of the notification to remove from dispatch table. Specify a notification name to remove only entries that specify this notification name. When nil, the receiver does not use notification names as criteria for removal.</param> /// <param name="@object">Sender to remove from the dispatch table. Specify a notification sender to remove only entries that specify this sender. When nil, the receiver does not use notification senders as criteria for removal.</param> [iOSVersion(2)] [Export("removeObserver")] public void RemoveObserver(AnyObject notificationObserver, string name, AnyObject @object) { } /// <summary> /// Posts a given notification to the receiver. /// </summary> /// <param name="notification">The notification to post. This value must not be nil.</param> [iOSVersion(2)] [Export("postNotification")] public void PostNotification(NSNotification notification) { } /// <summary> /// Creates a notification with a given name and sender and posts it to the receiver. /// </summary> /// <param name="notificationName">The name of the notification.</param> /// <param name="@object">The object posting the notification.</param> [iOSVersion(2)] [Export("postNotificationName")] public void PostNotificationName(string notificationName, AnyObject @object) { } /// <summary> /// Creates a notification with a given name, sender, and information and posts it to the receiver. /// </summary> /// <param name="notificationName">The name of the notification.</param> /// <param name="@object">The object posting the notification.</param> /// <param name="userInfo">Information about the the notification. May be nil.</param> [iOSVersion(2)] [Export("postNotificationName")] public void PostNotificationName(string notificationName, AnyObject @object, Dictionary<NSObject, AnyObject> userInfo) { } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// An NSNotificationCenter object (or simply, notification center) provides a mechanism for broadcasting information within a program. An NSNotificationCenter object is essentially a notification dispatch table. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSNotificationCenter_Class/index.html#//apple_ref/occ/cl/NSNotificationCenter"/> [iOSVersion(2)] [Export("")] public class NSNotificationCenter : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSObjectProtocol, Printable { public NSNotificationCenter() { } /// <summary> /// Returns the process’s default notification center. /// </summary> [iOSVersion(2)] [Export("defaultCenter")] public static NSNotificationCenter DefaultCenter() { return default(NSNotificationCenter); } /// <summary> /// Adds an entry to the receiver’s dispatch table with a notification queue and a block to add to the queue, and optional criteria: notification name and sender. /// </summary> /// <param name="name">The name of the notification for which to register the observer; that is, only notifications with this name are used to add the block to the operation queue. /// If you pass nil, the notification center doesn’t use a notification’s name to decide whether to add the block to the operation queue.</param> /// <param name="@object">The object whose notifications you want to add the block to the operation queue. /// If you pass nil, the notification center doesn’t use a notification’s sender to decide whether to add the block to the operation queue.</param> /// <param name="queue">The operation queue to which block should be added. /// If you pass nil, the block is run synchronously on the posting thread.</param> /// <param name="usingBlock">The block to be executed when the notification is received. /// The block is copied by the notification center and (the copy) held until the observer registration is removed. /// The block takes one argument: /// notification /// The notification.</param> [iOSVersion(4)] [Export("addObserverForName")] public virtual NSObjectProtocol AddObserverForName([Optional] string name, [Optional] AnyObject @object, [Optional] NSOperationQueue queue, Action<NSNotification> usingBlock) { return default(NSObjectProtocol); } /// <summary> /// Adds an entry to the receiver’s dispatch table with an observer, a notification selector and optional criteria: notification name and sender. /// </summary> /// <param name="notificationObserver">Object registering as an observer. This value must not be nil.</param> /// <param name="selector">Selector that specifies the message the receiver sends notificationObserver to notify it of the notification posting. The method specified by notificationSelector must have one and only one argument (an instance of NSNotification).</param> /// <param name="name">The name of the notification for which to register the observer; that is, only notifications with this name are delivered to the observer. /// If you pass nil, the notification center doesn’t use a notification’s name to decide whether to deliver it to the observer.</param> /// <param name="@object">The object whose notifications the observer wants to receive; that is, only notifications sent by this sender are delivered to the observer. /// If you pass nil, the notification center doesn’t use a notification’s sender to decide whether to deliver it to the observer.</param> [iOSVersion(2)] [Export("addObserver")] public virtual void AddObserver(AnyObject notificationObserver, Selector selector, [Optional] string name, [Optional] AnyObject @object) { } /// <summary> /// Removes all the entries specifying a given observer from the receiver’s dispatch table. /// </summary> /// <param name="notificationObserver">The observer to remove. Must not be nil.</param> [iOSVersion(2)] [Export("removeObserver")] public virtual void RemoveObserver(AnyObject notificationObserver) { } /// <summary> /// Removes matching entries from the receiver’s dispatch table. /// </summary> /// <param name="notificationObserver">Observer to remove from the dispatch table. Specify an observer to remove only entries for this observer. Must not be nil, or message will have no effect.</param> /// <param name="name">Name of the notification to remove from dispatch table. Specify a notification name to remove only entries that specify this notification name. When nil, the receiver does not use notification names as criteria for removal.</param> /// <param name="@object">Sender to remove from the dispatch table. Specify a notification sender to remove only entries that specify this sender. When nil, the receiver does not use notification senders as criteria for removal.</param> [iOSVersion(2)] [Export("removeObserver")] public virtual void RemoveObserver(AnyObject notificationObserver, [Optional] string name, [Optional] AnyObject @object) { } /// <summary> /// Posts a given notification to the receiver. /// </summary> /// <param name="notification">The notification to post. This value must not be nil.</param> [iOSVersion(2)] [Export("postNotification")] public virtual void PostNotification(NSNotification notification) { } /// <summary> /// Creates a notification with a given name and sender and posts it to the receiver. /// </summary> /// <param name="notificationName">The name of the notification.</param> /// <param name="@object">The object posting the notification.</param> [iOSVersion(2)] [Export("postNotificationName")] public virtual void PostNotificationName(string notificationName, [Optional] AnyObject @object) { } /// <summary> /// Creates a notification with a given name, sender, and information and posts it to the receiver. /// </summary> /// <param name="notificationName">The name of the notification.</param> /// <param name="@object">The object posting the notification.</param> /// <param name="userInfo">Information about the the notification. May be nil.</param> [iOSVersion(2)] [Export("postNotificationName")] public virtual void PostNotificationName(string notificationName, [Optional] AnyObject @object, Dictionary<NSObject, AnyObject> userInfo) { } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSNotificationQueue.cs b/CocoaSharp/Foundation/NSNotificationQueue.cs
index b72abbbc..0c57d53a 100644
--- a/CocoaSharp/Foundation/NSNotificationQueue.cs
+++ b/CocoaSharp/Foundation/NSNotificationQueue.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSNotificationQueue objects (or simply notification queues) act as buffers for notification centers (instances of NSNotificationCenter). Whereas a notification center distributes notifications when posted, notifications placed into the queue can be delayed until the end of the current pass through the run loop or until the run loop is idle. Duplicate notifications can also be coalesced so that only one notification is sent although multiple notifications are posted. A notification queue maintains notifications (instances of NSNotification) generally in a first in first out (FIFO) order. When a notification rises to the front of the queue, the queue posts it to the notification center, which in turn dispatches the notification to all objects registered as observers. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSNotificationQueue_Class/index.html#//apple_ref/occ/cl/NSNotificationQueue"/> [iOSVersion(2)] public class NSNotificationQueue : NSObject//, AnyObject, NSObjectProtocol { /// <summary> /// Initializes and returns a notification queue for the specified notification center. /// </summary> /// <param name="notificationCenter">The notification center used by the new notification queue.</param> [iOSVersion(2)] public NSNotificationQueue(NSNotificationCenter notificationCenter) { } /// <summary> /// Returns the default notification queue for the current thread. /// </summary> [iOSVersion(2)] [Export("defaultQueue")] public static NSNotificationQueue DefaultQueue() { return default(NSNotificationQueue); } /// <summary> /// Adds a notification to the notification queue with a specified posting style. /// </summary> /// <param name="notification">The notification to add to the queue.</param> /// <param name="postingStyle">The posting style for the notification. The posting style indicates when the notification queue should post the notification to its notification center.</param> [iOSVersion(2)] [Export("enqueueNotification")] public void EnqueueNotification(NSNotification notification, NSPostingStyle postingStyle) { } /// <summary> /// Adds a notification to the notification queue with a specified posting style, criteria for coalescing, and runloop mode. /// </summary> /// <param name="notification">The notification to add to the queue.</param> /// <param name="postingStyle">The posting style for the notification. The posting style indicates when the notification queue should post the notification to its notification center.</param> /// <param name="coalesceMask">A mask indicating what criteria to use when matching attributes of notification to attributes of notifications in the queue. The mask is created by combining any of the constants NSNotificationNoCoalescing, NSNotificationCoalescingOnName, and NSNotificationCoalescingOnSender.</param> /// <param name="forModes">The list of modes the notification may be posted in. The notification queue will only post the notification to its notification center if the run loop is in one of the modes provided in the array. May be nil, in which case it defaults to NSDefaultRunLoopMode.</param> [iOSVersion(2)] [Export("enqueueNotification")] public void EnqueueNotification(NSNotification notification, NSPostingStyle postingStyle, int coalesceMask, AnyObject[] forModes) { } /// <summary> /// Removes all notifications from the queue that match a provided notification using provided matching criteria. /// </summary> /// <param name="notification">The notification used for matching notifications to remove from the notification queue.</param> /// <param name="coalesceMask">A mask indicating what criteria to use when matching attributes of notification to attributes of notifications in the queue. The mask is created by combining any of the constants NSNotificationNoCoalescing, NSNotificationCoalescingOnName, and NSNotificationCoalescingOnSender.</param> [iOSVersion(2)] [Export("dequeueNotificationsMatching")] public void DequeueNotificationsMatching(NSNotification notification, int coalesceMask) { } } /// <summary> /// These constants specify how notifications are coalesced. /// </summary> [iOSVersion(2)] public enum NSNotificationCoalescing { /// <summary> /// Do not coalesce notifications in the queue. /// </summary> [iOSVersion(2)] NoCoalescing, /// <summary> /// Coalesce notifications with the same name. /// </summary> [iOSVersion(2)] CoalescingOnName, /// <summary> /// Coalesce notifications with the same object. /// </summary> [iOSVersion(2)] CoalescingOnSender, } /// <summary> /// These constants specify when notifications are posted. /// </summary> [iOSVersion(2)] public enum NSPostingStyle { /// <summary> /// The notification is posted when the run loop is idle. /// </summary> [iOSVersion(2)] PostWhenIdle, /// <summary> /// The notification is posted at the end of the current notification callout or timer. /// </summary> [iOSVersion(2)] PostASAP, /// <summary> /// The notification is posted immediately after coalescing. /// </summary> [iOSVersion(2)] PostNow, } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSNotificationQueue objects (or simply notification queues) act as buffers for notification centers (instances of NSNotificationCenter). Whereas a notification center distributes notifications when posted, notifications placed into the queue can be delayed until the end of the current pass through the run loop or until the run loop is idle. Duplicate notifications can also be coalesced so that only one notification is sent although multiple notifications are posted. A notification queue maintains notifications (instances of NSNotification) generally in a first in first out (FIFO) order. When a notification rises to the front of the queue, the queue posts it to the notification center, which in turn dispatches the notification to all objects registered as observers. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSNotificationQueue_Class/index.html#//apple_ref/occ/cl/NSNotificationQueue"/> [iOSVersion(2)] [Export("")] public class NSNotificationQueue : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSObjectProtocol, Printable { public NSNotificationQueue() { } /// <summary> /// Initializes and returns a notification queue for the specified notification center. /// </summary> /// <param name="notificationCenter">The notification center used by the new notification queue.</param> [iOSVersion(2)] public NSNotificationQueue(NSNotificationCenter notificationCenter) { } /// <summary> /// Returns the default notification queue for the current thread. /// </summary> [iOSVersion(2)] [Export("defaultQueue")] public static NSNotificationQueue DefaultQueue() { return default(NSNotificationQueue); } /// <summary> /// Adds a notification to the notification queue with a specified posting style. /// </summary> /// <param name="notification">The notification to add to the queue.</param> /// <param name="postingStyle">The posting style for the notification. The posting style indicates when the notification queue should post the notification to its notification center.</param> [iOSVersion(2)] [Export("enqueueNotification")] public virtual void EnqueueNotification(NSNotification notification, NSPostingStyle postingStyle) { } /// <summary> /// Adds a notification to the notification queue with a specified posting style, criteria for coalescing, and runloop mode. /// </summary> /// <param name="notification">The notification to add to the queue.</param> /// <param name="postingStyle">The posting style for the notification. The posting style indicates when the notification queue should post the notification to its notification center.</param> /// <param name="coalesceMask">A mask indicating what criteria to use when matching attributes of notification to attributes of notifications in the queue. The mask is created by combining any of the constants NSNotificationNoCoalescing, NSNotificationCoalescingOnName, and NSNotificationCoalescingOnSender.</param> /// <param name="forModes">The list of modes the notification may be posted in. The notification queue will only post the notification to its notification center if the run loop is in one of the modes provided in the array. May be nil, in which case it defaults to NSDefaultRunLoopMode.</param> [iOSVersion(2)] [Export("enqueueNotification")] public virtual void EnqueueNotification(NSNotification notification, NSPostingStyle postingStyle, int coalesceMask, AnyObject[] forModes) { } /// <summary> /// Removes all notifications from the queue that match a provided notification using provided matching criteria. /// </summary> /// <param name="notification">The notification used for matching notifications to remove from the notification queue.</param> /// <param name="coalesceMask">A mask indicating what criteria to use when matching attributes of notification to attributes of notifications in the queue. The mask is created by combining any of the constants NSNotificationNoCoalescing, NSNotificationCoalescingOnName, and NSNotificationCoalescingOnSender.</param> [iOSVersion(2)] [Export("dequeueNotificationsMatching")] public virtual void DequeueNotificationsMatching(NSNotification notification, int coalesceMask) { } } /// <summary> /// These constants specify how notifications are coalesced. /// </summary> public enum NSNotificationCoalescing { /// <summary> /// Do not coalesce notifications in the queue. /// </summary> [iOSVersion(2)] NoCoalescing, /// <summary> /// Coalesce notifications with the same name. /// </summary> [iOSVersion(2)] CoalescingOnName, /// <summary> /// Coalesce notifications with the same object. /// </summary> [iOSVersion(2)] CoalescingOnSender, } /// <summary> /// These constants specify when notifications are posted. /// </summary> public enum NSPostingStyle { /// <summary> /// The notification is posted when the run loop is idle. /// </summary> [iOSVersion(2)] PostWhenIdle, /// <summary> /// The notification is posted at the end of the current notification callout or timer. /// </summary> [iOSVersion(2)] PostASAP, /// <summary> /// The notification is posted immediately after coalescing. /// </summary> [iOSVersion(2)] PostNow, } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSNull.cs b/CocoaSharp/Foundation/NSNull.cs
index 69b39db9..cd3d1076 100644
--- a/CocoaSharp/Foundation/NSNull.cs
+++ b/CocoaSharp/Foundation/NSNull.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSNull class defines a singleton object used to represent null values in collection objects (which don’t allow nil values). /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSNull_Class/index.html#//apple_ref/occ/cl/NSNull"/> [iOSVersion(2)] public class NSNull : NSObject//, AnyObject, NSCoding, NSCopying, NSObjectProtocol, NSSecureCoding { } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSNull class defines a singleton object used to represent null values in collection objects (which don’t allow nil values). /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSNull_Class/index.html#//apple_ref/occ/cl/NSNull"/> [iOSVersion(2)] [Export("")] public class NSNull : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSObjectProtocol, NSSecureCoding, Printable { public NSNull() { } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSNumber.cs b/CocoaSharp/Foundation/NSNumber.cs
index 8323c894..73313d5c 100644
--- a/CocoaSharp/Foundation/NSNumber.cs
+++ b/CocoaSharp/Foundation/NSNumber.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSNumber is a subclass of NSValue that offers a value as any C scalar (numeric) type. It defines a set of methods specifically for setting and accessing the value as a signed or unsigned char, short int, int, long int, long long int, float, or double or as a BOOL. (Note that number objects do not necessarily preserve the type they are created with.) It also defines a compare: method to determine the ordering of two NSNumber objects. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSNumber_Class/index.html#//apple_ref/occ/cl/NSNumber"/> [iOSVersion(2)] public class NSNumber : NSValue//, AnyObject, BooleanLiteralConvertible, FloatLiteralConvertible, IntegerLiteralConvertible, NSCoding, NSCopying, NSObjectProtocol, NSSecureCoding { /// <summary> /// Creates and returns an NSNumber object containing a given value, treating it as a BOOL. /// </summary> /// <param name="value">The value for the new number.</param> [iOSVersion(2)] [Export("numberWithBool")] public static NSNumber NumberWithBool(bool value) { return default(NSNumber); } /// <summary> /// Creates and returns an NSNumber object containing a given value, treating it as a signed char. /// </summary> /// <param name="value">The value for the new number.</param> [iOSVersion(2)] [Export("numberWithChar")] public static NSNumber NumberWithChar(Int8 value) { return default(NSNumber); } /// <summary> /// Creates and returns an NSNumber object containing a given value, treating it as a double. /// </summary> /// <param name="value">The value for the new number.</param> [iOSVersion(2)] [Export("numberWithDouble")] public static NSNumber NumberWithDouble(Double value) { return default(NSNumber); } /// <summary> /// Creates and returns an NSNumber object containing a given value, treating it as a float. /// </summary> /// <param name="value">The value for the new number.</param> [iOSVersion(2)] [Export("numberWithFloat")] public static NSNumber NumberWithFloat(float value) { return default(NSNumber); } /// <summary> /// Creates and returns an NSNumber object containing a given value, treating it as a signed int. /// </summary> /// <param name="value">The value for the new number.</param> [iOSVersion(2)] [Export("numberWithInt")] public static NSNumber NumberWithInt(int value) { return default(NSNumber); } /// <summary> /// Creates and returns an NSNumber object containing a given value, treating it as an NSInteger. /// </summary> /// <param name="value">The value for the new number.</param> [iOSVersion(2)] [Export("numberWithInteger")] public static NSNumber NumberWithInteger(int value) { return default(NSNumber); } /// <summary> /// Creates and returns an NSNumber object containing a given value, treating it as a signed long. /// </summary> /// <param name="value">The value for the new number.</param> [iOSVersion(2)] [Export("numberWithLong")] public static NSNumber NumberWithLong(int value) { return default(NSNumber); } /// <summary> /// Creates and returns an NSNumber object containing a given value, treating it as a signed long long. /// </summary> /// <param name="value">The value for the new number.</param> [iOSVersion(2)] [Export("numberWithLongLong")] public static NSNumber NumberWithLongLong(Int64 value) { return default(NSNumber); } /// <summary> /// Creates and returns an NSNumber object containing value, treating it as a signed short. /// </summary> /// <param name="value">The value for the new number.</param> [iOSVersion(2)] [Export("numberWithShort")] public static NSNumber NumberWithShort(Int16 value) { return default(NSNumber); } /// <summary> /// Creates and returns an NSNumber object containing a given value, treating it as an unsigned char. /// </summary> /// <param name="value">The value for the new number.</param> [iOSVersion(2)] [Export("numberWithUnsignedChar")] public static NSNumber NumberWithUnsignedChar(UInt8 value) { return default(NSNumber); } /// <summary> /// Creates and returns an NSNumber object containing a given value, treating it as an unsigned int. /// </summary> /// <param name="value">The value for the new number.</param> [iOSVersion(2)] [Export("numberWithUnsignedInt")] public static NSNumber NumberWithUnsignedInt(uint value) { return default(NSNumber); } /// <summary> /// Creates and returns an NSNumber object containing a given value, treating it as an NSUInteger. /// </summary> /// <param name="value">The value for the new number.</param> [iOSVersion(2)] [Export("numberWithUnsignedInteger")] public static NSNumber NumberWithUnsignedInteger(int value) { return default(NSNumber); } /// <summary> /// Creates and returns an NSNumber object containing a given value, treating it as an unsigned long. /// </summary> /// <param name="value">The value for the new number.</param> [iOSVersion(2)] [Export("numberWithUnsignedLong")] public static NSNumber NumberWithUnsignedLong(uint value) { return default(NSNumber); } /// <summary> /// Creates and returns an NSNumber object containing a given value, treating it as an unsigned long long. /// </summary> /// <param name="value">The value for the new number.</param> [iOSVersion(2)] [Export("numberWithUnsignedLongLong")] public static NSNumber NumberWithUnsignedLongLong(UInt64 value) { return default(NSNumber); } /// <summary> /// Creates and returns an NSNumber object containing a given value, treating it as an unsigned short. /// </summary> /// <param name="value">The value for the new number.</param> [iOSVersion(2)] [Export("numberWithUnsignedShort")] public static NSNumber NumberWithUnsignedShort(UInt16 value) { return default(NSNumber); } /// <summary> /// Returns an NSNumber object initialized to contain a given value, treated as a BOOL. /// </summary> /// <param name="bool">The value for the new number.</param> [iOSVersion(2)] public NSNumber(bool @bool) : base(null, null) { } /// <summary> /// Returns an NSNumber object initialized to contain a given value, treated as a signed char. /// </summary> /// <param name="char">The value for the new number.</param> [iOSVersion(2)] public NSNumber(Int8 @char) : base(null, null) { } /// <summary> /// Returns an NSNumber object initialized to contain value, treated as a double. /// </summary> /// <param name="double">The value for the new number.</param> [iOSVersion(2)] public NSNumber(Double @double) : base(null, null) { } /// <summary> /// Returns an NSNumber object initialized to contain a given value, treated as a float. /// </summary> /// <param name="float">The value for the new number.</param> [iOSVersion(2)] public NSNumber(float @float) : base(null, null) { } /// <summary> /// Returns an NSNumber object initialized to contain a given value, treated as a signed int. /// </summary> /// <param name="int">The value for the new number.</param> [iOSVersion(2)] public NSNumber(int @int) : base(null, null) { } /// <summary> /// Returns an NSNumber object initialized to contain a given value, treated as an NSInteger. /// </summary> /// <param name="integer">The value for the new number.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [IgnoreParameter("NAME_YOUR_PARAMS")] public NSNumber(int integer, bool NAME_YOUR_PARAMS = false) : base(null, null) { } /// <summary> /// Returns an NSNumber object initialized to contain a given value, treated as a signed long. /// </summary> /// <param name="long">The value for the new number.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [IgnoreParameter("NAME_YOUR_PARAMS")] public NSNumber(int @long, int NAME_YOUR_PARAMS = 0) : base(null, null) { } /// <summary> /// Returns an NSNumber object initialized to contain value, treated as a signed long long. /// </summary> /// <param name="longLong">The value for the new number.</param> [iOSVersion(2)] public NSNumber(Int64 longLong) : base(null, null) { } /// <summary> /// Returns an NSNumber object initialized to contain a given value, treated as a signed short. /// </summary> /// <param name="short">The value for the new number.</param> [iOSVersion(2)] public NSNumber(Int16 @short) : base(null, null) { } /// <summary> /// Returns an NSNumber object initialized to contain a given value, treated as an unsigned char. /// </summary> /// <param name="unsignedChar">The value for the new number.</param> [iOSVersion(2)] public NSNumber(UInt8 unsignedChar) : base(null, null) { } /// <summary> /// Returns an NSNumber object initialized to contain a given value, treated as an unsigned int. /// </summary> /// <param name="unsignedInt">The value for the new number.</param> [iOSVersion(2)] public NSNumber(uint unsignedInt) : base(null, null) { } /// <summary> /// Returns an NSNumber object initialized to contain a given value, treated as an NSUInteger. /// </summary> /// <param name="unsignedInteger">The value for the new number.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [IgnoreParameter("NAME_YOUR_PARAMS")] public NSNumber(int unsignedInteger, string NAME_YOUR_PARAMS = "") : base(null, null) { } /// <summary> /// Returns an NSNumber object initialized to contain a given value, treated as an unsigned long. /// </summary> /// <param name="unsignedLong">The value for the new number.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [IgnoreParameter("NAME_YOUR_PARAMS")] public NSNumber(uint unsignedLong, bool NAME_YOUR_PARAMS = false) : base(null, null) { } /// <summary> /// Returns an NSNumber object initialized to contain a given value, treated as an unsigned long long. /// </summary> /// <param name="unsignedLongLong">The value for the new number.</param> [iOSVersion(2)] public NSNumber(UInt64 unsignedLongLong) : base(null, null) { } /// <summary> /// Returns an NSNumber object initialized to contain a given value, treated as an unsigned short. /// </summary> /// <param name="unsignedShort">The value for the new number.</param> [iOSVersion(2)] public NSNumber(UInt16 unsignedShort) : base(null, null) { } /// <summary> /// Returns a string that represents the contents of the number object for a given locale. /// </summary> /// <param name="aLocale">An object containing locale information with which to format the description. Use nil if you don’t want the description formatted.</param> [iOSVersion(2)] [Export("descriptionWithLocale")] public string DescriptionWithLocale(AnyObject aLocale) { return default(string); } /// <summary> /// Returns an NSComparisonResult value that indicates whether the number object’s value is greater than, equal to, or less than a given number. /// </summary> /// <param name="aNumber">The number to compare to the number object’s value. /// This value must not be nil. If the value is nil, the behavior is undefined and may change in future versions of OS X.</param> [iOSVersion(2)] [Export("compare")] public NSComparisonResult Compare(NSNumber aNumber) { return default(NSComparisonResult); } /// <summary> /// Returns a Boolean value that indicates whether the number object’s value and a given number are equal. /// </summary> /// <param name="aNumber">The number to compare to the number object’s value.</param> [iOSVersion(2)] [Export("isEqualToNumber")] public bool IsEqualToNumber(NSNumber aNumber) { return default(bool); } /// <summary> /// The number object's value expressed as a Boolean value. (read-only) /// </summary> [iOSVersion(2)] [Export("boolValue")] public bool BoolValue { get; private set; } /// <summary> /// The number object's value expressed as a char. (read-only) /// </summary> [iOSVersion(2)] [Export("charValue")] public Int8 CharValue { get; private set; } /// <summary> /// The number object's value expressed as a double, converted as necessary. (read-only) /// </summary> [iOSVersion(2)] [Export("doubleValue")] public Double DoubleValue { get; private set; } /// <summary> /// The number object's value expressed as a float, converted as necessary. (read-only) /// </summary> [iOSVersion(2)] [Export("floatValue")] public float FloatValue { get; private set; } /// <summary> /// The number object's value expressed as an int, converted as necessary. (read-only) /// </summary> [iOSVersion(2)] [Export("intValue")] public int IntValue { get; private set; } /// <summary> /// The number object's value expressed as an NSInteger object, converted as necessary. (read-only) /// </summary> [iOSVersion(2)] [Export("integerValue")] public int IntegerValue { get; private set; } /// <summary> /// The number object's value expressed as a long long, converted as necessary. (read-only) /// </summary> [iOSVersion(2)] [Export("longLongValue")] public Int64 LongLongValue { get; private set; } /// <summary> /// The number object's value expressed as a long, converted as necessary. (read-only) /// </summary> [iOSVersion(2)] [Export("longValue")] public int LongValue { get; private set; } /// <summary> /// The number object's value expressed as a short, converted as necessary. (read-only) /// </summary> [iOSVersion(2)] [Export("shortValue")] public Int16 ShortValue { get; private set; } /// <summary> /// The number object's value expressed as an unsigned char, converted as necessary. (read-only) /// </summary> [iOSVersion(2)] [Export("unsignedCharValue")] public UInt8 UnsignedCharValue { get; private set; } /// <summary> /// The number object's value expressed as an NSUInteger object, converted as necessary. (read-only) /// </summary> [iOSVersion(2)] [Export("unsignedIntegerValue")] public int UnsignedIntegerValue { get; private set; } /// <summary> /// The number object's value expressed as an unsigned int, converted as necessary. (read-only) /// </summary> [iOSVersion(2)] [Export("unsignedIntValue")] public uint UnsignedIntValue { get; private set; } /// <summary> /// The number object's value expressed as an unsigned long long, converted as necessary. (read-only) /// </summary> [iOSVersion(2)] [Export("unsignedLongLongValue")] public UInt64 UnsignedLongLongValue { get; private set; } /// <summary> /// The number object's value expressed as an unsigned long, converted as necessary. (read-only) /// </summary> [iOSVersion(2)] [Export("unsignedLongValue")] public uint UnsignedLongValue { get; private set; } /// <summary> /// The number object's value expressed as an unsigned short, converted as necessary. (read-only) /// </summary> [iOSVersion(2)] [Export("unsignedShortValue")] public UInt16 UnsignedShortValue { get; private set; } /// <summary> /// The number object's value expressed as a human-readable string. (read-only) /// </summary> [iOSVersion(2)] [Export("stringValue")] public string StringValue { get; private set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using UIKit; namespace Foundation { /// <summary> /// NSNumber is a subclass of NSValue that offers a value as any C scalar (numeric) type. It defines a set of methods specifically for setting and accessing the value as a signed or unsigned char, short int, int, long int, long long int, float, or double or as a BOOL. (Note that number objects do not necessarily preserve the type they are created with.) It also defines a compare: method to determine the ordering of two NSNumber objects. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSNumber_Class/index.html#//apple_ref/occ/cl/NSNumber"/> [iOSVersion(2)] [Export("")] public class NSNumber : NSValue//, AnyObject, BooleanLiteralConvertible, CKRecordValue, CVarArgType, Equatable, FloatLiteralConvertible, Hashable, IntegerLiteralConvertible, NSCoding, NSCopying, NSObjectProtocol, NSSecureCoding, Printable { public NSNumber() { } /// <summary> /// Returns an NSNumber object initialized to contain a given value, treated as a BOOL. /// </summary> /// <param name="@bool">The value for the new number.</param> [iOSVersion(2)] public NSNumber(bool @bool) { } /// <summary> /// Returns an NSNumber object initialized to contain a given value, treated as a signed char. /// </summary> /// <param name="@char">The value for the new number.</param> [iOSVersion(2)] public NSNumber(Int8 @char) { } /// <summary> /// Returns an NSNumber object initialized to contain value, treated as a double. /// </summary> /// <param name="@double">The value for the new number.</param> [iOSVersion(2)] public NSNumber(Double @double) { } /// <summary> /// Returns an NSNumber object initialized to contain a given value, treated as a float. /// </summary> /// <param name="@float">The value for the new number.</param> [iOSVersion(2)] public NSNumber(float @float) { } /// <summary> /// Returns an NSNumber object initialized to contain a given value, treated as a signed int. /// </summary> /// <param name="@int">The value for the new number.</param> [iOSVersion(2)] public NSNumber(int @int) { } /// <summary> /// Returns an NSNumber object initialized to contain a given value, treated as an NSInteger. /// </summary> /// <param name="integer">The value for the new number.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [IgnoreParameter("NAME_YOUR_PARAMS")] public NSNumber(int integer, bool NAME_YOUR_PARAMS = false) { } /// <summary> /// Returns an NSNumber object initialized to contain a given value, treated as a signed long. /// </summary> /// <param name="@long">The value for the new number.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [IgnoreParameter("NAME_YOUR_PARAMS")] public NSNumber(int @long, int NAME_YOUR_PARAMS = 0) { } /// <summary> /// Returns an NSNumber object initialized to contain value, treated as a signed long long. /// </summary> /// <param name="longLong">The value for the new number.</param> [iOSVersion(2)] public NSNumber(Int64 longLong) { } /// <summary> /// Returns an NSNumber object initialized to contain a given value, treated as a signed short. /// </summary> /// <param name="@short">The value for the new number.</param> [iOSVersion(2)] public NSNumber(Int16 @short) { } /// <summary> /// Returns an NSNumber object initialized to contain a given value, treated as an unsigned char. /// </summary> /// <param name="unsignedChar">The value for the new number.</param> [iOSVersion(2)] public NSNumber(UInt8 unsignedChar) { } /// <summary> /// Returns an NSNumber object initialized to contain a given value, treated as an unsigned int. /// </summary> /// <param name="unsignedInt">The value for the new number.</param> [iOSVersion(2)] public NSNumber(uint unsignedInt) { } /// <summary> /// Returns an NSNumber object initialized to contain a given value, treated as an NSUInteger. /// </summary> /// <param name="unsignedInteger">The value for the new number.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [IgnoreParameter("NAME_YOUR_PARAMS")] public NSNumber(int unsignedInteger, string NAME_YOUR_PARAMS = "") { } /// <summary> /// Returns an NSNumber object initialized to contain a given value, treated as an unsigned long. /// </summary> /// <param name="unsignedLong">The value for the new number.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [IgnoreParameter("NAME_YOUR_PARAMS")] public NSNumber(uint unsignedLong, bool NAME_YOUR_PARAMS = false) { } /// <summary> /// Returns an NSNumber object initialized to contain a given value, treated as an unsigned long long. /// </summary> /// <param name="unsignedLongLong">The value for the new number.</param> [iOSVersion(2)] public NSNumber(UInt64 unsignedLongLong) { } /// <summary> /// Returns an NSNumber object initialized to contain a given value, treated as an unsigned short. /// </summary> /// <param name="unsignedShort">The value for the new number.</param> [iOSVersion(2)] public NSNumber(UInt16 unsignedShort) { } /// <summary> /// Returns a string that represents the contents of the number object for a given locale. /// </summary> /// <param name="aLocale">An object containing locale information with which to format the description. Use nil if you don’t want the description formatted.</param> [iOSVersion(2)] [Export("descriptionWithLocale")] public virtual string DescriptionWithLocale([Optional] AnyObject aLocale) { return default(string); } /// <summary> /// Returns an NSComparisonResult value that indicates whether the number object’s value is greater than, equal to, or less than a given number. /// </summary> /// <param name="aNumber">The number to compare to the number object’s value. /// This value must not be nil. If the value is nil, the behavior is undefined and may change in future versions of OS X.</param> [iOSVersion(2)] [Export("compare")] public virtual NSComparisonResult Compare(NSNumber aNumber) { return default(NSComparisonResult); } /// <summary> /// Returns a Boolean value that indicates whether the number object’s value and a given number are equal. /// </summary> /// <param name="aNumber">The number to compare to the number object’s value.</param> [iOSVersion(2)] [Export("isEqualToNumber")] public virtual bool IsEqualToNumber(NSNumber aNumber) { return default(bool); } /// <summary> /// The number object&#39;s value expressed as a Boolean value. (read-only) /// </summary> [iOSVersion(2)] [Export("boolValue")] public bool BoolValue { get; private set; } /// <summary> /// The number object&#39;s value expressed as a char. (read-only) /// </summary> [iOSVersion(2)] [Export("charValue")] public Int8 CharValue { get; private set; } /// <summary> /// The number object&#39;s value expressed as a double, converted as necessary. (read-only) /// </summary> [iOSVersion(2)] [Export("doubleValue")] public Double DoubleValue { get; private set; } /// <summary> /// The number object&#39;s value expressed as a float, converted as necessary. (read-only) /// </summary> [iOSVersion(2)] [Export("floatValue")] public float FloatValue { get; private set; } /// <summary> /// The number object&#39;s value expressed as an int, converted as necessary. (read-only) /// </summary> [iOSVersion(2)] [Export("intValue")] public int IntValue { get; private set; } /// <summary> /// The number object&#39;s value expressed as an NSInteger object, converted as necessary. (read-only) /// </summary> [iOSVersion(2)] [Export("integerValue")] public int IntegerValue { get; private set; } /// <summary> /// The number object&#39;s value expressed as a long long, converted as necessary. (read-only) /// </summary> [iOSVersion(2)] [Export("longLongValue")] public Int64 LongLongValue { get; private set; } /// <summary> /// The number object&#39;s value expressed as a long, converted as necessary. (read-only) /// </summary> [iOSVersion(2)] [Export("longValue")] public int LongValue { get; private set; } /// <summary> /// The number object&#39;s value expressed as a short, converted as necessary. (read-only) /// </summary> [iOSVersion(2)] [Export("shortValue")] public Int16 ShortValue { get; private set; } /// <summary> /// The number object&#39;s value expressed as an unsigned char, converted as necessary. (read-only) /// </summary> [iOSVersion(2)] [Export("unsignedCharValue")] public UInt8 UnsignedCharValue { get; private set; } /// <summary> /// The number object&#39;s value expressed as an NSUInteger object, converted as necessary. (read-only) /// </summary> [iOSVersion(2)] [Export("unsignedIntegerValue")] public int UnsignedIntegerValue { get; private set; } /// <summary> /// The number object&#39;s value expressed as an unsigned int, converted as necessary. (read-only) /// </summary> [iOSVersion(2)] [Export("unsignedIntValue")] public uint UnsignedIntValue { get; private set; } /// <summary> /// The number object&#39;s value expressed as an unsigned long long, converted as necessary. (read-only) /// </summary> [iOSVersion(2)] [Export("unsignedLongLongValue")] public UInt64 UnsignedLongLongValue { get; private set; } /// <summary> /// The number object&#39;s value expressed as an unsigned long, converted as necessary. (read-only) /// </summary> [iOSVersion(2)] [Export("unsignedLongValue")] public uint UnsignedLongValue { get; private set; } /// <summary> /// The number object&#39;s value expressed as an unsigned short, converted as necessary. (read-only) /// </summary> [iOSVersion(2)] [Export("unsignedShortValue")] public UInt16 UnsignedShortValue { get; private set; } /// <summary> /// The number object&#39;s value expressed as a human-readable string. (read-only) /// </summary> [iOSVersion(2)] [Export("stringValue")] public string StringValue { get; private set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSNumberFormatter.cs b/CocoaSharp/Foundation/NSNumberFormatter.cs
index d5f0d3eb..0d56f3cb 100644
--- a/CocoaSharp/Foundation/NSNumberFormatter.cs
+++ b/CocoaSharp/Foundation/NSNumberFormatter.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// Instances of NSNumberFormatter format the textual representation of cells that contain NSNumber objects and convert textual representations of numeric values into NSNumber objects. The representation encompasses integers, floats, and doubles; floats and doubles can be formatted to a specified decimal position. NSNumberFormatter objects can also impose ranges on the numeric values cells can accept. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSNumberFormatter_Class/index.html#//apple_ref/occ/cl/NSNumberFormatter"/> [iOSVersion(2)] public class NSNumberFormatter : NSFormatter//, AnyObject, NSCoding, NSCopying, NSObjectProtocol { /// <summary> /// Sets the default formatter behavior for new instances of NSNumberFormatter . /// </summary> /// <param name="behavior">An NSNumberFormatterBehavior constant that indicates the revision of the class providing the default behavior.</param> [iOSVersion(2)] [Export("setDefaultFormatterBehavior")] public static void SetDefaultFormatterBehavior(NSNumberFormatterBehavior behavior) { } /// <summary> /// Returns an NSNumberFormatterBehavior constant that indicates default formatter behavior for new instances of NSNumberFormatter. /// </summary> [iOSVersion(2)] [Export("defaultFormatterBehavior")] public static NSNumberFormatterBehavior DefaultFormatterBehavior() { return default(NSNumberFormatterBehavior); } /// <summary> /// Returns by reference a cell-content object after creating it from a range of characters in a given string. /// </summary> /// <param name="anObject">On return, contains an instance of NSDecimalNumber or NSNumber based on the current value of generatesDecimalNumbers. The default is to return NSDecimalNumber instances</param> /// <param name="forString">A string object with the range of characters specified in rangep that is used to create anObject.</param> /// <param name="range">A range of characters in aString. On return, contains the actual range of characters used to create the object.</param> /// <param name="error">If an error occurs, upon return contains an NSError object that explains why the conversion failed. If you pass in nil for error you are indicating that you are not interested in error information.</param> [iOSVersion(2)] [Export("getObjectValue")] public bool GetObjectValue(AutoreleasingUnsafePointer<AnyObject> anObject, string forString, UnsafePointer<NSRange> range, NSErrorPointer error) { return default(bool); } /// <summary> /// Returns an NSNumber object created by parsing a given string. /// </summary> /// <param name="@string">An NSString object that is parsed to generate the returned number object.</param> [iOSVersion(2)] [Export("numberFromString")] public NSNumber NumberFromString(string @string) { return default(NSNumber); } /// <summary> /// Returns a string containing the formatted value of the provided number object. /// </summary> /// <param name="number">An NSNumber object that is parsed to create the returned string object.</param> [iOSVersion(2)] [Export("stringFromNumber")] public string StringFromNumber(NSNumber number) { return default(string); } /// <summary> /// Returns a localized number string with the specified style. /// </summary> /// <param name="num">The number to localize</param> /// <param name="numberStyle">The localization style to use. See NSNumberFormatterStyle for the supported values.</param> [iOSVersion(4)] [Export("localizedStringFromNumber")] public static string LocalizedStringFromNumber(NSNumber num, NSNumberFormatterStyle numberStyle) { return default(string); } /// <summary> /// The formatter behavior of the receiver. /// </summary> [iOSVersion(2)] [Export("formatterBehavior")] public NSNumberFormatterBehavior FormatterBehavior { get; set; } /// <summary> /// The number style used by the receiver. /// </summary> [iOSVersion(2)] [Export("numberStyle")] public NSNumberFormatterStyle NumberStyle { get; set; } /// <summary> /// Determines whether the receiver creates instances of NSDecimalNumber when it converts strings to number objects. /// </summary> [iOSVersion(2)] [Export("generatesDecimalNumbers")] public bool GeneratesDecimalNumbers { get; set; } /// <summary> /// The locale of the receiver. /// </summary> [iOSVersion(2)] [Export("locale")] public NSLocale Locale { get; set; } /// <summary> /// The rounding increment used by the receiver. /// </summary> [iOSVersion(2)] [Export("roundingIncrement")] public NSNumber RoundingIncrement { get; set; } /// <summary> /// The rounding mode used by the receiver. /// </summary> [iOSVersion(2)] [Export("roundingMode")] public NSNumberFormatterRoundingMode RoundingMode { get; set; } /// <summary> /// The capitalization formatting context used when formatting a number. /// </summary> [iOSVersion(8)] [Export("formattingContext")] public NSFormattingContext FormattingContext { get; set; } /// <summary> /// The format width used by the receiver. /// </summary> [iOSVersion(2)] [Export("formatWidth")] public int FormatWidth { get; set; } /// <summary> /// The format the receiver uses to display negative values. /// </summary> [iOSVersion(2)] [Export("negativeFormat")] public string NegativeFormat { get; set; } /// <summary> /// The format the receiver uses to display positive values. /// </summary> [iOSVersion(2)] [Export("positiveFormat")] public string PositiveFormat { get; set; } /// <summary> /// The multiplier of the receiver. /// </summary> [iOSVersion(2)] [Export("multiplier")] public NSNumber Multiplier { get; set; } /// <summary> /// The string used by the receiver to represent the percent symbol. /// </summary> [iOSVersion(2)] [Export("percentSymbol")] public string PercentSymbol { get; set; } /// <summary> /// The string used by the receiver to represent the per-mill (per-thousand) symbol. /// </summary> [iOSVersion(2)] [Export("perMillSymbol")] public string PerMillSymbol { get; set; } /// <summary> /// The string used by the receiver for the minus sign. /// </summary> [iOSVersion(2)] [Export("minusSign")] public string MinusSign { get; set; } /// <summary> /// The string used by the receiver to represent the plus sign. /// </summary> [iOSVersion(2)] [Export("plusSign")] public string PlusSign { get; set; } /// <summary> /// The string used by the receiver to represent the exponent symbol. /// </summary> [iOSVersion(2)] [Export("exponentSymbol")] public string ExponentSymbol { get; set; } /// <summary> /// The string the receiver uses as the symbol to show the value zero. /// </summary> [iOSVersion(2)] [Export("zeroSymbol")] public string ZeroSymbol { get; set; } /// <summary> /// The string the receiver uses to represent nil values. /// </summary> [iOSVersion(2)] [Export("nilSymbol")] public string NilSymbol { get; set; } /// <summary> /// The string the receiver uses to represent NaN (“not a number”). /// </summary> [iOSVersion(2)] [Export("notANumberSymbol")] public string NotANumberSymbol { get; set; } /// <summary> /// The string used by the receiver for the negative infinity symbol. /// </summary> [iOSVersion(2)] [Export("negativeInfinitySymbol")] public string NegativeInfinitySymbol { get; set; } /// <summary> /// The string used by the receiver for the positive infinity symbol. /// </summary> [iOSVersion(2)] [Export("positiveInfinitySymbol")] public string PositiveInfinitySymbol { get; set; } /// <summary> /// The string used by the receiver as a local currency symbol. /// </summary> [iOSVersion(2)] [Export("currencySymbol")] public string CurrencySymbol { get; set; } /// <summary> /// The receiver’s currency code. /// </summary> [iOSVersion(2)] [Export("currencyCode")] public string CurrencyCode { get; set; } /// <summary> /// The international currency symbol used by the receiver. /// </summary> [iOSVersion(2)] [Export("internationalCurrencySymbol")] public string InternationalCurrencySymbol { get; set; } /// <summary> /// The currency grouping separator for the receiver. /// </summary> [iOSVersion(2)] [Export("currencyGroupingSeparator")] public string CurrencyGroupingSeparator { get; set; } /// <summary> /// The string the receiver uses as the prefix for positive values. /// </summary> [iOSVersion(2)] [Export("positivePrefix")] public string PositivePrefix { get; set; } /// <summary> /// The string the receiver uses as the suffix for positive values. /// </summary> [iOSVersion(2)] [Export("positiveSuffix")] public string PositiveSuffix { get; set; } /// <summary> /// The string the receiver uses as a prefix for negative values. /// </summary> [iOSVersion(2)] [Export("negativePrefix")] public string NegativePrefix { get; set; } /// <summary> /// The string the receiver uses as a suffix for negative values. /// </summary> [iOSVersion(2)] [Export("negativeSuffix")] public string NegativeSuffix { get; set; } /// <summary> /// The text attributes to be used in displaying negative values. /// </summary> [iOSVersion(2)] [Export("textAttributesForNegativeValues")] public Dictionary<NSObject, AnyObject> TextAttributesForNegativeValues { get; set; } /// <summary> /// The text attributes to be used in displaying positive values. /// </summary> [iOSVersion(2)] [Export("textAttributesForPositiveValues")] public Dictionary<NSObject, AnyObject> TextAttributesForPositiveValues { get; set; } /// <summary> /// The text attributes used to display a zero value. /// </summary> [iOSVersion(2)] [Export("textAttributesForZero")] public Dictionary<NSObject, AnyObject> TextAttributesForZero { get; set; } /// <summary> /// The text attributes used to display the nil symbol. /// </summary> [iOSVersion(2)] [Export("textAttributesForNil")] public Dictionary<NSObject, AnyObject> TextAttributesForNil { get; set; } /// <summary> /// The text attributes used to display the NaN (“not a number”) string. /// </summary> [iOSVersion(2)] [Export("textAttributesForNotANumber")] public Dictionary<NSObject, AnyObject> TextAttributesForNotANumber { get; set; } /// <summary> /// The text attributes used to display the positive infinity symbol. /// </summary> [iOSVersion(2)] [Export("textAttributesForPositiveInfinity")] public Dictionary<NSObject, AnyObject> TextAttributesForPositiveInfinity { get; set; } /// <summary> /// The text attributes used to display the negative infinity symbol. /// </summary> [iOSVersion(2)] [Export("textAttributesForNegativeInfinity")] public Dictionary<NSObject, AnyObject> TextAttributesForNegativeInfinity { get; set; } /// <summary> /// The string used by the receiver for a grouping separator. /// </summary> [iOSVersion(2)] [Export("groupingSeparator")] public string GroupingSeparator { get; set; } /// <summary> /// Determines whether the receiver displays the group separator. /// </summary> [iOSVersion(2)] [Export("usesGroupingSeparator")] public bool UsesGroupingSeparator { get; set; } /// <summary> /// The character the receiver uses as a decimal separator. /// </summary> [iOSVersion(2)] [Export("decimalSeparator")] public string DecimalSeparator { get; set; } /// <summary> /// Determines whether the receiver always shows the decimal separator, even for integer numbers. /// </summary> [iOSVersion(2)] [Export("alwaysShowsDecimalSeparator")] public bool AlwaysShowsDecimalSeparator { get; set; } /// <summary> /// The string used by the receiver as a currency decimal separator. /// </summary> [iOSVersion(2)] [Export("currencyDecimalSeparator")] public string CurrencyDecimalSeparator { get; set; } /// <summary> /// The grouping size of the receiver. /// </summary> [iOSVersion(2)] [Export("groupingSize")] public int GroupingSize { get; set; } /// <summary> /// The secondary grouping size of the receiver. /// </summary> [iOSVersion(2)] [Export("secondaryGroupingSize")] public int SecondaryGroupingSize { get; set; } /// <summary> /// The string that the receiver uses to pad numbers in the formatted string representation. /// </summary> [iOSVersion(2)] [Export("paddingCharacter")] public string PaddingCharacter { get; set; } /// <summary> /// The padding position used by the receiver. /// </summary> [iOSVersion(2)] [Export("paddingPosition")] public NSNumberFormatterPadPosition PaddingPosition { get; set; } /// <summary> /// Determines whether the receiver allows as input floating-point values (that is, values that include the period character [.]). /// </summary> [iOSVersion(2)] [Export("allowsFloats")] public bool AllowsFloats { get; set; } /// <summary> /// The lowest number allowed as input by the receiver. /// </summary> [iOSVersion(2)] [Export("minimum")] public NSNumber Minimum { get; set; } /// <summary> /// The highest number allowed as input by the receiver. /// </summary> [iOSVersion(2)] [Export("maximum")] public NSNumber Maximum { get; set; } /// <summary> /// The number of integer digits allowed as input and output by the receiver. /// </summary> [iOSVersion(2)] [Export("minimumIntegerDigits")] public int MinimumIntegerDigits { get; set; } /// <summary> /// The minimum number of digits after the decimal separator allowed as input and output by the receiver. /// </summary> [iOSVersion(2)] [Export("minimumFractionDigits")] public int MinimumFractionDigits { get; set; } /// <summary> /// The maximum number of integer digits allowed as input and output by the receiver. /// </summary> [iOSVersion(2)] [Export("maximumIntegerDigits")] public int MaximumIntegerDigits { get; set; } /// <summary> /// The maximum number of digits after the decimal separator allowed as input and output by the receiver. /// </summary> [iOSVersion(2)] [Export("maximumFractionDigits")] public int MaximumFractionDigits { get; set; } /// <summary> /// Determines whether the receiver uses minimum and maximum significant digits properties. /// </summary> [iOSVersion(2)] [Export("usesSignificantDigits")] public bool UsesSignificantDigits { get; set; } /// <summary> /// The minimum number of significant digits for the receiver. /// </summary> [iOSVersion(2)] [Export("minimumSignificantDigits")] public int MinimumSignificantDigits { get; set; } /// <summary> /// The maximum number of significant digits for the receiver. /// </summary> [iOSVersion(2)] [Export("maximumSignificantDigits")] public int MaximumSignificantDigits { get; set; } /// <summary> /// Determines whether the receiver will use heuristics to guess at the number which is intended by a string. /// </summary> [iOSVersion(2)] [Export("lenient")] public bool Lenient { get; set; } /// <summary> /// Determines whether partial string validation is enabled for the receiver. /// </summary> [iOSVersion(2)] [Export("partialStringValidationEnabled")] public bool PartialStringValidationEnabled { get; set; } } /// <summary> /// These constants specify predefined number format styles. These constants are used by the numberStyle property. /// </summary> [iOSVersion(2)] public enum NSNumberFormatterStyle { /// <summary> /// Specifies no style. /// </summary> [iOSVersion(2)] NoStyle, /// <summary> /// Specifies a decimal style format. /// </summary> [iOSVersion(2)] DecimalStyle, /// <summary> /// Specifies a currency style format. /// </summary> [iOSVersion(2)] CurrencyStyle, /// <summary> /// Specifies a percent style format. /// </summary> [iOSVersion(2)] PercentStyle, /// <summary> /// Specifies a scientific style format. /// </summary> [iOSVersion(2)] ScientificStyle, /// <summary> /// Specifies a spell-out format; for example, “23” becomes “twenty-three”. /// </summary> [iOSVersion(2)] SpellOutStyle, } /// <summary> /// These constants specify the behavior of a number formatter. These constants are returned by the defaultFormatterBehavior class method and the formatterBehavior instance methods; you set them with the setDefaultFormatterBehavior: class method and the setFormatterBehavior: instance method. /// </summary> [iOSVersion(2)] public enum NSNumberFormatterBehavior { /// <summary> /// The number-formatter behavior set as the default for new instances. You can set the default formatter behavior with the class method setDefaultFormatterBehavior:. /// </summary> [iOSVersion(2)] BehaviorDefault, /// <summary> /// The number-formatter behavior since OS X v10.4. /// </summary> [iOSVersion(2)] Behavior10_4, } /// <summary> /// These constants are used to specify how numbers should be padded. These constants are used by the paddingPosition property. /// </summary> [iOSVersion(2)] public enum NSNumberFormatterPadPosition { /// <summary> /// Specifies that the padding should occur before the prefix. /// </summary> [iOSVersion(2)] BeforePrefix, /// <summary> /// Specifies that the padding should occur after the prefix. /// </summary> [iOSVersion(2)] AfterPrefix, /// <summary> /// Specifies that the padding should occur before the suffix. /// </summary> [iOSVersion(2)] BeforeSuffix, /// <summary> /// Specifies that the padding should occur after the suffix. /// </summary> [iOSVersion(2)] AfterSuffix, } /// <summary> /// These constants are used to specify how numbers should be rounded. These constants are used by the roundingMode property. /// </summary> [iOSVersion(2)] public enum NSNumberFormatterRoundingMode { /// <summary> /// Round towards positive infinity. /// </summary> [iOSVersion(2)] RoundCeiling, /// <summary> /// Round towards negative infinity. /// </summary> [iOSVersion(2)] RoundFloor, /// <summary> /// Round towards zero. /// </summary> [iOSVersion(2)] RoundDown, /// <summary> /// Round away from zero. /// </summary> [iOSVersion(2)] RoundUp, /// <summary> /// Round towards the nearest integer, or towards an even number if equidistant. /// </summary> [iOSVersion(2)] RoundHalfEven, /// <summary> /// Round towards the nearest integer, or towards zero if equidistant. /// </summary> [iOSVersion(2)] RoundHalfDown, /// <summary> /// Round towards the nearest integer, or away from zero if equidistant. /// </summary> [iOSVersion(2)] RoundHalfUp, } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// Instances of NSNumberFormatter format the textual representation of cells that contain NSNumber objects and convert textual representations of numeric values into NSNumber objects. The representation encompasses integers, floats, and doubles; floats and doubles can be formatted to a specified decimal position. NSNumberFormatter objects can also impose ranges on the numeric values cells can accept. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSNumberFormatter_Class/index.html#//apple_ref/occ/cl/NSNumberFormatter"/> [iOSVersion(2)] [Export("")] public class NSNumberFormatter : NSFormatter//, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSObjectProtocol, Printable { public NSNumberFormatter() { } /// <summary> /// Sets the default formatter behavior for new instances of NSNumberFormatter . /// </summary> /// <param name="behavior">An NSNumberFormatterBehavior constant that indicates the revision of the class providing the default behavior.</param> [iOSVersion(2)] [Export("setDefaultFormatterBehavior")] public static void SetDefaultFormatterBehavior(NSNumberFormatterBehavior behavior) { } /// <summary> /// Returns an NSNumberFormatterBehavior constant that indicates default formatter behavior for new instances of NSNumberFormatter. /// </summary> [iOSVersion(2)] [Export("defaultFormatterBehavior")] public static NSNumberFormatterBehavior DefaultFormatterBehavior() { return default(NSNumberFormatterBehavior); } /// <summary> /// Returns by reference a cell-content object after creating it from a range of characters in a given string. /// </summary> /// <param name="anObject">On return, contains an instance of NSDecimalNumber or NSNumber based on the current value of generatesDecimalNumbers. The default is to return NSDecimalNumber instances</param> /// <param name="forString">A string object with the range of characters specified in rangep that is used to create anObject.</param> /// <param name="range">A range of characters in aString. On return, contains the actual range of characters used to create the object.</param> /// <param name="error">If an error occurs, upon return contains an NSError object that explains why the conversion failed. If you pass in nil for error you are indicating that you are not interested in error information.</param> [iOSVersion(2)] [Export("getObjectValue")] public virtual bool GetObjectValue(AutoreleasingUnsafeMutablePointer<AnyObject> anObject, string forString, UnsafeMutablePointer<NSRange> range, NSErrorPointer error) { return default(bool); } /// <summary> /// Returns an NSNumber object created by parsing a given string. /// </summary> /// <param name="@string">An NSString object that is parsed to generate the returned number object.</param> [iOSVersion(2)] [Export("numberFromString")] [return:Optional] public virtual NSNumber NumberFromString(string @string) { return default(NSNumber); } /// <summary> /// Returns a string containing the formatted value of the provided number object. /// </summary> /// <param name="number">An NSNumber object that is parsed to create the returned string object.</param> [iOSVersion(2)] [Export("stringFromNumber")] [return:Optional] public virtual string StringFromNumber(NSNumber number) { return default(string); } /// <summary> /// Returns a localized number string with the specified style. /// </summary> /// <param name="num">The number to localize</param> /// <param name="numberStyle">The localization style to use. See NSNumberFormatterStyle for the supported values.</param> [iOSVersion(4)] [Export("localizedStringFromNumber")] public static string LocalizedStringFromNumber(NSNumber num, NSNumberFormatterStyle numberStyle) { return default(string); } /// <summary> /// The formatter behavior of the receiver. /// </summary> [iOSVersion(2)] [Export("formatterBehavior")] public NSNumberFormatterBehavior FormatterBehavior { get; set; } /// <summary> /// The number style used by the receiver. /// </summary> [iOSVersion(2)] [Export("numberStyle")] public NSNumberFormatterStyle NumberStyle { get; set; } /// <summary> /// Determines whether the receiver creates instances of NSDecimalNumber when it converts strings to number objects. /// </summary> [iOSVersion(2)] [Export("generatesDecimalNumbers")] public bool GeneratesDecimalNumbers { get; set; } /// <summary> /// The locale of the receiver. /// </summary> [iOSVersion(2)] [Export("locale")] [Optional] public NSLocale Locale { get; set; } /// <summary> /// The rounding increment used by the receiver. /// </summary> [iOSVersion(2)] [Export("roundingIncrement")] [Optional] public NSNumber RoundingIncrement { get; set; } /// <summary> /// The rounding mode used by the receiver. /// </summary> [iOSVersion(2)] [Export("roundingMode")] public NSNumberFormatterRoundingMode RoundingMode { get; set; } /// <summary> /// The capitalization formatting context used when formatting a number. /// </summary> [iOSVersion(8)] [Export("formattingContext")] public NSFormattingContext FormattingContext { get; set; } /// <summary> /// The format width used by the receiver. /// </summary> [iOSVersion(2)] [Export("formatWidth")] public int FormatWidth { get; set; } /// <summary> /// The format the receiver uses to display negative values. /// </summary> [iOSVersion(2)] [Export("negativeFormat")] public string NegativeFormat { get; set; } /// <summary> /// The format the receiver uses to display positive values. /// </summary> [iOSVersion(2)] [Export("positiveFormat")] [Unwrapped] public string PositiveFormat { get; set; } /// <summary> /// The multiplier of the receiver. /// </summary> [iOSVersion(2)] [Export("multiplier")] [Optional] public NSNumber Multiplier { get; set; } /// <summary> /// The string used by the receiver to represent the percent symbol. /// </summary> [iOSVersion(2)] [Export("percentSymbol")] public string PercentSymbol { get; set; } /// <summary> /// The string used by the receiver to represent the per-mill (per-thousand) symbol. /// </summary> [iOSVersion(2)] [Export("perMillSymbol")] public string PerMillSymbol { get; set; } /// <summary> /// The string used by the receiver for the minus sign. /// </summary> [iOSVersion(2)] [Export("minusSign")] public string MinusSign { get; set; } /// <summary> /// The string used by the receiver to represent the plus sign. /// </summary> [iOSVersion(2)] [Export("plusSign")] public string PlusSign { get; set; } /// <summary> /// The string used by the receiver to represent the exponent symbol. /// </summary> [iOSVersion(2)] [Export("exponentSymbol")] public string ExponentSymbol { get; set; } /// <summary> /// The string the receiver uses as the symbol to show the value zero. /// </summary> [iOSVersion(2)] [Export("zeroSymbol")] [Optional] public string ZeroSymbol { get; set; } /// <summary> /// The string the receiver uses to represent nil values. /// </summary> [iOSVersion(2)] [Export("nilSymbol")] public string NilSymbol { get; set; } /// <summary> /// The string the receiver uses to represent NaN (“not a number”). /// </summary> [iOSVersion(2)] [Export("notANumberSymbol")] public string NotANumberSymbol { get; set; } /// <summary> /// The string used by the receiver for the negative infinity symbol. /// </summary> [iOSVersion(2)] [Export("negativeInfinitySymbol")] public string NegativeInfinitySymbol { get; set; } /// <summary> /// The string used by the receiver for the positive infinity symbol. /// </summary> [iOSVersion(2)] [Export("positiveInfinitySymbol")] public string PositiveInfinitySymbol { get; set; } /// <summary> /// The string used by the receiver as a local currency symbol. /// </summary> [iOSVersion(2)] [Export("currencySymbol")] [Optional] public string CurrencySymbol { get; set; } /// <summary> /// The receiver’s currency code. /// </summary> [iOSVersion(2)] [Export("currencyCode")] public string CurrencyCode { get; set; } /// <summary> /// The international currency symbol used by the receiver. /// </summary> [iOSVersion(2)] [Export("internationalCurrencySymbol")] [Optional] public string InternationalCurrencySymbol { get; set; } /// <summary> /// The currency grouping separator for the receiver. /// </summary> [iOSVersion(2)] [Export("currencyGroupingSeparator")] [Optional] public string CurrencyGroupingSeparator { get; set; } /// <summary> /// The string the receiver uses as the prefix for positive values. /// </summary> [iOSVersion(2)] [Export("positivePrefix")] public string PositivePrefix { get; set; } /// <summary> /// The string the receiver uses as the suffix for positive values. /// </summary> [iOSVersion(2)] [Export("positiveSuffix")] public string PositiveSuffix { get; set; } /// <summary> /// The string the receiver uses as a prefix for negative values. /// </summary> [iOSVersion(2)] [Export("negativePrefix")] public string NegativePrefix { get; set; } /// <summary> /// The string the receiver uses as a suffix for negative values. /// </summary> [iOSVersion(2)] [Export("negativeSuffix")] public string NegativeSuffix { get; set; } /// <summary> /// The text attributes to be used in displaying negative values. /// </summary> [iOSVersion(2)] [Export("textAttributesForNegativeValues")] public Dictionary<NSObject, AnyObject> TextAttributesForNegativeValues { get; set; } /// <summary> /// The text attributes to be used in displaying positive values. /// </summary> [iOSVersion(2)] [Export("textAttributesForPositiveValues")] public Dictionary<NSObject, AnyObject> TextAttributesForPositiveValues { get; set; } /// <summary> /// The text attributes used to display a zero value. /// </summary> [iOSVersion(2)] [Export("textAttributesForZero")] public Dictionary<NSObject, AnyObject> TextAttributesForZero { get; set; } /// <summary> /// The text attributes used to display the nil symbol. /// </summary> [iOSVersion(2)] [Export("textAttributesForNil")] public Dictionary<NSObject, AnyObject> TextAttributesForNil { get; set; } /// <summary> /// The text attributes used to display the NaN (“not a number”) string. /// </summary> [iOSVersion(2)] [Export("textAttributesForNotANumber")] public Dictionary<NSObject, AnyObject> TextAttributesForNotANumber { get; set; } /// <summary> /// The text attributes used to display the positive infinity symbol. /// </summary> [iOSVersion(2)] [Export("textAttributesForPositiveInfinity")] public Dictionary<NSObject, AnyObject> TextAttributesForPositiveInfinity { get; set; } /// <summary> /// The text attributes used to display the negative infinity symbol. /// </summary> [iOSVersion(2)] [Export("textAttributesForNegativeInfinity")] public Dictionary<NSObject, AnyObject> TextAttributesForNegativeInfinity { get; set; } /// <summary> /// The string used by the receiver for a grouping separator. /// </summary> [iOSVersion(2)] [Export("groupingSeparator")] [Unwrapped] public string GroupingSeparator { get; set; } /// <summary> /// Determines whether the receiver displays the group separator. /// </summary> [iOSVersion(2)] [Export("usesGroupingSeparator")] public bool UsesGroupingSeparator { get; set; } /// <summary> /// The character the receiver uses as a decimal separator. /// </summary> [iOSVersion(2)] [Export("decimalSeparator")] [Optional] public string DecimalSeparator { get; set; } /// <summary> /// Determines whether the receiver always shows the decimal separator, even for integer numbers. /// </summary> [iOSVersion(2)] [Export("alwaysShowsDecimalSeparator")] public bool AlwaysShowsDecimalSeparator { get; set; } /// <summary> /// The string used by the receiver as a currency decimal separator. /// </summary> [iOSVersion(2)] [Export("currencyDecimalSeparator")] [Optional] public string CurrencyDecimalSeparator { get; set; } /// <summary> /// The grouping size of the receiver. /// </summary> [iOSVersion(2)] [Export("groupingSize")] public int GroupingSize { get; set; } /// <summary> /// The secondary grouping size of the receiver. /// </summary> [iOSVersion(2)] [Export("secondaryGroupingSize")] public int SecondaryGroupingSize { get; set; } /// <summary> /// The string that the receiver uses to pad numbers in the formatted string representation. /// </summary> [iOSVersion(2)] [Export("paddingCharacter")] [Optional] public string PaddingCharacter { get; set; } /// <summary> /// The padding position used by the receiver. /// </summary> [iOSVersion(2)] [Export("paddingPosition")] public NSNumberFormatterPadPosition PaddingPosition { get; set; } /// <summary> /// Determines whether the receiver allows as input floating-point values (that is, values that include the period character [.]). /// </summary> [iOSVersion(2)] [Export("allowsFloats")] public bool AllowsFloats { get; set; } /// <summary> /// The lowest number allowed as input by the receiver. /// </summary> [iOSVersion(2)] [Export("minimum")] [Unwrapped] public NSNumber Minimum { get; set; } /// <summary> /// The highest number allowed as input by the receiver. /// </summary> [iOSVersion(2)] [Export("maximum")] [Unwrapped] public NSNumber Maximum { get; set; } /// <summary> /// The number of integer digits allowed as input and output by the receiver. /// </summary> [iOSVersion(2)] [Export("minimumIntegerDigits")] public int MinimumIntegerDigits { get; set; } /// <summary> /// The minimum number of digits after the decimal separator allowed as input and output by the receiver. /// </summary> [iOSVersion(2)] [Export("minimumFractionDigits")] public int MinimumFractionDigits { get; set; } /// <summary> /// The maximum number of integer digits allowed as input and output by the receiver. /// </summary> [iOSVersion(2)] [Export("maximumIntegerDigits")] public int MaximumIntegerDigits { get; set; } /// <summary> /// The maximum number of digits after the decimal separator allowed as input and output by the receiver. /// </summary> [iOSVersion(2)] [Export("maximumFractionDigits")] public int MaximumFractionDigits { get; set; } /// <summary> /// Determines whether the receiver uses minimum and maximum significant digits properties. /// </summary> [iOSVersion(2)] [Export("usesSignificantDigits")] public bool UsesSignificantDigits { get; set; } /// <summary> /// The minimum number of significant digits for the receiver. /// </summary> [iOSVersion(2)] [Export("minimumSignificantDigits")] public int MinimumSignificantDigits { get; set; } /// <summary> /// The maximum number of significant digits for the receiver. /// </summary> [iOSVersion(2)] [Export("maximumSignificantDigits")] public int MaximumSignificantDigits { get; set; } /// <summary> /// Determines whether the receiver will use heuristics to guess at the number which is intended by a string. /// </summary> [iOSVersion(2)] [Export("lenient")] public bool Lenient { get; set; } /// <summary> /// Determines whether partial string validation is enabled for the receiver. /// </summary> [iOSVersion(2)] [Export("partialStringValidationEnabled")] public bool PartialStringValidationEnabled { get; set; } } /// <summary> /// These constants specify predefined number format styles. These constants are used by the numberStyle property. /// </summary> public enum NSNumberFormatterStyle { /// <summary> /// Specifies no style. /// </summary> [iOSVersion(2)] NoStyle, /// <summary> /// Specifies a decimal style format. /// </summary> [iOSVersion(2)] DecimalStyle, /// <summary> /// Specifies a currency style format. /// </summary> [iOSVersion(2)] CurrencyStyle, /// <summary> /// Specifies a percent style format. /// </summary> [iOSVersion(2)] PercentStyle, /// <summary> /// Specifies a scientific style format. /// </summary> [iOSVersion(2)] ScientificStyle, /// <summary> /// Specifies a spell-out format; for example, “23” becomes “twenty-three”. /// </summary> [iOSVersion(2)] SpellOutStyle, } /// <summary> /// These constants specify the behavior of a number formatter. These constants are returned by the defaultFormatterBehavior class method and the formatterBehavior instance methods; you set them with the setDefaultFormatterBehavior: class method and the setFormatterBehavior: instance method. /// </summary> public enum NSNumberFormatterBehavior { /// <summary> /// The number-formatter behavior set as the default for new instances. You can set the default formatter behavior with the class method setDefaultFormatterBehavior:. /// </summary> [iOSVersion(2)] BehaviorDefault, /// <summary> /// The number-formatter behavior since OS X v10.4. /// </summary> [iOSVersion(2)] Behavior10_4, } /// <summary> /// These constants are used to specify how numbers should be padded. These constants are used by the paddingPosition property. /// </summary> public enum NSNumberFormatterPadPosition { /// <summary> /// Specifies that the padding should occur before the prefix. /// </summary> [iOSVersion(2)] BeforePrefix, /// <summary> /// Specifies that the padding should occur after the prefix. /// </summary> [iOSVersion(2)] AfterPrefix, /// <summary> /// Specifies that the padding should occur before the suffix. /// </summary> [iOSVersion(2)] BeforeSuffix, /// <summary> /// Specifies that the padding should occur after the suffix. /// </summary> [iOSVersion(2)] AfterSuffix, } /// <summary> /// These constants are used to specify how numbers should be rounded. These constants are used by the roundingMode property. /// </summary> public enum NSNumberFormatterRoundingMode { /// <summary> /// Round towards positive infinity. /// </summary> [iOSVersion(2)] RoundCeiling, /// <summary> /// Round towards negative infinity. /// </summary> [iOSVersion(2)] RoundFloor, /// <summary> /// Round towards zero. /// </summary> [iOSVersion(2)] RoundDown, /// <summary> /// Round away from zero. /// </summary> [iOSVersion(2)] RoundUp, /// <summary> /// Round towards the nearest integer, or towards an even number if equidistant. /// </summary> [iOSVersion(2)] RoundHalfEven, /// <summary> /// Round towards the nearest integer, or towards zero if equidistant. /// </summary> [iOSVersion(2)] RoundHalfDown, /// <summary> /// Round towards the nearest integer, or away from zero if equidistant. /// </summary> [iOSVersion(2)] RoundHalfUp, } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSObject.cs b/CocoaSharp/Foundation/NSObject.cs
new file mode 100644
index 00000000..943f44b6
--- /dev/null
+++ b/CocoaSharp/Foundation/NSObject.cs
@@ -0,0 +1,4 @@
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic;
+using Foundation;
+
+namespace ObjectiveC { /// <summary> /// NSObject is the root class of most Objective-C class hierarchies. Through NSObject, objects inherit a basic interface to the runtime system and the ability to behave as Objective-C objects. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSObject_Class/index.html#//apple_ref/occ/cl/NSObject"/> [iOSVersion(2)] [Export("")] public class NSObject//: AnyObject, CVarArgType, Equatable, Hashable, NSObjectProtocol, Printable { /// <summary> /// Initializes the class before it receives its first message. /// </summary> [iOSVersion(2)] [Export("initialize")] public static void Initialize() { } /// <summary> /// Invoked whenever a class or category is added to the Objective-C runtime; implement this method to perform class-specific behavior upon loading. /// </summary> [iOSVersion(2)] [Export("load")] public static void Load() { } /// <summary> /// Returns a new instance of the receiving class. /// </summary> [iOSVersion(2)] [Export("alloc")] [return:Unwrapped] public static NSObject Alloc() { return default(NSObject); } /// <summary> /// Returns a new instance of the receiving class. /// </summary> /// <param name="zone">This parameter is ignored.</param> [iOSVersion(2)] [Export("allocWithZone")] [return:Unwrapped] public static NSObject AllocWithZone(NSZone zone) { return default(NSObject); } /// <summary> /// Implemented by subclasses to initialize a new object (the receiver) immediately after memory for it has been allocated. /// </summary> [iOSVersion(2)] public NSObject() { } /// <summary> /// Returns the object returned by copyWithZone:. /// </summary> [iOSVersion(2)] [Export("copy")] public virtual AnyObject Copy() { return default(AnyObject); } /// <summary> /// Returns the object returned by mutableCopyWithZone: where the zone is nil. /// </summary> [iOSVersion(2)] [Export("mutableCopy")] public virtual AnyObject MutableCopy() { return default(AnyObject); } /// <summary> /// Allocates a new instance of the receiving class, sends it an init message, and returns the initialized object. /// </summary> [iOSVersion(2)] [Export("new")] [return:Unwrapped] public static NSObject New() { return default(NSObject); } /// <summary> /// Returns the class object for the receiver’s superclass. /// </summary> [iOSVersion(2)] [Export("superclass")] [return:Optional] public static AnyClass Superclass() { return default(AnyClass); } /// <summary> /// Returns a Boolean value that indicates whether the receiving class is a subclass of, or identical to, a given class. /// </summary> /// <param name="aClass">A class object.</param> [iOSVersion(2)] [Export("isSubclassOfClass")] public static bool IsSubclassOfClass(AnyClass aClass) { return default(bool); } /// <summary> /// Returns a Boolean value that indicates whether instances of the receiver are capable of responding to a given selector. /// </summary> /// <param name="aSelector">A selector.</param> [iOSVersion(2)] [Export("instancesRespondToSelector")] public static bool InstancesRespondToSelector(Selector aSelector) { return default(bool); } /// <summary> /// Returns a Boolean value that indicates whether the receiver conforms to a given protocol. /// </summary> /// <param name="aProtocol"></param> [iOSVersion(2)] [Export("conformsToProtocol")] public static bool ConformsToProtocol(Protocol aProtocol) { return default(bool); } /// <summary> /// Locates and returns the address of the receiver’s implementation of a method so it can be called as a function. /// </summary> /// <param name="aSelector">A selector that identifies the method for which to return the implementation address. The selector must be a valid and non-NULL. If in doubt, use the respondsToSelector: method to check before passing the selector to methodForSelector:.</param> [iOSVersion(2)] [Export("methodForSelector")] public virtual IMP MethodForSelector(Selector aSelector) { return default(IMP); } /// <summary> /// Locates and returns the address of the implementation of the instance method identified by a given selector. /// </summary> /// <param name="aSelector">A selector that identifies the method for which to return the implementation address. The selector must be non-NULL and valid for the receiver. If in doubt, use the respondsToSelector: method to check before passing the selector to methodForSelector:.</param> [iOSVersion(2)] [Export("instanceMethodForSelector")] public static IMP InstanceMethodForSelector(Selector aSelector) { return default(IMP); } /// <summary> /// Returns a string that represents the contents of the receiving class. /// </summary> [iOSVersion(2)] [Export("description")] public static string Description() { return default(string); } /// <summary> /// Cancels perform requests previously registered with the performSelector:withObject:afterDelay: instance method. /// </summary> /// <param name="aTarget">The target for requests previously registered with the performSelector:withObject:afterDelay: instance method.</param> [iOSVersion(2)] [Export("cancelPreviousPerformRequestsWithTarget")] public static void CancelPreviousPerformRequestsWithTarget(AnyObject aTarget) { } /// <summary> /// Cancels perform requests previously registered with performSelector:withObject:afterDelay:. /// </summary> /// <param name="aTarget">The target for requests previously registered with the performSelector:withObject:afterDelay: instance method</param> /// <param name="selector">The selector for requests previously registered with the performSelector:withObject:afterDelay: instance method.</param> /// <param name="@object">The argument for requests previously registered with the performSelector:withObject:afterDelay: instance method. Argument equality is determined using isEqual:, so the value need not be the same object that was passed originally. Pass nil to match a request for nil that was originally passed as the argument.</param> [iOSVersion(2)] [Export("cancelPreviousPerformRequestsWithTarget")] public static void CancelPreviousPerformRequestsWithTarget(AnyObject aTarget, Selector selector, [Optional] AnyObject @object) { } /// <summary> /// Returns the object to which unrecognized messages should first be directed. /// </summary> /// <param name="aSelector">A selector for a method that the receiver does not implement.</param> [iOSVersion(2)] [Export("forwardingTargetForSelector")] [return:Optional] public virtual AnyObject ForwardingTargetForSelector(Selector aSelector) { return default(AnyObject); } /// <summary> /// Dynamically provides an implementation for a given selector for a class method. /// </summary> /// <param name="name">The name of a selector to resolve.</param> [iOSVersion(2)] [Export("resolveClassMethod")] public static bool ResolveClassMethod(Selector name) { return default(bool); } /// <summary> /// Dynamically provides an implementation for a given selector for an instance method. /// </summary> /// <param name="name">The name of a selector to resolve.</param> [iOSVersion(2)] [Export("resolveInstanceMethod")] public static bool ResolveInstanceMethod(Selector name) { return default(bool); } /// <summary> /// Handles messages the receiver doesn’t recognize. /// </summary> /// <param name="aSelector">A selector that identifies a method not implemented or recognized by the receiver.</param> [iOSVersion(2)] [Export("doesNotRecognizeSelector")] public virtual void DoesNotRecognizeSelector(Selector aSelector) { } /// <summary> /// Overridden by subclasses to substitute another object in place of the object that was decoded and subsequently received this message. /// </summary> /// <param name="aDecoder">The decoder used to decode the receiver.</param> [iOSVersion(2)] [Export("awakeAfterUsingCoder")] [return:Optional] public virtual AnyObject AwakeAfterUsingCoder(NSCoder aDecoder) { return default(AnyObject); } /// <summary> /// Overridden to return the names of classes that can be used to decode objects if their class is unavailable. /// </summary> [iOSVersion(2)] [Export("classFallbacksForKeyedArchiver")] public static AnyObject[] ClassFallbacksForKeyedArchiver() { return default(AnyObject[]); } /// <summary> /// Overridden by subclasses to substitute a new class during keyed unarchiving. /// </summary> [iOSVersion(2)] [Export("classForKeyedUnarchiver")] public static AnyClass ClassForKeyedUnarchiver() { return default(AnyClass); } /// <summary> /// Overridden by subclasses to substitute another object for itself during encoding. /// </summary> /// <param name="aCoder">The coder encoding the receiver.</param> [iOSVersion(2)] [Export("replacementObjectForCoder")] [return:Optional] public virtual AnyObject ReplacementObjectForCoder(NSCoder aCoder) { return default(AnyObject); } /// <summary> /// Overridden by subclasses to substitute another object for itself during keyed archiving. /// </summary> /// <param name="archiver">A keyed archiver creating an archive.</param> [iOSVersion(2)] [Export("replacementObjectForKeyedArchiver")] [return:Optional] public virtual AnyObject ReplacementObjectForKeyedArchiver(NSKeyedArchiver archiver) { return default(AnyObject); } /// <summary> /// Sets the receiver&#39;s version number. /// </summary> /// <param name="aVersion">The version number for the receiver.</param> [iOSVersion(2)] [Export("setVersion")] public static void SetVersion(int aVersion) { } /// <summary> /// Returns the version number assigned to the class. /// </summary> [iOSVersion(2)] [Export("version")] public static int Version() { return default(int); } /// <summary> /// The garbage collector invokes this method on the receiver before disposing of the memory it uses. /// </summary> [iOSVersion(2)] [Export("finalize")] public virtual void Finalize() { } /// <summary> /// A proxy for the receiving object (read-only) /// </summary> [iOSVersion(4)] [Export("autoContentAccessingProxy")] public AnyObject AutoContentAccessingProxy { get; private set; } /// <summary> /// Overridden by subclasses to substitute a class other than its own during coding. (read-only) /// </summary> [iOSVersion(2)] [Export("classForCoder")] public AnyClass ClassForCoder { get; private set; } /// <summary> /// Overridden by subclasses to substitute a new class for instances during keyed archiving. /// </summary> [iOSVersion(2)] [Export("classForKeyedArchiver")] [Optional] public AnyClass ClassForKeyedArchiver { get; private set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSObjectProtocol.cs b/CocoaSharp/Foundation/NSObjectProtocol.cs
new file mode 100644
index 00000000..3a91e13b
--- /dev/null
+++ b/CocoaSharp/Foundation/NSObjectProtocol.cs
@@ -0,0 +1,6 @@
+namespace Foundation
+{
+ public interface NSObjectProtocol
+ {
+ }
+} \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSOperation.cs b/CocoaSharp/Foundation/NSOperation.cs
index 5d482923..d4447f52 100644
--- a/CocoaSharp/Foundation/NSOperation.cs
+++ b/CocoaSharp/Foundation/NSOperation.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSOperation class is an abstract class you use to encapsulate the code and data associated with a single task. Because it is abstract, you do not use this class directly but instead subclass or use one of the system-defined subclasses (NSInvocationOperation or NSBlockOperation) to perform the actual task. Despite being abstract, the base implementation of NSOperation does include significant logic to coordinate the safe execution of your task. The presence of this built-in logic allows you to focus on the actual implementation of your task, rather than on the glue code needed to ensure it works correctly with other system objects. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/NSOperation_class/index.html#//apple_ref/occ/cl/NSOperation"/> [iOSVersion(2)] public class NSOperation : NSObject//, AnyObject, NSObjectProtocol { /// <summary> /// Begins the execution of the operation. /// </summary> [iOSVersion(2)] [Export("start")] public void Start() { } /// <summary> /// Performs the receiver’s non-concurrent task. /// </summary> [iOSVersion(2)] [Export("main")] public void Main() { } /// <summary> /// Advises the operation object that it should stop executing its task. /// </summary> [iOSVersion(2)] [Export("cancel")] public void Cancel() { } /// <summary> /// Makes the receiver dependent on the completion of the specified operation. /// </summary> /// <param name="operation">The operation on which the receiver should depend. The same dependency should not be added more than once to the receiver, and the results of doing so are undefined.</param> [iOSVersion(2)] [Export("addDependency")] public void AddDependency(NSOperation operation) { } /// <summary> /// Removes the receiver’s dependence on the specified operation. /// </summary> /// <param name="operation">The dependent operation to be removed from the receiver.</param> [iOSVersion(2)] [Export("removeDependency")] public void RemoveDependency(NSOperation operation) { } /// <summary> /// Blocks execution of the current thread until the operation object finishes its task. /// </summary> [iOSVersion(4)] [Export("waitUntilFinished")] public void WaitUntilFinished() { } /// <summary> /// The block to execute after the operation’s main task is completed. /// </summary> [iOSVersion(4)] [Export("completionBlock")] public Action CompletionBlock { get; set; } /// <summary> /// A Boolean value indicating whether the operation has been cancelled (read-only) /// </summary> [iOSVersion(8)] [Export("cancelled")] public bool Cancelled { get; private set; } /// <summary> /// A Boolean value indicating whether the operation is currently executing. (read-only) /// </summary> [iOSVersion(8)] [Export("executing")] public bool Executing { get; private set; } /// <summary> /// A Boolean value indicating whether the operation has finished executing its task. (read-only) /// </summary> [iOSVersion(8)] [Export("finished")] public bool Finished { get; private set; } /// <summary> /// A Boolean value indicating whether the operation executes its task asynchronously. (read-only) /// </summary> [iOSVersion(8)] [Export("concurrent")] public bool Concurrent { get; private set; } /// <summary> /// A Boolean value indicating whether the operation executes its task asynchronously. (read-only) /// </summary> [iOSVersion(7)] [Export("asynchronous")] public bool Asynchronous { get; private set; } /// <summary> /// A Boolean value indicating whether the operation can be performed now. (read-only) /// </summary> [iOSVersion(8)] [Export("ready")] public bool Ready { get; private set; } /// <summary> /// The name of the operation. /// </summary> [iOSVersion(8)] [Export("name")] public string Name { get; set; } /// <summary> /// An array of the operation objects that must finish executing before the current object can begin executing. (read-only) /// </summary> [iOSVersion(2)] [Export("dependencies")] public AnyObject[] Dependencies { get; private set; } /// <summary> /// The relative amount of importance for granting system resources to the operation. /// </summary> [iOSVersion(8)] [Export("qualityOfService")] public NSQualityOfService QualityOfService { get; set; } /// <summary> /// The thread priority to use when executing the operation /// </summary> [iOSVersion(4)] [Export("threadPriority")] public Double ThreadPriority { get; set; } /// <summary> /// The execution priority of the operation in an operation queue. /// </summary> [iOSVersion(2)] [Export("queuePriority")] public NSOperationQueuePriority QueuePriority { get; set; } } /// <summary> /// These constants let you prioritize the order in which operations execute. /// </summary> [iOSVersion(2)] public enum NSOperationQueuePriority { /// <summary> /// Operations receive very low priority for execution. /// </summary> [iOSVersion(2)] VeryLow, /// <summary> /// Operations receive low priority for execution. /// </summary> [iOSVersion(2)] Low, /// <summary> /// Operations receive the normal priority for execution. /// </summary> [iOSVersion(2)] Normal, /// <summary> /// Operations receive high priority for execution. /// </summary> [iOSVersion(2)] High, /// <summary> /// Operations receive very high priority for execution. /// </summary> [iOSVersion(2)] VeryHigh, } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSOperation class is an abstract class you use to encapsulate the code and data associated with a single task. Because it is abstract, you do not use this class directly but instead subclass or use one of the system-defined subclasses (NSInvocationOperation or NSBlockOperation) to perform the actual task. Despite being abstract, the base implementation of NSOperation does include significant logic to coordinate the safe execution of your task. The presence of this built-in logic allows you to focus on the actual implementation of your task, rather than on the glue code needed to ensure it works correctly with other system objects. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/NSOperation_class/index.html#//apple_ref/occ/cl/NSOperation"/> [iOSVersion(2)] [Export("")] public class NSOperation : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSObjectProtocol, Printable { public NSOperation() { } /// <summary> /// Begins the execution of the operation. /// </summary> [iOSVersion(2)] [Export("start")] public virtual void Start() { } /// <summary> /// Performs the receiver’s non-concurrent task. /// </summary> [iOSVersion(2)] [Export("main")] public virtual void Main() { } /// <summary> /// Advises the operation object that it should stop executing its task. /// </summary> [iOSVersion(2)] [Export("cancel")] public virtual void Cancel() { } /// <summary> /// Makes the receiver dependent on the completion of the specified operation. /// </summary> /// <param name="operation">The operation on which the receiver should depend. The same dependency should not be added more than once to the receiver, and the results of doing so are undefined.</param> [iOSVersion(2)] [Export("addDependency")] public virtual void AddDependency(NSOperation operation) { } /// <summary> /// Removes the receiver’s dependence on the specified operation. /// </summary> /// <param name="operation">The dependent operation to be removed from the receiver.</param> [iOSVersion(2)] [Export("removeDependency")] public virtual void RemoveDependency(NSOperation operation) { } /// <summary> /// Blocks execution of the current thread until the operation object finishes its task. /// </summary> [iOSVersion(4)] [Export("waitUntilFinished")] public virtual void WaitUntilFinished() { } /// <summary> /// The block to execute after the operation’s main task is completed. /// </summary> [iOSVersion(4)] [Export("completionBlock")] public Action CompletionBlock { get; set; } /// <summary> /// A Boolean value indicating whether the operation has been cancelled (read-only) /// </summary> [iOSVersion(8)] [Export("cancelled")] public bool Cancelled { get; private set; } /// <summary> /// A Boolean value indicating whether the operation is currently executing. (read-only) /// </summary> [iOSVersion(8)] [Export("executing")] public bool Executing { get; private set; } /// <summary> /// A Boolean value indicating whether the operation has finished executing its task. (read-only) /// </summary> [iOSVersion(8)] [Export("finished")] public bool Finished { get; private set; } /// <summary> /// A Boolean value indicating whether the operation executes its task asynchronously. (read-only) /// </summary> [iOSVersion(8)] [Export("concurrent")] public bool Concurrent { get; private set; } /// <summary> /// A Boolean value indicating whether the operation executes its task asynchronously. (read-only) /// </summary> [iOSVersion(7)] [Export("asynchronous")] public bool Asynchronous { get; private set; } /// <summary> /// A Boolean value indicating whether the operation can be performed now. (read-only) /// </summary> [iOSVersion(8)] [Export("ready")] public bool Ready { get; private set; } /// <summary> /// The name of the operation. /// </summary> [iOSVersion(8)] [Export("name")] [Optional] public string Name { get; set; } /// <summary> /// An array of the operation objects that must finish executing before the current object can begin executing. (read-only) /// </summary> [iOSVersion(2)] [Export("dependencies")] public AnyObject[] Dependencies { get; private set; } /// <summary> /// The relative amount of importance for granting system resources to the operation. /// </summary> [iOSVersion(8)] [Export("qualityOfService")] public NSQualityOfService QualityOfService { get; set; } /// <summary> /// The thread priority to use when executing the operation /// </summary> [iOSVersion(4)] [Export("threadPriority")] public Double ThreadPriority { get; set; } /// <summary> /// The execution priority of the operation in an operation queue. /// </summary> [iOSVersion(2)] [Export("queuePriority")] public NSOperationQueuePriority QueuePriority { get; set; } } /// <summary> /// These constants let you prioritize the order in which operations execute. /// </summary> public enum NSOperationQueuePriority { /// <summary> /// Operations receive very low priority for execution. /// </summary> [iOSVersion(2)] VeryLow, /// <summary> /// Operations receive low priority for execution. /// </summary> [iOSVersion(2)] Low, /// <summary> /// Operations receive the normal priority for execution. /// </summary> [iOSVersion(2)] Normal, /// <summary> /// Operations receive high priority for execution. /// </summary> [iOSVersion(2)] High, /// <summary> /// Operations receive very high priority for execution. /// </summary> [iOSVersion(2)] VeryHigh, } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSOperationQueue.cs b/CocoaSharp/Foundation/NSOperationQueue.cs
index e189a468..4c52e67d 100644
--- a/CocoaSharp/Foundation/NSOperationQueue.cs
+++ b/CocoaSharp/Foundation/NSOperationQueue.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSOperationQueue class regulates the execution of a set of NSOperation objects. After being added to a queue, an operation remains in that queue until it is explicitly canceled or finishes executing its task. Operations within the queue (but not yet executing) are themselves organized according to priority levels and inter-operation object dependencies and are executed accordingly. An application may create multiple operation queues and submit operations to any of them. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/NSOperationQueue_class/index.html#//apple_ref/occ/cl/NSOperationQueue"/> [iOSVersion(2)] public class NSOperationQueue : NSObject//, AnyObject, NSObjectProtocol { /// <summary> /// Returns the operation queue that launched the current operation. /// </summary> [iOSVersion(4)] [Export("currentQueue")] public static NSOperationQueue CurrentQueue() { return default(NSOperationQueue); } /// <summary> /// Returns the operation queue associated with the main thread. /// </summary> [iOSVersion(4)] [Export("mainQueue")] public static NSOperationQueue MainQueue() { return default(NSOperationQueue); } /// <summary> /// Adds the specified operation object to the receiver. /// </summary> /// <param name="operation">The operation object to be added to the queue. In memory-managed applications, this object is retained by the operation queue. In garbage-collected applications, the queue strongly references the operation object.</param> [iOSVersion(2)] [Export("addOperation")] public void AddOperation(NSOperation operation) { } /// <summary> /// Adds the specified array of operations to the queue. /// </summary> /// <param name="ops">The array of NSOperation objects that you want to add to the receiver.</param> /// <param name="waitUntilFinished">If true, the current thread is blocked until all of the specified operations finish executing. If false, the operations are added to the queue and control returns immediately to the caller.</param> [iOSVersion(4)] [Export("addOperations")] public void AddOperations(AnyObject[] ops, bool waitUntilFinished) { } /// <summary> /// Wraps the specified block in an operation object and adds it to the receiver. /// </summary> /// <param name="block">The block to execute from the operation object. The block should take no parameters and have no return value.</param> [iOSVersion(4)] [Export("addOperationWithBlock")] public void AddOperationWithBlock(Action block) { } /// <summary> /// Cancels all queued and executing operations. /// </summary> [iOSVersion(2)] [Export("cancelAllOperations")] public void CancelAllOperations() { } /// <summary> /// Blocks the current thread until all of the receiver’s queued and executing operations finish executing. /// </summary> [iOSVersion(2)] [Export("waitUntilAllOperationsAreFinished")] public void WaitUntilAllOperationsAreFinished() { } /// <summary> /// An array of the operations currently in the queue. (read-only) /// </summary> [iOSVersion(2)] [Export("operations")] public AnyObject[] Operations { get; private set; } /// <summary> /// The number of operations currently in the queue. (read-only) /// </summary> [iOSVersion(4)] [Export("operationCount")] public int OperationCount { get; private set; } /// <summary> /// The default service level to apply to operations executed using the queue. /// </summary> [iOSVersion(8)] [Export("qualityOfService")] public NSQualityOfService QualityOfService { get; set; } /// <summary> /// The maximum number of queued operations that can execute at the same time. /// </summary> [iOSVersion(2)] [Export("maxConcurrentOperationCount")] public int MaxConcurrentOperationCount { get; set; } /// <summary> /// A Boolean value indicating whether the queue is actively scheduling operations for execution. /// </summary> [iOSVersion(8)] [Export("suspended")] public bool Suspended { get; set; } /// <summary> /// The dispatch queue used to execute operations. /// </summary> [iOSVersion(8)] [Export("underlyingQueue")] public dispatch_queue_t UnderlyingQueue { get; set; } /// <summary> /// The name of the operation queue. /// </summary> [iOSVersion(4)] [Export("name")] public string Name { get; set; } /// <summary> /// Constant indicating the number of supported concurrent operations. /// </summary> public int NSOperationQueueDefaultMaxConcurrentOperationCount { get; set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSOperationQueue class regulates the execution of a set of NSOperation objects. After being added to a queue, an operation remains in that queue until it is explicitly canceled or finishes executing its task. Operations within the queue (but not yet executing) are themselves organized according to priority levels and inter-operation object dependencies and are executed accordingly. An application may create multiple operation queues and submit operations to any of them. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/NSOperationQueue_class/index.html#//apple_ref/occ/cl/NSOperationQueue"/> [iOSVersion(2)] [Export("")] public class NSOperationQueue : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSObjectProtocol, Printable { public NSOperationQueue() { } /// <summary> /// Returns the operation queue that launched the current operation. /// </summary> [iOSVersion(4)] [Export("currentQueue")] [return:Optional] public static NSOperationQueue CurrentQueue() { return default(NSOperationQueue); } /// <summary> /// Returns the operation queue associated with the main thread. /// </summary> [iOSVersion(4)] [Export("mainQueue")] public static NSOperationQueue MainQueue() { return default(NSOperationQueue); } /// <summary> /// Adds the specified operation object to the receiver. /// </summary> /// <param name="operation">The operation object to be added to the queue. In memory-managed applications, this object is retained by the operation queue. In garbage-collected applications, the queue strongly references the operation object.</param> [iOSVersion(2)] [Export("addOperation")] public virtual void AddOperation(NSOperation operation) { } /// <summary> /// Adds the specified array of operations to the queue. /// </summary> /// <param name="ops">The array of NSOperation objects that you want to add to the receiver.</param> /// <param name="waitUntilFinished">If true, the current thread is blocked until all of the specified operations finish executing. If false, the operations are added to the queue and control returns immediately to the caller.</param> [iOSVersion(4)] [Export("addOperations")] public virtual void AddOperations(AnyObject[] ops, bool waitUntilFinished) { } /// <summary> /// Wraps the specified block in an operation object and adds it to the receiver. /// </summary> /// <param name="block">The block to execute from the operation object. The block should take no parameters and have no return value.</param> [iOSVersion(4)] [Export("addOperationWithBlock")] public virtual void AddOperationWithBlock(Action block) { } /// <summary> /// Cancels all queued and executing operations. /// </summary> [iOSVersion(2)] [Export("cancelAllOperations")] public virtual void CancelAllOperations() { } /// <summary> /// Blocks the current thread until all of the receiver’s queued and executing operations finish executing. /// </summary> [iOSVersion(2)] [Export("waitUntilAllOperationsAreFinished")] public virtual void WaitUntilAllOperationsAreFinished() { } /// <summary> /// An array of the operations currently in the queue. (read-only) /// </summary> [iOSVersion(2)] [Export("operations")] public AnyObject[] Operations { get; private set; } /// <summary> /// The number of operations currently in the queue. (read-only) /// </summary> [iOSVersion(4)] [Export("operationCount")] public int OperationCount { get; private set; } /// <summary> /// The default service level to apply to operations executed using the queue. /// </summary> [iOSVersion(8)] [Export("qualityOfService")] public NSQualityOfService QualityOfService { get; set; } /// <summary> /// The maximum number of queued operations that can execute at the same time. /// </summary> [iOSVersion(2)] [Export("maxConcurrentOperationCount")] public int MaxConcurrentOperationCount { get; set; } /// <summary> /// A Boolean value indicating whether the queue is actively scheduling operations for execution. /// </summary> [iOSVersion(8)] [Export("suspended")] public bool Suspended { get; set; } /// <summary> /// The dispatch queue used to execute operations. /// </summary> [iOSVersion(8)] [Export("underlyingQueue")] public dispatch_queue_t UnderlyingQueue { get; set; } /// <summary> /// The name of the operation queue. /// </summary> [iOSVersion(4)] [Export("name")] [Optional] public string Name { get; set; } /// <summary> /// Constant indicating the number of supported concurrent operations. /// </summary> public int NSOperationQueueDefaultMaxConcurrentOperationCount { get; private set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSOrderedSet.cs b/CocoaSharp/Foundation/NSOrderedSet.cs
index 106198ba..b081abf5 100644
--- a/CocoaSharp/Foundation/NSOrderedSet.cs
+++ b/CocoaSharp/Foundation/NSOrderedSet.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSOrderedSet and its subclass, NSMutableOrderedSet, declare the programmatic interfaces to an ordered collection of objects. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSOrderedSet_Class/index.html#//apple_ref/occ/cl/NSOrderedSet"/> [iOSVersion(5)] public class NSOrderedSet : NSObject//, AnyObject, NSCoding, NSCopying, NSFastEnumeration, NSMutableCopying, NSObjectProtocol, NSSecureCoding { /// <summary> /// Initializes a newly allocated set with the objects that are contained in a given array. /// </summary> /// <param name="array">An array of objects to add to the new set. /// If the same object appears more than once in array, it is represented only once in the returned ordered set.</param> [iOSVersion(5)] [Export("convenience init")] public NSOrderedSet(AnyObject[] array) { } /// <summary> /// Initializes a newly allocated set with the objects that are contained in a given array, optionally copying the items. /// </summary> /// <param name="array">An array of objects to add to the new set. /// If the same object appears more than once in array, it is represented only once in the returned ordered set.</param> /// <param name="copyItems">If true the objects are copied to the ordered set; otherwise false.</param> [iOSVersion(5)] [Export("convenience init")] public NSOrderedSet(AnyObject[] array, bool copyItems) { } /// <summary> /// Initializes a newly allocated set with the objects that are contained in the specified range of an array, optionally copying the items. /// </summary> /// <param name="array">An array of objects to add to the new set. /// If the same object appears more than once in array, it is represented only once in the returned ordered set.</param> /// <param name="range">The range of objects in array to add to the ordered set.</param> /// <param name="copyItems">If true the objects are copied to the ordered set; otherwise false.</param> [iOSVersion(5)] [Export("convenience init")] public NSOrderedSet(AnyObject[] array, NSRange range, bool copyItems) { } /// <summary> /// Initializes a new ordered set with the object. /// </summary> /// <param name="@object">The object to add to the new ordered set</param> [iOSVersion(5)] [Export("convenience init")] public NSOrderedSet(AnyObject @object) { } /// <summary> /// Initializes a newly allocated set with a specified number of objects from a given C array of objects. /// </summary> /// <param name="objects">A C array of objects to add to the new set. /// If the same object appears more than once in objects, it is added only once to the returned ordered set.</param> /// <param name="count">The number of objects from objects to add to the new ordered set.</param> [iOSVersion(5)] public NSOrderedSet(ConstUnsafePointer<AnyObject> objects, int count) { } /// <summary> /// Initializes a new ordered set with the contents of a set. /// </summary> /// <param name="orderedSet">A set.</param> [iOSVersion(5)] [Export("convenience init")] public NSOrderedSet(NSOrderedSet orderedSet) { } /// <summary> /// Initializes a new ordered set with the contents of a set, optionally copying the items. /// </summary> /// <param name="orderedSet">A set.</param> /// <param name="copyItems">If true the objects are copied to the ordered set; otherwise false.</param> [iOSVersion(5)] [Export("convenience init")] public NSOrderedSet(NSOrderedSet orderedSet, bool copyItems) { } /// <summary> /// Initializes a new ordered set with the contents of an ordered set, optionally copying the items. /// </summary> /// <param name="orderedSet">An ordered set.</param> /// <param name="range">The range of objects in orderedSet to add to the ordered set.</param> /// <param name="copyItems">If true the objects are copied to the ordered set; otherwise false.</param> [iOSVersion(5)] [Export("convenience init")] public NSOrderedSet(NSOrderedSet orderedSet, NSRange range, bool copyItems) { } /// <summary> /// Initializes a new ordered set with the contents of a set. /// </summary> /// <param name="set">The set.</param> [iOSVersion(5)] [Export("convenience init")] public NSOrderedSet(NSSet set) { } /// <summary> /// Initializes a new ordered set with the contents of a set, optionally copying the objects in the set. /// </summary> /// <param name="set">The set.</param> /// <param name="copyItems">If true the objects are copied to the ordered set; otherwise false.</param> [iOSVersion(5)] [Export("convenience init")] public NSOrderedSet(NSSet set, bool copyItems) { } /// <summary> /// Initializes a newly allocated ordered set. /// </summary> [iOSVersion(7)] public NSOrderedSet() { } /// <summary> /// Returns a Boolean value that indicates whether a given object is present in the ordered set. /// </summary> /// <param name="@object">The object for which to test membership of the ordered set.</param> [iOSVersion(5)] [Export("containsObject")] public bool ContainsObject(AnyObject @object) { return default(bool); } /// <summary> /// Executes a given block using the objects in the ordered set at the specified indexes. /// </summary> /// <param name="indexSet">The indexes of the objects over which to enumerate.</param> /// <param name="options">A bitmask that specifies the options for the enumeration (whether it should be performed concurrently and whether it should be performed in reverse order).</param> /// <param name="usingBlock">The block to apply to elements in the ordered set. /// The block takes three arguments: /// obj /// The element in the ordered set. /// idx /// The index of the element in the ordered set. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the array. The stop argument is an out-only argument. You should only ever set this Boolean to true within the block.</param> [iOSVersion(5)] [Export("enumerateObjectsAtIndexes")] public void EnumerateObjectsAtIndexes(NSIndexSet indexSet, NSEnumerationOptions options, Action<AnyObject, int, UnsafePointer<ObjCBool>> usingBlock) { } /// <summary> /// Executes a given block using each object in the ordered set. /// </summary> /// <param name="block">The block to apply to elements in the ordered set. /// The block takes three arguments: /// idx /// The element in the set. /// idx /// The index of the item in the set. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the set. The stop argument is an out-only argument. You should only ever set this value to true within the block. /// The block returns a Boolean value that indicates whether obj passed the test.</param> [iOSVersion(5)] [Export("enumerateObjectsUsingBlock")] public void EnumerateObjectsUsingBlock(Action<AnyObject, int, UnsafePointer<ObjCBool>> block) { } /// <summary> /// Executes a given block using each object in the set, using the specified enumeration options. /// </summary> /// <param name="opts">A bitmask that specifies the options for the enumeration (whether it should be performed concurrently and whether it should be performed in reverse order).</param> /// <param name="usingBlock">The block to apply to elements in the ordered set. /// The block takes three arguments: /// obj /// The element in the set. /// idx /// The index of the item in the set. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the set. The stop argument is an out-only argument. You should only ever set this value to true within the block. /// The block returns a Boolean value that indicates whether obj passed the test.</param> [iOSVersion(5)] [Export("enumerateObjectsWithOptions")] public void EnumerateObjectsWithOptions(NSEnumerationOptions opts, Action<AnyObject, int, UnsafePointer<ObjCBool>> usingBlock) { } /// <summary> /// Returns the object at the specified index of the set. /// </summary> /// <param name="index">The object located at index.</param> [iOSVersion(5)] [Export("objectAtIndex")] public AnyObject ObjectAtIndex(int index) { return default(AnyObject); } /// <summary> /// Returns the object at the specified index of the set. /// </summary> /// <param name="index">The object located at index.</param> [iOSVersion(6)] [Export("objectAtIndexedSubscript")] public AnyObject ObjectAtIndexedSubscript(int index) { return default(AnyObject); } /// <summary> /// Returns the objects in the ordered set at the specified indexes. /// </summary> /// <param name="indexes">The indexes.</param> [iOSVersion(5)] [Export("objectsAtIndexes")] public AnyObject[] ObjectsAtIndexes(NSIndexSet indexes) { return default(AnyObject[]); } /// <summary> /// Returns the index of the specified object. /// </summary> /// <param name="@object">The object.</param> [iOSVersion(5)] [Export("indexOfObject")] public int IndexOfObject(AnyObject @object) { return default(int); } /// <summary> /// Returns the index, within a specified range, of an object compared with elements in the ordered set using a given NSComparator block. /// </summary> /// <param name="@object">An object for which to search in the ordered set. /// If this value is nil, throws an NSInvalidArgumentException.</param> /// <param name="inSortedRange">The range within the array to search for object. /// If r exceeds the bounds of the ordered set (if the location plus length of the range is greater than the count of the ordered set), throws an NSRangeException.</param> /// <param name="options">Options for the search. For possible values, see NSBinarySearchingOptions.</param> /// <param name="usingComparator">A comparator block used to compare the object obj with elements in the ordered set. /// If this value is NULL, throws an NSInvalidArgumentException.</param> [iOSVersion(5)] [Export("indexOfObject")] public int IndexOfObject(AnyObject @object, NSRange inSortedRange, NSBinarySearchingOptions options, NSComparator usingComparator) { return default(int); } /// <summary> /// Returns the index, from a given set of indexes, of the object in the ordered set that passes a test in a given block for a given set of enumeration options. /// </summary> /// <param name="indexSet">The indexes of the objects over which to enumerate.</param> /// <param name="options">A bitmask that specifies the options for the enumeration (whether it should be performed concurrently and whether it should be performed in reverse order).</param> /// <param name="passingTest">The block to apply to elements in the ordered set. /// The block takes three arguments: /// obj /// The element in the ordered set. /// idx /// The index of the element in the ordered set. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the set. The stop argument is an out-only argument. You should only ever set this value to true within the block. /// The block returns a Boolean value that indicates whether obj passed the test.</param> [iOSVersion(5)] [Export("indexOfObjectAtIndexes")] public int IndexOfObjectAtIndexes(NSIndexSet indexSet, NSEnumerationOptions options, Func<AnyObject, int, UnsafePointer<ObjCBool>, bool> passingTest) { return default(int); } /// <summary> /// Returns the index of the object in the ordered set that passes a test in a given block. /// </summary> /// <param name="predicate">The block to apply to elements in the ordered set. /// The block takes three arguments: /// obj /// The element in the ordered set. /// Term /// The index of the element in the ordered set. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the set. The stop argument is an out-only argument. You should only ever set this value to true within the block.</param> [iOSVersion(5)] [Export("indexOfObjectPassingTest")] public int IndexOfObjectPassingTest(Func<AnyObject, int, UnsafePointer<ObjCBool>, bool> predicate) { return default(int); } /// <summary> /// Returns the index of an object in the ordered set that passes a test in a given block for a given set of enumeration options. /// </summary> /// <param name="opts">A bitmask that specifies the options for the enumeration (whether it should be performed concurrently and whether it should be performed in reverse order).</param> /// <param name="passingTest">The block to apply to elements in the ordered set. /// The block takes three arguments: /// obj /// The element in the array. /// idx /// The index of the element in the ordered set. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the set. The stop argument is an out-only argument. You should only ever set this value to true within the block. /// The block returns a Boolean value that indicates whether obj passed the test.</param> [iOSVersion(5)] [Export("indexOfObjectWithOptions")] public int IndexOfObjectWithOptions(NSEnumerationOptions opts, Func<AnyObject, int, UnsafePointer<ObjCBool>, bool> passingTest) { return default(int); } /// <summary> /// Returns the index, from a given set of indexes, of the object in the ordered set that passes a test in a given block for a given set of enumeration options. /// </summary> /// <param name="indexSet">The indexes of the objects over which to enumerate.</param> /// <param name="options">A bitmask that specifies the options for the enumeration (whether it should be performed concurrently and whether it should be performed in reverse order).</param> /// <param name="passingTest">The block to apply to elements in the ordered set. /// The block takes three arguments: /// obj /// The element in the ordered set. /// idx /// The index of the element in the ordered set. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the set. The stop argument is an out-only argument. You should only ever set this value to true within the block. /// The block returns a Boolean value that indicates whether obj passed the test.</param> [iOSVersion(5)] [Export("indexesOfObjectsAtIndexes")] public NSIndexSet IndexesOfObjectsAtIndexes(NSIndexSet indexSet, NSEnumerationOptions options, Func<AnyObject, int, UnsafePointer<ObjCBool>, bool> passingTest) { return default(NSIndexSet); } /// <summary> /// Returns the index of the object in the ordered set that passes a test in a given block. /// </summary> /// <param name="predicate">The block to apply to elements in the ordered set. /// The block takes three arguments: /// obj /// The element in the ordered set. /// Term /// The index of the element in the ordered set. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the set. The stop argument is an out-only argument. You should only ever set this value to true within the block.</param> [iOSVersion(5)] [Export("indexesOfObjectsPassingTest")] public NSIndexSet IndexesOfObjectsPassingTest(Func<AnyObject, int, UnsafePointer<ObjCBool>, bool> predicate) { return default(NSIndexSet); } /// <summary> /// Returns the index of an object in the ordered set that passes a test in a given block for a given set of enumeration options. /// </summary> /// <param name="opts">A bitmask that specifies the options for the enumeration (whether it should be performed concurrently and whether it should be performed in reverse order).</param> /// <param name="passingTest">The block to apply to elements in the ordered set. /// The block takes three arguments: /// obj /// The element in the ordered set. /// Term /// The index of the element in the ordered set. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the set. The stop argument is an out-only argument. You should only ever set this value to true within the block.</param> [iOSVersion(5)] [Export("indexesOfObjectsWithOptions")] public NSIndexSet IndexesOfObjectsWithOptions(NSEnumerationOptions opts, Func<AnyObject, int, UnsafePointer<ObjCBool>, bool> passingTest) { return default(NSIndexSet); } /// <summary> /// Returns an enumerator object that lets you access each object in the ordered set. /// </summary> [iOSVersion(5)] [Export("objectEnumerator")] public NSEnumerator ObjectEnumerator() { return default(NSEnumerator); } /// <summary> /// Returns an enumerator object that lets you access each object in the ordered set. /// </summary> [iOSVersion(5)] [Export("reverseObjectEnumerator")] public NSEnumerator ReverseObjectEnumerator() { return default(NSEnumerator); } /// <summary> /// Copies the objects contained in the ordered set that fall within the specified range to objects. /// </summary> /// <param name="objects">A C array of objects of size at least the length of the range specified by aRange.</param> /// <param name="range">A range within the bounds of the array. /// If the location plus the length of the range is greater than the count of the array, this method raises an NSRangeException.</param> [iOSVersion(5)] [Export("getObjects")] public void GetObjects(AutoreleasingUnsafePointer<AnyObject> objects, NSRange range) { } /// <summary> /// Invokes setValue:forKey: on each of the receiver's members using the specified value and key /// </summary> /// <param name="value">The object value.</param> /// <param name="forKey">The key to store the value.</param> [iOSVersion(5)] [Export("setValue")] public void SetValue(AnyObject value, string forKey) { } /// <summary> /// Returns an ordered set containing the results of invoking valueForKey: using key on each of the ordered set’s objects. /// </summary> /// <param name="key">The key to retrieve.</param> [iOSVersion(5)] [Export("valueForKey")] public AnyObject ValueForKey(string key) { return default(AnyObject); } /// <summary> /// Raises an exception. /// </summary> /// <param name="observer">The object to register for KVO notifications.</param> /// <param name="forKeyPath">The key path, relative to the array, of the property to observe. This value must not be nil.</param> /// <param name="options">A combination of NSKeyValueObservingOptions values that specifies what is included in observation notifications.</param> /// <param name="context">Arbitrary data that is passed to observer in observeValueForKeyPath:ofObject:change:context:.</param> [iOSVersion(5)] [Export("addObserver")] public void AddObserver(NSObject observer, string forKeyPath, NSKeyValueObservingOptions options, UnsafePointer<Action> context) { } /// <summary> /// Raises an exception. /// </summary> /// <param name="observer">The object to remove as an observer.</param> /// <param name="forKeyPath">A key-path, relative to the set, for which observer is registered to receive KVO change notifications. This value must not be nil.</param> [iOSVersion(5)] [Export("removeObserver")] public void RemoveObserver(NSObject observer, string forKeyPath) { } /// <summary> /// Raises an exception. /// </summary> /// <param name="observer">The object to remove as an observer.</param> /// <param name="forKeyPath">A key-path, relative to the set, for which observer is registered to receive KVO change notifications. This value must not be nil.</param> /// <param name="context">The context passed to the notifications.</param> [iOSVersion(5)] [Export("removeObserver")] public void RemoveObserver(NSObject observer, string forKeyPath, UnsafePointer<Action> context) { } /// <summary> /// Compares the receiving ordered set to another ordered set. /// </summary> /// <param name="other">The ordered set with which to compare the receiving ordered set.</param> [iOSVersion(5)] [Export("isEqualToOrderedSet")] public bool IsEqualToOrderedSet(NSOrderedSet other) { return default(bool); } /// <summary> /// Returns a Boolean value that indicates whether at least one object in the receiving ordered set is also present in another given ordered set. /// </summary> /// <param name="other">The other ordered set.</param> [iOSVersion(5)] [Export("intersectsOrderedSet")] public bool IntersectsOrderedSet(NSOrderedSet other) { return default(bool); } /// <summary> /// Returns a Boolean value that indicates whether at least one object in the receiving ordered set is also present in another given set. /// </summary> /// <param name="set">The set.</param> [iOSVersion(5)] [Export("intersectsSet")] public bool IntersectsSet(NSSet set) { return default(bool); } /// <summary> /// Returns a Boolean value that indicates whether every object in the receiving ordered set is also present in another given ordered set. /// </summary> /// <param name="other">The ordered set with which to compare the receiving ordered set.</param> [iOSVersion(5)] [Export("isSubsetOfOrderedSet")] public bool IsSubsetOfOrderedSet(NSOrderedSet other) { return default(bool); } /// <summary> /// Returns a Boolean value that indicates whether every object in the receiving ordered set is also present in another given set. /// </summary> /// <param name="set">The set with which to compare the receiving ordered set.</param> [iOSVersion(5)] [Export("isSubsetOfSet")] public bool IsSubsetOfSet(NSSet set) { return default(bool); } /// <summary> /// Returns an array of the ordered set’s elements sorted as specified by a given array of sort descriptors. /// </summary> /// <param name="sortDescriptors">An array of NSSortDescriptor objects.</param> [iOSVersion(5)] [Export("sortedArrayUsingDescriptors")] public AnyObject[] SortedArrayUsingDescriptors(AnyObject[] sortDescriptors) { return default(AnyObject[]); } /// <summary> /// Returns an array that lists the receiving ordered set’s elements in ascending order, as determined by the comparison method specified by a given NSComparator block /// </summary> /// <param name="cmptr">A comparator block.</param> [iOSVersion(5)] [Export("sortedArrayUsingComparator")] public AnyObject[] SortedArrayUsingComparator(NSComparator cmptr) { return default(AnyObject[]); } /// <summary> /// Returns an array that lists the receiving ordered set’s elements in ascending order, as determined by the comparison method specified by a given NSComparator block. /// </summary> /// <param name="opts">A bitmask that specifies the options for the sort (whether it should be performed concurrently and whether it should be performed stably).</param> /// <param name="usingComparator">A comparator block.</param> [iOSVersion(5)] [Export("sortedArrayWithOptions")] public AnyObject[] SortedArrayWithOptions(NSSortOptions opts, NSComparator usingComparator) { return default(AnyObject[]); } /// <summary> /// Evaluates a given predicate against each object in the receiving ordered set and returns a new ordered set containing the objects for which the predicate returns true. /// </summary> /// <param name="predicate">The predicate against which to evaluate the receiving ordered set’s elements.</param> [iOSVersion(5)] [Export("filteredOrderedSetUsingPredicate")] public NSOrderedSet FilteredOrderedSetUsingPredicate(NSPredicate predicate) { return default(NSOrderedSet); } /// <summary> /// Returns a string that represents the contents of the ordered set, formatted as a property list. /// </summary> /// <param name="locale">An NSLocale object or an NSDictionary object that specifies options used for formatting each of the ordered set’s elements (where recognized). Specify nil if you don’t want the elements formatted.</param> [iOSVersion(5)] [Export("descriptionWithLocale")] public string DescriptionWithLocale(AnyObject locale) { return default(string); } /// <summary> /// Returns a string that represents the contents of the ordered set, formatted as a property list. /// </summary> /// <param name="locale">An NSLocale object or an NSDictionary object that specifies options used for formatting each of the array’s elements (where recognized). Specify nil if you don’t want the elements formatted.</param> /// <param name="indent">Specifies a level of indentation, to make the output more readable: the indentation is (4 spaces) * level.</param> [iOSVersion(5)] [Export("descriptionWithLocale")] public string DescriptionWithLocale(AnyObject locale, int indent) { return default(string); } /// <summary> /// The number of members in the set. (read-only) /// </summary> [iOSVersion(5)] [Export("count")] public int Count { get; private set; } /// <summary> /// The first object in the ordered set. (read-only) /// </summary> [iOSVersion(5)] [Export("firstObject")] public AnyObject FirstObject { get; private set; } /// <summary> /// The last object in the ordered set. (read-only) /// </summary> [iOSVersion(5)] [Export("lastObject")] public AnyObject LastObject { get; private set; } /// <summary> /// An ordered set in the reverse order. (read-only) /// </summary> [iOSVersion(5)] [Export("reversedOrderedSet")] public NSOrderedSet ReversedOrderedSet { get; private set; } /// <summary> /// A string that represents the contents of the ordered set, formatted as a property list. (read-only) /// </summary> [iOSVersion(5)] [Export("description")] public string Description { get; private set; } /// <summary> /// A representation of the ordered set as an array. (read-only) /// </summary> [iOSVersion(5)] [Export("array")] public AnyObject[] Array { get; private set; } /// <summary> /// A representation of the set containing the contents of the ordered set. (read-only) /// </summary> [iOSVersion(5)] [Export("set")] public NSSet Set { get; private set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSOrderedSet and its subclass, NSMutableOrderedSet, declare the programmatic interfaces to an ordered collection of objects. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSOrderedSet_Class/index.html#//apple_ref/occ/cl/NSOrderedSet"/> [iOSVersion(5)] [Export("")] public class NSOrderedSet : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSFastEnumeration, NSMutableCopying, NSObjectProtocol, NSSecureCoding, Printable { /// <summary> /// Creates and returns an ordered set containing the objects from another ordered set. /// </summary> /// <param name="orderedSet">A set containing the objects to add to the new ordered set. /// The objects are not copied, simply referenced.</param> [iOSVersion(5)] [Export("convenience init")] public NSOrderedSet([Optional] NSOrderedSet orderedSet) { } /// <summary> /// Creates and returns an ordered set with the contents of a set. /// </summary> /// <param name="set">A set.</param> [iOSVersion(5)] [Export("convenience init")] public NSOrderedSet([Optional] NSSet set) { } /// <summary> /// Creates and returns an ordered set with the contents of a set, optionally copying the items. /// </summary> /// <param name="set">A set.</param> /// <param name="copyItems">If true the objects are copied to the ordered set; otherwise false.</param> [iOSVersion(5)] [Export("convenience init")] public NSOrderedSet([Optional] NSSet set, bool copyItems) { } /// <summary> /// Initializes a newly allocated set with the objects that are contained in a given array. /// </summary> /// <param name="array">An array of objects to add to the new set. /// If the same object appears more than once in array, it is represented only once in the returned ordered set.</param> [iOSVersion(5)] [Export("convenience init")] public NSOrderedSet(AnyObject[] array) { } /// <summary> /// Initializes a newly allocated set with the objects that are contained in a given array, optionally copying the items. /// </summary> /// <param name="array">An array of objects to add to the new set. /// If the same object appears more than once in array, it is represented only once in the returned ordered set.</param> /// <param name="copyItems">If true the objects are copied to the ordered set; otherwise false.</param> [iOSVersion(5)] [Export("convenience init")] public NSOrderedSet(AnyObject[] array, bool copyItems) { } /// <summary> /// Initializes a newly allocated set with the objects that are contained in the specified range of an array, optionally copying the items. /// </summary> /// <param name="array">An array of objects to add to the new set. /// If the same object appears more than once in array, it is represented only once in the returned ordered set.</param> /// <param name="range">The range of objects in array to add to the ordered set.</param> /// <param name="copyItems">If true the objects are copied to the ordered set; otherwise false.</param> [iOSVersion(5)] [Export("convenience init")] public NSOrderedSet(AnyObject[] array, NSRange range, bool copyItems) { } /// <summary> /// Initializes a new ordered set with the object. /// </summary> /// <param name="@object">The object to add to the new ordered set</param> [iOSVersion(5)] [Export("convenience init")] public NSOrderedSet(AnyObject @object) { } /// <summary> /// Initializes a newly allocated set with a specified number of objects from a given C array of objects. /// </summary> /// <param name="objects">A C array of objects to add to the new set. /// If the same object appears more than once in objects, it is added only once to the returned ordered set.</param> /// <param name="count">The number of objects from objects to add to the new ordered set.</param> [iOSVersion(5)] public NSOrderedSet(UnsafePointer<AnyObject> objects, int count) { } /// <summary> /// Initializes a new ordered set with the contents of a set. /// </summary> /// <param name="orderedSet">A set.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(5)] [Export("convenience init")] [IgnoreParameter("NAME_YOUR_PARAMS")] public NSOrderedSet(NSOrderedSet orderedSet, uint NAME_YOUR_PARAMS = 14) { } /// <summary> /// Initializes a new ordered set with the contents of a set, optionally copying the items. /// </summary> /// <param name="orderedSet">A set.</param> /// <param name="copyItems">If true the objects are copied to the ordered set; otherwise false.</param> [iOSVersion(5)] [Export("convenience init")] public NSOrderedSet(NSOrderedSet orderedSet, bool copyItems) { } /// <summary> /// Initializes a new ordered set with the contents of an ordered set, optionally copying the items. /// </summary> /// <param name="orderedSet">An ordered set.</param> /// <param name="range">The range of objects in orderedSet to add to the ordered set.</param> /// <param name="copyItems">If true the objects are copied to the ordered set; otherwise false.</param> [iOSVersion(5)] [Export("convenience init")] public NSOrderedSet(NSOrderedSet orderedSet, NSRange range, bool copyItems) { } /// <summary> /// Initializes a new ordered set with the contents of a set. /// </summary> /// <param name="set">The set.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(5)] [Export("convenience init")] [IgnoreParameter("NAME_YOUR_PARAMS")] public NSOrderedSet(NSSet set, short NAME_YOUR_PARAMS = 1) { } /// <summary> /// Initializes a new ordered set with the contents of a set, optionally copying the objects in the set. /// </summary> /// <param name="set">The set.</param> /// <param name="copyItems">If true the objects are copied to the ordered set; otherwise false.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(5)] [Export("convenience init")] [IgnoreParameter("NAME_YOUR_PARAMS")] public NSOrderedSet(NSSet set, bool copyItems, bool NAME_YOUR_PARAMS = false) { } /// <summary> /// Initializes a newly allocated ordered set. /// </summary> [iOSVersion(7)] public NSOrderedSet() { } /// <summary> /// Returns a Boolean value that indicates whether a given object is present in the ordered set. /// </summary> /// <param name="@object">The object for which to test membership of the ordered set.</param> [iOSVersion(5)] [Export("containsObject")] public virtual bool ContainsObject(AnyObject @object) { return default(bool); } /// <summary> /// Executes a given block using the objects in the ordered set at the specified indexes. /// </summary> /// <param name="indexSet">The indexes of the objects over which to enumerate.</param> /// <param name="options">A bitmask that specifies the options for the enumeration (whether it should be performed concurrently and whether it should be performed in reverse order).</param> /// <param name="usingBlock">The block to apply to elements in the ordered set. /// The block takes three arguments: /// obj /// The element in the ordered set. /// idx /// The index of the element in the ordered set. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the array. The stop argument is an out-only argument. You should only ever set this Boolean to true within the block.</param> [iOSVersion(5)] [Export("enumerateObjectsAtIndexes")] public virtual void EnumerateObjectsAtIndexes(NSIndexSet indexSet, NSEnumerationOptions options, Action<AnyObject, int, UnsafeMutablePointer<ObjCBool>> usingBlock) { } /// <summary> /// Executes a given block using each object in the ordered set. /// </summary> /// <param name="block">The block to apply to elements in the ordered set. /// The block takes three arguments: /// idx /// The element in the set. /// idx /// The index of the item in the set. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the set. The stop argument is an out-only argument. You should only ever set this value to true within the block. /// The block returns a Boolean value that indicates whether obj passed the test.</param> [iOSVersion(5)] [Export("enumerateObjectsUsingBlock")] public virtual void EnumerateObjectsUsingBlock(Action<AnyObject, int, UnsafeMutablePointer<ObjCBool>> block) { } /// <summary> /// Executes a given block using each object in the set, using the specified enumeration options. /// </summary> /// <param name="opts">A bitmask that specifies the options for the enumeration (whether it should be performed concurrently and whether it should be performed in reverse order).</param> /// <param name="usingBlock">The block to apply to elements in the ordered set. /// The block takes three arguments: /// obj /// The element in the set. /// idx /// The index of the item in the set. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the set. The stop argument is an out-only argument. You should only ever set this value to true within the block. /// The block returns a Boolean value that indicates whether obj passed the test.</param> [iOSVersion(5)] [Export("enumerateObjectsWithOptions")] public virtual void EnumerateObjectsWithOptions(NSEnumerationOptions opts, Action<AnyObject, int, UnsafeMutablePointer<ObjCBool>> usingBlock) { } /// <summary> /// Returns the object at the specified index of the set. /// </summary> /// <param name="index">The object located at index.</param> [iOSVersion(5)] [Export("objectAtIndex")] public virtual AnyObject ObjectAtIndex(int index) { return default(AnyObject); } /// <summary> /// Returns the objects in the ordered set at the specified indexes. /// </summary> /// <param name="indexes">The indexes.</param> [iOSVersion(5)] [Export("objectsAtIndexes")] public virtual AnyObject[] ObjectsAtIndexes(NSIndexSet indexes) { return default(AnyObject[]); } /// <summary> /// Returns the index of the specified object. /// </summary> /// <param name="@object">The object.</param> [iOSVersion(5)] [Export("indexOfObject")] public virtual int IndexOfObject(AnyObject @object) { return default(int); } /// <summary> /// Returns the index, within a specified range, of an object compared with elements in the ordered set using a given NSComparator block. /// </summary> /// <param name="@object">An object for which to search in the ordered set. /// If this value is nil, throws an NSInvalidArgumentException.</param> /// <param name="inSortedRange">The range within the array to search for object. /// If r exceeds the bounds of the ordered set (if the location plus length of the range is greater than the count of the ordered set), throws an NSRangeException.</param> /// <param name="options">Options for the search. For possible values, see NSBinarySearchingOptions.</param> /// <param name="usingComparator">A comparator block used to compare the object obj with elements in the ordered set. /// If this value is NULL, throws an NSInvalidArgumentException.</param> [iOSVersion(5)] [Export("indexOfObject")] public virtual int IndexOfObject(AnyObject @object, NSRange inSortedRange, NSBinarySearchingOptions options, NSComparator usingComparator) { return default(int); } /// <summary> /// Returns the index, from a given set of indexes, of the object in the ordered set that passes a test in a given block for a given set of enumeration options. /// </summary> /// <param name="indexSet">The indexes of the objects over which to enumerate.</param> /// <param name="options">A bitmask that specifies the options for the enumeration (whether it should be performed concurrently and whether it should be performed in reverse order).</param> /// <param name="passingTest">The block to apply to elements in the ordered set. /// The block takes three arguments: /// obj /// The element in the ordered set. /// idx /// The index of the element in the ordered set. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the set. The stop argument is an out-only argument. You should only ever set this value to true within the block. /// The block returns a Boolean value that indicates whether obj passed the test.</param> [iOSVersion(5)] [Export("indexOfObjectAtIndexes")] public virtual int IndexOfObjectAtIndexes(NSIndexSet indexSet, NSEnumerationOptions options, Func<AnyObject, int, UnsafeMutablePointer<ObjCBool>, bool> passingTest) { return default(int); } /// <summary> /// Returns the index of the object in the ordered set that passes a test in a given block. /// </summary> /// <param name="predicate">The block to apply to elements in the ordered set. /// The block takes three arguments: /// obj /// The element in the ordered set. /// Term /// The index of the element in the ordered set. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the set. The stop argument is an out-only argument. You should only ever set this value to true within the block.</param> [iOSVersion(5)] [Export("indexOfObjectPassingTest")] public virtual int IndexOfObjectPassingTest(Func<AnyObject, int, UnsafeMutablePointer<ObjCBool>, bool> predicate) { return default(int); } /// <summary> /// Returns the index of an object in the ordered set that passes a test in a given block for a given set of enumeration options. /// </summary> /// <param name="opts">A bitmask that specifies the options for the enumeration (whether it should be performed concurrently and whether it should be performed in reverse order).</param> /// <param name="passingTest">The block to apply to elements in the ordered set. /// The block takes three arguments: /// obj /// The element in the array. /// idx /// The index of the element in the ordered set. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the set. The stop argument is an out-only argument. You should only ever set this value to true within the block. /// The block returns a Boolean value that indicates whether obj passed the test.</param> [iOSVersion(5)] [Export("indexOfObjectWithOptions")] public virtual int IndexOfObjectWithOptions(NSEnumerationOptions opts, Func<AnyObject, int, UnsafeMutablePointer<ObjCBool>, bool> passingTest) { return default(int); } /// <summary> /// Returns the index, from a given set of indexes, of the object in the ordered set that passes a test in a given block for a given set of enumeration options. /// </summary> /// <param name="indexSet">The indexes of the objects over which to enumerate.</param> /// <param name="options">A bitmask that specifies the options for the enumeration (whether it should be performed concurrently and whether it should be performed in reverse order).</param> /// <param name="passingTest">The block to apply to elements in the ordered set. /// The block takes three arguments: /// obj /// The element in the ordered set. /// idx /// The index of the element in the ordered set. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the set. The stop argument is an out-only argument. You should only ever set this value to true within the block. /// The block returns a Boolean value that indicates whether obj passed the test.</param> [iOSVersion(5)] [Export("indexesOfObjectsAtIndexes")] public virtual NSIndexSet IndexesOfObjectsAtIndexes(NSIndexSet indexSet, NSEnumerationOptions options, Func<AnyObject, int, UnsafeMutablePointer<ObjCBool>, bool> passingTest) { return default(NSIndexSet); } /// <summary> /// Returns the index of the object in the ordered set that passes a test in a given block. /// </summary> /// <param name="predicate">The block to apply to elements in the ordered set. /// The block takes three arguments: /// obj /// The element in the ordered set. /// Term /// The index of the element in the ordered set. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the set. The stop argument is an out-only argument. You should only ever set this value to true within the block.</param> [iOSVersion(5)] [Export("indexesOfObjectsPassingTest")] public virtual NSIndexSet IndexesOfObjectsPassingTest(Func<AnyObject, int, UnsafeMutablePointer<ObjCBool>, bool> predicate) { return default(NSIndexSet); } /// <summary> /// Returns the index of an object in the ordered set that passes a test in a given block for a given set of enumeration options. /// </summary> /// <param name="opts">A bitmask that specifies the options for the enumeration (whether it should be performed concurrently and whether it should be performed in reverse order).</param> /// <param name="passingTest">The block to apply to elements in the ordered set. /// The block takes three arguments: /// obj /// The element in the ordered set. /// Term /// The index of the element in the ordered set. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the set. The stop argument is an out-only argument. You should only ever set this value to true within the block.</param> [iOSVersion(5)] [Export("indexesOfObjectsWithOptions")] public virtual NSIndexSet IndexesOfObjectsWithOptions(NSEnumerationOptions opts, Func<AnyObject, int, UnsafeMutablePointer<ObjCBool>, bool> passingTest) { return default(NSIndexSet); } /// <summary> /// Returns an enumerator object that lets you access each object in the ordered set. /// </summary> [iOSVersion(5)] [Export("objectEnumerator")] public virtual NSEnumerator ObjectEnumerator() { return default(NSEnumerator); } /// <summary> /// Returns an enumerator object that lets you access each object in the ordered set. /// </summary> [iOSVersion(5)] [Export("reverseObjectEnumerator")] public virtual NSEnumerator ReverseObjectEnumerator() { return default(NSEnumerator); } /// <summary> /// Copies the objects contained in the ordered set that fall within the specified range to objects. /// </summary> /// <param name="objects">A C array of objects of size at least the length of the range specified by aRange.</param> /// <param name="range">A range within the bounds of the array. /// If the location plus the length of the range is greater than the count of the array, this method raises an NSRangeException.</param> [iOSVersion(5)] [Export("getObjects")] public virtual void GetObjects(AutoreleasingUnsafeMutablePointer<AnyObject> objects, NSRange range) { } /// <summary> /// Invokes setValue:forKey: on each of the receiver&#39;s members using the specified value and key /// </summary> /// <param name="value">The object value.</param> /// <param name="forKey">The key to store the value.</param> [iOSVersion(5)] [Export("setValue")] public virtual void SetValue([Optional] AnyObject value, string forKey) { } /// <summary> /// Returns an ordered set containing the results of invoking valueForKey: using key on each of the ordered set’s objects. /// </summary> /// <param name="key">The key to retrieve.</param> [iOSVersion(5)] [Export("valueForKey")] public virtual AnyObject ValueForKey(string key) { return default(AnyObject); } /// <summary> /// Raises an exception. /// </summary> /// <param name="observer">The object to register for KVO notifications.</param> /// <param name="forKeyPath">The key path, relative to the array, of the property to observe. This value must not be nil.</param> /// <param name="options">A combination of NSKeyValueObservingOptions values that specifies what is included in observation notifications.</param> /// <param name="context">Arbitrary data that is passed to observer in observeValueForKeyPath:ofObject:change:context:.</param> [iOSVersion(5)] [Export("addObserver")] public virtual void AddObserver(NSObject observer, string forKeyPath, NSKeyValueObservingOptions options, UnsafeMutablePointer context) { } /// <summary> /// Raises an exception. /// </summary> /// <param name="observer">The object to remove as an observer.</param> /// <param name="forKeyPath">A key-path, relative to the set, for which observer is registered to receive KVO change notifications. This value must not be nil.</param> [iOSVersion(5)] [Export("removeObserver")] public virtual void RemoveObserver(NSObject observer, string forKeyPath) { } /// <summary> /// Raises an exception. /// </summary> /// <param name="observer">The object to remove as an observer.</param> /// <param name="forKeyPath">A key-path, relative to the set, for which observer is registered to receive KVO change notifications. This value must not be nil.</param> /// <param name="context">The context passed to the notifications.</param> [iOSVersion(5)] [Export("removeObserver")] public virtual void RemoveObserver(NSObject observer, string forKeyPath, UnsafeMutablePointer context) { } /// <summary> /// Compares the receiving ordered set to another ordered set. /// </summary> /// <param name="other">The ordered set with which to compare the receiving ordered set.</param> [iOSVersion(5)] [Export("isEqualToOrderedSet")] public virtual bool IsEqualToOrderedSet(NSOrderedSet other) { return default(bool); } /// <summary> /// Returns a Boolean value that indicates whether at least one object in the receiving ordered set is also present in another given ordered set. /// </summary> /// <param name="other">The other ordered set.</param> [iOSVersion(5)] [Export("intersectsOrderedSet")] public virtual bool IntersectsOrderedSet(NSOrderedSet other) { return default(bool); } /// <summary> /// Returns a Boolean value that indicates whether at least one object in the receiving ordered set is also present in another given set. /// </summary> /// <param name="set">The set.</param> [iOSVersion(5)] [Export("intersectsSet")] public virtual bool IntersectsSet(NSSet set) { return default(bool); } /// <summary> /// Returns a Boolean value that indicates whether every object in the receiving ordered set is also present in another given ordered set. /// </summary> /// <param name="other">The ordered set with which to compare the receiving ordered set.</param> [iOSVersion(5)] [Export("isSubsetOfOrderedSet")] public virtual bool IsSubsetOfOrderedSet(NSOrderedSet other) { return default(bool); } /// <summary> /// Returns a Boolean value that indicates whether every object in the receiving ordered set is also present in another given set. /// </summary> /// <param name="set">The set with which to compare the receiving ordered set.</param> [iOSVersion(5)] [Export("isSubsetOfSet")] public virtual bool IsSubsetOfSet(NSSet set) { return default(bool); } /// <summary> /// Returns an array of the ordered set’s elements sorted as specified by a given array of sort descriptors. /// </summary> /// <param name="sortDescriptors">An array of NSSortDescriptor objects.</param> [iOSVersion(5)] [Export("sortedArrayUsingDescriptors")] public virtual AnyObject[] SortedArrayUsingDescriptors(AnyObject[] sortDescriptors) { return default(AnyObject[]); } /// <summary> /// Returns an array that lists the receiving ordered set’s elements in ascending order, as determined by the comparison method specified by a given NSComparator block /// </summary> /// <param name="cmptr">A comparator block.</param> [iOSVersion(5)] [Export("sortedArrayUsingComparator")] public virtual AnyObject[] SortedArrayUsingComparator(NSComparator cmptr) { return default(AnyObject[]); } /// <summary> /// Returns an array that lists the receiving ordered set’s elements in ascending order, as determined by the comparison method specified by a given NSComparator block. /// </summary> /// <param name="opts">A bitmask that specifies the options for the sort (whether it should be performed concurrently and whether it should be performed stably).</param> /// <param name="usingComparator">A comparator block.</param> [iOSVersion(5)] [Export("sortedArrayWithOptions")] public virtual AnyObject[] SortedArrayWithOptions(NSSortOptions opts, NSComparator usingComparator) { return default(AnyObject[]); } /// <summary> /// Evaluates a given predicate against each object in the receiving ordered set and returns a new ordered set containing the objects for which the predicate returns true. /// </summary> /// <param name="predicate">The predicate against which to evaluate the receiving ordered set’s elements.</param> [iOSVersion(5)] [Export("filteredOrderedSetUsingPredicate")] public virtual NSOrderedSet FilteredOrderedSetUsingPredicate(NSPredicate predicate) { return default(NSOrderedSet); } /// <summary> /// Returns a string that represents the contents of the ordered set, formatted as a property list. /// </summary> /// <param name="locale">An NSLocale object or an NSDictionary object that specifies options used for formatting each of the ordered set’s elements (where recognized). Specify nil if you don’t want the elements formatted.</param> [iOSVersion(5)] [Export("descriptionWithLocale")] [return:Optional] public virtual string DescriptionWithLocale([Optional] AnyObject locale) { return default(string); } /// <summary> /// Returns a string that represents the contents of the ordered set, formatted as a property list. /// </summary> /// <param name="locale">An NSLocale object or an NSDictionary object that specifies options used for formatting each of the array’s elements (where recognized). Specify nil if you don’t want the elements formatted.</param> /// <param name="indent">Specifies a level of indentation, to make the output more readable: the indentation is (4 spaces) * level.</param> [iOSVersion(5)] [Export("descriptionWithLocale")] public virtual string DescriptionWithLocale([Optional] AnyObject locale, int indent) { return default(string); } /// <summary> /// The number of members in the set. (read-only) /// </summary> [iOSVersion(5)] [Export("count")] public int Count { get; private set; } /// <summary> /// The first object in the ordered set. (read-only) /// </summary> [iOSVersion(5)] [Export("firstObject")] [Optional] public AnyObject FirstObject { get; private set; } /// <summary> /// The last object in the ordered set. (read-only) /// </summary> [iOSVersion(5)] [Export("lastObject")] [Optional] public AnyObject LastObject { get; private set; } /// <summary> /// An ordered set in the reverse order. (read-only) /// </summary> [iOSVersion(5)] [Export("reversedOrderedSet")] public NSOrderedSet ReversedOrderedSet { get; private set; } /// <summary> /// A string that represents the contents of the ordered set, formatted as a property list. (read-only) /// </summary> [iOSVersion(5)] [Export("description")] public string Description { get; private set; } /// <summary> /// A representation of the ordered set as an array. (read-only) /// </summary> [iOSVersion(5)] [Export("array")] public AnyObject[] Array { get; private set; } /// <summary> /// A representation of the set containing the contents of the ordered set. (read-only) /// </summary> [iOSVersion(5)] [Export("set")] public NSSet Set { get; private set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSOrthography.cs b/CocoaSharp/Foundation/NSOrthography.cs
index 77fbf08a..bf703c0b 100644
--- a/CocoaSharp/Foundation/NSOrthography.cs
+++ b/CocoaSharp/Foundation/NSOrthography.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSOrthography class describes the linguistic content of a piece of text, typically used for the purposes of spelling and grammar checking. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/NSOrthography_Class/index.html#//apple_ref/occ/cl/NSOrthography"/> [iOSVersion(4)] public class NSOrthography : NSObject//, AnyObject, NSCoding, NSCopying, NSObjectProtocol { /// <summary> /// Creates and returns an orthography instance with the specified dominant script and language map. /// </summary> /// <param name="dominantScript">The dominant script.</param> /// <param name="languageMap">A dictionary containing the language map.</param> [iOSVersion(4)] public NSOrthography(string dominantScript, Dictionary<NSObject, AnyObject> languageMap) { } /// <summary> /// Returns the list of languages for the specified script. /// </summary> /// <param name="script">The script.</param> [iOSVersion(4)] [Export("languagesForScript")] public AnyObject[] LanguagesForScript(string script) { return default(AnyObject[]); } /// <summary> /// Returns the dominant language for the specified script. /// </summary> /// <param name="script">The script.</param> [iOSVersion(4)] [Export("dominantLanguageForScript")] public string DominantLanguageForScript(string script) { return default(string); } /// <summary> /// The dominant script for the text. (read-only) /// </summary> [iOSVersion(4)] [Export("dominantScript")] public string DominantScript { get; private set; } /// <summary> /// A dictionary that map script tags to arrays of language tags. (read-only) /// </summary> [iOSVersion(4)] [Export("languageMap")] public Dictionary<NSObject, AnyObject> LanguageMap { get; private set; } /// <summary> /// Returns an array containing all the languages appearing in the values of the language map. (read-only) /// </summary> [iOSVersion(4)] [Export("allLanguages")] public AnyObject[] AllLanguages { get; private set; } /// <summary> /// Returns an array containing all the scripts appearing as keys in the language map. (read-only) /// </summary> [iOSVersion(4)] [Export("allScripts")] public AnyObject[] AllScripts { get; private set; } /// <summary> /// Returns the first language in the list of languages for the dominant script. (read-only) /// </summary> [iOSVersion(4)] [Export("dominantLanguage")] public string DominantLanguage { get; private set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSOrthography class describes the linguistic content of a piece of text, typically used for the purposes of spelling and grammar checking. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/NSOrthography_Class/index.html#//apple_ref/occ/cl/NSOrthography"/> [iOSVersion(4)] [Export("")] public class NSOrthography : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSObjectProtocol, Printable { public NSOrthography() { } /// <summary> /// Creates and returns an orthography instance with the specified dominant script and language map. /// </summary> /// <param name="dominantScript">The dominant script.</param> /// <param name="languageMap">A dictionary containing the language map.</param> [iOSVersion(4)] public NSOrthography(string dominantScript, Dictionary<NSObject, AnyObject> languageMap) { } /// <summary> /// Returns the list of languages for the specified script. /// </summary> /// <param name="script">The script.</param> [iOSVersion(4)] [Export("languagesForScript")] public virtual AnyObject[] LanguagesForScript(string script) { return default(AnyObject[]); } /// <summary> /// Returns the dominant language for the specified script. /// </summary> /// <param name="script">The script.</param> [iOSVersion(4)] [Export("dominantLanguageForScript")] public virtual string DominantLanguageForScript(string script) { return default(string); } /// <summary> /// The dominant script for the text. (read-only) /// </summary> [iOSVersion(4)] [Export("dominantScript")] public string DominantScript { get; private set; } /// <summary> /// A dictionary that map script tags to arrays of language tags. (read-only) /// </summary> [iOSVersion(4)] [Export("languageMap")] public Dictionary<NSObject, AnyObject> LanguageMap { get; private set; } /// <summary> /// Returns an array containing all the languages appearing in the values of the language map. (read-only) /// </summary> [iOSVersion(4)] [Export("allLanguages")] public AnyObject[] AllLanguages { get; private set; } /// <summary> /// Returns an array containing all the scripts appearing as keys in the language map. (read-only) /// </summary> [iOSVersion(4)] [Export("allScripts")] public AnyObject[] AllScripts { get; private set; } /// <summary> /// Returns the first language in the list of languages for the dominant script. (read-only) /// </summary> [iOSVersion(4)] [Export("dominantLanguage")] public string DominantLanguage { get; private set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSOutputStream.cs b/CocoaSharp/Foundation/NSOutputStream.cs
index da34d431..c1fe3402 100644
--- a/CocoaSharp/Foundation/NSOutputStream.cs
+++ b/CocoaSharp/Foundation/NSOutputStream.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSOutputStream class is a subclass of NSStream that provides write-only stream functionality. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSOutputStream_Class/index.html#//apple_ref/occ/cl/NSOutputStream"/> [iOSVersion(2)] public class NSOutputStream : NSStream//, AnyObject, NSObjectProtocol { /// <summary> /// Creates and returns an initialized output stream that will write stream data to memory. /// </summary> [iOSVersion(2)] [Export("outputStreamToMemory")] public static NSOutputStream OutputStreamToMemory() { return default(NSOutputStream); } /// <summary> /// Creates and returns an initialized output stream for writing to a specified file. /// </summary> /// <param name="path">The path to the file the output stream will write to.</param> /// <param name="append">true if newly written data should be appended to any existing file contents, false otherwise.</param> [iOSVersion(2)] [Export("outputStreamToFileAtPath")] public static NSOutputStream OutputStreamToFileAtPath(string path, bool append) { return default(NSOutputStream); } /// <summary> /// Returns an initialized output stream that will write to memory. /// </summary> /// <param name="toMemory"></param> [iOSVersion(2)] public NSOutputStream(Action toMemory) { } /// <summary> /// Returns an initialized output stream that can write to a provided buffer. /// </summary> /// <param name="toBuffer">The buffer the output stream will write to.</param> /// <param name="capacity">The size of the buffer in bytes.</param> [iOSVersion(2)] public NSOutputStream(UnsafePointer<UInt8> toBuffer, int capacity) { } /// <summary> /// Returns an initialized output stream for writing to a specified file. /// </summary> /// <param name="toFileAtPath">The path to the file the output stream will write to.</param> /// <param name="append">true if newly written data should be appended to any existing file contents, false otherwise.</param> [iOSVersion(2)] [Export("convenience init")] public NSOutputStream(string toFileAtPath, bool append) { } /// <summary> /// Returns an initialized output stream for writing to a specified URL. /// </summary> /// <param name="URL">The URL to the file the output stream will write to.</param> /// <param name="append">true if newly written data should be appended to any existing file contents, false otherwise.</param> [iOSVersion(4)] public NSOutputStream(NSURL URL, bool append) { } /// <summary> /// Writes the contents of a provided data buffer to the receiver. /// </summary> /// <param name="buffer">The data to write.</param> /// <param name="maxLength">The length of the data buffer, in bytes.</param> [iOSVersion(2)] [Export("write")] public int Write(ConstUnsafePointer<UInt8> buffer, int maxLength) { return default(int); } /// <summary> /// A boolean value that indicates whether the receiver can be written to. (read-only) /// </summary> [iOSVersion(2)] [Export("hasSpaceAvailable")] public bool HasSpaceAvailable { get; private set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSOutputStream class is a subclass of NSStream that provides write-only stream functionality. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSOutputStream_Class/index.html#//apple_ref/occ/cl/NSOutputStream"/> [iOSVersion(2)] [Export("")] public class NSOutputStream : NSStream//, AnyObject, CVarArgType, Equatable, Hashable, NSObjectProtocol, Printable { public NSOutputStream() { } /// <summary> /// Creates and returns an initialized output stream that will write stream data to memory. /// </summary> [iOSVersion(2)] [Export("outputStreamToMemory")] [return:Unwrapped] public static NSOutputStream OutputStreamToMemory() { return default(NSOutputStream); } /// <summary> /// Returns an initialized output stream that will write to memory. /// </summary> /// <param name="toMemory"></param> [iOSVersion(2)] public NSOutputStream(Action toMemory) { } /// <summary> /// Returns an initialized output stream that can write to a provided buffer. /// </summary> /// <param name="toBuffer">The buffer the output stream will write to.</param> /// <param name="capacity">The size of the buffer in bytes.</param> [iOSVersion(2)] public NSOutputStream(UnsafeMutablePointer<UInt8> toBuffer, int capacity) { } /// <summary> /// Writes the contents of a provided data buffer to the receiver. /// </summary> /// <param name="buffer">The data to write.</param> /// <param name="maxLength">The length of the data buffer, in bytes.</param> [iOSVersion(2)] [Export("write")] public virtual int Write(UnsafePointer<UInt8> buffer, int maxLength) { return default(int); } /// <summary> /// A boolean value that indicates whether the receiver can be written to. (read-only) /// </summary> [iOSVersion(2)] [Export("hasSpaceAvailable")] public bool HasSpaceAvailable { get; private set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSPipe.cs b/CocoaSharp/Foundation/NSPipe.cs
index b36379b6..7eb08cbb 100644
--- a/CocoaSharp/Foundation/NSPipe.cs
+++ b/CocoaSharp/Foundation/NSPipe.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSPipe objects provide an object-oriented interface for accessing pipes. An NSPipe object represents both ends of a pipe and enables communication through the pipe. A pipe is a one-way communications channel between related processes; one process writes data, while the other process reads that data. The data that passes through the pipe is buffered; the size of the buffer is determined by the underlying operating system. NSPipe is an abstract class, the public interface of a class cluster. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSPipe_Class/index.html#//apple_ref/occ/cl/NSPipe"/> [iOSVersion(2)] public class NSPipe : NSObject//, AnyObject, NSObjectProtocol { /// <summary> /// The receiver's read file handle. (read-only) /// </summary> [iOSVersion(2)] [Export("fileHandleForReading")] public NSFileHandle FileHandleForReading { get; private set; } /// <summary> /// The receiver's write file handle. (read-only) /// </summary> [iOSVersion(2)] [Export("fileHandleForWriting")] public NSFileHandle FileHandleForWriting { get; private set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSPipe objects provide an object-oriented interface for accessing pipes. An NSPipe object represents both ends of a pipe and enables communication through the pipe. A pipe is a one-way communications channel between related processes; one process writes data, while the other process reads that data. The data that passes through the pipe is buffered; the size of the buffer is determined by the underlying operating system. NSPipe is an abstract class, the public interface of a class cluster. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSPipe_Class/index.html#//apple_ref/occ/cl/NSPipe"/> [iOSVersion(2)] [Export("")] public class NSPipe : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSObjectProtocol, Printable { public NSPipe() { } /// <summary> /// The receiver&#39;s read file handle. (read-only) /// </summary> [iOSVersion(2)] [Export("fileHandleForReading")] public NSFileHandle FileHandleForReading { get; private set; } /// <summary> /// The receiver&#39;s write file handle. (read-only) /// </summary> [iOSVersion(2)] [Export("fileHandleForWriting")] public NSFileHandle FileHandleForWriting { get; private set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSPointerArray.cs b/CocoaSharp/Foundation/NSPointerArray.cs
index 5fb64d58..cc00bce3 100644
--- a/CocoaSharp/Foundation/NSPointerArray.cs
+++ b/CocoaSharp/Foundation/NSPointerArray.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSPointerArray is a mutable collection modeled after NSArray but it can also hold NULL values, which can be inserted or extracted (and which contribute to the object’s count). Moreover, unlike traditional arrays, you can set the count of the array directly. In a garbage collected environment, if you specify a zeroing weak memory configuration, if an element is collected it is replaced by a NULL value. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSPointerArray_Class/index.html#//apple_ref/occ/cl/NSPointerArray"/> [iOSVersion(6)] public class NSPointerArray : NSObject//, AnyObject, NSCoding, NSCopying, NSFastEnumeration, NSObjectProtocol { /// <summary> /// Initializes the receiver to use the given options. /// </summary> /// <param name="options">The pointer functions options for the new instance.</param> [iOSVersion(6)] public NSPointerArray(NSPointerFunctionsOptions options) { } /// <summary> /// Initializes the receiver to use the given functions. /// </summary> /// <param name="pointerFunctions">The pointer functions for the new instance.</param> [iOSVersion(6)] public NSPointerArray(NSPointerFunctions pointerFunctions) { } /// <summary> /// Returns a new pointer array initialized to use the given options. /// </summary> /// <param name="options">The pointer functions options for the new instance.</param> [iOSVersion(6)] [Export("pointerArrayWithOptions")] public static NSPointerArray PointerArrayWithOptions(NSPointerFunctionsOptions options) { return default(NSPointerArray); } /// <summary> /// A new pointer array initialized to use the given functions. /// </summary> /// <param name="functions">The pointer functions for the new instance.</param> [iOSVersion(6)] [Export("pointerArrayWithPointerFunctions")] public static NSPointerArray PointerArrayWithPointerFunctions(NSPointerFunctions functions) { return default(NSPointerArray); } /// <summary> /// Returns a new pointer array that maintains strong references to its elements. /// </summary> [iOSVersion(6)] [Export("strongObjectsPointerArray")] public static NSPointerArray StrongObjectsPointerArray() { return default(NSPointerArray); } /// <summary> /// Returns a new pointer array that maintains weak references to its elements. /// </summary> [iOSVersion(6)] [Export("weakObjectsPointerArray")] public static NSPointerArray WeakObjectsPointerArray() { return default(NSPointerArray); } /// <summary> /// Returns the pointer at a given index. /// </summary> /// <param name="index">The index of an element in the receiver. This value must be less than the count of the receiver.</param> [iOSVersion(6)] [Export("pointerAtIndex")] public UnsafePointer<Action> PointerAtIndex(int index) { return default(UnsafePointer<Action>); } /// <summary> /// Adds a given pointer to the receiver. /// </summary> /// <param name="pointer">The pointer to add. This value may be NULL.</param> [iOSVersion(6)] [Export("addPointer")] public void AddPointer(UnsafePointer<Action> pointer) { } /// <summary> /// Removes the pointer at a given index. /// </summary> /// <param name="index">The index of an element in the receiver. This value must be less than the count of the receiver.</param> [iOSVersion(6)] [Export("removePointerAtIndex")] public void RemovePointerAtIndex(int index) { } /// <summary> /// Inserts a pointer at a given index. /// </summary> /// <param name="item">The pointer to add.</param> /// <param name="atIndex">The index of an element in the receiver. This value must be less than the count of the receiver.</param> [iOSVersion(6)] [Export("insertPointer")] public void InsertPointer(UnsafePointer<Action> item, int atIndex) { } /// <summary> /// Replaces the pointer at a given index. /// </summary> /// <param name="index">The index of an element in the receiver. This value must be less than the count of the receiver.</param> /// <param name="withPointer">The item with which to replace the element at index. This value may be NULL.</param> [iOSVersion(6)] [Export("replacePointerAtIndex")] public void ReplacePointerAtIndex(int index, UnsafePointer<Action> withPointer) { } /// <summary> /// Removes NULL values from the receiver. /// </summary> [iOSVersion(6)] [Export("compact")] public void Compact() { } /// <summary> /// Returns the number of elements in the receiver. /// </summary> [iOSVersion(6)] [Export("count")] public int Count { get; set; } /// <summary> /// Returns an array containing all the objects in the receiver. /// </summary> [iOSVersion(6)] [Export("allObjects")] public AnyObject[] AllObjects { get; private set; } /// <summary> /// Returns a new NSPointerFunctions object reflecting the functions in use by the receiver. /// </summary> [iOSVersion(6)] [Export("pointerFunctions")] public NSPointerFunctions PointerFunctions { get; private set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSPointerArray is a mutable collection modeled after NSArray but it can also hold NULL values, which can be inserted or extracted (and which contribute to the object’s count). Moreover, unlike traditional arrays, you can set the count of the array directly. In a garbage collected environment, if you specify a zeroing weak memory configuration, if an element is collected it is replaced by a NULL value. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSPointerArray_Class/index.html#//apple_ref/occ/cl/NSPointerArray"/> [iOSVersion(6)] [Export("")] public class NSPointerArray : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSFastEnumeration, NSObjectProtocol, Printable { public NSPointerArray() { } /// <summary> /// Initializes the receiver to use the given options. /// </summary> /// <param name="options">The pointer functions options for the new instance.</param> [iOSVersion(6)] public NSPointerArray(NSPointerFunctionsOptions options) { } /// <summary> /// Initializes the receiver to use the given functions. /// </summary> /// <param name="pointerFunctions">The pointer functions for the new instance.</param> [iOSVersion(6)] public NSPointerArray(NSPointerFunctions pointerFunctions) { } /// <summary> /// Returns a new pointer array that maintains strong references to its elements. /// </summary> [iOSVersion(6)] [Export("strongObjectsPointerArray")] public static NSPointerArray StrongObjectsPointerArray() { return default(NSPointerArray); } /// <summary> /// Returns a new pointer array that maintains weak references to its elements. /// </summary> [iOSVersion(6)] [Export("weakObjectsPointerArray")] public static NSPointerArray WeakObjectsPointerArray() { return default(NSPointerArray); } /// <summary> /// Returns the pointer at a given index. /// </summary> /// <param name="index">The index of an element in the receiver. This value must be less than the count of the receiver.</param> [iOSVersion(6)] [Export("pointerAtIndex")] public virtual UnsafeMutablePointer PointerAtIndex(int index) { return default(UnsafeMutablePointer); } /// <summary> /// Adds a given pointer to the receiver. /// </summary> /// <param name="pointer">The pointer to add. This value may be NULL.</param> [iOSVersion(6)] [Export("addPointer")] public virtual void AddPointer(UnsafeMutablePointer pointer) { } /// <summary> /// Removes the pointer at a given index. /// </summary> /// <param name="index">The index of an element in the receiver. This value must be less than the count of the receiver.</param> [iOSVersion(6)] [Export("removePointerAtIndex")] public virtual void RemovePointerAtIndex(int index) { } /// <summary> /// Inserts a pointer at a given index. /// </summary> /// <param name="item">The pointer to add.</param> /// <param name="atIndex">The index of an element in the receiver. This value must be less than the count of the receiver.</param> [iOSVersion(6)] [Export("insertPointer")] public virtual void InsertPointer(UnsafeMutablePointer item, int atIndex) { } /// <summary> /// Replaces the pointer at a given index. /// </summary> /// <param name="index">The index of an element in the receiver. This value must be less than the count of the receiver.</param> /// <param name="withPointer">The item with which to replace the element at index. This value may be NULL.</param> [iOSVersion(6)] [Export("replacePointerAtIndex")] public virtual void ReplacePointerAtIndex(int index, UnsafeMutablePointer withPointer) { } /// <summary> /// Removes NULL values from the receiver. /// </summary> [iOSVersion(6)] [Export("compact")] public virtual void Compact() { } /// <summary> /// The number of elements in the receiver. /// </summary> [iOSVersion(6)] [Export("count")] public int Count { get; set; } /// <summary> /// All the objects in the receiver. (read-only) /// </summary> [iOSVersion(6)] [Export("allObjects")] public AnyObject[] AllObjects { get; private set; } /// <summary> /// The functions in use by the receiver. (read-only) /// </summary> [iOSVersion(6)] [Export("pointerFunctions")] public NSPointerFunctions PointerFunctions { get; private set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSPointerFunctions.cs b/CocoaSharp/Foundation/NSPointerFunctions.cs
index 29c9a111..9cb52fe8 100644
--- a/CocoaSharp/Foundation/NSPointerFunctions.cs
+++ b/CocoaSharp/Foundation/NSPointerFunctions.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// An instance of NSPointerFunctions defines callout functions appropriate for managing a pointer reference held somewhere else. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSPointerFunctions_Class/index.html#//apple_ref/occ/cl/NSPointerFunctions"/> [iOSVersion(6)] public class NSPointerFunctions : NSObject//, AnyObject, NSCopying, NSObjectProtocol { /// <summary> /// Returns an NSPointerFunctions object initialized with the given options. /// </summary> /// <param name="options">The options for the new NSPointerFunctions object.</param> [iOSVersion(6)] public NSPointerFunctions(NSPointerFunctionsOptions options) { } /// <summary> /// Returns a new NSPointerFunctions object initialized with the given options. /// </summary> /// <param name="options">The options for the new NSPointerFunctions object.</param> [iOSVersion(6)] [Export("pointerFunctionsWithOptions")] public static NSPointerFunctions PointerFunctionsWithOptions(NSPointerFunctionsOptions options) { return default(NSPointerFunctions); } /// <summary> /// The hash function. /// </summary> [iOSVersion(6)] [Export("hashFunction")] public CFunctionPointer<Func<Action<ConstUnsafePointer<Action>, CFunctionPointer<Func<ConstUnsafePointer<Action>, int>>, int>>> HashFunction { get; set; } /// <summary> /// The function used to compare pointers. /// </summary> [iOSVersion(6)] [Export("isEqualFunction")] public CFunctionPointer<Func<ConstUnsafePointer<Action>, ConstUnsafePointer<Action>, CFunctionPointer<Func<ConstUnsafePointer<Action>, int>>, bool>> IsEqualFunction { get; set; } /// <summary> /// The function used to determine the size of pointers. /// </summary> [iOSVersion(6)] [Export("sizeFunction")] public CFunctionPointer<Func<ConstUnsafePointer<Action>, int>> SizeFunction { get; set; } //TODO: double check these /// <summary> /// The function used to describe elements. /// </summary> [iOSVersion(6)] [Export("descriptionFunction")] public CFunctionPointer<Func<ConstUnsafePointer<Action>, string>> DescriptionFunction { get; set; } /// <summary> /// The function used to acquire memory. /// </summary> [iOSVersion(6)] [Export("acquireFunction")] public CFunctionPointer<Func<ConstUnsafePointer<Action>, CFunctionPointer<Func<ConstUnsafePointer<Action>, int>>, bool, UnsafePointer<Action>>> AcquireFunction { get; set; } /// <summary> /// The function used to relinquish memory. /// </summary> [iOSVersion(6)] [Export("relinquishFunction")] public CFunctionPointer<Action<ConstUnsafePointer<Action>, CFunctionPointer<Func<ConstUnsafePointer<Action>, int>>>> RelinquishFunction { get; set; } /// <summary> /// Specifies whether, in a garbage collected environment, pointers should be assigned using a strong write barrier. /// </summary> [iOSVersion(6)] [Export("usesStrongWriteBarrier")] public bool UsesStrongWriteBarrier { get; set; } /// <summary> /// Specifies whether, in a garbage collected environment, pointers should use weak read and write barriers. /// </summary> [iOSVersion(6)] [Export("usesWeakReadAndWriteBarriers")] public bool UsesWeakReadAndWriteBarriers { get; set; } /// <summary> /// Specify memory and personality options for an NSPointerFunctions object. /// </summary> public int NSPointerFunctionsStrongMemory { get; set; } } /// <summary> /// Defines the memory and personality options for an NSPointerFunctions object. /// </summary> [iOSVersion(6)] public struct NSPointerFunctionsOptions { static public implicit operator NSPointerFunctionsOptions(int value) { return default(NSPointerFunctionsOptions); } static public implicit operator int(NSPointerFunctionsOptions value) { return default(int); } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// An instance of NSPointerFunctions defines callout functions appropriate for managing a pointer reference held somewhere else. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSPointerFunctions_Class/index.html#//apple_ref/occ/cl/NSPointerFunctions"/> [iOSVersion(6)] [Export("")] public class NSPointerFunctions : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSCopying, NSObjectProtocol, Printable { public NSPointerFunctions() { } /// <summary> /// Returns an NSPointerFunctions object initialized with the given options. /// </summary> /// <param name="options">The options for the new NSPointerFunctions object.</param> [iOSVersion(6)] public NSPointerFunctions(NSPointerFunctionsOptions options) { } /// <summary> /// The hash function. /// </summary> [iOSVersion(6)] [Export("hashFunction")] public CFunctionPointer<Func<UnsafePointer, CFunctionPointer<Func<UnsafePointer, int>>, int>> HashFunction { get; set; } /// <summary> /// The function used to compare pointers. /// </summary> [iOSVersion(6)] [Export("isEqualFunction")] public CFunctionPointer<Func<UnsafePointer, UnsafePointer, CFunctionPointer<Func<UnsafePointer, int>>, bool>> IsEqualFunction { get; set; } /// <summary> /// The function used to determine the size of pointers. /// </summary> [iOSVersion(6)] [Export("sizeFunction")] public CFunctionPointer<Func<UnsafePointer, int>> SizeFunction { get; set; } /// <summary> /// The function used to describe elements. /// </summary> [iOSVersion(6)] [Export("descriptionFunction")] public CFunctionPointer<Func<UnsafePointer, string>> DescriptionFunction { get; set; } /// <summary> /// The function used to acquire memory. /// </summary> [iOSVersion(6)] [Export("acquireFunction")] public CFunctionPointer<Func<UnsafePointer, CFunctionPointer<Func<UnsafePointer, int>>, UnsafeMutablePointer>> AcquireFunction { get; set; } /// <summary> /// The function used to relinquish memory. /// </summary> [iOSVersion(6)] [Export("relinquishFunction")] public CFunctionPointer<Action<UnsafePointer, CFunctionPointer<Func<UnsafePointer, int>>>> RelinquishFunction { get; set; } /// <summary> /// Specifies whether, in a garbage collected environment, pointers should be assigned using a strong write barrier. /// </summary> [iOSVersion(6)] [Export("usesStrongWriteBarrier")] public bool UsesStrongWriteBarrier { get; set; } /// <summary> /// Specifies whether, in a garbage collected environment, pointers should use weak read and write barriers. /// </summary> [iOSVersion(6)] [Export("usesWeakReadAndWriteBarriers")] public bool UsesWeakReadAndWriteBarriers { get; set; } /// <summary> /// Specify memory and personality options for an NSPointerFunctions object. /// </summary> public int NSPointerFunctionsStrongMemory { get; private set; } } /// <summary> /// Defines the memory and personality options for an NSPointerFunctions object. /// </summary> [iOSVersion(6)] public struct NSPointerFunctionsOptions { static public implicit operator NSPointerFunctionsOptions(int value) { return default(NSPointerFunctionsOptions); } static public implicit operator int(NSPointerFunctionsOptions value) { return default(int); } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSPort.cs b/CocoaSharp/Foundation/NSPort.cs
index 47d704de..7290c813 100644
--- a/CocoaSharp/Foundation/NSPort.cs
+++ b/CocoaSharp/Foundation/NSPort.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSPort is an abstract class that represents a communication channel. Communication occurs between NSPort objects, which typically reside in different threads or tasks. The distributed objects system uses NSPort objects to send NSPortMessage objects back and forth. You should implement interapplication communication using distributed objects whenever possible and use NSPort objects only when necessary. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSPort_Class/index.html#//apple_ref/occ/cl/NSPort"/> [iOSVersion(2)] public class NSPort : NSObject//, AnyObject, NSCoding, NSCopying, NSObjectProtocol { /// <summary> /// Marks the receiver as invalid and posts an NSPortDidBecomeInvalidNotification to the default notification center. /// </summary> [iOSVersion(2)] [Export("invalidate")] public void Invalidate() { } /// <summary> /// Sets the receiver’s delegate to a given object. /// </summary> /// <param name="anObject">The delegate for the receiver.</param> [iOSVersion(2)] [Export("setDelegate")] public void SetDelegate(NSPortDelegate anObject) { } /// <summary> /// Returns the receiver’s delegate. /// </summary> [iOSVersion(2)] [Export("delegate")] public NSPortDelegate Delegate() { return default(NSPortDelegate); } /// <summary> /// This method is provided for subclasses that have custom types of NSPort. /// </summary> /// <param name="limitDate">The last instant that a message may be sent.</param> /// <param name="components">The message components.</param> /// <param name="from">The receive port.</param> /// <param name="reserved">The number of bytes reserved for the header.</param> [iOSVersion(2)] [Export("sendBeforeDate")] public bool SendBeforeDate(NSDate limitDate, NSMutableArray components, NSPort from, int reserved) { return default(bool); } /// <summary> /// This method is provided for subclasses that have custom types of NSPort. /// </summary> /// <param name="limitDate">The last instant that a message may be sent.</param> /// <param name="msgid">The message ID.</param> /// <param name="components">The message components.</param> /// <param name="from">The receive port.</param> /// <param name="reserved">The number of bytes reserved for the header.</param> [iOSVersion(2)] [Export("sendBeforeDate")] public bool SendBeforeDate(NSDate limitDate, int msgid, NSMutableArray components, NSPort from, int reserved) { return default(bool); } /// <summary> /// This method should be implemented by a subclass to stop monitoring of a port when removed from a give run loop in a given input mode. /// </summary> /// <param name="runLoop">The run loop from which to remove the receiver.</param> /// <param name="forMode">The run loop mode from which to remove the receiver</param> [iOSVersion(2)] [Export("removeFromRunLoop")] public void RemoveFromRunLoop(NSRunLoop runLoop, string forMode) { } /// <summary> /// This method should be implemented by a subclass to set up monitoring of a port when added to a given run loop in a given input mode. /// </summary> /// <param name="runLoop">The run loop to which to add the receiver.</param> /// <param name="forMode">The run loop mode to which to add the receiver</param> [iOSVersion(2)] [Export("scheduleInRunLoop")] public void ScheduleInRunLoop(NSRunLoop runLoop, string forMode) { } /// <summary> /// Returns the number of bytes of space reserved by the receiver for sending data. /// </summary> [iOSVersion(2)] [Export("reservedSpaceLength")] public int ReservedSpaceLength { get; private set; } } /// <summary> /// An NSSocketPort object cannot detect when its connection to a remote port is lost, even if the remote port is on the same machine. Therefore, it cannot invalidate itself and post this notification. Instead, you must detect the timeout error when the next message is sent. /// </summary> [iOSVersion(2)] public class NSPortDidBecomeInvalidNotification : NSNotification { public NSPortDidBecomeInvalidNotification() : base("", null) { } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSPort is an abstract class that represents a communication channel. Communication occurs between NSPort objects, which typically reside in different threads or tasks. The distributed objects system uses NSPort objects to send NSPortMessage objects back and forth. You should implement interapplication communication using distributed objects whenever possible and use NSPort objects only when necessary. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSPort_Class/index.html#//apple_ref/occ/cl/NSPort"/> [iOSVersion(2)] [Export("")] public class NSPort : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSObjectProtocol, Printable { public NSPort() { } /// <summary> /// Marks the receiver as invalid and posts an NSPortDidBecomeInvalidNotification to the default notification center. /// </summary> [iOSVersion(2)] [Export("invalidate")] public virtual void Invalidate() { } /// <summary> /// Sets the receiver’s delegate to a given object. /// </summary> /// <param name="anObject">The delegate for the receiver.</param> [iOSVersion(2)] [Export("setDelegate")] public virtual void SetDelegate([Optional] NSPortDelegate anObject) { } /// <summary> /// Returns the receiver’s delegate. /// </summary> [iOSVersion(2)] [Export("delegate")] [return:Optional] public virtual NSPortDelegate Delegate() { return default(NSPortDelegate); } /// <summary> /// This method is provided for subclasses that have custom types of NSPort. /// </summary> /// <param name="limitDate">The last instant that a message may be sent.</param> /// <param name="components">The message components.</param> /// <param name="from">The receive port.</param> /// <param name="reserved">The number of bytes reserved for the header.</param> [iOSVersion(2)] [Export("sendBeforeDate")] public virtual bool SendBeforeDate(NSDate limitDate, NSMutableArray components, NSPort from, int reserved) { return default(bool); } /// <summary> /// This method is provided for subclasses that have custom types of NSPort. /// </summary> /// <param name="limitDate">The last instant that a message may be sent.</param> /// <param name="msgid">The message ID.</param> /// <param name="components">The message components.</param> /// <param name="from">The receive port.</param> /// <param name="reserved">The number of bytes reserved for the header.</param> [iOSVersion(2)] [Export("sendBeforeDate")] public virtual bool SendBeforeDate(NSDate limitDate, int msgid, NSMutableArray components, NSPort from, int reserved) { return default(bool); } /// <summary> /// This method should be implemented by a subclass to stop monitoring of a port when removed from a give run loop in a given input mode. /// </summary> /// <param name="runLoop">The run loop from which to remove the receiver.</param> /// <param name="forMode">The run loop mode from which to remove the receiver</param> [iOSVersion(2)] [Export("removeFromRunLoop")] public virtual void RemoveFromRunLoop(NSRunLoop runLoop, string forMode) { } /// <summary> /// This method should be implemented by a subclass to set up monitoring of a port when added to a given run loop in a given input mode. /// </summary> /// <param name="runLoop">The run loop to which to add the receiver.</param> /// <param name="forMode">The run loop mode to which to add the receiver</param> [iOSVersion(2)] [Export("scheduleInRunLoop")] public virtual void ScheduleInRunLoop(NSRunLoop runLoop, string forMode) { } /// <summary> /// A Boolean value that indicates whether the receiver is valid. (read-only) /// </summary> [iOSVersion(8)] [Export("valid")] public bool Valid { get; private set; } /// <summary> /// The number of bytes of space reserved by the receiver for sending data. (read-only) /// </summary> [iOSVersion(2)] [Export("reservedSpaceLength")] public int ReservedSpaceLength { get; private set; } } /// <summary> /// Posted from the invalidate method, which is invoked when the NSPort is deallocated or when it notices that its communication channel has been damaged. The notification object is the NSPort object that has become invalid. This notification does not contain a userInfo dictionary. /// An NSSocketPort object cannot detect when its connection to a remote port is lost, even if the remote port is on the same machine. Therefore, it cannot invalidate itself and post this notification. Instead, you must detect the timeout error when the next message is sent. /// The NSPort object posting this notification is no longer useful, so all receivers should unregister themselves for any notifications involving the NSPort. A method receiving this notification should check to see which port became invalid before attempting to do anything. In particular, observers that receive all NSPortDidBecomeInvalidNotification messages should be aware that communication with the window server is handled through an NSPort. If this port becomes invalid, drawing operations will cause a fatal error. /// </summary> public class NSPortDidBecomeInvalidNotification : NSNotification { public NSPortDidBecomeInvalidNotification() : base("", null) { } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSPredicate.cs b/CocoaSharp/Foundation/NSPredicate.cs
index 81b0c316..f5a67569 100644
--- a/CocoaSharp/Foundation/NSPredicate.cs
+++ b/CocoaSharp/Foundation/NSPredicate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSPredicate class is used to define logical conditions used to constrain a search either for a fetch or for in-memory filtering. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSPredicate_Class/index.html#//apple_ref/occ/cl/NSPredicate"/> [iOSVersion(3)] public class NSPredicate : NSObject//, AnyObject, NSCoding, NSCopying, NSObjectProtocol, NSSecureCoding { /// <summary> /// Creates and returns a new predicate by substituting the values in a given array into a format string and parsing the result. /// </summary> /// <param name="format">The format string for the new predicate.</param> /// <param name="argumentArray">The arguments to substitute into predicateFormat. Values are substituted into predicateFormat in the order they appear in the array.</param> [iOSVersion(3)] public NSPredicate(string format, AnyObject[] argumentArray) { } /// <summary> /// Creates and returns a new predicate by substituting the values in an argument list into a format string and parsing the result. /// </summary> /// <param name="format">The format string for the new predicate.</param> /// <param name="arguments">The arguments to substitute into predicateFormat. Values are substituted into predicateFormat in the order they appear in the argument list.</param> [iOSVersion(3)] public NSPredicate(string format, CVaListPointer arguments) { } /// <summary> /// Returns a copy of the receiver with the receiver’s variables substituted by values specified in a given substitution variables dictionary. /// </summary> /// <param name="variables">The substitution variables dictionary. The dictionary must contain key-value pairs for all variables in the receiver.</param> [iOSVersion(3)] [Export("predicateWithSubstitutionVariables")] public NSPredicate PredicateWithSubstitutionVariables(Dictionary<NSObject, AnyObject> variables) { return default(NSPredicate); } /// <summary> /// Creates and returns a predicate that always evaluates to a given value. /// </summary> /// <param name="value">The value to which the new predicate should evaluate.</param> [iOSVersion(3)] public NSPredicate(bool value) { } /// <summary> /// Creates and returns a predicate that evaluates using a specified block object and bindings dictionary. /// </summary> /// <param name="block">The block is applied to the object to be evaluated. /// The block takes two arguments: /// evaluatedObject /// The object to be evaluated. /// bindings /// The substitution variables dictionary. The dictionary must contain key-value pairs for all variables in the receiver. /// The block returns true if the evaluatedObject evaluates to true, otherwise false.</param> [iOSVersion(4)] public NSPredicate(Func<AnyObject, Dictionary<NSObject, AnyObject>, bool> block) { } /// <summary> /// Returns a Boolean value that indicates whether a given object matches the conditions specified by the receiver. /// </summary> /// <param name="@object">The object against which to evaluate the receiver.</param> [iOSVersion(3)] [Export("evaluateWithObject")] public bool EvaluateWithObject(AnyObject @object) { return default(bool); } /// <summary> /// Returns a Boolean value that indicates whether a given object matches the conditions specified by the receiver after substituting in the values in a given variables dictionary. /// </summary> /// <param name="@object">The object against which to evaluate the receiver.</param> /// <param name="substitutionVariables">The substitution variables dictionary. The dictionary must contain key-value pairs for all variables in the receiver.</param> [iOSVersion(3)] [Export("evaluateWithObject")] public bool EvaluateWithObject(AnyObject @object, Dictionary<NSObject, AnyObject> substitutionVariables) { return default(bool); } /// <summary> /// Force a predicate that was securely decoded to allow evaluation. /// </summary> [iOSVersion(7)] [Export("allowEvaluation")] public void AllowEvaluation() { } /// <summary> /// The receiver’s format string. (read-only) /// </summary> [iOSVersion(3)] [Export("predicateFormat")] public string PredicateFormat { get; private set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSPredicate class is used to define logical conditions used to constrain a search either for a fetch or for in-memory filtering. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSPredicate_Class/index.html#//apple_ref/occ/cl/NSPredicate"/> [iOSVersion(3)] [Export("")] public class NSPredicate : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSObjectProtocol, NSSecureCoding, Printable { public NSPredicate() { } /// <summary> /// Creates and returns a new predicate by substituting the values in a given array into a format string and parsing the result. /// </summary> /// <param name="format">The format string for the new predicate.</param> /// <param name="argumentArray">The arguments to substitute into predicateFormat. Values are substituted into predicateFormat in the order they appear in the array.</param> [iOSVersion(3)] public NSPredicate(string format, AnyObject[] argumentArray) { } /// <summary> /// Creates and returns a new predicate by substituting the values in an argument list into a format string and parsing the result. /// </summary> /// <param name="format">The format string for the new predicate.</param> /// <param name="arguments">The arguments to substitute into predicateFormat. Values are substituted into predicateFormat in the order they appear in the argument list.</param> [iOSVersion(3)] public NSPredicate(string format, CVaListPointer arguments) { } /// <summary> /// Returns a copy of the receiver with the receiver’s variables substituted by values specified in a given substitution variables dictionary. /// </summary> /// <param name="variables">The substitution variables dictionary. The dictionary must contain key-value pairs for all variables in the receiver.</param> [iOSVersion(3)] [Export("predicateWithSubstitutionVariables")] [return:Unwrapped] public virtual NSPredicate PredicateWithSubstitutionVariables(Dictionary<NSObject, AnyObject> variables) { return default(NSPredicate); } /// <summary> /// Creates and returns a predicate that always evaluates to a given value. /// </summary> /// <param name="value">The value to which the new predicate should evaluate.</param> [iOSVersion(3)] public NSPredicate(bool value) { } /// <summary> /// Creates and returns a predicate that evaluates using a specified block object and bindings dictionary. /// </summary> /// <param name="block">The block is applied to the object to be evaluated. /// The block takes two arguments: /// evaluatedObject /// The object to be evaluated. /// bindings /// The substitution variables dictionary. The dictionary must contain key-value pairs for all variables in the receiver. /// The block returns true if the evaluatedObject evaluates to true, otherwise false.</param> [iOSVersion(4)] public NSPredicate(Func<AnyObject, Dictionary<NSObject, AnyObject>, bool> block) { } /// <summary> /// Returns a Boolean value that indicates whether a given object matches the conditions specified by the receiver. /// </summary> /// <param name="@object">The object against which to evaluate the receiver.</param> [iOSVersion(3)] [Export("evaluateWithObject")] public virtual bool EvaluateWithObject(AnyObject @object) { return default(bool); } /// <summary> /// Returns a Boolean value that indicates whether a given object matches the conditions specified by the receiver after substituting in the values in a given variables dictionary. /// </summary> /// <param name="@object">The object against which to evaluate the receiver.</param> /// <param name="substitutionVariables">The substitution variables dictionary. The dictionary must contain key-value pairs for all variables in the receiver.</param> [iOSVersion(3)] [Export("evaluateWithObject")] public virtual bool EvaluateWithObject(AnyObject @object, Dictionary<NSObject, AnyObject> substitutionVariables) { return default(bool); } /// <summary> /// Force a predicate that was securely decoded to allow evaluation. /// </summary> [iOSVersion(7)] [Export("allowEvaluation")] public virtual void AllowEvaluation() { } /// <summary> /// The receiver’s format string. (read-only) /// </summary> [iOSVersion(3)] [Export("predicateFormat")] public string PredicateFormat { get; private set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSProcessInfo.cs b/CocoaSharp/Foundation/NSProcessInfo.cs
index a6dbbe91..f30ea66e 100644
--- a/CocoaSharp/Foundation/NSProcessInfo.cs
+++ b/CocoaSharp/Foundation/NSProcessInfo.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSProcessInfo class provides methods to access information about the current process. Each process has a single, shared NSProcessInfo object, known as process information agent. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSProcessInfo_Class/index.html#//apple_ref/occ/cl/NSProcessInfo"/> [iOSVersion(2)] public class NSProcessInfo : NSObject//, AnyObject, NSObjectProtocol { /// <summary> /// Returns the process information agent for the process. /// </summary> [iOSVersion(2)] [Export("processInfo")] public static NSProcessInfo ProcessInfo() { return default(NSProcessInfo); } /// <summary> /// Returns a constant to indicate the operating system on which the process is executing. /// </summary> [iOSVersion(2)] [Export("operatingSystem")] public int OperatingSystem() { return default(int); } /// <summary> /// Returns a string containing the name of the operating system on which the process is executing. /// </summary> [iOSVersion(2)] [Export("operatingSystemName")] public string OperatingSystemName() { return default(string); } /// <summary> /// Returns a Boolean value indicating whether the version of the operating system on which the process is executing is the same or later than the given version. /// </summary> /// <param name="version">The operating system version to test against.</param> [iOSVersion(8)] [Export("isOperatingSystemAtLeastVersion")] public bool IsOperatingSystemAtLeastVersion(NSOperatingSystemVersion version) { return default(bool); } /// <summary> /// Begin an activity using the given options and reason. /// </summary> /// <param name="options">Options for the activity. See Activity Options for possible values.</param> /// <param name="reason">A string used in debugging to indicate the reason the activity began.</param> [iOSVersion(7)] [Export("beginActivityWithOptions")] public NSObjectProtocol BeginActivityWithOptions(NSActivityOptions options, string reason) { return default(NSObjectProtocol); } /// <summary> /// Ends the given activity. /// </summary> /// <param name="activity">An activity object returned by beginActivityWithOptions:reason:.</param> [iOSVersion(7)] [Export("endActivity")] public void EndActivity(NSObjectProtocol activity) { } /// <summary> /// Synchronously perform an activity defined by a given block using the given options. /// </summary> /// <param name="options">Options for the activity. See Activity Options for possible values.</param> /// <param name="reason">A string used in debugging to indicate the reason the activity began.</param> /// <param name="usingBlock">A block containing the work to be performed by the activity.</param> [iOSVersion(7)] [Export("performActivityWithOptions")] public void PerformActivityWithOptions(NSActivityOptions options, string reason, Action usingBlock) { } /// <summary> /// Array of strings with the command-line arguments for the process. /// </summary> [iOSVersion(2)] [Export("arguments")] public AnyObject[] Arguments { get; private set; } /// <summary> /// The variable names (keys) and their values in the environment from which the process was launched. /// </summary> [iOSVersion(2)] [Export("environment")] public Dictionary<NSObject, AnyObject> Environment { get; private set; } /// <summary> /// Global unique identifier for the process. (read-only) /// </summary> [iOSVersion(2)] [Export("globallyUniqueString")] public string GloballyUniqueString { get; private set; } /// <summary> /// The identifier of the process (often called process ID). /// </summary> [iOSVersion(2)] [Export("processIdentifier")] public int ProcessIdentifier { get; private set; } /// <summary> /// The name of the process. /// </summary> [iOSVersion(2)] [Export("processName")] public string ProcessName { get; set; } /// <summary> /// The name of the host computer on which the process is executing. (read-only) /// </summary> [iOSVersion(2)] [Export("hostName")] public string HostName { get; private set; } /// <summary> /// A string containing the version of the operating system on which the process is executing. (read-only) /// </summary> [iOSVersion(2)] [Export("operatingSystemVersionString")] public string OperatingSystemVersionString { get; private set; } /// <summary> /// The version of the operating system on which the process is executing. (read-only) /// </summary> [iOSVersion(8)] [Export("operatingSystemVersion")] public NSOperatingSystemVersion OperatingSystemVersion { get; private set; } /// <summary> /// The number of processing cores available on the computer. (read-only) /// </summary> [iOSVersion(2)] [Export("processorCount")] public int ProcessorCount { get; private set; } /// <summary> /// The number of active processing cores available on the computer. (read-only) /// </summary> [iOSVersion(2)] [Export("activeProcessorCount")] public int ActiveProcessorCount { get; private set; } /// <summary> /// The amount of physical memory on the computer in bytes. (read-only) /// </summary> [iOSVersion(2)] [Export("physicalMemory")] public UInt64 PhysicalMemory { get; private set; } /// <summary> /// The time interval since the computer was restarted. /// </summary> [iOSVersion(4)] [Export("systemUptime")] public NSTimeInterval SystemUptime { get; private set; } //TODO: these constants ///// <summary> ///// The following constants are provided by the NSProcessInfo class as return values for operatingSystem. ///// </summary> //public int NSHPUXOperatingSystem { get; set; } } /// <summary> /// Operating system version structure used with operatingSystemVersion and isOperatingSystemAtLeastVersion:. /// </summary> [iOSVersion(8)] public struct NSOperatingSystemVersion { int majorVersion { get; set; } int minorVersion { get; set; } int patchVersion { get; set; } } /// <summary> /// Option flags used with beginActivityWithOptions:reason: and performActivityWithOptions:reason:usingBlock:. /// </summary> [iOSVersion(7)] public enum NSActivityOptions { /// <summary> /// Flag to require the screen to stay powered on. /// </summary> [iOSVersion(7)] IdleDisplaySleepDisabled, /// <summary> /// Flag to prevent idle sleep. /// This is included in NSActivityUserInitiatedAllowingIdleSystemSleep. /// </summary> [iOSVersion(7)] IdleSystemSleepDisabled, /// <summary> /// Flag to prevent sudden termination. /// This is included in NSActivityUserInitiatedAllowingIdleSystemSleep. /// </summary> [iOSVersion(7)] SuddenTerminationDisabled, /// <summary> /// Flag to prevent automatic termination. /// This is included in NSActivityUserInitiatedAllowingIdleSystemSleep. /// </summary> [iOSVersion(7)] AutomaticTerminationDisabled, /// <summary> /// Flag to indicate the app is performing a user-requested action. /// </summary> [iOSVersion(7)] UserInitiated, /// <summary> /// Flag to indicate the app is performing a user-requested action, but that the system can sleep on idle. /// </summary> [iOSVersion(7)] UserInitiatedAllowingIdleSystemSleep, /// <summary> /// Flag to indicate the app has initiated some kind of work, but not as the direct result of user request. /// </summary> [iOSVersion(7)] Background, /// <summary> /// Flag to indicate the activity requires the highest amount of timer and I/O precision available. /// </summary> [iOSVersion(7)] LatencyCritical, } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSProcessInfo class provides methods to access information about the current process. Each process has a single, shared NSProcessInfo object, known as process information agent. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSProcessInfo_Class/index.html#//apple_ref/occ/cl/NSProcessInfo"/> [iOSVersion(2)] [Export("")] public class NSProcessInfo : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSObjectProtocol, Printable { public NSProcessInfo() { } /// <summary> /// Returns the process information agent for the process. /// </summary> [iOSVersion(2)] [Export("processInfo")] public static NSProcessInfo ProcessInfo() { return default(NSProcessInfo); } /// <summary> /// Returns a constant to indicate the operating system on which the process is executing. /// </summary> [iOSVersion(2)] [Export("operatingSystem")] public virtual int OperatingSystem() { return default(int); } /// <summary> /// Returns a string containing the name of the operating system on which the process is executing. /// </summary> [iOSVersion(2)] [Export("operatingSystemName")] public virtual string OperatingSystemName() { return default(string); } /// <summary> /// Returns a Boolean value indicating whether the version of the operating system on which the process is executing is the same or later than the given version. /// </summary> /// <param name="version">The operating system version to test against.</param> [iOSVersion(8)] [Export("isOperatingSystemAtLeastVersion")] public virtual bool IsOperatingSystemAtLeastVersion(NSOperatingSystemVersion version) { return default(bool); } /// <summary> /// Begin an activity using the given options and reason. /// </summary> /// <param name="options">Options for the activity. See Activity Options for possible values.</param> /// <param name="reason">A string used in debugging to indicate the reason the activity began.</param> [iOSVersion(7)] [Export("beginActivityWithOptions")] public virtual NSObjectProtocol BeginActivityWithOptions(NSActivityOptions options, string reason) { return default(NSObjectProtocol); } /// <summary> /// Ends the given activity. /// </summary> /// <param name="activity">An activity object returned by beginActivityWithOptions:reason:.</param> [iOSVersion(7)] [Export("endActivity")] public virtual void EndActivity(NSObjectProtocol activity) { } /// <summary> /// Synchronously perform an activity defined by a given block using the given options. /// </summary> /// <param name="options">Options for the activity. See Activity Options for possible values.</param> /// <param name="reason">A string used in debugging to indicate the reason the activity began.</param> /// <param name="usingBlock">A block containing the work to be performed by the activity.</param> [iOSVersion(7)] [Export("performActivityWithOptions")] public virtual void PerformActivityWithOptions(NSActivityOptions options, string reason, Action usingBlock) { } /// <summary> /// Array of strings with the command-line arguments for the process. /// </summary> [iOSVersion(2)] [Export("arguments")] public AnyObject[] Arguments { get; private set; } /// <summary> /// The variable names (keys) and their values in the environment from which the process was launched. /// </summary> [iOSVersion(2)] [Export("environment")] public Dictionary<NSObject, AnyObject> Environment { get; private set; } /// <summary> /// Global unique identifier for the process. (read-only) /// </summary> [iOSVersion(2)] [Export("globallyUniqueString")] public string GloballyUniqueString { get; private set; } /// <summary> /// The identifier of the process (often called process ID). /// </summary> [iOSVersion(2)] [Export("processIdentifier")] public int ProcessIdentifier { get; private set; } /// <summary> /// The name of the process. /// </summary> [iOSVersion(2)] [Export("processName")] public string ProcessName { get; set; } /// <summary> /// The name of the host computer on which the process is executing. (read-only) /// </summary> [iOSVersion(2)] [Export("hostName")] public string HostName { get; private set; } /// <summary> /// A string containing the version of the operating system on which the process is executing. (read-only) /// </summary> [iOSVersion(2)] [Export("operatingSystemVersionString")] public string OperatingSystemVersionString { get; private set; } /// <summary> /// The version of the operating system on which the process is executing. (read-only) /// </summary> [iOSVersion(8)] [Export("operatingSystemVersion")] public NSOperatingSystemVersion OperatingSystemVersion { get; private set; } /// <summary> /// The number of processing cores available on the computer. (read-only) /// </summary> [iOSVersion(2)] [Export("processorCount")] public int ProcessorCount { get; private set; } /// <summary> /// The number of active processing cores available on the computer. (read-only) /// </summary> [iOSVersion(2)] [Export("activeProcessorCount")] public int ActiveProcessorCount { get; private set; } /// <summary> /// The amount of physical memory on the computer in bytes. (read-only) /// </summary> [iOSVersion(2)] [Export("physicalMemory")] public UInt64 PhysicalMemory { get; private set; } /// <summary> /// The time interval since the computer was restarted. /// </summary> [iOSVersion(4)] [Export("systemUptime")] public NSTimeInterval SystemUptime { get; private set; } /// <summary> /// The following constants are provided by the NSProcessInfo class as return values for operatingSystem. /// </summary> public int NSHPUXOperatingSystem { get; private set; } } /// <summary> /// Option flags used with beginActivityWithOptions:reason: and performActivityWithOptions:reason:usingBlock:. /// </summary> public enum NSActivityOptions { /// <summary> /// Flag to require the screen to stay powered on. /// </summary> [iOSVersion(7)] IdleDisplaySleepDisabled, /// <summary> /// Flag to prevent idle sleep. /// This is included in NSActivityUserInitiatedAllowingIdleSystemSleep. /// </summary> [iOSVersion(7)] IdleSystemSleepDisabled, /// <summary> /// Flag to prevent sudden termination. /// This is included in NSActivityUserInitiatedAllowingIdleSystemSleep. /// </summary> [iOSVersion(7)] SuddenTerminationDisabled, /// <summary> /// Flag to prevent automatic termination. /// This is included in NSActivityUserInitiatedAllowingIdleSystemSleep. /// </summary> [iOSVersion(7)] AutomaticTerminationDisabled, /// <summary> /// Flag to indicate the app is performing a user-requested action. /// </summary> [iOSVersion(7)] UserInitiated, /// <summary> /// Flag to indicate the app is performing a user-requested action, but that the system can sleep on idle. /// </summary> [iOSVersion(7)] UserInitiatedAllowingIdleSystemSleep, /// <summary> /// Flag to indicate the app has initiated some kind of work, but not as the direct result of user request. /// </summary> [iOSVersion(7)] Background, /// <summary> /// Flag to indicate the activity requires the highest amount of timer and I/O precision available. /// </summary> [iOSVersion(7)] LatencyCritical, } /// <summary> /// Operating system version structure used with operatingSystemVersion and isOperatingSystemAtLeastVersion:. /// </summary> public struct NSOperatingSystemVersion { /// <summary> /// The major release number, such as 10 in version 10.9.3. /// </summary> [Export("majorVersion")] public int MajorVersion { get; set; } /// <summary> /// The minor release number, such as 9 in version 10.9.3. /// </summary> [Export("minorVersion")] public int MinorVersion { get; set; } /// <summary> /// The update release number, such as 3 in version 10.9.3. /// </summary> [Export("patchVersion")] public int PatchVersion { get; set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSProgress.cs b/CocoaSharp/Foundation/NSProgress.cs
index b405fb9c..0cb2b7c6 100644
--- a/CocoaSharp/Foundation/NSProgress.cs
+++ b/CocoaSharp/Foundation/NSProgress.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSProgress class provides a self-contained mechanism for progress reporting. It makes it easy for code that does work to report the progress of that work, and for user interface code to observe that progress for presentation to the user. Specifically, it can be used to show the user a progress bar and explanatory text, both updated properly as progress is made. It also allows work to be cancelled or paused by the user. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSProgress_Class/index.html#//apple_ref/occ/cl/NSProgress"/> [iOSVersion(7)] public class NSProgress : NSObject//, AnyObject, NSObjectProtocol { /// <summary> /// Initializes a newly allocated NSProgress instance. /// </summary> /// <param name="parent">The parent NSProgress object, if any, to notify when reporting progress or to consult when checking for cancellation. /// The only valid values are [NSProgress currentProgress] or nil.</param> /// <param name="userInfo">The user information dictionary for the progress object. May be nil.</param> [iOSVersion(7)] public NSProgress(NSProgress parent, Dictionary<NSObject, AnyObject> userInfo) { } /// <summary> /// Creates and returns an NSProgress instance, initialized using initWithParent:userInfo:. /// </summary> /// <param name="totalUnitCount">The total number of units of work to be carried out.</param> [iOSVersion(7)] public NSProgress(Int64 totalUnitCount) { } /// <summary> /// Returns the NSProgress instance, if any, associated with the current thread by a previous invocation of becomeCurrentWithPendingUnitCount:. /// </summary> [iOSVersion(7)] [Export("currentProgress")] public static NSProgress CurrentProgress() { return default(NSProgress); } /// <summary> /// Sets the receiver as the current progress object of the current thread and specifies the portion of work to be performed by the next child progress object of the receiver. /// </summary> /// <param name="unitCount">The number of units of work to be carried out by the next progress object that is initialized by invoking the initWithParent:userInfo: method in the current thread with the receiver set as the parent. This number represents the portion of work to be performed in relation to the total number of units of work to be performed by the receiver (represented by the value of the receiver’s totalUnitCount property). The units of work represented by this parameter must be the same units of work that are used in the receiver’s totalUnitCount property.</param> [iOSVersion(7)] [Export("becomeCurrentWithPendingUnitCount")] public void BecomeCurrentWithPendingUnitCount(Int64 unitCount) { } /// <summary> /// Balance the most recent previous invocation of becomeCurrentWithPendingUnitCount: on the same thread by restoring the current progress object to what it was before becomeCurrentWithPendingUnitCount: was invoked. /// </summary> [iOSVersion(7)] [Export("resignCurrent")] public void ResignCurrent() { } /// <summary> /// Cancel progress tracking. /// </summary> [iOSVersion(7)] [Export("cancel")] public void Cancel() { } /// <summary> /// Pause progress tracking. /// </summary> [iOSVersion(7)] [Export("pause")] public void Pause() { } /// <summary> /// Set a value in the userInfo dictionary. /// </summary> /// <param name="objectOrNil">The object to set for the given key, or nil to remove an existing entry in the dictionary.</param> /// <param name="forKey">The key to use to store the given object.</param> [iOSVersion(7)] [Export("setUserInfoObject")] public void SetUserInfoObject(AnyObject objectOrNil, string forKey) { } /// <summary> /// The total number of units of work tracked for the current progress. /// </summary> [iOSVersion(7)] [Export("totalUnitCount")] public Int64 TotalUnitCount { get; set; } /// <summary> /// The number of units of work for the current job that have already been completed. /// </summary> [iOSVersion(7)] [Export("completedUnitCount")] public Int64 CompletedUnitCount { get; set; } /// <summary> /// A localized description of progress tracked by the receiver. /// </summary> [iOSVersion(7)] [Export("localizedDescription")] public string LocalizedDescription { get; set; } /// <summary> /// A more specific localized description of progress tracked by the receiver. /// </summary> [iOSVersion(7)] [Export("localizedAdditionalDescription")] public string LocalizedAdditionalDescription { get; set; } /// <summary> /// The fraction of the overall work completed by this progress object, including work done by any children it may have. (read-only) /// </summary> [iOSVersion(7)] [Export("fractionCompleted")] public Double FractionCompleted { get; private set; } /// <summary> /// Indicates whether the receiver is tracking work that can be cancelled. /// </summary> [iOSVersion(7)] [Export("cancellable")] public bool Cancellable { get; set; } /// <summary> /// Indicates whether the receiver is tracking work that has been cancelled. (read-only) /// </summary> [iOSVersion(7)] [Export("cancelled")] public bool Cancelled { get; private set; } /// <summary> /// The block to invoke when progress is cancelled. /// </summary> [iOSVersion(7)] [Export("cancellationHandler")] public Action CancellationHandler { get; set; } /// <summary> /// Indicates whether the receiver is tracking work that can be paused. /// </summary> [iOSVersion(7)] [Export("pausable")] public bool Pausable { get; set; } /// <summary> /// Indicates whether the receiver is tracking work that has been paused. (read-only) /// </summary> [iOSVersion(7)] [Export("paused")] public bool Paused { get; private set; } /// <summary> /// The block to invoke when progress is paused. /// </summary> [iOSVersion(7)] [Export("pausingHandler")] public Action PausingHandler { get; set; } /// <summary> /// Indicates whether the tracked progress is indeterminate. (read-only) /// </summary> [iOSVersion(7)] [Export("indeterminate")] public bool Indeterminate { get; private set; } /// <summary> /// A string identifying the kind of progress being made. /// </summary> [iOSVersion(7)] [Export("kind")] public string Kind { get; set; } /// <summary> /// A dictionary of arbitrary values associated with the receiver. /// </summary> [iOSVersion(7)] [Export("userInfo")] public Dictionary<NSObject, AnyObject> UserInfo { get; private set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSProgress class provides a self-contained mechanism for progress reporting. It makes it easy for code that does work to report the progress of that work, and for user interface code to observe that progress for presentation to the user. Specifically, it can be used to show the user a progress bar and explanatory text, both updated properly as progress is made. It also allows work to be cancelled or paused by the user. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSProgress_Class/index.html#//apple_ref/occ/cl/NSProgress"/> [iOSVersion(7)] [Export("")] public class NSProgress : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSObjectProtocol, Printable { public NSProgress() { } /// <summary> /// Initializes a newly allocated NSProgress instance. /// </summary> /// <param name="parent">The parent NSProgress object, if any, to notify when reporting progress or to consult when checking for cancellation. /// The only valid values are [NSProgress currentProgress] or nil.</param> /// <param name="userInfo">The user information dictionary for the progress object. May be nil.</param> [iOSVersion(7)] public NSProgress([Optional] NSProgress parent, Dictionary<NSObject, AnyObject> userInfo) { } /// <summary> /// Creates and returns an NSProgress instance, initialized using initWithParent:userInfo:. /// </summary> /// <param name="totalUnitCount">The total number of units of work to be carried out.</param> [iOSVersion(7)] public NSProgress(Int64 totalUnitCount) { } /// <summary> /// Returns the NSProgress instance, if any, associated with the current thread by a previous invocation of becomeCurrentWithPendingUnitCount:. /// </summary> [iOSVersion(7)] [Export("currentProgress")] [return:Optional] public static NSProgress CurrentProgress() { return default(NSProgress); } /// <summary> /// Sets the receiver as the current progress object of the current thread and specifies the portion of work to be performed by the next child progress object of the receiver. /// </summary> /// <param name="unitCount">The number of units of work to be carried out by the next progress object that is initialized by invoking the initWithParent:userInfo: method in the current thread with the receiver set as the parent. This number represents the portion of work to be performed in relation to the total number of units of work to be performed by the receiver (represented by the value of the receiver’s totalUnitCount property). The units of work represented by this parameter must be the same units of work that are used in the receiver’s totalUnitCount property.</param> [iOSVersion(7)] [Export("becomeCurrentWithPendingUnitCount")] public virtual void BecomeCurrentWithPendingUnitCount(Int64 unitCount) { } /// <summary> /// Balance the most recent previous invocation of becomeCurrentWithPendingUnitCount: on the same thread by restoring the current progress object to what it was before becomeCurrentWithPendingUnitCount: was invoked. /// </summary> [iOSVersion(7)] [Export("resignCurrent")] public virtual void ResignCurrent() { } /// <summary> /// Cancel progress tracking. /// </summary> [iOSVersion(7)] [Export("cancel")] public virtual void Cancel() { } /// <summary> /// Pause progress tracking. /// </summary> [iOSVersion(7)] [Export("pause")] public virtual void Pause() { } /// <summary> /// Set a value in the userInfo dictionary. /// </summary> /// <param name="objectOrNil">The object to set for the given key, or nil to remove an existing entry in the dictionary.</param> /// <param name="forKey">The key to use to store the given object.</param> [iOSVersion(7)] [Export("setUserInfoObject")] public virtual void SetUserInfoObject([Optional] AnyObject objectOrNil, string forKey) { } /// <summary> /// The total number of units of work tracked for the current progress. /// </summary> [iOSVersion(7)] [Export("totalUnitCount")] public Int64 TotalUnitCount { get; set; } /// <summary> /// The number of units of work for the current job that have already been completed. /// </summary> [iOSVersion(7)] [Export("completedUnitCount")] public Int64 CompletedUnitCount { get; set; } /// <summary> /// A localized description of progress tracked by the receiver. /// </summary> [iOSVersion(7)] [Export("localizedDescription")] public string LocalizedDescription { get; set; } /// <summary> /// A more specific localized description of progress tracked by the receiver. /// </summary> [iOSVersion(7)] [Export("localizedAdditionalDescription")] public string LocalizedAdditionalDescription { get; set; } /// <summary> /// The fraction of the overall work completed by this progress object, including work done by any children it may have. (read-only) /// </summary> [iOSVersion(7)] [Export("fractionCompleted")] public Double FractionCompleted { get; private set; } /// <summary> /// Indicates whether the receiver is tracking work that can be cancelled. /// </summary> [iOSVersion(7)] [Export("cancellable")] public bool Cancellable { get; set; } /// <summary> /// Indicates whether the receiver is tracking work that has been cancelled. (read-only) /// </summary> [iOSVersion(7)] [Export("cancelled")] public bool Cancelled { get; private set; } /// <summary> /// The block to invoke when progress is cancelled. /// </summary> [iOSVersion(7)] [Export("cancellationHandler")] public Action CancellationHandler { get; set; } /// <summary> /// Indicates whether the receiver is tracking work that can be paused. /// </summary> [iOSVersion(7)] [Export("pausable")] public bool Pausable { get; set; } /// <summary> /// Indicates whether the receiver is tracking work that has been paused. (read-only) /// </summary> [iOSVersion(7)] [Export("paused")] public bool Paused { get; private set; } /// <summary> /// The block to invoke when progress is paused. /// </summary> [iOSVersion(7)] [Export("pausingHandler")] public Action PausingHandler { get; set; } /// <summary> /// Indicates whether the tracked progress is indeterminate. (read-only) /// </summary> [iOSVersion(7)] [Export("indeterminate")] public bool Indeterminate { get; private set; } /// <summary> /// A string identifying the kind of progress being made. /// </summary> [iOSVersion(7)] [Export("kind")] [Optional] public string Kind { get; set; } /// <summary> /// A dictionary of arbitrary values associated with the receiver. (read-only) /// </summary> [iOSVersion(7)] [Export("userInfo")] public Dictionary<NSObject, AnyObject> UserInfo { get; private set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSPropertyListSerialization.cs b/CocoaSharp/Foundation/NSPropertyListSerialization.cs
index 3089a230..11e3adba 100644
--- a/CocoaSharp/Foundation/NSPropertyListSerialization.cs
+++ b/CocoaSharp/Foundation/NSPropertyListSerialization.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSPropertyListSerialization class provides methods that convert property list objects to and from several serialized formats. Property list objects include NSData, NSString, NSArray, NSDictionary, NSDate, and NSNumber objects. These objects are toll-free bridged with their respective Core Foundation types (CFData, CFString, and so on). For more about toll-free bridging, see Interchangeable Data Types. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSPropertyListSerialization_Class/index.html#//apple_ref/occ/cl/NSPropertyListSerialization"/> [iOSVersion(2)] public class NSPropertyListSerialization : NSObject//, AnyObject, NSObjectProtocol { /// <summary> /// Returns an NSData object containing a given property list in a specified format. /// </summary> /// <param name="plist">A property list object. Passing nil for this value will cause an exception to be raised.</param> /// <param name="format">A property list format. Possible values for format are described in NSPropertyListFormat.</param> /// <param name="options">The opt parameter is currently unused and should be set to 0.</param> /// <param name="error">If the method does not complete successfully, upon return contains an NSError object that describes the problem.</param> [iOSVersion(4)] [Export("dataWithPropertyList")] public static NSData DataWithPropertyList(AnyObject plist, NSPropertyListFormat format, NSPropertyListWriteOptions options, NSErrorPointer error) { return default(NSData); } /// <summary> /// Writes the specified property list to the specified stream. /// </summary> /// <param name="plist">A property list object. Passing nil for this value will cause an exception to be raised.</param> /// <param name="toStream">An NSStream object. The stream should be open and configured for reading.</param> /// <param name="format">A property list format. Possible values for format are described in NSPropertyListFormat.</param> /// <param name="options">The opt parameter is currently unused and should be set to 0.</param> /// <param name="error">If the method does not complete successfully, upon return contains an NSError object that describes the problem.</param> [iOSVersion(4)] [Export("writePropertyList")] public static int WritePropertyList(AnyObject plist, NSOutputStream toStream, NSPropertyListFormat format, NSPropertyListWriteOptions options, NSErrorPointer error) { return default(int); } /// <summary> /// Creates and returns a property list from the specified data. /// </summary> /// <param name="data">A data object containing a serialized property list. Passing nil for this value will cause an exception to be raised.</param> /// <param name="options">The options can be any of those listed in NSPropertyListMutabilityOptions.</param> /// <param name="format">Upon return, contains the format that the property list was stored in. Pass NULL if you do not need to know the format.</param> /// <param name="error">If the method does not complete successfully, upon return contains an NSError object that describes the problem.</param> [iOSVersion(4)] [Export("propertyListWithData")] public static AnyObject PropertyListWithData(NSData data, NSPropertyListReadOptions options, UnsafePointer<NSPropertyListFormat> format, NSErrorPointer error) { return default(AnyObject); } /// <summary> /// Creates and returns a property list by reading from the specified stream. /// </summary> /// <param name="stream">An NSStream object. The stream should be open and configured for reading.</param> /// <param name="options">Set to 0—read options are not implemented.</param> /// <param name="format">Upon return, contains the format that the property list was stored in. Pass NULL if you do not need to know the format.</param> /// <param name="error">If the method does not complete successfully, upon return contains an NSError object that describes the problem.</param> [iOSVersion(4)] [Export("propertyListWithStream")] public static AnyObject PropertyListWithStream(NSInputStream stream, NSPropertyListReadOptions options, UnsafePointer<NSPropertyListFormat> format, NSErrorPointer error) { return default(AnyObject); } /// <summary> /// Returns a Boolean value that indicates whether a given property list is valid for a given format. /// </summary> /// <param name="plist">A property list object.</param> /// <param name="isValidForFormat">A property list format. Possible values for format are listed in NSPropertyListFormat.</param> [iOSVersion(2)] [Export("propertyList")] public static bool PropertyList(AnyObject plist, NSPropertyListFormat isValidForFormat) { return default(bool); } /// <summary> /// This method is obsolete and will be deprecated soon. /// </summary> /// <param name="plist">A property list object.</param> /// <param name="format">A property list format. Possible values for format are described in NSPropertyListFormat.</param> /// <param name="errorDescription">Upon return, if the conversion is successful, errorString is nil. If the conversion fails, upon return contains a string describing the nature of the error.</param> [iOSVersion(2)] [Obsolete] [Export("dataFromPropertyList")] public static NSData DataFromPropertyList(AnyObject plist, NSPropertyListFormat format, UnsafePointer<string> errorDescription) { return default(NSData); } /// <summary> /// This method is obsolete and will be deprecated soon. /// </summary> /// <param name="data">A data object containing a serialized property list.</param> /// <param name="mutabilityOption">The opt parameter is currently unused and should be set to 0.</param> /// <param name="format">If the property list is valid, upon return contains the format. format can be NULL, in which case the property list format is not returned. Possible values are described in NSPropertyListFormat.</param> /// <param name="errorDescription">Upon return, if the conversion is successful, errorString is nil. If the conversion fails, upon return contains a string describing the nature of the error.</param> [iOSVersion(2)] [Obsolete] [Export("propertyListFromData")] public static AnyObject PropertyListFromData(NSData data, NSPropertyListMutabilityOptions mutabilityOption, UnsafePointer<NSPropertyListFormat> format, UnsafePointer<string> errorDescription) { return default(AnyObject); } } /// <summary> /// These constants specify mutability options in property lists. /// </summary> [iOSVersion(2)] public enum NSPropertyListMutabilityOptions { /// <summary> /// Causes the returned property list to contain immutable objects. /// </summary> [iOSVersion(2)] Immutable, /// <summary> /// Causes the returned property list to have mutable containers but immutable leaves. /// </summary> [iOSVersion(2)] MutableContainers, /// <summary> /// Causes the returned property list to have mutable containers and leaves. /// </summary> [iOSVersion(2)] MutableContainersAndLeaves, } /// <summary> /// These constants are used to specify a property list serialization format. /// </summary> [iOSVersion(2)] public enum NSPropertyListFormat { /// <summary> /// Specifies the ASCII property list format inherited from the OpenStep APIs. /// </summary> [iOSVersion(2)] OpenStepFormat, /// <summary> /// Specifies the XML property list format. /// </summary> [iOSVersion(2)] XMLFormat_v1_0, /// <summary> /// Specifies the binary property list format. /// </summary> [iOSVersion(2)] BinaryFormat_v1_0, } /// <summary> /// The only read options supported are described in NSPropertyListMutabilityOptions. /// </summary> [iOSVersion(4)] public struct NSPropertyListReadOptions { static public implicit operator NSPropertyListReadOptions(int value) { return default(NSPropertyListReadOptions); } static public implicit operator int(NSPropertyListReadOptions value) { return default(int); } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSPropertyListSerialization class provides methods that convert property list objects to and from several serialized formats. Property list objects include NSData, NSString, NSArray, NSDictionary, NSDate, and NSNumber objects. These objects are toll-free bridged with their respective Core Foundation types (CFData, CFString, and so on). For more about toll-free bridging, see Interchangeable Data Types. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSPropertyListSerialization_Class/index.html#//apple_ref/occ/cl/NSPropertyListSerialization"/> [iOSVersion(2)] [Export("")] public class NSPropertyListSerialization : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSObjectProtocol, Printable { public NSPropertyListSerialization() { } /// <summary> /// Returns an NSData object containing a given property list in a specified format. /// </summary> /// <param name="plist">A property list object. Passing nil for this value will cause an exception to be raised.</param> /// <param name="format">A property list format. Possible values for format are described in NSPropertyListFormat.</param> /// <param name="options">The opt parameter is currently unused and should be set to 0.</param> /// <param name="error">If the method does not complete successfully, upon return contains an NSError object that describes the problem.</param> [iOSVersion(4)] [Export("dataWithPropertyList")] [return:Optional] public static NSData DataWithPropertyList(AnyObject plist, NSPropertyListFormat format, NSPropertyListWriteOptions options, NSErrorPointer error) { return default(NSData); } /// <summary> /// Writes the specified property list to the specified stream. /// </summary> /// <param name="plist">A property list object. Passing nil for this value will cause an exception to be raised.</param> /// <param name="toStream">An NSStream object. The stream should be open and configured for reading.</param> /// <param name="format">A property list format. Possible values for format are described in NSPropertyListFormat.</param> /// <param name="options">The opt parameter is currently unused and should be set to 0.</param> /// <param name="error">If the method does not complete successfully, upon return contains an NSError object that describes the problem.</param> [iOSVersion(4)] [Export("writePropertyList")] public static int WritePropertyList(AnyObject plist, NSOutputStream toStream, NSPropertyListFormat format, NSPropertyListWriteOptions options, NSErrorPointer error) { return default(int); } /// <summary> /// Creates and returns a property list from the specified data. /// </summary> /// <param name="data">A data object containing a serialized property list. Passing nil for this value will cause an exception to be raised.</param> /// <param name="options">The options can be any of those listed in NSPropertyListMutabilityOptions.</param> /// <param name="format">Upon return, contains the format that the property list was stored in. Pass NULL if you do not need to know the format.</param> /// <param name="error">If the method does not complete successfully, upon return contains an NSError object that describes the problem.</param> [iOSVersion(4)] [Export("propertyListWithData")] [return:Optional] public static AnyObject PropertyListWithData(NSData data, NSPropertyListReadOptions options, UnsafeMutablePointer<NSPropertyListFormat> format, NSErrorPointer error) { return default(AnyObject); } /// <summary> /// Creates and returns a property list by reading from the specified stream. /// </summary> /// <param name="stream">An NSStream object. The stream should be open and configured for reading.</param> /// <param name="options">Set to 0—read options are not implemented.</param> /// <param name="format">Upon return, contains the format that the property list was stored in. Pass NULL if you do not need to know the format.</param> /// <param name="error">If the method does not complete successfully, upon return contains an NSError object that describes the problem.</param> [iOSVersion(4)] [Export("propertyListWithStream")] [return:Optional] public static AnyObject PropertyListWithStream(NSInputStream stream, NSPropertyListReadOptions options, UnsafeMutablePointer<NSPropertyListFormat> format, NSErrorPointer error) { return default(AnyObject); } /// <summary> /// Returns a Boolean value that indicates whether a given property list is valid for a given format. /// </summary> /// <param name="plist">A property list object.</param> /// <param name="isValidForFormat">A property list format. Possible values for format are listed in NSPropertyListFormat.</param> [iOSVersion(2)] [Export("propertyList")] public static bool PropertyList(AnyObject plist, NSPropertyListFormat isValidForFormat) { return default(bool); } /// <summary> /// This method is obsolete and will be deprecated soon. /// </summary> /// <param name="plist">A property list object.</param> /// <param name="format">A property list format. Possible values for format are described in NSPropertyListFormat.</param> /// <param name="errorDescription">Upon return, if the conversion is successful, errorString is nil. If the conversion fails, upon return contains a string describing the nature of the error.</param> [iOSVersion(2)] [Obsolete] [Export("dataFromPropertyList")] [return:Optional] public static NSData DataFromPropertyList(AnyObject plist, NSPropertyListFormat format, UnsafeMutablePointer<string> errorDescription) { return default(NSData); } /// <summary> /// This method is obsolete and will be deprecated soon. /// </summary> /// <param name="data">A data object containing a serialized property list.</param> /// <param name="mutabilityOption">The opt parameter is currently unused and should be set to 0.</param> /// <param name="format">If the property list is valid, upon return contains the format. format can be NULL, in which case the property list format is not returned. Possible values are described in NSPropertyListFormat.</param> /// <param name="errorDescription">Upon return, if the conversion is successful, errorString is nil. If the conversion fails, upon return contains a string describing the nature of the error.</param> [iOSVersion(2)] [Obsolete] [Export("propertyListFromData")] [return:Optional] public static AnyObject PropertyListFromData(NSData data, NSPropertyListMutabilityOptions mutabilityOption, UnsafeMutablePointer<NSPropertyListFormat> format, UnsafeMutablePointer<string> errorDescription) { return default(AnyObject); } } /// <summary> /// These constants specify mutability options in property lists. /// </summary> public enum NSPropertyListMutabilityOptions { /// <summary> /// Causes the returned property list to contain immutable objects. /// </summary> [iOSVersion(2)] Immutable, /// <summary> /// Causes the returned property list to have mutable containers but immutable leaves. /// </summary> [iOSVersion(2)] MutableContainers, /// <summary> /// Causes the returned property list to have mutable containers and leaves. /// </summary> [iOSVersion(2)] MutableContainersAndLeaves, } /// <summary> /// These constants are used to specify a property list serialization format. /// </summary> public enum NSPropertyListFormat { /// <summary> /// Specifies the ASCII property list format inherited from the OpenStep APIs. /// </summary> [iOSVersion(2)] OpenStepFormat, /// <summary> /// Specifies the XML property list format. /// </summary> [iOSVersion(2)] XMLFormat_v1_0, /// <summary> /// Specifies the binary property list format. /// </summary> [iOSVersion(2)] BinaryFormat_v1_0, } /// <summary> /// The only read options supported are described in NSPropertyListMutabilityOptions. /// </summary> [iOSVersion(4)] public struct NSPropertyListReadOptions { static public implicit operator NSPropertyListReadOptions(int value) { return default(NSPropertyListReadOptions); } static public implicit operator int(NSPropertyListReadOptions value) { return default(int); } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSProxy.cs b/CocoaSharp/Foundation/NSProxy.cs
index c0cb2fd1..adb04afe 100644
--- a/CocoaSharp/Foundation/NSProxy.cs
+++ b/CocoaSharp/Foundation/NSProxy.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSProxy is an abstract superclass defining an API for objects that act as stand-ins for other objects or for objects that don’t exist yet. Typically, a message to a proxy is forwarded to the real object or causes the proxy to load (or transform itself into) the real object. Subclasses of NSProxy can be used to implement transparent distributed messaging (for example, NSDistantObject) or for lazy instantiation of objects that are expensive to create. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSProxy_Class/index.html#//apple_ref/occ/cl/NSProxy"/> [iOSVersion(2)] public class NSProxy//: AnyObject, NSObjectProtocol { /// <summary> /// Returns a new instance of the receiving class /// </summary> [iOSVersion(2)] [Export("alloc")] public static NSProxy Alloc() { return default(NSProxy); } /// <summary> /// Deallocates the memory occupied by the receiver. /// </summary> [iOSVersion(2)] [Export("dealloc")] public void Dealloc() { } /// <summary> /// The garbage collector invokes this method on the receiver before disposing of the memory it uses. /// </summary> [iOSVersion(2)] [Export("finalize")] public void Finalize() { } /// <summary> /// Passes a given invocation to the real object the proxy represents. /// </summary> /// <param name="anInvocation">The invocation to forward.</param> [iOSVersion(2)] [Export("forwardInvocation")] public void ForwardInvocation(NSInvocation anInvocation) { } /// <summary> /// Raises NSInvalidArgumentException. Override this method in your concrete subclass to return a proper NSMethodSignature object for the given selector and the class your proxy objects stand in for. /// </summary> /// <param name="aSelector">The selector for which to return a method signature.</param> [iOSVersion(2)] [Export("methodSignatureForSelector")] public NSMethodSignature MethodSignatureForSelector(Selector aSelector) { return default(NSMethodSignature); } /// <summary> /// Returns a Boolean value that indicates whether the receiving class responds to a given selector. /// </summary> /// <param name="aSelector">A selector.</param> [iOSVersion(2)] [Export("respondsToSelector")] public static bool RespondsToSelector(Selector aSelector) { return default(bool); } /// <summary> /// Returns self (the class object). /// </summary> [iOSVersion(2)] public static AnyClass @class() { return default(AnyClass); } /// <summary> /// Returns an NSString object containing the real class name and the id of the receiver as a hexadecimal number. /// </summary> [iOSVersion(2)] [Export("description")] public string Description { get; private set; } /// <summary> /// Returns an string containing the real class name and the id of the receiver as a hexadecimal number. /// </summary> [iOSVersion(5)] [Export("debugDescription")] public string DebugDescription { get; private set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSProxy is an abstract superclass defining an API for objects that act as stand-ins for other objects or for objects that don’t exist yet. Typically, a message to a proxy is forwarded to the real object or causes the proxy to load (or transform itself into) the real object. Subclasses of NSProxy can be used to implement transparent distributed messaging (for example, NSDistantObject) or for lazy instantiation of objects that are expensive to create. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSProxy_Class/index.html#//apple_ref/occ/cl/NSProxy"/> [iOSVersion(2)] [Export("")] public class NSProxy//: AnyObject, NSObjectProtocol { public NSProxy() { } /// <summary> /// Returns a new instance of the receiving class /// </summary> [iOSVersion(2)] [Export("alloc")] [return:Unwrapped] public static NSProxy Alloc() { return default(NSProxy); } /// <summary> /// Deallocates the memory occupied by the receiver. /// </summary> [iOSVersion(2)] [Export("dealloc")] public virtual void Dealloc() { } /// <summary> /// The garbage collector invokes this method on the receiver before disposing of the memory it uses. /// </summary> [iOSVersion(2)] [Export("finalize")] public virtual void Finalize() { } /// <summary> /// Passes a given invocation to the real object the proxy represents. /// </summary> /// <param name="anInvocation">The invocation to forward.</param> [iOSVersion(2)] [Export("forwardInvocation")] public virtual void ForwardInvocation(NSInvocation anInvocation) { } /// <summary> /// Returns a Boolean value that indicates whether the receiving class responds to a given selector. /// </summary> /// <param name="aSelector">A selector.</param> [iOSVersion(2)] [Export("respondsToSelector")] public static bool RespondsToSelector(Selector aSelector) { return default(bool); } /// <summary> /// Returns self (the class object). /// </summary> [iOSVersion(2)] [Export("class")] public static AnyClass Class() { return default(AnyClass); } /// <summary> /// A string containing the real class name and the id of the receiver as a hexadecimal number. (read-only) /// </summary> [iOSVersion(2)] [Export("description")] public string Description { get; private set; } /// <summary> /// A string containing the real class name and the id of the receiver as a hexadecimal number. (read-only) /// </summary> [iOSVersion(5)] [Export("debugDescription")] public string DebugDescription { get; private set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSPurgeableData.cs b/CocoaSharp/Foundation/NSPurgeableData.cs
index 8649f0ef..a1241a51 100644
--- a/CocoaSharp/Foundation/NSPurgeableData.cs
+++ b/CocoaSharp/Foundation/NSPurgeableData.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// You should use the NSPurgeableData class when you have objects with bytes that can be discarded when no longer needed. Purging these bytes may be advantageous for your system, because doing so frees up memory needed by other applications. The NSPurgeableData class provides a default implementation of the NSDiscardableContent protocol, from which it inherits its interface. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/NSPurgeableData_Class/index.html#//apple_ref/occ/cl/NSPurgeableData"/> [iOSVersion(4)] public class NSPurgeableData : NSMutableData//, AnyObject, NSCoding, NSCopying, NSDiscardableContent, NSMutableCopying, NSObjectProtocol, NSSecureCoding { //NOTE: added this public NSPurgeableData() : base(0) { } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// You should use the NSPurgeableData class when you have objects with bytes that can be discarded when no longer needed. Purging these bytes may be advantageous for your system, because doing so frees up memory needed by other applications. The NSPurgeableData class provides a default implementation of the NSDiscardableContent protocol, from which it inherits its interface. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/NSPurgeableData_Class/index.html#//apple_ref/occ/cl/NSPurgeableData"/> [iOSVersion(4)] [Export("")] public class NSPurgeableData : NSMutableData//, AnyObject, CKRecordValue, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSDiscardableContent, NSMutableCopying, NSObjectProtocol, NSSecureCoding, Printable { public NSPurgeableData() { } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSRecursiveLock.cs b/CocoaSharp/Foundation/NSRecursiveLock.cs
index 14556c2d..ceec2d04 100644
--- a/CocoaSharp/Foundation/NSRecursiveLock.cs
+++ b/CocoaSharp/Foundation/NSRecursiveLock.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSRecursiveLock defines a lock that may be acquired multiple times by the same thread without causing a deadlock, a situation where a thread is permanently blocked waiting for itself to relinquish a lock. While the locking thread has one or more locks, all other threads are prevented from accessing the code protected by the lock. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSRecursiveLock_Class/index.html#//apple_ref/occ/cl/NSRecursiveLock"/> [iOSVersion(2)] public class NSRecursiveLock : NSObject//, AnyObject, NSLocking, NSObjectProtocol { /// <summary> /// Attempts to acquire a lock before a given date. /// </summary> /// <param name="limit">The time before which the lock should be acquired.</param> [iOSVersion(2)] [Export("lockBeforeDate")] public bool LockBeforeDate(NSDate limit) { return default(bool); } /// <summary> /// Attempts to acquire a lock, and immediately returns a Boolean value that indicates whether the attempt was successful. /// </summary> [iOSVersion(2)] [Export("tryLock")] public bool TryLock() { return default(bool); } /// <summary> /// Assigns a name to the receiver /// </summary> [iOSVersion(2)] [Export("name")] public string Name { get; set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSRecursiveLock defines a lock that may be acquired multiple times by the same thread without causing a deadlock, a situation where a thread is permanently blocked waiting for itself to relinquish a lock. While the locking thread has one or more locks, all other threads are prevented from accessing the code protected by the lock. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSRecursiveLock_Class/index.html#//apple_ref/occ/cl/NSRecursiveLock"/> [iOSVersion(2)] [Export("")] public class NSRecursiveLock : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSLocking, NSObjectProtocol, Printable { public NSRecursiveLock() { } /// <summary> /// Attempts to acquire a lock before a given date. /// </summary> /// <param name="limit">The time before which the lock should be acquired.</param> [iOSVersion(2)] [Export("lockBeforeDate")] public virtual bool LockBeforeDate(NSDate limit) { return default(bool); } /// <summary> /// Attempts to acquire a lock, and immediately returns a Boolean value that indicates whether the attempt was successful. /// </summary> [iOSVersion(2)] [Export("tryLock")] public virtual bool TryLock() { return default(bool); } /// <summary> /// The name associated with the receiver. /// </summary> [iOSVersion(2)] [Export("name")] [Optional] public string Name { get; set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSRegularExpression.cs b/CocoaSharp/Foundation/NSRegularExpression.cs
index 40f9b35f..d5434152 100644
--- a/CocoaSharp/Foundation/NSRegularExpression.cs
+++ b/CocoaSharp/Foundation/NSRegularExpression.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSRegularExpression class is used to represent and apply regular expressions to Unicode strings. An instance of this class is an immutable representation of a compiled regular expression pattern and various option flags. The pattern syntax currently supported is that specified by ICU. The ICU regular expressions are described at http://userguide.icu-project.org/strings/regexp. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSRegularExpression_Class/index.html#//apple_ref/occ/cl/NSRegularExpression"/> [iOSVersion(4)] public class NSRegularExpression : NSObject//, AnyObject, NSCoding, NSCopying, NSObjectProtocol { /// <summary> /// Creates an NSRegularExpression instance with the specified regular expression pattern and options. /// </summary> /// <param name="pattern">The regular expression pattern to compile.</param> /// <param name="options">The matching options. See NSRegularExpressionOptions for possible values. The values can be combined using the C-bitwise OR operator.</param> /// <param name="error">An out value that returns any error encountered during initialization. Returns an NSError object if the regular expression pattern is invalid; otherwise returns nil.</param> [iOSVersion(4)] [Export("regularExpressionWithPattern")] public static NSRegularExpression RegularExpressionWithPattern(string pattern, NSRegularExpressionOptions options, NSErrorPointer error) { return default(NSRegularExpression); } /// <summary> /// Returns an initialized NSRegularExpression instance with the specified regular expression pattern and options. /// </summary> /// <param name="pattern">The regular expression pattern to compile.</param> /// <param name="options">The regular expression options that are applied to the expression during matching. See NSRegularExpressionOptions for possible values.</param> /// <param name="error">An out value that returns any error encountered during initialization. Returns an NSError object if the regular expression pattern is invalid; otherwise returns nil.firstMatchInString:options:range</param> [iOSVersion(4)] public NSRegularExpression(string pattern, NSRegularExpressionOptions options, NSErrorPointer error) { } /// <summary> /// Returns the number of matches of the regular expression within the specified range of the string. /// </summary> /// <param name="@string">The string to search.</param> /// <param name="options">The matching options to use. See NSMatchingOptions for possible values.</param> /// <param name="range">The range of the string to search.</param> [iOSVersion(4)] [Export("numberOfMatchesInString")] public int NumberOfMatchesInString(string @string, NSMatchingOptions options, NSRange range) { return default(int); } /// <summary> /// Enumerates the string allowing the Block to handle each regular expression match. /// </summary> /// <param name="@string">The string.</param> /// <param name="options">The matching options to report. See NSMatchingOptions for the supported values.</param> /// <param name="range">The range of the string to test.</param> /// <param name="usingBlock">The Block enumerates the matches of the regular expression in the string.. /// The block takes three arguments: /// result /// An NSTextCheckingResult specifying the match. This result gives the overall matched range via its range property, and the range of each individual capture group via its rangeAtIndex: method. The range {NSNotFound, 0} is returned if one of the capture groups did not participate in this particular match. /// flags /// The current state of the matching progress. See NSMatchingFlags for the possible values. /// stop /// A reference to a Boolean value. The Block can set the value to true to stop further processing of the array. The stop argument is an out-only argument. You should only ever set this Boolean to true within the Block. /// The Block returns void.</param> [iOSVersion(4)] [Export("enumerateMatchesInString")] public void EnumerateMatchesInString(string @string, NSMatchingOptions options, NSRange range, Action<NSTextCheckingResult, NSMatchingFlags, UnsafePointer<ObjCBool>> usingBlock) { } /// <summary> /// Returns an array containing all the matches of the regular expression in the string. /// </summary> /// <param name="@string">The string to search.</param> /// <param name="options">The matching options to use. See NSMatchingOptions for possible values.</param> /// <param name="range">The range of the string to search.</param> [iOSVersion(4)] [Export("matchesInString")] public AnyObject[] MatchesInString(string @string, NSMatchingOptions options, NSRange range) { return default(AnyObject[]); } /// <summary> /// Returns the first match of the regular expression within the specified range of the string. /// </summary> /// <param name="@string">The string to search.</param> /// <param name="options">The matching options to use. See NSMatchingOptions for possible values.</param> /// <param name="range">The range of the string to search.</param> [iOSVersion(4)] [Export("firstMatchInString")] public NSTextCheckingResult FirstMatchInString(string @string, NSMatchingOptions options, NSRange range) { return default(NSTextCheckingResult); } /// <summary> /// Returns the range of the first match of the regular expression within the specified range of the string. /// </summary> /// <param name="@string">The string to search.</param> /// <param name="options">The matching options to use. See NSMatchingOptions for possible values.</param> /// <param name="range">The range of the string to search.</param> [iOSVersion(4)] [Export("rangeOfFirstMatchInString")] public NSRange RangeOfFirstMatchInString(string @string, NSMatchingOptions options, NSRange range) { return default(NSRange); } /// <summary> /// Replaces regular expression matches within the mutable string using the template string. /// </summary> /// <param name="@string">The mutable string to search and replace values within.</param> /// <param name="options">The matching options to use. See NSMatchingOptions for possible values.</param> /// <param name="range">The range of the string to search.</param> /// <param name="withTemplate">The substitution template used when replacing matching instances.</param> [iOSVersion(4)] [Export("replaceMatchesInString")] public int ReplaceMatchesInString(NSMutableString @string, NSMatchingOptions options, NSRange range, string withTemplate) { return default(int); } /// <summary> /// Returns a new string containing matching regular expressions replaced with the template string. /// </summary> /// <param name="@string">The string to search for values within.</param> /// <param name="options">The matching options to use. See NSMatchingOptions for possible values.</param> /// <param name="range">The range of the string to search.</param> /// <param name="withTemplate">The substitution template used when replacing matching instances.</param> [iOSVersion(4)] [Export("stringByReplacingMatchesInString")] public string StringByReplacingMatchesInString(string @string, NSMatchingOptions options, NSRange range, string withTemplate) { return default(string); } /// <summary> /// Returns a template string by adding backslash escapes as necessary to protect any characters that would match as pattern metacharacters /// </summary> /// <param name="@string">The template string</param> [iOSVersion(4)] [Export("escapedTemplateForString")] public static string EscapedTemplateForString(string @string) { return default(string); } /// <summary> /// Returns a string by adding backslash escapes as necessary to protect any characters that would match as pattern metacharacters. /// </summary> /// <param name="@string">The string.</param> [iOSVersion(4)] [Export("escapedPatternForString")] public static string EscapedPatternForString(string @string) { return default(string); } /// <summary> /// Used to perform template substitution for a single result for clients implementing their own replace functionality. /// </summary> /// <param name="result">The result of the single match.</param> /// <param name="inString">The string from which the result was matched.</param> /// <param name="offset">The offset to be added to the location of the result in the string.</param> /// <param name="template">See Flag Options for the format of template.</param> [iOSVersion(4)] [Export("replacementStringForResult")] public string ReplacementStringForResult(NSTextCheckingResult result, string inString, int offset, string template) { return default(string); } /// <summary> /// Returns the regular expression pattern. (read-only) /// </summary> [iOSVersion(4)] [Export("pattern")] public string Pattern { get; private set; } /// <summary> /// Returns the options used when the regular expression option was created. (read-only) /// </summary> [iOSVersion(4)] [Export("options")] public NSRegularExpressionOptions Options { get; private set; } /// <summary> /// Returns the number of capture groups in the regular expression. (read-only) /// </summary> [iOSVersion(4)] [Export("numberOfCaptureGroups")] public int NumberOfCaptureGroups { get; private set; } } /// <summary> /// These constants define the regular expression options. These constants are used by the property options, regularExpressionWithPattern:options:error:, and initWithPattern:options:error:. /// </summary> [iOSVersion(4)] public enum NSRegularExpressionOptions { /// <summary> /// Match letters in the pattern independent of case. /// </summary> [iOSVersion(4)] CaseInsensitive, /// <summary> /// Ignore whitespace and #-prefixed comments in the pattern. /// </summary> [iOSVersion(4)] AllowCommentsAndWhitespace, /// <summary> /// Treat the entire pattern as a literal string. /// </summary> [iOSVersion(4)] IgnoreMetacharacters, /// <summary> /// Allow . to match any character, including line separators. /// </summary> [iOSVersion(4)] DotMatchesLineSeparators, /// <summary> /// Allow ^ and $ to match the start and end of lines. /// </summary> [iOSVersion(4)] AnchorsMatchLines, /// <summary> /// Treat only \n as a line separator (otherwise, all standard line separators are used). /// </summary> [iOSVersion(4)] UseUnixLineSeparators, /// <summary> /// Use Unicode TR#29 to specify word boundaries (otherwise, traditional regular expression word boundaries are used). /// </summary> [iOSVersion(4)] UseUnicodeWordBoundaries, } /// <summary> /// Set by the Block as the matching progresses, completes, or fails. Used by the method enumerateMatchesInString:options:range:usingBlock:. /// </summary> [iOSVersion(4)] public enum NSMatchingFlags { /// <summary> /// Set when the Block is called to report progress during a long-running match operation. /// </summary> [iOSVersion(4)] Progress, /// <summary> /// Set when the Block is called after matching has completed. /// </summary> [iOSVersion(4)] Completed, /// <summary> /// Set when the current match operation reached the end of the search range. /// </summary> [iOSVersion(4)] HitEnd, /// <summary> /// Set when the current match depended on the location of the end of the search range. /// </summary> [iOSVersion(4)] RequiredEnd, /// <summary> /// Set when matching failed due to an internal error. /// </summary> [iOSVersion(4)] InternalError, } /// <summary> /// The matching options constants specify the reporting, completion and matching rules to the expression matching methods. These constants are used by all methods that search for, or replace values, using a regular expression. /// </summary> [iOSVersion(4)] public enum NSMatchingOptions { /// <summary> /// Call the Block periodically during long-running match operations. This option has no effect for methods other than enumerateMatchesInString:options:range:usingBlock:. See enumerateMatchesInString:options:range:usingBlock: for a description of the constant in context. /// </summary> [iOSVersion(4)] ReportProgress, /// <summary> /// Call the Block once after the completion of any matching. This option has no effect for methods other than enumerateMatchesInString:options:range:usingBlock:. See enumerateMatchesInString:options:range:usingBlock: for a description of the constant in context. /// </summary> [iOSVersion(4)] ReportCompletion, /// <summary> /// Specifies that matches are limited to those at the start of the search range. See enumerateMatchesInString:options:range:usingBlock: for a description of the constant in context. /// </summary> [iOSVersion(4)] Anchored, /// <summary> /// Specifies that matching may examine parts of the string beyond the bounds of the search range, for purposes such as word boundary detection, lookahead, etc. This constant has no effect if the search range contains the entire string. See enumerateMatchesInString:options:range:usingBlock: for a description of the constant in context. /// </summary> [iOSVersion(4)] WithTransparentBounds, /// <summary> /// Specifies that ^ and $ will not automatically match the beginning and end of the search range, but will still match the beginning and end of the entire string. This constant has no effect if the search range contains the entire string. See enumerateMatchesInString:options:range:usingBlock: for a description of the constant in context. /// </summary> [iOSVersion(4)] WithoutAnchoringBounds, } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSRegularExpression class is used to represent and apply regular expressions to Unicode strings. An instance of this class is an immutable representation of a compiled regular expression pattern and various option flags. The pattern syntax currently supported is that specified by ICU. The ICU regular expressions are described at http://userguide.icu-project.org/strings/regexp. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSRegularExpression_Class/index.html#//apple_ref/occ/cl/NSRegularExpression"/> [iOSVersion(4)] [Export("")] public class NSRegularExpression : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSObjectProtocol, Printable { public NSRegularExpression() { } /// <summary> /// Returns the number of matches of the regular expression within the specified range of the string. /// </summary> /// <param name="@string">The string to search.</param> /// <param name="options">The matching options to use. See NSMatchingOptions for possible values.</param> /// <param name="range">The range of the string to search.</param> [iOSVersion(4)] [Export("numberOfMatchesInString")] public virtual int NumberOfMatchesInString(string @string, NSMatchingOptions options, NSRange range) { return default(int); } /// <summary> /// Enumerates the string allowing the Block to handle each regular expression match. /// </summary> /// <param name="@string">The string.</param> /// <param name="options">The matching options to report. See NSMatchingOptions for the supported values.</param> /// <param name="range">The range of the string to test.</param> /// <param name="usingBlock">The Block enumerates the matches of the regular expression in the string. /// The block takes three arguments: /// result /// An NSTextCheckingResult specifying the match. This result gives the overall matched range via its range property, and the range of each individual capture group via its rangeAtIndex: method. The range {NSNotFound, 0} is returned if one of the capture groups did not participate in this particular match. /// flags /// The current state of the matching progress. See NSMatchingFlags for the possible values. /// stop /// A reference to a Boolean value. The Block can set the value to true to stop further processing of the array. The stop argument is an out-only argument. You should only ever set this Boolean to true within the Block. /// The Block returns void.</param> [iOSVersion(4)] [Export("enumerateMatchesInString")] public virtual void EnumerateMatchesInString(string @string, NSMatchingOptions options, NSRange range, Action<NSTextCheckingResult, NSMatchingFlags, UnsafeMutablePointer<ObjCBool>> usingBlock) { } /// <summary> /// Returns an array containing all the matches of the regular expression in the string. /// </summary> /// <param name="@string">The string to search.</param> /// <param name="options">The matching options to use. See NSMatchingOptions for possible values.</param> /// <param name="range">The range of the string to search.</param> [iOSVersion(4)] [Export("matchesInString")] public virtual AnyObject[] MatchesInString(string @string, NSMatchingOptions options, NSRange range) { return default(AnyObject[]); } /// <summary> /// Returns the first match of the regular expression within the specified range of the string. /// </summary> /// <param name="@string">The string to search.</param> /// <param name="options">The matching options to use. See NSMatchingOptions for possible values.</param> /// <param name="range">The range of the string to search.</param> [iOSVersion(4)] [Export("firstMatchInString")] [return:Optional] public virtual NSTextCheckingResult FirstMatchInString(string @string, NSMatchingOptions options, NSRange range) { return default(NSTextCheckingResult); } /// <summary> /// Returns the range of the first match of the regular expression within the specified range of the string. /// </summary> /// <param name="@string">The string to search.</param> /// <param name="options">The matching options to use. See NSMatchingOptions for possible values.</param> /// <param name="range">The range of the string to search.</param> [iOSVersion(4)] [Export("rangeOfFirstMatchInString")] public virtual NSRange RangeOfFirstMatchInString(string @string, NSMatchingOptions options, NSRange range) { return default(NSRange); } /// <summary> /// Replaces regular expression matches within the mutable string using the template string. /// </summary> /// <param name="@string">The mutable string to search and replace values within.</param> /// <param name="options">The matching options to use. See NSMatchingOptions for possible values.</param> /// <param name="range">The range of the string to search.</param> /// <param name="withTemplate">The substitution template used when replacing matching instances.</param> [iOSVersion(4)] [Export("replaceMatchesInString")] public virtual int ReplaceMatchesInString(NSMutableString @string, NSMatchingOptions options, NSRange range, string withTemplate) { return default(int); } /// <summary> /// Returns a new string containing matching regular expressions replaced with the template string. /// </summary> /// <param name="@string">The string to search for values within.</param> /// <param name="options">The matching options to use. See NSMatchingOptions for possible values.</param> /// <param name="range">The range of the string to search.</param> /// <param name="withTemplate">The substitution template used when replacing matching instances.</param> [iOSVersion(4)] [Export("stringByReplacingMatchesInString")] public virtual string StringByReplacingMatchesInString(string @string, NSMatchingOptions options, NSRange range, string withTemplate) { return default(string); } /// <summary> /// Returns a template string by adding backslash escapes as necessary to protect any characters that would match as pattern metacharacters /// </summary> /// <param name="@string">The template string</param> [iOSVersion(4)] [Export("escapedTemplateForString")] public static string EscapedTemplateForString(string @string) { return default(string); } /// <summary> /// Returns a string by adding backslash escapes as necessary to protect any characters that would match as pattern metacharacters. /// </summary> /// <param name="@string">The string.</param> [iOSVersion(4)] [Export("escapedPatternForString")] public static string EscapedPatternForString(string @string) { return default(string); } /// <summary> /// Used to perform template substitution for a single result for clients implementing their own replace functionality. /// </summary> /// <param name="result">The result of the single match.</param> /// <param name="inString">The string from which the result was matched.</param> /// <param name="offset">The offset to be added to the location of the result in the string.</param> /// <param name="template">See Flag Options for the format of template.</param> [iOSVersion(4)] [Export("replacementStringForResult")] public virtual string ReplacementStringForResult(NSTextCheckingResult result, string inString, int offset, string template) { return default(string); } /// <summary> /// Returns the regular expression pattern. (read-only) /// </summary> [iOSVersion(4)] [Export("pattern")] public string Pattern { get; private set; } /// <summary> /// Returns the options used when the regular expression option was created. (read-only) /// </summary> [iOSVersion(4)] [Export("options")] public NSRegularExpressionOptions Options { get; private set; } /// <summary> /// Returns the number of capture groups in the regular expression. (read-only) /// </summary> [iOSVersion(4)] [Export("numberOfCaptureGroups")] public int NumberOfCaptureGroups { get; private set; } } /// <summary> /// These constants define the regular expression options. These constants are used by the property options, regularExpressionWithPattern:options:error:, and initWithPattern:options:error:. /// </summary> public enum NSRegularExpressionOptions { /// <summary> /// Match letters in the pattern independent of case. /// </summary> [iOSVersion(4)] CaseInsensitive, /// <summary> /// Ignore whitespace and #-prefixed comments in the pattern. /// </summary> [iOSVersion(4)] AllowCommentsAndWhitespace, /// <summary> /// Treat the entire pattern as a literal string. /// </summary> [iOSVersion(4)] IgnoreMetacharacters, /// <summary> /// Allow . to match any character, including line separators. /// </summary> [iOSVersion(4)] DotMatchesLineSeparators, /// <summary> /// Allow ^ and $ to match the start and end of lines. /// </summary> [iOSVersion(4)] AnchorsMatchLines, /// <summary> /// Treat only \n as a line separator (otherwise, all standard line separators are used). /// </summary> [iOSVersion(4)] UseUnixLineSeparators, /// <summary> /// Use Unicode TR#29 to specify word boundaries (otherwise, traditional regular expression word boundaries are used). /// </summary> [iOSVersion(4)] UseUnicodeWordBoundaries, } /// <summary> /// Set by the Block as the matching progresses, completes, or fails. Used by the method enumerateMatchesInString:options:range:usingBlock:. /// </summary> public enum NSMatchingFlags { /// <summary> /// Set when the Block is called to report progress during a long-running match operation. /// </summary> [iOSVersion(4)] Progress, /// <summary> /// Set when the Block is called after matching has completed. /// </summary> [iOSVersion(4)] Completed, /// <summary> /// Set when the current match operation reached the end of the search range. /// </summary> [iOSVersion(4)] HitEnd, /// <summary> /// Set when the current match depended on the location of the end of the search range. /// </summary> [iOSVersion(4)] RequiredEnd, /// <summary> /// Set when matching failed due to an internal error. /// </summary> [iOSVersion(4)] InternalError, } /// <summary> /// The matching options constants specify the reporting, completion and matching rules to the expression matching methods. These constants are used by all methods that search for, or replace values, using a regular expression. /// </summary> public enum NSMatchingOptions { /// <summary> /// Call the Block periodically during long-running match operations. This option has no effect for methods other than enumerateMatchesInString:options:range:usingBlock:. See enumerateMatchesInString:options:range:usingBlock: for a description of the constant in context. /// </summary> [iOSVersion(4)] ReportProgress, /// <summary> /// Call the Block once after the completion of any matching. This option has no effect for methods other than enumerateMatchesInString:options:range:usingBlock:. See enumerateMatchesInString:options:range:usingBlock: for a description of the constant in context. /// </summary> [iOSVersion(4)] ReportCompletion, /// <summary> /// Specifies that matches are limited to those at the start of the search range. See enumerateMatchesInString:options:range:usingBlock: for a description of the constant in context. /// </summary> [iOSVersion(4)] Anchored, /// <summary> /// Specifies that matching may examine parts of the string beyond the bounds of the search range, for purposes such as word boundary detection, lookahead, etc. This constant has no effect if the search range contains the entire string. See enumerateMatchesInString:options:range:usingBlock: for a description of the constant in context. /// </summary> [iOSVersion(4)] WithTransparentBounds, /// <summary> /// Specifies that ^ and $ will not automatically match the beginning and end of the search range, but will still match the beginning and end of the entire string. This constant has no effect if the search range contains the entire string. See enumerateMatchesInString:options:range:usingBlock: for a description of the constant in context. /// </summary> [iOSVersion(4)] WithoutAnchoringBounds, } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSRunLoop.cs b/CocoaSharp/Foundation/NSRunLoop.cs
index ea862abc..2d12b302 100644
--- a/CocoaSharp/Foundation/NSRunLoop.cs
+++ b/CocoaSharp/Foundation/NSRunLoop.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSRunLoop class declares the programmatic interface to objects that manage input sources. An NSRunLoop object processes input for sources such as mouse and keyboard events from the window system, NSPort objects, and NSConnection objects. An NSRunLoop object also processes NSTimer events. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSRunLoop_Class/index.html#//apple_ref/occ/cl/NSRunLoop"/> [iOSVersion(2)] public class NSRunLoop : NSObject//, AnyObject, NSObjectProtocol { /// <summary> /// Returns the NSRunLoop object for the current thread. /// </summary> [iOSVersion(2)] [Export("currentRunLoop")] public static NSRunLoop CurrentRunLoop() { return default(NSRunLoop); } /// <summary> /// Performs one pass through the run loop in the specified mode and returns the date at which the next timer is scheduled to fire. /// </summary> /// <param name="mode">The run loop mode to search. You may specify custom modes or use one of the modes listed in Run Loop Modes.</param> [iOSVersion(2)] [Export("limitDateForMode")] public NSDate LimitDateForMode(string mode) { return default(NSDate); } /// <summary> /// Returns the run loop of the main thread. /// </summary> [iOSVersion(2)] [Export("mainRunLoop")] public static NSRunLoop MainRunLoop() { return default(NSRunLoop); } /// <summary> /// Returns the receiver's underlying CFRunLoop Reference object. /// </summary> [iOSVersion(2)] [Export("getCFRunLoop")] public CFRunLoop GetCFRunLoop() { return default(CFRunLoop); } /// <summary> /// Registers a given timer with a given input mode. /// </summary> /// <param name="aTimer">The timer to register with the receiver.</param> /// <param name="forMode">The mode in which to add aTimer. You may specify a custom mode or use one of the modes listed in Run Loop Modes.</param> [iOSVersion(2)] [Export("addTimer")] public void AddTimer(NSTimer aTimer, string forMode) { } /// <summary> /// Adds a port as an input source to the specified mode of the run loop. /// </summary> /// <param name="aPort">The port to add to the receiver.</param> /// <param name="forMode">The mode in which to add aPort. You may specify a custom mode or use one of the modes listed in Run Loop Modes.</param> [iOSVersion(2)] [Export("addPort")] public void AddPort(NSPort aPort, string forMode) { } /// <summary> /// Removes a port from the specified input mode of the run loop. /// </summary> /// <param name="aPort">The port to remove from the receiver.</param> /// <param name="forMode">The mode from which to remove aPort. You may specify a custom mode or use one of the modes listed in Run Loop Modes.</param> [iOSVersion(2)] [Export("removePort")] public void RemovePort(NSPort aPort, string forMode) { } /// <summary> /// Puts the receiver into a permanent loop, during which time it processes data from all attached input sources. /// </summary> [iOSVersion(2)] [Export("run")] public void Run() { } /// <summary> /// Runs the loop once, blocking for input in the specified mode until a given date. /// </summary> /// <param name="mode">The mode in which to run. You may specify custom modes or use one of the modes listed in Run Loop Modes.</param> /// <param name="beforeDate">The date until which to block.</param> [iOSVersion(2)] [Export("runMode")] public bool RunMode(string mode, NSDate beforeDate) { return default(bool); } /// <summary> /// Runs the loop until the specified date, during which time it processes data from all attached input sources. /// </summary> /// <param name="limitDate">The date up until which to run.</param> [iOSVersion(2)] [Export("runUntilDate")] public void RunUntilDate(NSDate limitDate) { } /// <summary> /// Runs the loop once or until the specified date, accepting input only for the specified mode. /// </summary> /// <param name="mode">The mode in which to run. You may specify custom modes or use one of the modes listed in Run Loop Modes.</param> /// <param name="beforeDate">The date up until which to run.</param> [iOSVersion(2)] [Export("acceptInputForMode")] public void AcceptInputForMode(string mode, NSDate beforeDate) { } /// <summary> /// Cancels the sending of a previously scheduled message. /// </summary> /// <param name="aSelector">The previously-specified selector.</param> /// <param name="target">The previously-specified target.</param> /// <param name="argument">The previously-specified argument.</param> [iOSVersion(2)] [Export("cancelPerformSelector")] public void CancelPerformSelector(Selector aSelector, AnyObject target, AnyObject argument) { } /// <summary> /// Cancels all outstanding ordered performs scheduled with a given target. /// </summary> /// <param name="target">The previously-specified target.</param> [iOSVersion(2)] [Export("cancelPerformSelectorsWithTarget")] public void CancelPerformSelectorsWithTarget(AnyObject target) { } /// <summary> /// Returns the receiver's current input mode. /// </summary> [iOSVersion(2)] [Export("currentMode")] public string CurrentMode { get; private set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSRunLoop class declares the programmatic interface to objects that manage input sources. An NSRunLoop object processes input for sources such as mouse and keyboard events from the window system, NSPort objects, and NSConnection objects. An NSRunLoop object also processes NSTimer events. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSRunLoop_Class/index.html#//apple_ref/occ/cl/NSRunLoop"/> [iOSVersion(2)] [Export("")] public class NSRunLoop : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSObjectProtocol, Printable { public NSRunLoop() { } /// <summary> /// Returns the NSRunLoop object for the current thread. /// </summary> [iOSVersion(2)] [Export("currentRunLoop")] public static NSRunLoop CurrentRunLoop() { return default(NSRunLoop); } /// <summary> /// Performs one pass through the run loop in the specified mode and returns the date at which the next timer is scheduled to fire. /// </summary> /// <param name="mode">The run loop mode to search. You may specify custom modes or use one of the modes listed in Run Loop Modes.</param> [iOSVersion(2)] [Export("limitDateForMode")] [return:Optional] public virtual NSDate LimitDateForMode(string mode) { return default(NSDate); } /// <summary> /// Returns the run loop of the main thread. /// </summary> [iOSVersion(2)] [Export("mainRunLoop")] public static NSRunLoop MainRunLoop() { return default(NSRunLoop); } /// <summary> /// Returns the receiver&#39;s underlying CFRunLoop Reference object. /// </summary> [iOSVersion(2)] [Export("getCFRunLoop")] public virtual CFRunLoop GetCFRunLoop() { return default(CFRunLoop); } /// <summary> /// Registers a given timer with a given input mode. /// </summary> /// <param name="aTimer">The timer to register with the receiver.</param> /// <param name="forMode">The mode in which to add aTimer. You may specify a custom mode or use one of the modes listed in Run Loop Modes.</param> [iOSVersion(2)] [Export("addTimer")] public virtual void AddTimer(NSTimer aTimer, string forMode) { } /// <summary> /// Adds a port as an input source to the specified mode of the run loop. /// </summary> /// <param name="aPort">The port to add to the receiver.</param> /// <param name="forMode">The mode in which to add aPort. You may specify a custom mode or use one of the modes listed in Run Loop Modes.</param> [iOSVersion(2)] [Export("addPort")] public virtual void AddPort(NSPort aPort, string forMode) { } /// <summary> /// Removes a port from the specified input mode of the run loop. /// </summary> /// <param name="aPort">The port to remove from the receiver.</param> /// <param name="forMode">The mode from which to remove aPort. You may specify a custom mode or use one of the modes listed in Run Loop Modes.</param> [iOSVersion(2)] [Export("removePort")] public virtual void RemovePort(NSPort aPort, string forMode) { } /// <summary> /// Puts the receiver into a permanent loop, during which time it processes data from all attached input sources. /// </summary> [iOSVersion(2)] [Export("run")] public virtual void Run() { } /// <summary> /// Runs the loop once, blocking for input in the specified mode until a given date. /// </summary> /// <param name="mode">The mode in which to run. You may specify custom modes or use one of the modes listed in Run Loop Modes.</param> /// <param name="beforeDate">The date until which to block.</param> [iOSVersion(2)] [Export("runMode")] public virtual bool RunMode(string mode, NSDate beforeDate) { return default(bool); } /// <summary> /// Runs the loop until the specified date, during which time it processes data from all attached input sources. /// </summary> /// <param name="limitDate">The date up until which to run.</param> [iOSVersion(2)] [Export("runUntilDate")] public virtual void RunUntilDate(NSDate limitDate) { } /// <summary> /// Runs the loop once or until the specified date, accepting input only for the specified mode. /// </summary> /// <param name="mode">The mode in which to run. You may specify custom modes or use one of the modes listed in Run Loop Modes.</param> /// <param name="beforeDate">The date up until which to run.</param> [iOSVersion(2)] [Export("acceptInputForMode")] public virtual void AcceptInputForMode(string mode, NSDate beforeDate) { } /// <summary> /// Cancels the sending of a previously scheduled message. /// </summary> /// <param name="aSelector">The previously-specified selector.</param> /// <param name="target">The previously-specified target.</param> /// <param name="argument">The previously-specified argument.</param> [iOSVersion(2)] [Export("cancelPerformSelector")] public virtual void CancelPerformSelector(Selector aSelector, AnyObject target, [Optional] AnyObject argument) { } /// <summary> /// Cancels all outstanding ordered performs scheduled with a given target. /// </summary> /// <param name="target">The previously-specified target.</param> [iOSVersion(2)] [Export("cancelPerformSelectorsWithTarget")] public virtual void CancelPerformSelectorsWithTarget(AnyObject target) { } /// <summary> /// The receiver&#39;s current input mode. (read-only) /// </summary> [iOSVersion(2)] [Export("currentMode")] [Optional] public string CurrentMode { get; private set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSScanner.cs b/CocoaSharp/Foundation/NSScanner.cs
index f8c1c598..984e7273 100644
--- a/CocoaSharp/Foundation/NSScanner.cs
+++ b/CocoaSharp/Foundation/NSScanner.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSScanner class is an abstract superclass of a class cluster that declares the programmatic interface for an object that scans values from an NSString object. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSScanner_Class/index.html#//apple_ref/occ/cl/NSScanner"/> [iOSVersion(2)] public class NSScanner : NSObject//, AnyObject, NSCopying, NSObjectProtocol { /// <summary> /// Returns an NSScanner object that scans a given string according to the user’s default locale. /// </summary> /// <param name="aString">The string to scan.</param> [iOSVersion(2)] [Export("localizedScannerWithString")] public static AnyObject LocalizedScannerWithString(string aString) { return default(AnyObject); } /// <summary> /// Returns an NSScanner object initialized to scan a given string. /// </summary> /// <param name="@string">The string to scan.</param> [iOSVersion(2)] public NSScanner(string @string) { } /// <summary> /// Scans the string as long as characters from a given character set are encountered, accumulating characters into a string that’s returned by reference. /// </summary> /// <param name="scanSet">The set of characters to scan.</param> /// <param name="intoString">Upon return, contains the characters scanned.</param> [iOSVersion(2)] [Export("scanCharactersFromSet")] public bool ScanCharactersFromSet(NSCharacterSet scanSet, AutoreleasingUnsafePointer<string> intoString) { return default(bool); } /// <summary> /// Scans the string until a character from a given character set is encountered, accumulating characters into a string that’s returned by reference. /// </summary> /// <param name="stopSet">The set of characters up to which to scan.</param> /// <param name="intoString">Upon return, contains the characters scanned.</param> [iOSVersion(2)] [Export("scanUpToCharactersFromSet")] public bool ScanUpToCharactersFromSet(NSCharacterSet stopSet, AutoreleasingUnsafePointer<string> intoString) { return default(bool); } /// <summary> /// Scans for an NSDecimal value, returning a found value by reference. /// </summary> /// <param name="decimalValue">Upon return, contains the scanned value. See the NSDecimalNumber class specification for more information about NSDecimal values.</param> [iOSVersion(2)] [Export("scanDecimal")] public bool ScanDecimal(COpaquePointer decimalValue) { return default(bool); } /// <summary> /// Scans for a double value, returning a found value by reference. /// </summary> /// <param name="doubleValue">Upon return, contains the scanned value. Contains HUGE_VAL or –HUGE_VAL on overflow, or 0.0 on underflow.</param> [iOSVersion(2)] [Export("scanDouble")] public bool ScanDouble(UnsafePointer<Double> doubleValue) { return default(bool); } /// <summary> /// Scans for a float value, returning a found value by reference. /// </summary> /// <param name="floatValue">Upon return, contains the scanned value. Contains HUGE_VAL or –HUGE_VAL on overflow, or 0.0 on underflow.</param> [iOSVersion(2)] [Export("scanFloat")] public bool ScanFloat(UnsafePointer<float> floatValue) { return default(bool); } /// <summary> /// Scans for a double value from a hexadecimal representation, returning a found value by reference. /// </summary> /// <param name="result">Upon return, contains the scanned value. Contains HUGE_VAL or –HUGE_VAL on overflow, or 0.0 on underflow.</param> [iOSVersion(2)] [Export("scanHexDouble")] public bool ScanHexDouble(UnsafePointer<Double> result) { return default(bool); } /// <summary> /// Scans for a double value from a hexadecimal representation, returning a found value by reference. /// </summary> /// <param name="result">Upon return, contains the scanned value. Contains HUGE_VAL or –HUGE_VAL on overflow, or 0.0 on underflow.</param> [iOSVersion(2)] [Export("scanHexFloat")] public bool ScanHexFloat(UnsafePointer<float> result) { return default(bool); } /// <summary> /// Scans for an unsigned value from a hexadecimal representation, returning a found value by reference. /// </summary> /// <param name="intValue">Upon return, contains the scanned value. Contains UINT_MAX on overflow.</param> [iOSVersion(2)] [Export("scanHexInt")] public bool ScanHexInt(UnsafePointer<uint> intValue) { return default(bool); } /// <summary> /// Scans for a long long value from a hexadecimal representation, returning a found value by reference. /// </summary> /// <param name="result">Upon return, contains the scanned value. Contains HUGE_VAL or –HUGE_VAL on overflow.</param> [iOSVersion(2)] [Export("scanHexLongLong")] public bool ScanHexLongLong(UnsafePointer<UInt64> result) { return default(bool); } /// <summary> /// Scans for an NSInteger value from a decimal representation, returning a found value by reference /// </summary> /// <param name="value">Upon return, contains the scanned value. Contains INT_MAX or INT_MIN on overflow.</param> [iOSVersion(2)] [Export("scanInteger")] public bool ScanInteger(UnsafePointer<int> value) { return default(bool); } /// <summary> /// Scans for an int value from a decimal representation, returning a found value by reference. /// </summary> /// <param name="intValue">Upon return, contains the scanned value. Contains INT_MAX or INT_MIN on overflow.</param> [iOSVersion(2)] [Export("scanInt")] public bool ScanInt(UnsafePointer<int> intValue) { return default(bool); } /// <summary> /// Scans for a long long value from a decimal representation, returning a found value by reference. /// </summary> /// <param name="longLongValue">Upon return, contains the scanned value. Contains LLONG_MAX or LLONG_MIN on overflow.</param> [iOSVersion(2)] [Export("scanLongLong")] public bool ScanLongLong(UnsafePointer<Int64> longLongValue) { return default(bool); } /// <summary> /// Scans a given string, returning an equivalent string object by reference if a match is found. /// </summary> /// <param name="@string">The string for which to scan at the current scan location.</param> /// <param name="intoString">Upon return, if the receiver contains a string equivalent to string at the current scan location, contains a string equivalent to string.</param> [iOSVersion(2)] [Export("scanString")] public bool ScanString(string @string, AutoreleasingUnsafePointer<string> intoString) { return default(bool); } /// <summary> /// Scans for an unsigned long long value from a decimal representation, returning a found value by reference. /// </summary> /// <param name="unsignedLongLongValue">Upon return, contains the scanned value. Contains ULLONG_MAX on overflow.</param> [iOSVersion(7)] [Export("scanUnsignedLongLong")] public bool ScanUnsignedLongLong(UnsafePointer<UInt64> unsignedLongLongValue) { return default(bool); } /// <summary> /// Scans the string until a given string is encountered, accumulating characters into a string that’s returned by reference. /// </summary> /// <param name="stopString">The string to scan up to.</param> /// <param name="intoString">Upon return, contains any characters that were scanned.</param> [iOSVersion(2)] [Export("scanUpToString")] public bool ScanUpToString(string stopString, AutoreleasingUnsafePointer<string> intoString) { return default(bool); } /// <summary> /// The string the scanner will scan. (read-only) /// </summary> [iOSVersion(2)] [Export("string")] public string String { get; private set; } /// <summary> /// The character position at which the receiver will begin its next scanning operation. /// </summary> [iOSVersion(2)] [Export("scanLocation")] public int ScanLocation { get; set; } /// <summary> /// Flag that indicates whether the receiver distinguishes case in the characters it scans. /// </summary> [iOSVersion(2)] [Export("caseSensitive")] public bool CaseSensitive { get; set; } /// <summary> /// Character set containing the characters the scanner ignores when looking for a scannable element. /// </summary> [iOSVersion(2)] [Export("charactersToBeSkipped")] public NSCharacterSet CharactersToBeSkipped { get; set; } /// <summary> /// The locale to use when scanning. /// </summary> [iOSVersion(2)] [Export("locale")] public AnyObject Locale { get; set; } /// <summary> /// Flag that indicates whether the receiver has exhausted all significant characters. (read-only) /// </summary> [iOSVersion(8)] [Export("atEnd")] public bool AtEnd { get; private set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSScanner class is an abstract superclass of a class cluster that declares the programmatic interface for an object that scans values from an NSString object. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSScanner_Class/index.html#//apple_ref/occ/cl/NSScanner"/> [iOSVersion(2)] [Export("")] public class NSScanner : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSCopying, NSObjectProtocol, Printable { public NSScanner() { } /// <summary> /// Returns an NSScanner object that scans a given string according to the user’s default locale. /// </summary> /// <param name="aString">The string to scan.</param> [iOSVersion(2)] [Export("localizedScannerWithString")] public static AnyObject LocalizedScannerWithString(string aString) { return default(AnyObject); } /// <summary> /// Returns an NSScanner object initialized to scan a given string. /// </summary> /// <param name="@string">The string to scan.</param> [iOSVersion(2)] public NSScanner(string @string) { } /// <summary> /// Scans the string as long as characters from a given character set are encountered, accumulating characters into a string that’s returned by reference. /// </summary> /// <param name="scanSet">The set of characters to scan.</param> /// <param name="intoString">Upon return, contains the characters scanned.</param> [iOSVersion(2)] [Export("scanCharactersFromSet")] public virtual bool ScanCharactersFromSet(NSCharacterSet scanSet, AutoreleasingUnsafeMutablePointer<string> intoString) { return default(bool); } /// <summary> /// Scans the string until a character from a given character set is encountered, accumulating characters into a string that’s returned by reference. /// </summary> /// <param name="stopSet">The set of characters up to which to scan.</param> /// <param name="intoString">Upon return, contains the characters scanned.</param> [iOSVersion(2)] [Export("scanUpToCharactersFromSet")] public virtual bool ScanUpToCharactersFromSet(NSCharacterSet stopSet, AutoreleasingUnsafeMutablePointer<string> intoString) { return default(bool); } /// <summary> /// Scans for an NSDecimal value, returning a found value by reference. /// </summary> /// <param name="decimalValue">Upon return, contains the scanned value. See the NSDecimalNumber class specification for more information about NSDecimal values.</param> [iOSVersion(2)] [Export("scanDecimal")] public virtual bool ScanDecimal(COpaquePointer decimalValue) { return default(bool); } /// <summary> /// Scans for a double value, returning a found value by reference. /// </summary> /// <param name="doubleValue">Upon return, contains the scanned value. Contains HUGE_VAL or –HUGE_VAL on overflow, or 0.0 on underflow.</param> [iOSVersion(2)] [Export("scanDouble")] public virtual bool ScanDouble(UnsafeMutablePointer<Double> doubleValue) { return default(bool); } /// <summary> /// Scans for a float value, returning a found value by reference. /// </summary> /// <param name="floatValue">Upon return, contains the scanned value. Contains HUGE_VAL or –HUGE_VAL on overflow, or 0.0 on underflow.</param> [iOSVersion(2)] [Export("scanFloat")] public virtual bool ScanFloat(UnsafeMutablePointer<float> floatValue) { return default(bool); } /// <summary> /// Scans for a double value from a hexadecimal representation, returning a found value by reference. /// </summary> /// <param name="result">Upon return, contains the scanned value. Contains HUGE_VAL or –HUGE_VAL on overflow, or 0.0 on underflow.</param> [iOSVersion(2)] [Export("scanHexDouble")] public virtual bool ScanHexDouble(UnsafeMutablePointer<Double> result) { return default(bool); } /// <summary> /// Scans for a double value from a hexadecimal representation, returning a found value by reference. /// </summary> /// <param name="result">Upon return, contains the scanned value. Contains HUGE_VAL or –HUGE_VAL on overflow, or 0.0 on underflow.</param> [iOSVersion(2)] [Export("scanHexFloat")] public virtual bool ScanHexFloat(UnsafeMutablePointer<float> result) { return default(bool); } /// <summary> /// Scans for an unsigned value from a hexadecimal representation, returning a found value by reference. /// </summary> /// <param name="intValue">Upon return, contains the scanned value. Contains UINT_MAX on overflow.</param> [iOSVersion(2)] [Export("scanHexInt")] public virtual bool ScanHexInt(UnsafeMutablePointer<uint> intValue) { return default(bool); } /// <summary> /// Scans for a long long value from a hexadecimal representation, returning a found value by reference. /// </summary> /// <param name="result">Upon return, contains the scanned value. Contains HUGE_VAL or –HUGE_VAL on overflow.</param> [iOSVersion(2)] [Export("scanHexLongLong")] public virtual bool ScanHexLongLong(UnsafeMutablePointer<UInt64> result) { return default(bool); } /// <summary> /// Scans for an NSInteger value from a decimal representation, returning a found value by reference /// </summary> /// <param name="value">Upon return, contains the scanned value. Contains INT_MAX or INT_MIN on overflow.</param> [iOSVersion(2)] [Export("scanInteger")] public virtual bool ScanInteger(UnsafeMutablePointer<int> value) { return default(bool); } /// <summary> /// Scans for an int value from a decimal representation, returning a found value by reference. /// </summary> /// <param name="intValue">Upon return, contains the scanned value. Contains INT_MAX or INT_MIN on overflow.</param> [iOSVersion(2)] [Export("scanInt")] public virtual bool ScanInt(UnsafeMutablePointer<int> intValue) { return default(bool); } /// <summary> /// Scans for a long long value from a decimal representation, returning a found value by reference. /// </summary> /// <param name="longLongValue">Upon return, contains the scanned value. Contains LLONG_MAX or LLONG_MIN on overflow.</param> [iOSVersion(2)] [Export("scanLongLong")] public virtual bool ScanLongLong(UnsafeMutablePointer<Int64> longLongValue) { return default(bool); } /// <summary> /// Scans a given string, returning an equivalent string object by reference if a match is found. /// </summary> /// <param name="@string">The string for which to scan at the current scan location.</param> /// <param name="intoString">Upon return, if the receiver contains a string equivalent to string at the current scan location, contains a string equivalent to string.</param> [iOSVersion(2)] [Export("scanString")] public virtual bool ScanString(string @string, AutoreleasingUnsafeMutablePointer<string> intoString) { return default(bool); } /// <summary> /// Scans for an unsigned long long value from a decimal representation, returning a found value by reference. /// </summary> /// <param name="unsignedLongLongValue">Upon return, contains the scanned value. Contains ULLONG_MAX on overflow.</param> [iOSVersion(7)] [Export("scanUnsignedLongLong")] public virtual bool ScanUnsignedLongLong(UnsafeMutablePointer<UInt64> unsignedLongLongValue) { return default(bool); } /// <summary> /// Scans the string until a given string is encountered, accumulating characters into a string that’s returned by reference. /// </summary> /// <param name="stopString">The string to scan up to.</param> /// <param name="intoString">Upon return, contains any characters that were scanned.</param> [iOSVersion(2)] [Export("scanUpToString")] public virtual bool ScanUpToString(string stopString, AutoreleasingUnsafeMutablePointer<string> intoString) { return default(bool); } /// <summary> /// The string the scanner will scan. (read-only) /// </summary> [iOSVersion(2)] [Export("string")] public string String { get; private set; } /// <summary> /// The character position at which the receiver will begin its next scanning operation. /// </summary> [iOSVersion(2)] [Export("scanLocation")] public int ScanLocation { get; set; } /// <summary> /// Flag that indicates whether the receiver distinguishes case in the characters it scans. /// </summary> [iOSVersion(2)] [Export("caseSensitive")] public bool CaseSensitive { get; set; } /// <summary> /// Character set containing the characters the scanner ignores when looking for a scannable element. /// </summary> [iOSVersion(2)] [Export("charactersToBeSkipped")] [Optional] public NSCharacterSet CharactersToBeSkipped { get; set; } /// <summary> /// The locale to use when scanning. /// </summary> [iOSVersion(2)] [Export("locale")] [Optional] public AnyObject Locale { get; set; } /// <summary> /// Flag that indicates whether the receiver has exhausted all significant characters. (read-only) /// </summary> [iOSVersion(8)] [Export("atEnd")] public bool AtEnd { get; private set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSSet.cs b/CocoaSharp/Foundation/NSSet.cs
index 529264ad..5fe1cfb7 100644
--- a/CocoaSharp/Foundation/NSSet.cs
+++ b/CocoaSharp/Foundation/NSSet.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSSet, NSMutableSet, and NSCountedSet classes declare the programmatic interface to an unordered collection of objects. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSSet_Class/index.html#//apple_ref/occ/cl/NSSet"/> [iOSVersion(2)] public class NSSet : NSObject//, AnyObject, NSCoding, NSCopying, NSFastEnumeration, NSMutableCopying, NSObjectProtocol, NSSecureCoding, Reflectable, Sequence { /// <summary> /// Creates and returns a set that contains a single given object. /// </summary> /// <param name="@object">The object to add to the new set. object receives a retain message after being added to the set.</param> [iOSVersion(2)] [Export("convenience init")] public NSSet(AnyObject @object) { } /// <summary> /// Returns a new set formed by adding a given object to the receiving set. /// </summary> /// <param name="anObject">The object to add to the set.</param> [iOSVersion(2)] [Export("setByAddingObject")] public NSSet SetByAddingObject(AnyObject anObject) { return default(NSSet); } /// <summary> /// Returns a new set formed by adding the objects in a given set to the receiving set. /// </summary> /// <param name="other">The set of objects to add to the receiving set.</param> [iOSVersion(2)] [Export("setByAddingObjectsFromSet")] public NSSet SetByAddingObjectsFromSet(NSSet other) { return default(NSSet); } /// <summary> /// Returns a new set formed by adding the objects in a given array to the receiving set. /// </summary> /// <param name="other">The array of objects to add to the set.</param> [iOSVersion(2)] [Export("setByAddingObjectsFromArray")] public NSSet SetByAddingObjectsFromArray(AnyObject[] other) { return default(NSSet); } /// <summary> /// Initializes a newly allocated set with the objects that are contained in a given array. /// </summary> /// <param name="array">An array of objects to add to the new set. If the same object appears more than once in array, it is represented only once in the returned set. Each object receives a retain message as it is added to the set.</param> [iOSVersion(2)] [Export("convenience init")] public NSSet(AnyObject[] array) { } /// <summary> /// Initializes a newly allocated set with a specified number of objects from a given C array of objects. /// </summary> /// <param name="objects">A C array of objects to add to the new set. If the same object appears more than once in objects, it is added only once to the returned set. Each object receives a retain message as it is added to the set.</param> /// <param name="count">The number of objects from objects to add to the new set.</param> [iOSVersion(2)] public NSSet(ConstUnsafePointer<AnyObject> objects, int count) { } /// <summary> /// Initializes a newly allocated set and adds to it objects from another given set. /// </summary> /// <param name="set">A set containing objects to add to the receiving set. Each object is retained as it is added.</param> [iOSVersion(2)] [Export("convenience init")] public NSSet(NSSet set) { } /// <summary> /// Initializes a newly allocated set and adds to it members of another given set. /// </summary> /// <param name="set">A set containing objects to add to the new set.</param> /// <param name="copyItems">If true, each object in set receives a copyWithZone: message to create a copy of the object—objects must conform to the NSCopying protocol. In a managed memory environment, this is instead of the retain message the object would otherwise receive. The object copy is then added to the returned set. /// If false, then in a managed memory environment each object in set simply receives a retain message when it is added to the returned set.</param> [iOSVersion(2)] [Export("convenience init")] public NSSet(NSSet set, bool copyItems) { } /// <summary> /// Initializes a newly allocated set. /// </summary> [iOSVersion(7)] public NSSet() { } /// <summary> /// Returns one of the objects in the set, or nil if the set contains no objects. /// </summary> [iOSVersion(2)] [Export("anyObject")] public AnyObject AnyObject() { return default(AnyObject); } /// <summary> /// Returns a Boolean value that indicates whether a given object is present in the set. /// </summary> /// <param name="anObject">The object for which to test membership of the set.</param> [iOSVersion(2)] [Export("containsObject")] public bool ContainsObject(AnyObject anObject) { return default(bool); } /// <summary> /// Evaluates a given predicate against each object in the receiving set and returns a new set containing the objects for which the predicate returns true. /// </summary> /// <param name="predicate">A predicate.</param> [iOSVersion(3)] [Export("filteredSetUsingPredicate")] public NSSet FilteredSetUsingPredicate(NSPredicate predicate) { return default(NSSet); } /// <summary> /// Sends a message specified by a given selector to each object in the set. /// </summary> /// <param name="aSelector">A selector that specifies the message to send to the members of the set. The method must not take any arguments. It should not have the side effect of modifying the set. This value must not be NULL.</param> [iOSVersion(2)] [Export("makeObjectsPerformSelector")] public void MakeObjectsPerformSelector(Selector aSelector) { } /// <summary> /// Sends a message specified by a given selector to each object in the set. /// </summary> /// <param name="aSelector">A selector that specifies the message to send to the set's members. The method must take a single argument of type id. The method should not, as a side effect, modify the set. The value must not be NULL.</param> /// <param name="withObject">The object to pass as an argument to the method specified by aSelector.</param> [iOSVersion(2)] [Export("makeObjectsPerformSelector")] public void MakeObjectsPerformSelector(Selector aSelector, AnyObject withObject) { } /// <summary> /// Determines whether the set contains an object equal to a given object, and returns that object if it is present. /// </summary> /// <param name="@object">The object for which to test for membership of the set.</param> [iOSVersion(2)] [Export("member")] public AnyObject Member(AnyObject @object) { return default(AnyObject); } /// <summary> /// Returns an enumerator object that lets you access each object in the set. /// </summary> [iOSVersion(2)] [Export("objectEnumerator")] public NSEnumerator ObjectEnumerator() { return default(NSEnumerator); } /// <summary> /// Executes a given Block using each object in the set. /// </summary> /// <param name="block">The Block to apply to elements in the set. /// The Block takes two arguments: /// obj /// The element in the set. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the set. The stop argument is an out-only argument. You should only ever set this Boolean to YES within the Block. /// The Block returns a Boolean value that indicates whether obj passed the test.</param> [iOSVersion(4)] [Export("enumerateObjectsUsingBlock")] public void EnumerateObjectsUsingBlock(Action<AnyObject, UnsafePointer<ObjCBool>> block) { } /// <summary> /// Executes a given Block using each object in the set, using the specified enumeration options. /// </summary> /// <param name="opts">A bitmask that specifies the options for the enumeration.</param> /// <param name="usingBlock">The Block to apply to elements in the set. /// The Block takes two arguments: /// obj /// The element in the set. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the set. The stop argument is an out-only argument. You should only ever set this Boolean to YES within the Block. /// The Block returns a Boolean value that indicates whether obj passed the test.</param> [iOSVersion(4)] [Export("enumerateObjectsWithOptions")] public void EnumerateObjectsWithOptions(NSEnumerationOptions opts, Action<AnyObject, UnsafePointer<ObjCBool>> usingBlock) { } /// <summary> /// Returns a set of object that pass a test in a given Block. /// </summary> /// <param name="predicate">The block to apply to elements in the array. /// The block takes three arguments: /// obj /// The element in the set. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the set. The stop argument is an out-only argument. You should only ever set this Boolean to YES within the Block. /// The Block returns a Boolean value that indicates whether obj passed the test.</param> [iOSVersion(4)] [Export("objectsPassingTest")] public NSSet ObjectsPassingTest(Func<AnyObject, UnsafePointer<ObjCBool>, bool> predicate) { return default(NSSet); } /// <summary> /// Returns a set of object that pass a test in a given Block, using the specified enumeration options. /// </summary> /// <param name="opts">A bitmask that specifies the options for the enumeration.</param> /// <param name="passingTest">The Block to apply to elements in the set. /// The Block takes two arguments: /// obj /// The element in the set. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the set. The stop argument is an out-only argument. You should only ever set this Boolean to YES within the Block. /// The Block returns a Boolean value that indicates whether obj passed the test.</param> [iOSVersion(4)] [Export("objectsWithOptions")] public NSSet ObjectsWithOptions(NSEnumerationOptions opts, Func<AnyObject, UnsafePointer<ObjCBool>, bool> passingTest) { return default(NSSet); } /// <summary> /// Returns a Boolean value that indicates whether every object in the receiving set is also present in another given set. /// </summary> /// <param name="otherSet">The set with which to compare the receiving set.</param> [iOSVersion(2)] [Export("isSubsetOfSet")] public bool IsSubsetOfSet(NSSet otherSet) { return default(bool); } /// <summary> /// Returns a Boolean value that indicates whether at least one object in the receiving set is also present in another given set. /// </summary> /// <param name="otherSet">The set with which to compare the receiving set.</param> [iOSVersion(2)] [Export("intersectsSet")] public bool IntersectsSet(NSSet otherSet) { return default(bool); } /// <summary> /// Compares the receiving set to another set. /// </summary> /// <param name="otherSet">The set with which to compare the receiving set.</param> [iOSVersion(2)] [Export("isEqualToSet")] public bool IsEqualToSet(NSSet otherSet) { return default(bool); } /// <summary> /// Return a set containing the results of invoking valueForKey: on each of the receiving set's members. /// </summary> /// <param name="key">The name of one of the properties of the receiving set's members.</param> [iOSVersion(2)] [Export("valueForKey")] public AnyObject ValueForKey(string key) { return default(AnyObject); } /// <summary> /// Invokes setValue:forKey: on each of the set’s members. /// </summary> /// <param name="value">The value for the property identified by key.</param> /// <param name="forKey">The name of one of the properties of the set's members.</param> [iOSVersion(2)] [Export("setValue")] public void SetValue(AnyObject value, string forKey) { } /// <summary> /// Returns an array of the set’s content sorted as specified by a given array of sort descriptors. /// </summary> /// <param name="sortDescriptors">An array of NSSortDescriptor objects.</param> [iOSVersion(4)] [Export("sortedArrayUsingDescriptors")] public AnyObject[] SortedArrayUsingDescriptors(AnyObject[] sortDescriptors) { return default(AnyObject[]); } /// <summary> /// Raises an exception. /// </summary> /// <param name="observer">The object to register for KVO notifications. The observer must implement the key-value observing method observeValueForKeyPath:ofObject:change:context:.</param> /// <param name="forKeyPath">The key path, relative to the set, of the property to observe. This value must not be nil.</param> /// <param name="options">A combination of the NSKeyValueObservingOptions values that specifies what is included in observation notifications. For possible values, see NSKeyValueObservingOptions.</param> /// <param name="context">Arbitrary data that is passed to observer in observeValueForKeyPath:ofObject:change:context:.</param> [iOSVersion(2)] [Export("addObserver")] public void AddObserver(NSObject observer, string forKeyPath, NSKeyValueObservingOptions options, UnsafePointer<Action> context) { } /// <summary> /// Raises an exception. /// </summary> /// <param name="observer">The object to remove as an observer.</param> /// <param name="forKeyPath">A key-path, relative to the set, for which observer is registered to receive KVO change notifications. This value must not be nil.</param> /// <param name="context">Arbitrary data that is passed to observer in observeValueForKeyPath:ofObject:change:context:.</param> [iOSVersion(5)] [Export("removeObserver")] public void RemoveObserver(NSObject observer, string forKeyPath, UnsafePointer<Action> context) { } /// <summary> /// Raises an exception. /// </summary> /// <param name="observer">The object to remove as an observer.</param> /// <param name="forKeyPath">A key-path, relative to the set, for which observer is registered to receive KVO change notifications. This value must not be nil.</param> [iOSVersion(2)] [Export("removeObserver")] public void RemoveObserver(NSObject observer, string forKeyPath) { } /// <summary> /// Returns a string that represents the contents of the set, formatted as a property list. /// </summary> /// <param name="locale">On iOS and OS X v10.5 and later, either an instance of NSDictionary or an NSLocale object may be used for locale.On OS X v10.4 and earlier it must be an instance of NSDictionary.</param> [iOSVersion(2)] [Export("descriptionWithLocale")] public string DescriptionWithLocale(AnyObject locale) { return default(string); } /// <summary> /// The number of members in the set. (read-only) /// </summary> [iOSVersion(2)] [Export("count")] public int Count { get; private set; } /// <summary> /// An array containing the set’s members, or an empty array if the set has no members. (read-only) /// </summary> [iOSVersion(2)] [Export("allObjects")] public AnyObject[] AllObjects { get; private set; } /// <summary> /// A string that represents the contents of the set, formatted as a property list. (read-only) /// </summary> [iOSVersion(2)] [Export("description")] public string Description { get; private set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSSet, NSMutableSet, and NSCountedSet classes declare the programmatic interface to an unordered collection of objects. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSSet_Class/index.html#//apple_ref/occ/cl/NSSet"/> [iOSVersion(2)] [Export("")] public class NSSet : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSFastEnumeration, NSMutableCopying, NSObjectProtocol, NSSecureCoding, Printable, Reflectable, SequenceType { /// <summary> /// Creates and returns a set that contains a single given object. /// </summary> /// <param name="@object">The object to add to the new set. object receives a retain message after being added to the set.</param> [iOSVersion(2)] [Export("convenience init")] public NSSet(AnyObject @object) { } /// <summary> /// Returns a new set formed by adding a given object to the receiving set. /// </summary> /// <param name="anObject">The object to add to the set.</param> [iOSVersion(2)] [Export("setByAddingObject")] public virtual NSSet SetByAddingObject(AnyObject anObject) { return default(NSSet); } /// <summary> /// Returns a new set formed by adding the objects in a given set to the receiving set. /// </summary> /// <param name="other">The set of objects to add to the receiving set.</param> [iOSVersion(2)] [Export("setByAddingObjectsFromSet")] public virtual NSSet SetByAddingObjectsFromSet(NSSet other) { return default(NSSet); } /// <summary> /// Returns a new set formed by adding the objects in a given array to the receiving set. /// </summary> /// <param name="other">The array of objects to add to the set.</param> [iOSVersion(2)] [Export("setByAddingObjectsFromArray")] public virtual NSSet SetByAddingObjectsFromArray(AnyObject[] other) { return default(NSSet); } /// <summary> /// Initializes a newly allocated set with the objects that are contained in a given array. /// </summary> /// <param name="array">An array of objects to add to the new set. If the same object appears more than once in array, it is represented only once in the returned set. Each object receives a retain message as it is added to the set.</param> [iOSVersion(2)] [Export("convenience init")] public NSSet(AnyObject[] array) { } /// <summary> /// Initializes a newly allocated set with a specified number of objects from a given C array of objects. /// </summary> /// <param name="objects">A C array of objects to add to the new set. If the same object appears more than once in objects, it is added only once to the returned set. Each object receives a retain message as it is added to the set.</param> /// <param name="count">The number of objects from objects to add to the new set.</param> [iOSVersion(2)] public NSSet(UnsafePointer<AnyObject> objects, int count) { } /// <summary> /// Initializes a newly allocated set and adds to it objects from another given set. /// </summary> /// <param name="set">A set containing objects to add to the receiving set. Each object is retained as it is added.</param> [iOSVersion(2)] [Export("convenience init")] public NSSet(NSSet set) { } /// <summary> /// Initializes a newly allocated set and adds to it members of another given set. /// </summary> /// <param name="set">A set containing objects to add to the new set.</param> /// <param name="copyItems">If true, each object in set receives a copyWithZone: message to create a copy of the object—objects must conform to the NSCopying protocol. In a managed memory environment, this is instead of the retain message the object would otherwise receive. The object copy is then added to the returned set. /// If false, then in a managed memory environment each object in set simply receives a retain message when it is added to the returned set.</param> [iOSVersion(2)] [Export("convenience init")] public NSSet(NSSet set, bool copyItems) { } /// <summary> /// Initializes a newly allocated set. /// </summary> [iOSVersion(7)] public NSSet() { } /// <summary> /// Returns one of the objects in the set, or nil if the set contains no objects. /// </summary> [iOSVersion(2)] [Export("anyObject")] [return:Optional] public virtual AnyObject AnyObject() { return default(AnyObject); } /// <summary> /// Returns a Boolean value that indicates whether a given object is present in the set. /// </summary> /// <param name="anObject">The object for which to test membership of the set.</param> [iOSVersion(2)] [Export("containsObject")] public virtual bool ContainsObject(AnyObject anObject) { return default(bool); } /// <summary> /// Evaluates a given predicate against each object in the receiving set and returns a new set containing the objects for which the predicate returns true. /// </summary> /// <param name="predicate">A predicate.</param> [iOSVersion(3)] [Export("filteredSetUsingPredicate")] public virtual NSSet FilteredSetUsingPredicate(NSPredicate predicate) { return default(NSSet); } /// <summary> /// Determines whether the set contains an object equal to a given object, and returns that object if it is present. /// </summary> /// <param name="@object">The object for which to test for membership of the set.</param> [iOSVersion(2)] [Export("member")] [return:Optional] public virtual AnyObject Member(AnyObject @object) { return default(AnyObject); } /// <summary> /// Returns an enumerator object that lets you access each object in the set. /// </summary> [iOSVersion(2)] [Export("objectEnumerator")] public virtual NSEnumerator ObjectEnumerator() { return default(NSEnumerator); } /// <summary> /// Executes a given Block using each object in the set. /// </summary> /// <param name="block">The Block to apply to elements in the set. /// The Block takes two arguments: /// obj /// The element in the set. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the set. The stop argument is an out-only argument. You should only ever set this Boolean to YES within the Block. /// The Block returns a Boolean value that indicates whether obj passed the test.</param> [iOSVersion(4)] [Export("enumerateObjectsUsingBlock")] public virtual void EnumerateObjectsUsingBlock(Action<AnyObject, UnsafeMutablePointer<ObjCBool>> block) { } /// <summary> /// Executes a given Block using each object in the set, using the specified enumeration options. /// </summary> /// <param name="opts">A bitmask that specifies the options for the enumeration.</param> /// <param name="usingBlock">The Block to apply to elements in the set. /// The Block takes two arguments: /// obj /// The element in the set. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the set. The stop argument is an out-only argument. You should only ever set this Boolean to YES within the Block. /// The Block returns a Boolean value that indicates whether obj passed the test.</param> [iOSVersion(4)] [Export("enumerateObjectsWithOptions")] public virtual void EnumerateObjectsWithOptions(NSEnumerationOptions opts, Action<AnyObject, UnsafeMutablePointer<ObjCBool>> usingBlock) { } /// <summary> /// Returns a set of object that pass a test in a given Block. /// </summary> /// <param name="predicate">The block to apply to elements in the array. /// The block takes three arguments: /// obj /// The element in the set. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the set. The stop argument is an out-only argument. You should only ever set this Boolean to YES within the Block. /// The Block returns a Boolean value that indicates whether obj passed the test.</param> [iOSVersion(4)] [Export("objectsPassingTest")] public virtual NSSet ObjectsPassingTest(Func<AnyObject, UnsafeMutablePointer<ObjCBool>, bool> predicate) { return default(NSSet); } /// <summary> /// Returns a set of object that pass a test in a given Block, using the specified enumeration options. /// </summary> /// <param name="opts">A bitmask that specifies the options for the enumeration.</param> /// <param name="passingTest">The Block to apply to elements in the set. /// The Block takes two arguments: /// obj /// The element in the set. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the set. The stop argument is an out-only argument. You should only ever set this Boolean to YES within the Block. /// The Block returns a Boolean value that indicates whether obj passed the test.</param> [iOSVersion(4)] [Export("objectsWithOptions")] public virtual NSSet ObjectsWithOptions(NSEnumerationOptions opts, Func<AnyObject, UnsafeMutablePointer<ObjCBool>, bool> passingTest) { return default(NSSet); } /// <summary> /// Returns a Boolean value that indicates whether every object in the receiving set is also present in another given set. /// </summary> /// <param name="otherSet">The set with which to compare the receiving set.</param> [iOSVersion(2)] [Export("isSubsetOfSet")] public virtual bool IsSubsetOfSet(NSSet otherSet) { return default(bool); } /// <summary> /// Returns a Boolean value that indicates whether at least one object in the receiving set is also present in another given set. /// </summary> /// <param name="otherSet">The set with which to compare the receiving set.</param> [iOSVersion(2)] [Export("intersectsSet")] public virtual bool IntersectsSet(NSSet otherSet) { return default(bool); } /// <summary> /// Compares the receiving set to another set. /// </summary> /// <param name="otherSet">The set with which to compare the receiving set.</param> [iOSVersion(2)] [Export("isEqualToSet")] public virtual bool IsEqualToSet(NSSet otherSet) { return default(bool); } /// <summary> /// Return a set containing the results of invoking valueForKey: on each of the receiving set&#39;s members. /// </summary> /// <param name="key">The name of one of the properties of the receiving set&#39;s members.</param> [iOSVersion(2)] [Export("valueForKey")] public virtual AnyObject ValueForKey(string key) { return default(AnyObject); } /// <summary> /// Invokes setValue:forKey: on each of the set’s members. /// </summary> /// <param name="value">The value for the property identified by key.</param> /// <param name="forKey">The name of one of the properties of the set&#39;s members.</param> [iOSVersion(2)] [Export("setValue")] public virtual void SetValue([Optional] AnyObject value, string forKey) { } /// <summary> /// Returns an array of the set’s content sorted as specified by a given array of sort descriptors. /// </summary> /// <param name="sortDescriptors">An array of NSSortDescriptor objects.</param> [iOSVersion(4)] [Export("sortedArrayUsingDescriptors")] public virtual AnyObject[] SortedArrayUsingDescriptors(AnyObject[] sortDescriptors) { return default(AnyObject[]); } /// <summary> /// Raises an exception. /// </summary> /// <param name="observer">The object to register for KVO notifications. The observer must implement the key-value observing method observeValueForKeyPath:ofObject:change:context:.</param> /// <param name="forKeyPath">The key path, relative to the set, of the property to observe. This value must not be nil.</param> /// <param name="options">A combination of the NSKeyValueObservingOptions values that specifies what is included in observation notifications. For possible values, see NSKeyValueObservingOptions.</param> /// <param name="context">Arbitrary data that is passed to observer in observeValueForKeyPath:ofObject:change:context:.</param> [iOSVersion(2)] [Export("addObserver")] public virtual void AddObserver(NSObject observer, string forKeyPath, NSKeyValueObservingOptions options, UnsafeMutablePointer context) { } /// <summary> /// Raises an exception. /// </summary> /// <param name="observer">The object to remove as an observer.</param> /// <param name="forKeyPath">A key-path, relative to the set, for which observer is registered to receive KVO change notifications. This value must not be nil.</param> /// <param name="context">Arbitrary data that is passed to observer in observeValueForKeyPath:ofObject:change:context:.</param> [iOSVersion(5)] [Export("removeObserver")] public virtual void RemoveObserver(NSObject observer, string forKeyPath, UnsafeMutablePointer context) { } /// <summary> /// Raises an exception. /// </summary> /// <param name="observer">The object to remove as an observer.</param> /// <param name="forKeyPath">A key-path, relative to the set, for which observer is registered to receive KVO change notifications. This value must not be nil.</param> [iOSVersion(2)] [Export("removeObserver")] public virtual void RemoveObserver(NSObject observer, string forKeyPath) { } /// <summary> /// Returns a string that represents the contents of the set, formatted as a property list. /// </summary> /// <param name="locale">On iOS and OS X v10.5 and later, either an instance of NSDictionary or an NSLocale object may be used for locale.On OS X v10.4 and earlier it must be an instance of NSDictionary.</param> [iOSVersion(2)] [Export("descriptionWithLocale")] public virtual string DescriptionWithLocale([Optional] AnyObject locale) { return default(string); } /// <summary> /// The number of members in the set. (read-only) /// </summary> [iOSVersion(2)] [Export("count")] public int Count { get; private set; } /// <summary> /// An array containing the set’s members, or an empty array if the set has no members. (read-only) /// </summary> [iOSVersion(2)] [Export("allObjects")] public AnyObject[] AllObjects { get; private set; } /// <summary> /// A string that represents the contents of the set, formatted as a property list. (read-only) /// </summary> [iOSVersion(2)] [Export("description")] public string Description { get; private set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSSortDescriptor.cs b/CocoaSharp/Foundation/NSSortDescriptor.cs
index e98eb625..8c4bbc6d 100644
--- a/CocoaSharp/Foundation/NSSortDescriptor.cs
+++ b/CocoaSharp/Foundation/NSSortDescriptor.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// An instance of NSSortDescriptor describes a basis for ordering objects by specifying the property to use to compare the objects, the method to use to compare the properties, and whether the comparison should be ascending or descending. Instances of NSSortDescriptor are immutable. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSSortDescriptor_Class/index.html#//apple_ref/occ/cl/NSSortDescriptor"/> [iOSVersion(2)] public class NSSortDescriptor : NSObject//, AnyObject, NSCoding, NSCopying, NSObjectProtocol, NSSecureCoding { /// <summary> /// Returns an NSSortDescriptor object initialized with a given property key path and sort order, and with the default comparison selector. /// </summary> /// <param name="key">The property key to use when performing a comparison. In the comparison, the property is accessed using key-value coding (see Key-Value Coding Programming Guide).</param> /// <param name="ascending">true if the receiver specifies sorting in ascending order, otherwise false.</param> [iOSVersion(2)] public NSSortDescriptor(string key, bool ascending) { } /// <summary> /// Returns an NSSortDescriptor object initialized with a given property key path, sort order, and comparison selector. /// </summary> /// <param name="key">The property key to use when performing a comparison. In the comparison, the property is accessed using key-value coding (see Key-Value Coding Programming Guide).</param> /// <param name="ascending">true if the receiver specifies sorting in ascending order, otherwise false.</param> /// <param name="selector">The method to use when comparing the properties of objects, for example caseInsensitiveCompare: or localizedCompare:. The selector must specify a method implemented by the value of the property identified by keyPath. The selector used for the comparison is passed a single parameter, the object to compare against self, and must return the appropriate NSComparisonResult constant. The selector must have the same method signature as: /// - (NSComparisonResult)localizedCompare:(NSString *)aString</param> [iOSVersion(2)] public NSSortDescriptor(string key, bool ascending, Selector selector) { } /// <summary> /// Returns an NSSortDescriptor object initialized to do with the given ordering and comparator block. /// </summary> /// <param name="key">The property key to use when performing a comparison. In the comparison, the property is accessed using key-value coding (see Key-Value Coding Programming Guide).</param> /// <param name="ascending">true if the receiver specifies sorting in ascending order, otherwise false.</param> /// <param name="comparator">A comparator block.</param> [iOSVersion(4)] public NSSortDescriptor(string key, bool ascending, NSComparator comparator) { } /// <summary> /// Returns an NSComparisonResult value that indicates the ordering of two given objects. /// </summary> /// <param name="object1">The object to compare with object2. This object must have a property accessible using the key-path specified by key. /// This value must not be nil. If the value is nil, the behavior is undefined and may change in future versions of OS X.</param> /// <param name="toObject">The object to compare with object1. This object must have a property accessible using the key-path specified by key. /// This value must not be nil. If the value is nil, the behavior is undefined and may change in future versions of OS X.</param> [iOSVersion(2)] [Export("compareObject")] public NSComparisonResult CompareObject(AnyObject object1, AnyObject toObject) { return default(NSComparisonResult); } /// <summary> /// Force a sort descriptor that was securely decoded to allow evaluation. /// </summary> [iOSVersion(7)] [Export("allowEvaluation")] public void AllowEvaluation() { } /// <summary> /// A Boolean value that indicates whether the receiver specifies sorting in ascending order. (read-only) /// </summary> [iOSVersion(2)] [Export("ascending")] public bool Ascending { get; private set; } /// <summary> /// The receiver’s property key path. (read-only) /// </summary> [iOSVersion(2)] [Export("key")] public string Key { get; private set; } /// <summary> /// The selector the receiver specifies to use when comparing objects. /// </summary> [iOSVersion(2)] [Export("selector")] public Selector Selector { get; private set; } /// <summary> /// A sort descriptor with the sort order reversed. (read-only) /// </summary> [iOSVersion(2)] [Export("reversedSortDescriptor")] public AnyObject ReversedSortDescriptor { get; private set; } /// <summary> /// An NSComparator for the sort descriptor. (read-only) /// </summary> [iOSVersion(4)] [Export("comparator")] public NSComparator Comparator { get; private set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// An instance of NSSortDescriptor describes a basis for ordering objects by specifying the property to use to compare the objects, the method to use to compare the properties, and whether the comparison should be ascending or descending. Instances of NSSortDescriptor are immutable. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSSortDescriptor_Class/index.html#//apple_ref/occ/cl/NSSortDescriptor"/> [iOSVersion(2)] [Export("")] public class NSSortDescriptor : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSObjectProtocol, NSSecureCoding, Printable { public NSSortDescriptor() { } /// <summary> /// Returns an NSSortDescriptor object initialized with a given property key path and sort order, and with the default comparison selector. /// </summary> /// <param name="key">The property key to use when performing a comparison. In the comparison, the property is accessed using key-value coding (see Key-Value Coding Programming Guide).</param> /// <param name="ascending">true if the receiver specifies sorting in ascending order, otherwise false.</param> [iOSVersion(2)] public NSSortDescriptor(string key, bool ascending) { } /// <summary> /// Returns an NSSortDescriptor object initialized with a given property key path, sort order, and comparison selector. /// </summary> /// <param name="key">The property key to use when performing a comparison. In the comparison, the property is accessed using key-value coding (see Key-Value Coding Programming Guide).</param> /// <param name="ascending">true if the receiver specifies sorting in ascending order, otherwise false.</param> /// <param name="selector">The method to use when comparing the properties of objects, for example caseInsensitiveCompare: or localizedCompare:. The selector must specify a method implemented by the value of the property identified by keyPath. The selector used for the comparison is passed a single parameter, the object to compare against self, and must return the appropriate NSComparisonResult constant. The selector must have the same method signature as: /// - (NSComparisonResult)localizedCompare:(NSString *)aString</param> [iOSVersion(2)] public NSSortDescriptor(string key, bool ascending, Selector selector) { } /// <summary> /// Returns an NSSortDescriptor object initialized to do with the given ordering and comparator block. /// </summary> /// <param name="key">The property key to use when performing a comparison. In the comparison, the property is accessed using key-value coding (see Key-Value Coding Programming Guide).</param> /// <param name="ascending">true if the receiver specifies sorting in ascending order, otherwise false.</param> /// <param name="comparator">A comparator block.</param> [iOSVersion(4)] public NSSortDescriptor(string key, bool ascending, NSComparator comparator) { } /// <summary> /// Returns an NSComparisonResult value that indicates the ordering of two given objects. /// </summary> /// <param name="object1">The object to compare with object2. This object must have a property accessible using the key-path specified by key. /// This value must not be nil. If the value is nil, the behavior is undefined and may change in future versions of OS X.</param> /// <param name="toObject">The object to compare with object1. This object must have a property accessible using the key-path specified by key. /// This value must not be nil. If the value is nil, the behavior is undefined and may change in future versions of OS X.</param> [iOSVersion(2)] [Export("compareObject")] public virtual NSComparisonResult CompareObject(AnyObject object1, AnyObject toObject) { return default(NSComparisonResult); } /// <summary> /// Force a sort descriptor that was securely decoded to allow evaluation. /// </summary> [iOSVersion(7)] [Export("allowEvaluation")] public virtual void AllowEvaluation() { } /// <summary> /// A Boolean value that indicates whether the receiver specifies sorting in ascending order. (read-only) /// </summary> [iOSVersion(2)] [Export("ascending")] public bool Ascending { get; private set; } /// <summary> /// The receiver’s property key path. (read-only) /// </summary> [iOSVersion(2)] [Export("key")] [Optional] public string Key { get; private set; } /// <summary> /// The selector the receiver specifies to use when comparing objects. /// </summary> [iOSVersion(2)] [Export("selector")] public Selector Selector { get; private set; } /// <summary> /// A sort descriptor with the sort order reversed. (read-only) /// </summary> [iOSVersion(2)] [Export("reversedSortDescriptor")] [Unwrapped] public AnyObject ReversedSortDescriptor { get; private set; } /// <summary> /// An NSComparator for the sort descriptor. (read-only) /// </summary> [iOSVersion(4)] [Export("comparator")] [Optional] public NSComparator Comparator { get; private set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSStream.cs b/CocoaSharp/Foundation/NSStream.cs
index f2aad989..d4e72198 100644
--- a/CocoaSharp/Foundation/NSStream.cs
+++ b/CocoaSharp/Foundation/NSStream.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSStream is an abstract class for objects representing streams. Its interface is common to all Cocoa stream classes, including its concrete subclasses NSInputStream and NSOutputStream. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSStream_Class/index.html#//apple_ref/occ/cl/NSStream"/> [iOSVersion(2)] public class NSStream : NSObject//, AnyObject, NSObjectProtocol { /// <summary> /// Returns the receiver’s property for a given key. /// </summary> /// <param name="key">The key for one of the receiver's properties. See Constants for a description of the available property-key constants and associated values.</param> [iOSVersion(2)] [Export("propertyForKey")] public AnyObject PropertyForKey(string key) { return default(AnyObject); } /// <summary> /// Attempts to set the value of a given property of the receiver and returns a Boolean value that indicates whether the value is accepted by the receiver. /// </summary> /// <param name="property">The value for key.</param> /// <param name="forKey">The key for one of the receiver's properties. See Constants for a description of the available property-key constants and expected values.</param> [iOSVersion(2)] [Export("setProperty")] public bool SetProperty(AnyObject property, string forKey) { return default(bool); } /// <summary> /// Opens the receiving stream. /// </summary> [iOSVersion(2)] [Export("open")] public void Open() { } /// <summary> /// Closes the receiver. /// </summary> [iOSVersion(2)] [Export("close")] public void Close() { } /// <summary> /// Schedules the receiver on a given run loop in a given mode. /// </summary> /// <param name="aRunLoop">The run loop on which to schedule the receiver.</param> /// <param name="forMode">The mode for the run loop.</param> [iOSVersion(2)] [Export("scheduleInRunLoop")] public void ScheduleInRunLoop(NSRunLoop aRunLoop, string forMode) { } /// <summary> /// Removes the receiver from a given run loop running in a given mode. /// </summary> /// <param name="aRunLoop">The run loop on which the receiver was scheduled.</param> /// <param name="forMode">The mode for the run loop.</param> [iOSVersion(2)] [Export("removeFromRunLoop")] public void RemoveFromRunLoop(NSRunLoop aRunLoop, string forMode) { } /// <summary> /// Returns the receiver’s delegate. /// </summary> [iOSVersion(2)] [Export("delegate")] public NSStreamDelegate Delegate { get; set; } /// <summary> /// Returns the receiver’s status. /// </summary> [iOSVersion(2)] [Export("streamStatus")] public NSStreamStatus StreamStatus { get; private set; } /// <summary> /// Returns an NSError object representing the stream error. /// </summary> [iOSVersion(2)] [Export("streamError")] public NSError StreamError { get; private set; } } /// <summary> /// These constants indicate the current status of a stream. They are returned by streamStatus. /// </summary> public enum NSStreamStatus { /// <summary> /// The stream is not open for reading or writing. This status is returned before the underlying call to open a stream but after it’s been created. /// </summary> [iOSVersion(2)] NotOpen, /// <summary> /// The stream is in the process of being opened for reading or for writing. For network streams, this status might include the time after the stream was opened, but while network DNS resolution is happening. /// </summary> [iOSVersion(2)] Opening, /// <summary> /// The stream is open, but no reading or writing is occurring. /// </summary> [iOSVersion(2)] Open, /// <summary> /// Data is being read from the stream. This status would be returned if code on another thread were to call streamStatus on the stream while a read:maxLength: call (NSInputStream) was in progress. /// </summary> [iOSVersion(2)] Reading, /// <summary> /// Data is being written to the stream. This status would be returned if code on another thread were to call streamStatus on the stream while a write:maxLength: call (NSOutputStream) was in progress. /// </summary> [iOSVersion(2)] Writing, /// <summary> /// There is no more data to read, or no more data can be written to the stream. When this status is returned, the stream is in a “non-blocking” mode and no data are available. /// </summary> [iOSVersion(2)] AtEnd, /// <summary> /// The stream is closed (close has been called on it). /// </summary> [iOSVersion(2)] Closed, /// <summary> /// The remote end of the connection can’t be contacted, or the connection has been severed for some other reason. /// </summary> [iOSVersion(2)] Error, } /// <summary> /// One or more of these constants may be sent to the delegate as a bit field in the second parameter of stream:handleEvent:. /// </summary> [iOSVersion(2)] public enum NSStreamEvent { /// <summary> /// No event has occurred. /// </summary> [iOSVersion(2)] None, /// <summary> /// The open has completed successfully. /// </summary> [iOSVersion(2)] OpenCompleted, /// <summary> /// The stream has bytes to be read. /// </summary> [iOSVersion(2)] HasBytesAvailable, /// <summary> /// The stream can accept bytes for writing. /// </summary> [iOSVersion(2)] HasSpaceAvailable, /// <summary> /// An error has occurred on the stream. /// </summary> [iOSVersion(2)] ErrorOccurred, /// <summary> /// The end of the stream has been reached. /// </summary> [iOSVersion(2)] EndEncountered, } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSStream is an abstract class for objects representing streams. Its interface is common to all Cocoa stream classes, including its concrete subclasses NSInputStream and NSOutputStream. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSStream_Class/index.html#//apple_ref/occ/cl/NSStream"/> [iOSVersion(2)] [Export("")] public class NSStream : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSObjectProtocol, Printable { public NSStream() { } /// <summary> /// Returns the receiver’s property for a given key. /// </summary> /// <param name="key">The key for one of the receiver&#39;s properties. See Constants for a description of the available property-key constants and associated values.</param> [iOSVersion(2)] [Export("propertyForKey")] [return:Optional] public virtual AnyObject PropertyForKey(string key) { return default(AnyObject); } /// <summary> /// Attempts to set the value of a given property of the receiver and returns a Boolean value that indicates whether the value is accepted by the receiver. /// </summary> /// <param name="property">The value for key.</param> /// <param name="forKey">The key for one of the receiver&#39;s properties. See Constants for a description of the available property-key constants and expected values.</param> [iOSVersion(2)] [Export("setProperty")] public virtual bool SetProperty([Optional] AnyObject property, string forKey) { return default(bool); } /// <summary> /// Opens the receiving stream. /// </summary> [iOSVersion(2)] [Export("open")] public virtual void Open() { } /// <summary> /// Closes the receiver. /// </summary> [iOSVersion(2)] [Export("close")] public virtual void Close() { } /// <summary> /// Schedules the receiver on a given run loop in a given mode. /// </summary> /// <param name="aRunLoop">The run loop on which to schedule the receiver.</param> /// <param name="forMode">The mode for the run loop.</param> [iOSVersion(2)] [Export("scheduleInRunLoop")] public virtual void ScheduleInRunLoop(NSRunLoop aRunLoop, string forMode) { } /// <summary> /// Removes the receiver from a given run loop running in a given mode. /// </summary> /// <param name="aRunLoop">The run loop on which the receiver was scheduled.</param> /// <param name="forMode">The mode for the run loop.</param> [iOSVersion(2)] [Export("removeFromRunLoop")] public virtual void RemoveFromRunLoop(NSRunLoop aRunLoop, string forMode) { } /// <summary> /// Returns the receiver’s delegate. /// </summary> [iOSVersion(2)] [Export("delegate")] [Optional] public NSStreamDelegate Delegate { get; set; } /// <summary> /// Returns the receiver’s status. /// </summary> [iOSVersion(2)] [Export("streamStatus")] public NSStreamStatus StreamStatus { get; private set; } /// <summary> /// Returns an NSError object representing the stream error. /// </summary> [iOSVersion(2)] [Export("streamError")] [Optional] public NSError StreamError { get; private set; } } /// <summary> /// These constants indicate the current status of a stream. They are returned by streamStatus. /// </summary> public enum NSStreamStatus { /// <summary> /// The stream is not open for reading or writing. This status is returned before the underlying call to open a stream but after it’s been created. /// </summary> [iOSVersion(2)] NotOpen, /// <summary> /// The stream is in the process of being opened for reading or for writing. For network streams, this status might include the time after the stream was opened, but while network DNS resolution is happening. /// </summary> [iOSVersion(2)] Opening, /// <summary> /// The stream is open, but no reading or writing is occurring. /// </summary> [iOSVersion(2)] Open, /// <summary> /// Data is being read from the stream. This status would be returned if code on another thread were to call streamStatus on the stream while a read:maxLength: call (NSInputStream) was in progress. /// </summary> [iOSVersion(2)] Reading, /// <summary> /// Data is being written to the stream. This status would be returned if code on another thread were to call streamStatus on the stream while a write:maxLength: call (NSOutputStream) was in progress. /// </summary> [iOSVersion(2)] Writing, /// <summary> /// There is no more data to read, or no more data can be written to the stream. When this status is returned, the stream is in a “non-blocking” mode and no data are available. /// </summary> [iOSVersion(2)] AtEnd, /// <summary> /// The stream is closed (close has been called on it). /// </summary> [iOSVersion(2)] Closed, /// <summary> /// The remote end of the connection can’t be contacted, or the connection has been severed for some other reason. /// </summary> [iOSVersion(2)] Error, } /// <summary> /// One or more of these constants may be sent to the delegate as a bit field in the second parameter of stream:handleEvent:. /// </summary> public enum NSStreamEvent { /// <summary> /// No event has occurred. /// </summary> [iOSVersion(2)] None, /// <summary> /// The open has completed successfully. /// </summary> [iOSVersion(2)] OpenCompleted, /// <summary> /// The stream has bytes to be read. /// </summary> [iOSVersion(2)] HasBytesAvailable, /// <summary> /// The stream can accept bytes for writing. /// </summary> [iOSVersion(2)] HasSpaceAvailable, /// <summary> /// An error has occurred on the stream. /// </summary> [iOSVersion(2)] ErrorOccurred, /// <summary> /// The end of the stream has been reached. /// </summary> [iOSVersion(2)] EndEncountered, } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSString.cs b/CocoaSharp/Foundation/NSString.cs
index a0f4b88d..8230db8b 100644
--- a/CocoaSharp/Foundation/NSString.cs
+++ b/CocoaSharp/Foundation/NSString.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSString class declares the programmatic interface for an object that manages immutable strings. An immutable string is a text string that is defined when it is created and subsequently cannot be changed. NSString is implemented to represent an array of Unicode characters, in other words, a text string. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/index.html#//apple_ref/occ/cl/NSString"/> [iOSVersion(2)] //TODO: check circular dependency, why is NSString inherited from NSMutableString? wtf public class NSString// : NSMutableString//, AnyObject, NSCoding, NSCopying, NSMutableCopying, NSObjectProtocol, NSSecureCoding, Reflectable, StringLiteralConvertible { /// <summary> /// Returns an initialized NSString object that contains no characters. /// </summary> [iOSVersion(2)] public NSString() { } /// <summary> /// Returns an initialized NSString object containing a given number of bytes from a given buffer of bytes interpreted in a given encoding. /// </summary> /// <param name="bytes">A buffer of bytes interpreted in the encoding specified by encoding.</param> /// <param name="length">The number of bytes to use from bytes.</param> /// <param name="encoding">The character encoding applied to bytes.</param> [iOSVersion(2)] [Export("convenience init")] public NSString(ConstUnsafePointer<Action> bytes, int length, uint encoding) { } /// <summary> /// Returns an initialized NSString object that contains a given number of bytes from a given buffer of bytes interpreted in a given encoding, and optionally frees the buffer. /// </summary> /// <param name="bytesNoCopy">A buffer of bytes interpreted in the encoding specified by encoding.</param> /// <param name="length">The number of bytes to use from bytes.</param> /// <param name="encoding">The character encoding of bytes.</param> /// <param name="freeWhenDone">If true, the receiver frees the memory when it no longer needs the data; if false it won’t.</param> [iOSVersion(2)] [Export("convenience init")] public NSString(UnsafePointer<Action> bytesNoCopy, int length, uint encoding, bool freeWhenDone) { } /// <summary> /// Returns an initialized NSString object that contains a given number of characters from a given C array of Unicode characters. /// </summary> /// <param name="characters">A C array of Unicode characters; the value must not be NULL. /// Important /// Raises an exception if characters is NULL, even if length is 0.</param> /// <param name="length">The number of characters to use from characters.</param> [iOSVersion(2)] [Export("convenience init")] public NSString(ConstUnsafePointer<unichar> characters, int length) { } /// <summary> /// Returns an initialized NSString object that contains a given number of characters from a given C array of Unicode characters. /// </summary> /// <param name="charactersNoCopy">A C array of Unicode characters.</param> /// <param name="length">The number of characters to use from characters.</param> /// <param name="freeWhenDone">If true, the receiver will free the memory when it no longer needs the characters; if false it won’t.</param> [iOSVersion(2)] [Export("convenience init")] public NSString(UnsafePointer<unichar> charactersNoCopy, int length, bool freeWhenDone) { } /// <summary> /// Returns an NSString object initialized by copying the characters from another given string. /// </summary> /// <param name="@string">The string from which to copy characters. This value must not be nil. /// Important /// Raises an NSInvalidArgumentException if aString is nil.</param> [iOSVersion(2)] [Export("convenience init")] public NSString(string @string) { } /// <summary> /// Returns an NSString object initialized using the characters in a given C array, interpreted according to a given encoding. /// </summary> /// <param name="CString">A C array of characters. The array must end with a NULL character; intermediate NULL characters are not allowed.</param> /// <param name="encoding">The encoding of nullTerminatedCString.</param> [iOSVersion(2)] [Export("convenience init")] public NSString(ConstUnsafePointer<Int8> CString, uint encoding) { } /// <summary> /// Returns an NSString object initialized by copying the characters from a given C array of UTF8-encoded bytes. /// </summary> /// <param name="UTF8String">A NULL-terminated C array of bytes in UTF-8 encoding. This value must not be NULL. /// Important /// Raises an exception if bytes is NULL.</param> [iOSVersion(2)] [Export("convenience init")] public NSString(ConstUnsafePointer<Int8> UTF8String) { } /// <summary> /// Returns an NSString object initialized by using a given format string as a template into which the remaining argument values are substituted according to the current locale. /// </summary> /// <param name="format">A format string. See Formatting String Objects for examples of how to use this method, and String Format Specifiers for a list of format specifiers. This value must not be nil. /// Important /// Raises an NSInvalidArgumentException if format is nil.</param> /// <param name="arguments">A list of arguments to substitute into format.</param> [iOSVersion(2)] [Export("convenience init")] public NSString(string format, CVaListPointer arguments) { } /// <summary> /// Returns an NSString object initialized by using a given format string as a template into which the remaining argument values are substituted according to given locale information. /// </summary> /// <param name="format">A format string. See Formatting String Objects for examples of how to use this method, and String Format Specifiers for a list of format specifiers. This value must not be nil. /// Important /// Raises an NSInvalidArgumentException if format is nil.</param> /// <param name="locale">An NSLocale object specifying the locale to use. To use the current locale (specified by user preferences), pass [NSLocalecurrentLocale]. To use the system locale, pass nil. /// For legacy support, this may be an instance of NSDictionary containing locale information.</param> /// <param name="arguments">A list of arguments to substitute into format.</param> [iOSVersion(2)] [Export("convenience init")] public NSString(string format, AnyObject locale, CVaListPointer arguments) { } /// <summary> /// Returns an NSString object initialized by converting given data into Unicode characters using a given encoding. /// </summary> /// <param name="data">An NSData object containing bytes in encoding and the default plain text format (that is, pure content with no attributes or other markups) for that encoding.</param> /// <param name="encoding">The encoding used by data.</param> [iOSVersion(2)] [Export("convenience init")] public NSString(NSData data, uint encoding) { } /// <summary> /// Returns a string containing a given number of characters taken from a given C array of Unicode characters. /// </summary> /// <param name="chars">A C array of Unicode characters; the value must not be NULL. /// Important /// Raises an exception if chars is NULL, even if length is 0.</param> /// <param name="length">The number of characters to use from chars.</param> [iOSVersion(2)] [Export("stringWithCharacters")] public static NSString StringWithCharacters(ConstUnsafePointer<unichar> chars, int length) { return default(NSString); } /// <summary> /// Returns a string created by copying the characters from another given string. /// </summary> /// <param name="aString">The string from which to copy characters. This value must not be nil. /// Important /// Raises an NSInvalidArgumentException if aString is nil.</param> [iOSVersion(2)] [Export("stringWithString")] public static NSString StringWithString(string aString) { return default(NSString); } /// <summary> /// Returns a string containing the bytes in a given C array, interpreted according to a given encoding. /// </summary> /// <param name="cString">A C array of bytes. The array must end with a NULL byte; intermediate NULL bytes are not allowed.</param> /// <param name="encoding">The encoding of cString.</param> [iOSVersion(2)] [Export("stringWithCString")] public static NSString StringWithCString(ConstUnsafePointer<Int8> cString, uint encoding) { return default(NSString); } /// <summary> /// Returns a string created by copying the data from a given C array of UTF8-encoded bytes. /// </summary> /// <param name="bytes">A NULL-terminated C array of bytes in UTF8 encoding. /// Important /// Raises an exception if bytes is NULL.</param> [iOSVersion(2)] [Export("stringWithUTF8String")] public static NSString StringWithUTF8String(ConstUnsafePointer<Int8> bytes) { return default(NSString); } /// <summary> /// Returns a string created by reading data from the file at a given path interpreted using a given encoding. /// </summary> /// <param name="path">A path to a file.</param> /// <param name="encoding">The encoding of the file at path.</param> /// <param name="error">If an error occurs, upon returns contains an NSError object that describes the problem. If you are not interested in possible errors, pass in NULL.</param> [iOSVersion(2)] [Export("stringWithContentsOfFile")] public static NSString StringWithContentsOfFile(string path, uint encoding, NSErrorPointer error) { return default(NSString); } /// <summary> /// Returns an NSString object initialized by reading data from the file at a given path using a given encoding. /// </summary> /// <param name="contentsOfFile">A path to a file.</param> /// <param name="encoding">The encoding of the file at path.</param> /// <param name="error">If an error occurs, upon return contains an NSError object that describes the problem. If you are not interested in possible errors, pass in NULL.</param> [iOSVersion(2)] [Export("convenience init")] public NSString(string contentsOfFile, uint encoding, NSErrorPointer error) { } /// <summary> /// Returns a string created by reading data from the file at a given path and returns by reference the encoding used to interpret the file. /// </summary> /// <param name="path">A path to a file.</param> /// <param name="usedEncoding">Upon return, if the file is read successfully, contains the encoding used to interpret the file at path.</param> /// <param name="error">If an error occurs, upon returns contains an NSError object that describes the problem. If you are not interested in possible errors, you may pass in NULL.</param> [iOSVersion(2)] [Export("stringWithContentsOfFile")] public static NSString StringWithContentsOfFile(string path, UnsafePointer<uint> usedEncoding, NSErrorPointer error) { return default(NSString); } /// <summary> /// Returns an NSString object initialized by reading data from the file at a given path and returns by reference the encoding used to interpret the characters. /// </summary> /// <param name="contentsOfFile">A path to a file.</param> /// <param name="usedEncoding">Upon return, if the file is read successfully, contains the encoding used to interpret the file at path.</param> /// <param name="error">If an error occurs, upon returns contains an NSError object that describes the problem. If you are not interested in possible errors, pass in NULL.</param> [iOSVersion(2)] [Export("convenience init")] public NSString(string contentsOfFile, UnsafePointer<uint> usedEncoding, NSErrorPointer error) { } /// <summary> /// Returns a string created by reading data from a given URL interpreted using a given encoding. /// </summary> /// <param name="url">The URL to read.</param> /// <param name="encoding">The encoding of the data at url.</param> /// <param name="error">If an error occurs, upon returns contains an NSError object that describes the problem. If you are not interested in possible errors, you may pass in NULL.</param> [iOSVersion(2)] [Export("stringWithContentsOfURL")] public static NSString StringWithContentsOfURL(NSURL url, uint encoding, NSErrorPointer error) { return default(NSString); } /// <summary> /// Returns an NSString object initialized by reading data from a given URL interpreted using a given encoding. /// </summary> /// <param name="contentsOfURL">The URL to read.</param> /// <param name="encoding">The encoding of the file at path.</param> /// <param name="error">If an error occurs, upon returns contains an NSError object that describes the problem. If you are not interested in possible errors, pass in NULL.</param> [iOSVersion(2)] [Export("convenience init")] public NSString(NSURL contentsOfURL, uint encoding, NSErrorPointer error) { } /// <summary> /// Returns a string created by reading data from a given URL and returns by reference the encoding used to interpret the data. /// </summary> /// <param name="url">The URL from which to read data.</param> /// <param name="usedEncoding">Upon return, if url is read successfully, contains the encoding used to interpret the data.</param> /// <param name="error">If an error occurs, upon returns contains an NSError object that describes the problem. If you are not interested in possible errors, you may pass in NULL.</param> [iOSVersion(2)] [Export("stringWithContentsOfURL")] public static NSString StringWithContentsOfURL(NSURL url, UnsafePointer<uint> usedEncoding, NSErrorPointer error) { return default(NSString); } /// <summary> /// Returns an NSString object initialized by reading data from a given URL and returns by reference the encoding used to interpret the data. /// </summary> /// <param name="contentsOfURL">The URL from which to read data.</param> /// <param name="usedEncoding">Upon return, if url is read successfully, contains the encoding used to interpret the data.</param> /// <param name="error">If an error occurs, upon returns contains an NSError object that describes the problem. If you are not interested in possible errors, pass in NULL.</param> [iOSVersion(2)] [Export("convenience init")] public NSString(NSURL contentsOfURL, UnsafePointer<uint> usedEncoding, NSErrorPointer error) { } /// <summary> /// Writes the contents of the receiver to a file at a given path using a given encoding. /// </summary> /// <param name="path">The file to which to write the receiver. If path contains a tilde (~) character, you must expand it with stringByExpandingTildeInPath before invoking this method.</param> /// <param name="atomically">If true, the receiver is written to an auxiliary file, and then the auxiliary file is renamed to path. If false, the receiver is written directly to path. The true option guarantees that path, if it exists at all, won’t be corrupted even if the system should crash during writing.</param> /// <param name="encoding">The encoding to use for the output.</param> /// <param name="error">If there is an error, upon return contains an NSError object that describes the problem. If you are not interested in details of errors, you may pass in NULL.</param> [iOSVersion(2)] [Export("writeToFile")] public bool WriteToFile(string path, bool atomically, uint encoding, NSErrorPointer error) { return default(bool); } /// <summary> /// Writes the contents of the receiver to the URL specified by url using the specified encoding. /// </summary> /// <param name="url">The URL to which to write the receiver. Only file URLs are supported.</param> /// <param name="atomically">If true, the receiver is written to an auxiliary file, and then the auxiliary file is renamed to url. If false, the receiver is written directly to url. The true option guarantees that url, if it exists at all, won’t be corrupted even if the system should crash during writing. /// The useAuxiliaryFile parameter is ignored if url is not of a type that can be accessed atomically.</param> /// <param name="encoding">The encoding to use for the output.</param> /// <param name="error">If there is an error, upon return contains an NSError object that describes the problem. If you are not interested in details of errors, you may pass in NULL.</param> [iOSVersion(2)] [Export("writeToURL")] public bool WriteToURL(NSURL url, bool atomically, uint encoding, NSErrorPointer error) { return default(bool); } /// <summary> /// Returns the number of bytes required to store the receiver in a given encoding. /// </summary> /// <param name="enc">The encoding for which to determine the receiver's length.</param> [iOSVersion(2)] [Export("lengthOfBytesUsingEncoding")] public int LengthOfBytesUsingEncoding(uint enc) { return default(int); } /// <summary> /// Returns the maximum number of bytes needed to store the receiver in a given encoding. /// </summary> /// <param name="enc">The encoding for which to determine the receiver's length.</param> [iOSVersion(2)] [Export("maximumLengthOfBytesUsingEncoding")] public int MaximumLengthOfBytesUsingEncoding(uint enc) { return default(int); } /// <summary> /// Returns the character at a given array position. /// </summary> /// <param name="index">The index of the character to retrieve. The index value must not lie outside the bounds of the receiver.</param> [iOSVersion(2)] [Export("characterAtIndex")] public unichar CharacterAtIndex(int index) { return default(unichar); } /// <summary> /// Copies all characters from the receiver into a given buffer. /// </summary> /// <param name="buffer">Upon return, contains the characters from the receiver. buffer must be large enough to contain all characters in the string ([string length]*sizeof(unichar)).</param> [iOSVersion(2)] [Export("getCharacters")] public void GetCharacters(UnsafePointer<unichar> buffer) { } /// <summary> /// Copies characters from a given range in the receiver into a given buffer. /// </summary> /// <param name="buffer">Upon return, contains the characters from the receiver. buffer must be large enough to contain the characters in the range aRange (aRange.length*sizeof(unichar)).</param> /// <param name="range">The range of characters to retrieve. The range must not exceed the bounds of the receiver. /// Important /// Raises an NSRangeException if any part of aRange lies beyond the bounds of the receiver.</param> [iOSVersion(2)] [Export("getCharacters")] public void GetCharacters(UnsafePointer<unichar> buffer, NSRange range) { } /// <summary> /// Gets a given range of characters as bytes in a specified encoding. /// </summary> /// <param name="buffer">A buffer into which to store the bytes from the receiver. The returned bytes are not NULL-terminated.</param> /// <param name="maxLength">The maximum number of bytes to write to buffer.</param> /// <param name="usedLength">The number of bytes used from buffer. Pass NULL if you do not need this value.</param> /// <param name="encoding">The encoding to use for the returned bytes.</param> /// <param name="options">A mask to specify options to use for converting the receiver’s contents to encoding (if conversion is necessary).</param> /// <param name="range">The range of characters in the receiver to get.</param> /// <param name="remainingRange">The remaining range. Pass NULL If you do not need this value.</param> [iOSVersion(2)] [Export("getBytes")] public bool GetBytes(UnsafePointer<Action> buffer, int maxLength, UnsafePointer<int> usedLength, uint encoding, NSStringEncodingConversionOptions options, NSRange range, NSRangePointer remainingRange) { return default(bool); } /// <summary> /// Returns a representation of the receiver as a C string using a given encoding. /// </summary> /// <param name="encoding">The encoding for the returned C string.</param> [iOSVersion(2)] [Export("cStringUsingEncoding")] public ConstUnsafePointer<Int8> CStringUsingEncoding(uint encoding) { return default(ConstUnsafePointer<Int8>); } /// <summary> /// Converts the receiver’s content to a given encoding and stores them in a buffer. /// </summary> /// <param name="buffer">Upon return, contains the converted C-string plus the NULL termination byte. The buffer must include room for maxBufferCount bytes.</param> /// <param name="maxLength">The maximum number of bytes in the string to return in buffer (including the NULL termination byte).</param> /// <param name="encoding">The encoding for the returned C string.</param> [iOSVersion(2)] [Export("getCString")] public bool GetCString(UnsafePointer<Int8> buffer, int maxLength, uint encoding) { return default(bool); } /// <summary> /// Returns a new string made by appending a given string to the receiver. /// </summary> /// <param name="aString">The string to append to the receiver. This value must not be nil. /// Important /// Raises an NSInvalidArgumentException if aString is nil.</param> [iOSVersion(2)] [Export("stringByAppendingString")] public string StringByAppendingString(string aString) { return default(string); } /// <summary> /// Returns a new string formed from the receiver by either removing characters from the end, or by appending as many occurrences as necessary of a given pad string. /// </summary> /// <param name="newLength">The new length for the receiver.</param> /// <param name="withString">The string with which to extend the receiver.</param> /// <param name="startingAtIndex">The index in padString from which to start padding.</param> [iOSVersion(2)] [Export("stringByPaddingToLength")] public string StringByPaddingToLength(int newLength, string withString, int startingAtIndex) { return default(string); } /// <summary> /// Returns an array containing substrings from the receiver that have been divided by a given separator. /// </summary> /// <param name="separator">The separator string.</param> [iOSVersion(2)] [Export("componentsSeparatedByString")] public AnyObject[] ComponentsSeparatedByString(string separator) { return default(AnyObject[]); } /// <summary> /// Returns an array containing substrings from the receiver that have been divided by characters in a given set. /// </summary> /// <param name="separator">A character set containing the characters to to use to split the receiver. Must not be nil.</param> [iOSVersion(2)] [Export("componentsSeparatedByCharactersInSet")] public AnyObject[] ComponentsSeparatedByCharactersInSet(NSCharacterSet separator) { return default(AnyObject[]); } /// <summary> /// Returns a new string made by removing from both ends of the receiver characters contained in a given character set. /// </summary> /// <param name="set">A character set containing the characters to remove from the receiver. set must not be nil.</param> [iOSVersion(2)] [Export("stringByTrimmingCharactersInSet")] public string StringByTrimmingCharactersInSet(NSCharacterSet set) { return default(string); } /// <summary> /// Returns a new string containing the characters of the receiver from the one at a given index to the end. /// </summary> /// <param name="anIndex">An index. The value must lie within the bounds of the receiver, or be equal to the length of the receiver. /// Raises an NSRangeException if (anIndex - 1) lies beyond the end of the receiver.</param> [iOSVersion(2)] [Export("substringFromIndex")] public string SubstringFromIndex(int anIndex) { return default(string); } /// <summary> /// Returns a string object containing the characters of the receiver that lie within a given range. /// </summary> /// <param name="aRange">A range. The range must not exceed the bounds of the receiver. /// Raises an NSRangeException if (aRange.location - 1) or (aRange.location + aRange.length - 1) lies beyond the end of the receiver.</param> [iOSVersion(2)] [Export("substringWithRange")] public string SubstringWithRange(NSRange aRange) { return default(string); } /// <summary> /// Returns a new string containing the characters of the receiver up to, but not including, the one at a given index. /// </summary> /// <param name="anIndex">An index. The value must lie within the bounds of the receiver, or be equal to the length of the receiver. /// Raises an NSRangeException if (anIndex - 1) lies beyond the end of the receiver.</param> [iOSVersion(2)] [Export("substringToIndex")] public string SubstringToIndex(int anIndex) { return default(string); } /// <summary> /// Finds and returns the range in the receiver of the first character from a given character set. /// </summary> /// <param name="aSet">A character set. This value must not be nil. /// Raises an NSInvalidArgumentException if aSet is nil.</param> [iOSVersion(2)] [Export("rangeOfCharacterFromSet")] public NSRange RangeOfCharacterFromSet(NSCharacterSet aSet) { return default(NSRange); } /// <summary> /// Finds and returns the range in the receiver of the first character, using given options, from a given character set. /// </summary> /// <param name="aSet">A character set. This value must not be nil. /// Raises an NSInvalidArgumentException if aSet is nil.</param> /// <param name="options">A mask specifying search options. The following options may be specified by combining them with the C bitwise OR operator: NSAnchoredSearch, NSBackwardsSearch.</param> [iOSVersion(2)] [Export("rangeOfCharacterFromSet")] public NSRange RangeOfCharacterFromSet(NSCharacterSet aSet, NSStringCompareOptions options) { return default(NSRange); } /// <summary> /// Finds and returns the range in the receiver of the first character from a given character set found in a given range with given options. /// </summary> /// <param name="aSet">A character set. This value must not be nil. /// Raises an NSInvalidArgumentException if aSet is nil.</param> /// <param name="options">A mask specifying search options. The following options may be specified by combining them with the C bitwise OR operator: NSAnchoredSearch, NSBackwardsSearch.</param> /// <param name="range">The range in which to search. aRange must not exceed the bounds of the receiver. /// Raises an NSRangeException if aRange is invalid.</param> [iOSVersion(2)] [Export("rangeOfCharacterFromSet")] public NSRange RangeOfCharacterFromSet(NSCharacterSet aSet, NSStringCompareOptions options, NSRange range) { return default(NSRange); } /// <summary> /// Finds and returns the range of the first occurrence of a given string within the receiver. /// </summary> /// <param name="aString">The string to search for. This value must not be nil. /// Raises an NSInvalidArgumentException if aString is nil.</param> [iOSVersion(2)] [Export("rangeOfString")] public NSRange RangeOfString(string aString) { return default(NSRange); } /// <summary> /// Finds and returns the range of the first occurrence of a given string within the receiver, subject to given options. /// </summary> /// <param name="aString">The string to search for. This value must not be nil. /// Important /// Raises an NSInvalidArgumentException if aString is nil.</param> /// <param name="options">A mask specifying search options. The following options may be specified by combining them with the C bitwise OR operator: NSCaseInsensitiveSearch, NSLiteralSearch, NSBackwardsSearch, NSAnchoredSearch. See String Programming Guide for details on these options.</param> [iOSVersion(2)] [Export("rangeOfString")] public NSRange RangeOfString(string aString, NSStringCompareOptions options) { return default(NSRange); } /// <summary> /// Finds and returns the range of the first occurrence of a given string, within the given range of the receiver, subject to given options. /// </summary> /// <param name="aString">The string for which to search. This value must not be nil. /// Raises an NSInvalidArgumentException if aString is nil.</param> /// <param name="options">A mask specifying search options. The following options may be specified by combining them with the C bitwise OR operator: NSCaseInsensitiveSearch, NSLiteralSearch, NSBackwardsSearch, and NSAnchoredSearch. See String Programming Guide for details on these options.</param> /// <param name="range">The range within the receiver for which to search for aString. /// Raises an NSRangeException if aRange is invalid.</param> [iOSVersion(2)] [Export("rangeOfString")] public NSRange RangeOfString(string aString, NSStringCompareOptions options, NSRange range) { return default(NSRange); } /// <summary> /// Finds and returns the range of the first occurrence of a given string within a given range of the receiver, subject to given options, using the specified locale, if any. /// </summary> /// <param name="aString">The string for which to search. This value must not be nil. /// Raises an NSInvalidArgumentException if aString is nil.</param> /// <param name="options">A mask specifying search options. The following options may be specified by combining them with the C bitwise OR operator: NSCaseInsensitiveSearch, NSLiteralSearch, NSBackwardsSearch, and NSAnchoredSearch. See String Programming Guide for details on these options.</param> /// <param name="range">The range within the receiver for which to search for aString. /// Raises an NSRangeException if aRange is invalid.</param> /// <param name="locale">The locale to use when comparing the receiver with aString. To use the current locale, pass [NSLocalecurrentLocale]. To use the system locale, pass nil. /// The locale argument affects the equality checking algorithm. For example, for the Turkish locale, case-insensitive compare matches “I” to “ı” (Unicode code point U+0131, Latin Small Dotless I), not the normal “i” character.</param> [iOSVersion(2)] [Export("rangeOfString")] public NSRange RangeOfString(string aString, NSStringCompareOptions options, NSRange range, NSLocale locale) { return default(NSRange); } /// <summary> /// Enumerates all the lines in a string. /// </summary> /// <param name="block">The block executed for the enumeration. /// The block takes two arguments: /// line /// The current line of the string being enumerated. The line contains just the contents of the line, without the line terminators. See getLineStart:end:contentsEnd:forRange: for a discussion of line terminators. /// stop /// A reference to a Boolean value that the block can use to stop the enumeration by setting *stop = YES; it should not touch *stop otherwise.</param> [iOSVersion(4)] [Export("enumerateLinesUsingBlock")] public void EnumerateLinesUsingBlock(Action<string, UnsafePointer<ObjCBool>> block) { } /// <summary> /// Enumerates the substrings of the specified type in the specified range of the string. /// </summary> /// <param name="range">The range within the string to enumerate substrings.</param> /// <param name="options">Options specifying types of substrings and enumeration styles.</param> /// <param name="usingBlock">The block executed for the enumeration. /// The block takes four arguments: /// substring /// The enumerated string. /// substringRange /// The range of the enumerated string in the receiver. /// enclosingRange /// The range that includes the substring as well as any separator or filler characters that follow. For instance, for lines, enclosingRange contains the line terminators. The enclosingRange for the first string enumerated also contains any characters that occur before the string. Consecutive enclosing ranges are guaranteed not to overlap, and every single character in the enumerated range is included in one and only one enclosing range. /// stop /// A reference to a Boolean value that the block can use to stop the enumeration by setting *stop = YES; it should not touch *stop otherwise.</param> [iOSVersion(4)] [Export("enumerateSubstringsInRange")] public void EnumerateSubstringsInRange(NSRange range, NSStringEnumerationOptions options, Action<string, NSRange, NSRange, UnsafePointer<ObjCBool>> usingBlock) { } /// <summary> /// Returns a new string in which all occurrences of a target string in the receiver are replaced by another given string. /// </summary> /// <param name="target">The string to replace.</param> /// <param name="withString">The string with which to replace target.</param> [iOSVersion(2)] [Export("stringByReplacingOccurrencesOfString")] public string StringByReplacingOccurrencesOfString(string target, string withString) { return default(string); } /// <summary> /// Returns a new string in which all occurrences of a target string in a specified range of the receiver are replaced by another given string. /// </summary> /// <param name="target">The string to replace.</param> /// <param name="withString">The string with which to replace target.</param> /// <param name="options">A mask of options to use when comparing target with the receiver. Pass 0 to specify no options.</param> /// <param name="range">The range in the receiver in which to search for target.</param> [iOSVersion(2)] [Export("stringByReplacingOccurrencesOfString")] public string StringByReplacingOccurrencesOfString(string target, string withString, NSStringCompareOptions options, NSRange range) { return default(string); } /// <summary> /// Returns a new string in which the characters in a specified range of the receiver are replaced by a given string. /// </summary> /// <param name="range">A range of characters in the receiver.</param> /// <param name="withString">The string with which to replace the characters in range.</param> [iOSVersion(2)] [Export("stringByReplacingCharactersInRange")] public string StringByReplacingCharactersInRange(NSRange range, string withString) { return default(string); } /// <summary> /// Returns by reference the beginning of the first line and the end of the last line touched by the given range. /// </summary> /// <param name="startIndex">Upon return, contains the index of the first character of the line containing the beginning of aRange. Pass NULL if you do not need this value (in which case the work to compute the value isn’t performed).</param> /// <param name="end">Upon return, contains the index of the first character past the terminator of the line containing the end of aRange. Pass NULL if you do not need this value (in which case the work to compute the value isn’t performed).</param> /// <param name="contentsEnd">Upon return, contains the index of the first character of the terminator of the line containing the end of aRange. Pass NULL if you do not need this value (in which case the work to compute the value isn’t performed).</param> /// <param name="forRange">A range within the receiver. The value must not exceed the bounds of the receiver. /// Raises an NSRangeException if aRange is invalid.</param> [iOSVersion(2)] [Export("getLineStart")] public void GetLineStart(UnsafePointer<int> startIndex, UnsafePointer<int> end, UnsafePointer<int> contentsEnd, NSRange forRange) { } /// <summary> /// Returns the range of characters representing the line or lines containing a given range. /// </summary> /// <param name="aRange">A range within the receiver. The value must not exceed the bounds of the receiver.</param> [iOSVersion(2)] [Export("lineRangeForRange")] public NSRange LineRangeForRange(NSRange aRange) { return default(NSRange); } /// <summary> /// Returns by reference the beginning of the first paragraph and the end of the last paragraph touched by the given range. /// </summary> /// <param name="startIndex">Upon return, contains the index of the first character of the paragraph containing the beginning of aRange. Pass NULL if you do not need this value (in which case the work to compute the value isn’t performed).</param> /// <param name="end">Upon return, contains the index of the first character past the terminator of the paragraph containing the end of aRange. Pass NULL if you do not need this value (in which case the work to compute the value isn’t performed).</param> /// <param name="contentsEnd">Upon return, contains the index of the first character of the terminator of the paragraph containing the end of aRange. Pass NULL if you do not need this value (in which case the work to compute the value isn’t performed).</param> /// <param name="forRange">A range within the receiver. The value must not exceed the bounds of the receiver.</param> [iOSVersion(2)] [Export("getParagraphStart")] public void GetParagraphStart(UnsafePointer<int> startIndex, UnsafePointer<int> end, UnsafePointer<int> contentsEnd, NSRange forRange) { } /// <summary> /// Returns the range of characters representing the paragraph or paragraphs containing a given range. /// </summary> /// <param name="aRange">A range within the receiver. The range must not exceed the bounds of the receiver.</param> [iOSVersion(2)] [Export("paragraphRangeForRange")] public NSRange ParagraphRangeForRange(NSRange aRange) { return default(NSRange); } /// <summary> /// Returns the range in the receiver of the composed character sequence located at a given index. /// </summary> /// <param name="anIndex">The index of a character in the receiver. The value must not exceed the bounds of the receiver.</param> [iOSVersion(2)] [Export("rangeOfComposedCharacterSequenceAtIndex")] public NSRange RangeOfComposedCharacterSequenceAtIndex(int anIndex) { return default(NSRange); } /// <summary> /// Returns the range in the string of the composed character sequences for a given range. /// </summary> /// <param name="range">A range in the receiver. The range must not exceed the bounds of the receiver.</param> [iOSVersion(2)] [Export("rangeOfComposedCharacterSequencesForRange")] public NSRange RangeOfComposedCharacterSequencesForRange(NSRange range) { return default(NSRange); } /// <summary> /// Parses the receiver as a text representation of a property list, returning an NSString, NSData, NSArray, or NSDictionary object, according to the topmost element. /// </summary> [iOSVersion(2)] [Export("propertyList")] public AnyObject PropertyList() { return default(AnyObject); } /// <summary> /// Returns a dictionary object initialized with the keys and values found in the receiver. /// </summary> [iOSVersion(2)] [Export("propertyListFromStringsFileFormat")] public Dictionary<NSObject, AnyObject> PropertyListFromStringsFileFormat() { return default(Dictionary<NSObject, AnyObject>); } /// <summary> /// Returns the result of invoking compare:options: with NSCaseInsensitiveSearch as the only option. /// </summary> /// <param name="aString">The string with which to compare the receiver. /// This value must not be nil. If this value is nil, the behavior is undefined and may change in future versions of OS X.</param> [iOSVersion(2)] [Export("caseInsensitiveCompare")] public NSComparisonResult CaseInsensitiveCompare(string aString) { return default(NSComparisonResult); } /// <summary> /// Compares the string with a given string using a case-insensitive, localized, comparison. /// </summary> /// <param name="aString">The string with which to compare the receiver. /// This value must not be nil. If this value is nil, the behavior is undefined and may change in future versions of OS X.</param> [iOSVersion(2)] [Export("localizedCaseInsensitiveCompare")] public NSComparisonResult LocalizedCaseInsensitiveCompare(string aString) { return default(NSComparisonResult); } /// <summary> /// Returns the result of invoking compare:options:range: with no options and the receiver’s full extent as the range. /// </summary> /// <param name="aString">The string with which to compare the receiver. /// This value must not be nil. If this value is nil, the behavior is undefined and may change in future versions of OS X.</param> [iOSVersion(2)] [Export("compare")] public NSComparisonResult Compare(string aString) { return default(NSComparisonResult); } /// <summary> /// Compares the string and a given string using a localized comparison. /// </summary> /// <param name="aString">The string with which to compare the receiver. /// This value must not be nil. If this value is nil, the behavior is undefined and may change in future versions of OS X.</param> [iOSVersion(2)] [Export("localizedCompare")] public NSComparisonResult LocalizedCompare(string aString) { return default(NSComparisonResult); } /// <summary> /// Compares the string with the specified string using the given options. /// </summary> /// <param name="aString">The string with which to compare the receiver. /// This value must not be nil. If this value is nil, the behavior is undefined and may change in future versions of OS X.</param> /// <param name="options">Options for the search—you can combine any of the following using a C bitwise OR operator: NSCaseInsensitiveSearch, NSLiteralSearch, NSNumericSearch. See String Programming Guide for details on these options.</param> [iOSVersion(2)] [Export("compare")] public NSComparisonResult Compare(string aString, NSStringCompareOptions options) { return default(NSComparisonResult); } /// <summary> /// Returns the result of invoking compare:options:range:locale: with a nil locale. /// </summary> /// <param name="aString">The string with which to compare the range of the receiver specified by range. /// This value must not be nil. If this value is nil, the behavior is undefined and may change in future versions of OS X.</param> /// <param name="options">Options for the search—you can combine any of the following using a C bitwise OR operator: NSCaseInsensitiveSearch, NSLiteralSearch, NSNumericSearch. /// See String Programming Guide for details on these options.</param> /// <param name="range">The range of the receiver over which to perform the comparison. The range must not exceed the bounds of the receiver. /// Important /// Raises an NSRangeException if range exceeds the bounds of the receiver.</param> [iOSVersion(2)] [Export("compare")] public NSComparisonResult Compare(string aString, NSStringCompareOptions options, NSRange range) { return default(NSComparisonResult); } /// <summary> /// Compares the string using the specified options and returns the lexical ordering for the range. /// </summary> /// <param name="aString">The string with which to compare the range of the receiver specified by range. /// This value must not be nil. If this value is nil, the behavior is undefined and may change in future versions of OS X.</param> /// <param name="options">Options for the search—you can combine any of the following using a C bitwise OR operator: NSCaseInsensitiveSearch, NSLiteralSearch, NSNumericSearch. /// See String Programming Guide for details on these options.</param> /// <param name="range">The range of the receiver over which to perform the comparison. The range must not exceed the bounds of the receiver. /// Important /// Raises an NSRangeException if range exceeds the bounds of the receiver.</param> /// <param name="locale">An instance of NSLocale. To use the current locale, pass [NSLocale currentLocale]. For example, if you are comparing strings to present to the end-user, use the current locale. To use the system locale, pass nil.</param> [iOSVersion(2)] [Export("compare")] public NSComparisonResult Compare(string aString, NSStringCompareOptions options, NSRange range, AnyObject locale) { return default(NSComparisonResult); } /// <summary> /// Compares strings as sorted by the Finder. /// </summary> /// <param name="@string">The string to compare with the receiver.</param> [iOSVersion(4)] [Export("localizedStandardCompare")] public NSComparisonResult LocalizedStandardCompare(string @string) { return default(NSComparisonResult); } /// <summary> /// Returns a Boolean value that indicates whether a given string matches the beginning characters of the receiver. /// </summary> /// <param name="aString">A string.</param> [iOSVersion(2)] [Export("hasPrefix")] public bool HasPrefix(string aString) { return default(bool); } /// <summary> /// Returns a Boolean value that indicates whether a given string matches the ending characters of the receiver. /// </summary> /// <param name="aString">A string.</param> [iOSVersion(2)] [Export("hasSuffix")] public bool HasSuffix(string aString) { return default(bool); } /// <summary> /// Returns a Boolean value that indicates whether a given string is equal to the receiver using a literal Unicode-based comparison. /// </summary> /// <param name="aString">The string with which to compare the receiver.</param> [iOSVersion(2)] [Export("isEqualToString")] public bool IsEqualToString(string aString) { return default(bool); } /// <summary> /// Returns a string with the given character folding options applied. /// </summary> /// <param name="options">A mask of compare flags with a suffix InsensitiveSearch.</param> /// <param name="locale">The locale to use for the folding. To use the current locale, pass [NSLocalecurrentLocale]. To use the system locale, pass nil.</param> [iOSVersion(2)] [Export("stringByFoldingWithOptions")] public string StringByFoldingWithOptions(NSStringCompareOptions options, NSLocale locale) { return default(string); } /// <summary> /// Returns a string containing characters the receiver and a given string have in common, starting from the beginning of each up to the first characters that aren’t equivalent. /// </summary> /// <param name="aString">The string with which to compare the receiver.</param> /// <param name="options">Options for the comparison. The following search options may be specified by combining them with the C bitwise OR operator: NSCaseInsensitiveSearch, NSLiteralSearch. See String Programming Guide for details on these options.</param> [iOSVersion(2)] [Export("commonPrefixWithString")] public string CommonPrefixWithString(string aString, NSStringCompareOptions options) { return default(string); } /// <summary> /// Returns a capitalized representation of the receiver using the specified locale. /// </summary> /// <param name="locale">The locale. For strings presented to users, pass the current locale ([NSLocalecurrentLocale]). To use the system locale, pass nil.</param> [iOSVersion(6)] [Export("capitalizedStringWithLocale")] public string CapitalizedStringWithLocale(NSLocale locale) { return default(string); } /// <summary> /// Returns a version of the string with all letters converted to lowercase, taking into account the specified locale. /// </summary> /// <param name="locale">The locale. For strings presented to users, pass the current locale ([NSLocalecurrentLocale]). To use the system local, pass nil.</param> [iOSVersion(6)] [Export("lowercaseStringWithLocale")] public string LowercaseStringWithLocale(NSLocale locale) { return default(string); } /// <summary> /// Returns a version of the string with all letters converted to uppercase, taking into account the specified locale. /// </summary> /// <param name="locale">The locale. For strings presented to users, pass the current locale ([NSLocalecurrentLocale]). To use the system locale, pass nil.</param> [iOSVersion(6)] [Export("uppercaseStringWithLocale")] public string UppercaseStringWithLocale(NSLocale locale) { return default(string); } /// <summary> /// Returns a zero-terminated list of the encodings string objects support in the application’s environment. /// </summary> [iOSVersion(2)] [Export("availableStringEncodings")] public static ConstUnsafePointer<uint> AvailableStringEncodings() { return default(ConstUnsafePointer<uint>); } /// <summary> /// Returns the C-string encoding assumed for any method accepting a C string as an argument. /// </summary> [iOSVersion(2)] [Export("defaultCStringEncoding")] public static uint DefaultCStringEncoding() { return default(uint); } /// <summary> /// Returns a human-readable string giving the name of a given encoding. /// </summary> /// <param name="encoding">A string encoding.</param> [iOSVersion(2)] [Export("localizedNameOfStringEncoding")] public static string LocalizedNameOfStringEncoding(uint encoding) { return default(string); } /// <summary> /// Returns a Boolean value that indicates whether the receiver can be converted to a given encoding without loss of information. /// </summary> /// <param name="encoding">A string encoding.</param> [iOSVersion(2)] [Export("canBeConvertedToEncoding")] public bool CanBeConvertedToEncoding(uint encoding) { return default(bool); } /// <summary> /// Returns an NSData object containing a representation of the receiver encoded using a given encoding. /// </summary> /// <param name="encoding">A string encoding.</param> [iOSVersion(2)] [Export("dataUsingEncoding")] public NSData DataUsingEncoding(uint encoding) { return default(NSData); } /// <summary> /// Returns an NSData object containing a representation of the receiver encoded using a given encoding. /// </summary> /// <param name="encoding">A string encoding.</param> /// <param name="allowLossyConversion">If true, then allows characters to be removed or altered in conversion.</param> [iOSVersion(2)] [Export("dataUsingEncoding")] public NSData DataUsingEncoding(uint encoding, bool allowLossyConversion) { return default(NSData); } /// <summary> /// Returns a string built from the strings in a given array by concatenating them with a path separator between each pair. /// </summary> /// <param name="components">An array of NSString objects representing a file path. To create an absolute path, use a slash mark (“/”) as the first component. To include a trailing path divider, use an empty string as the last component.</param> [iOSVersion(2)] [Export("pathWithComponents")] public static string PathWithComponents(AnyObject[] components) { return default(string); } /// <summary> /// Interprets the receiver as a path in the file system and attempts to perform filename completion, returning a numeric value that indicates whether a match was possible, and by reference the longest path that matches the receiver. /// </summary> /// <param name="outputName">Upon return, contains the longest path that matches the receiver.</param> /// <param name="caseSensitive">If true, the method considers case for possible completions.</param> /// <param name="matchesIntoArray">Upon return, contains all matching filenames.</param> /// <param name="filterTypes">An array of NSString objects specifying path extensions to consider for completion. Only paths whose extensions (not including the extension separator) match one of these strings are included in outputArray. Pass nil if you don’t want to filter the output.</param> [iOSVersion(2)] [Export("completePathIntoString")] public int CompletePathIntoString(AutoreleasingUnsafePointer<string> outputName, bool caseSensitive, AutoreleasingUnsafePointer<NSArray> matchesIntoArray, AnyObject[] filterTypes) { return default(int); } /// <summary> /// Interprets the receiver as a system-independent path and fills a buffer with a C-string in a format and encoding suitable for use with file-system calls. /// </summary> /// <param name="buffer">Upon return, contains a C-string that represent the receiver as as a system-independent path, plus the NULL termination byte. The size of buffer must be large enough to contain maxLength bytes.</param> /// <param name="maxLength">The maximum number of bytes in the string to return in buffer (including a terminating NULL character, which this method adds).</param> [iOSVersion(2)] [Export("getFileSystemRepresentation")] public bool GetFileSystemRepresentation(UnsafePointer<Int8> buffer, int maxLength) { return default(bool); } /// <summary> /// Returns a new string made by appending to the receiver a given string. /// </summary> /// <param name="aString">The path component to append to the receiver.</param> [iOSVersion(2)] [Export("stringByAppendingPathComponent")] public string StringByAppendingPathComponent(string aString) { return default(string); } /// <summary> /// Returns a new string made by appending to the receiver an extension separator followed by a given extension. /// </summary> /// <param name="ext">The extension to append to the receiver.</param> [iOSVersion(2)] [Export("stringByAppendingPathExtension")] public string StringByAppendingPathExtension(string ext) { return default(string); } /// <summary> /// Returns an array of strings made by separately appending to the receiver each string in in a given array. /// </summary> /// <param name="paths">An array of NSString objects specifying paths to add to the receiver.</param> [iOSVersion(2)] [Export("stringsByAppendingPaths")] public AnyObject[] StringsByAppendingPaths(AnyObject[] paths) { return default(AnyObject[]); } /// <summary> /// Returns a representation of the receiver using a given encoding to determine the percent escapes necessary to convert the receiver into a legal URL string. /// </summary> /// <param name="encoding">The encoding to use for the returned string. If you are uncertain of the correct encoding you should use NSUTF8StringEncoding.</param> [iOSVersion(2)] [Export("stringByAddingPercentEscapesUsingEncoding")] public string StringByAddingPercentEscapesUsingEncoding(uint encoding) { return default(string); } /// <summary> /// Returns a new string made by replacing in the receiver all percent escapes with the matching characters as determined by a given encoding. /// </summary> /// <param name="encoding">The encoding to use for the returned string.</param> [iOSVersion(2)] [Export("stringByReplacingPercentEscapesUsingEncoding")] public string StringByReplacingPercentEscapesUsingEncoding(uint encoding) { return default(string); } /// <summary> /// Returns a new string made from the receiver by replacing all characters not in the specified set with percent encoded characters. /// </summary> /// <param name="allowedCharacters">The characters not replaced in the string.</param> [iOSVersion(7)] [Export("stringByAddingPercentEncodingWithAllowedCharacters")] public string StringByAddingPercentEncodingWithAllowedCharacters(NSCharacterSet allowedCharacters) { return default(string); } /// <summary> /// Performs linguistic analysis on the specified string by enumerating the specific range of the string, providing the Block with the located tags. /// </summary> /// <param name="range">The range of the string to analyze.</param> /// <param name="scheme">The tag scheme to use. See Linguistic Tag Schemes for supported values.</param> /// <param name="options">The linguistic tagger options to use. See NSLinguisticTaggerOptionsfor the constants. These constants can be combined using the C-Bitwise OR operator.</param> /// <param name="orthography">The orthography of the string. If nil, the linguistic tagger will attempt to determine the orthography from the string content.</param> /// <param name="usingBlock">The Block to apply to the string. /// The block takes four arguments: /// tag /// The tag scheme for the token. The opts parameter specifies the types of tagger options that are located. /// tokenRange /// The range of a string matching the tag scheme. /// sentenceRange /// The range of the sentence in which the token is found. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the array. The stop argument is an out-only argument. You should only ever set this Boolean to true within the Block.</param> [iOSVersion(5)] [Export("enumerateLinguisticTagsInRange")] public void EnumerateLinguisticTagsInRange(NSRange range, string scheme, NSLinguisticTaggerOptions options, NSOrthography orthography, Action<string, NSRange, NSRange, UnsafePointer<ObjCBool>> usingBlock) { } /// <summary> /// Returns an array of linguistic tags for the specified range and requested tags within the receiving string. /// </summary> /// <param name="range">The range of the string to analyze.</param> /// <param name="scheme">The tag scheme to use. See Linguistic Tag Schemes for supported values.</param> /// <param name="options">The linguistic tagger options to use. See NSLinguisticTaggerOptions for the constants. These constants can be combined using the C-Bitwise OR operator.</param> /// <param name="orthography">The orthography of the string. If nil, the linguistic tagger will attempt to determine the orthography from the string content.</param> /// <param name="tokenRanges">An array returned by-reference containing the token ranges of the linguistic tags wrapped in NSValue objects.</param> [iOSVersion(5)] [Export("linguisticTagsInRange")] public AnyObject[] LinguisticTagsInRange(NSRange range, string scheme, NSLinguisticTaggerOptions options, NSOrthography orthography, AutoreleasingUnsafePointer<NSArray> tokenRanges) { return default(AnyObject[]); } /// <summary> /// The number of Unicode characters in the receiver. (read-only) /// </summary> [iOSVersion(2)] [Export("length")] public int Length { get; private set; } /// <summary> /// A null-terminated UTF8 representation of the string. (read-only) /// </summary> [iOSVersion(2)] public ConstUnsafePointer<Int8> UTF8String { get; private set; } /// <summary> /// An unsigned integer that can be used as a hash table address. (read-only) /// </summary> [iOSVersion(2)] [Export("hash")] public int Hash { get; private set; } /// <summary> /// A capitalized representation of the receiver. (read-only) /// </summary> [iOSVersion(2)] [Export("capitalizedString")] public string CapitalizedString { get; private set; } /// <summary> /// A lowercase representation of the string. /// </summary> [iOSVersion(2)] [Export("lowercaseString")] public string LowercaseString { get; private set; } /// <summary> /// An uppercase representation of the string. (read-only) /// </summary> [iOSVersion(2)] [Export("uppercaseString")] public string UppercaseString { get; private set; } /// <summary> /// A string made by normalizing the string’s contents using the Unicode Normalization Form D. (read-only) /// </summary> [iOSVersion(2)] [Export("decomposedStringWithCanonicalMapping")] public string DecomposedStringWithCanonicalMapping { get; private set; } /// <summary> /// A string made by normalizing the receiver’s contents using the Unicode Normalization Form KD. (read-only) /// </summary> [iOSVersion(2)] [Export("decomposedStringWithCompatibilityMapping")] public string DecomposedStringWithCompatibilityMapping { get; private set; } /// <summary> /// A string made by normalizing the string’s contents using the Unicode Normalization Form C. (read-only) /// </summary> [iOSVersion(2)] [Export("precomposedStringWithCanonicalMapping")] public string PrecomposedStringWithCanonicalMapping { get; private set; } /// <summary> /// A string made by normalizing the receiver’s contents using the Unicode Normalization Form KC. (read-only) /// </summary> [iOSVersion(2)] [Export("precomposedStringWithCompatibilityMapping")] public string PrecomposedStringWithCompatibilityMapping { get; private set; } /// <summary> /// The floating-point value of the string as a double. (read-only) /// </summary> [iOSVersion(2)] [Export("doubleValue")] public Double DoubleValue { get; private set; } /// <summary> /// The floating-point value of the string as a float. (read-only) /// </summary> [iOSVersion(2)] [Export("floatValue")] public float FloatValue { get; private set; } /// <summary> /// The integer value of the string. (read-only) /// </summary> [iOSVersion(2)] [Export("intValue")] public int IntValue { get; private set; } /// <summary> /// The NSInteger value of the string. (read-only) /// </summary> [iOSVersion(2)] [Export("integerValue")] public int IntegerValue { get; private set; } /// <summary> /// The long long value of the string. (read-only) /// </summary> [iOSVersion(2)] [Export("longLongValue")] public Int64 LongLongValue { get; private set; } /// <summary> /// The Boolean value of the string. (read-only) /// </summary> [iOSVersion(2)] [Export("boolValue")] public bool BoolValue { get; private set; } /// <summary> /// This NSString object. (read-only) /// </summary> [iOSVersion(2)] [Export("description")] public string Description { get; private set; } /// <summary> /// The fastest encoding to which the receiver may be converted without loss of information. (read-only) /// </summary> [iOSVersion(2)] [Export("fastestEncoding")] public uint FastestEncoding { get; private set; } /// <summary> /// The smallest encoding to which the receiver can be converted without loss of information. (read-only) /// </summary> [iOSVersion(2)] [Export("smallestEncoding")] public uint SmallestEncoding { get; private set; } /// <summary> /// Returns an array of NSString objects containing, in order, each path component of the receiver. /// </summary> [iOSVersion(2)] [Export("pathComponents")] public AnyObject[] PathComponents { get; private set; } /// <summary> /// Returns a file system-specific representation of the receiver. /// </summary> [iOSVersion(2)] [Export("fileSystemRepresentation")] public ConstUnsafePointer<Int8> FileSystemRepresentation { get; private set; } /// <summary> /// Returns the last path component of the receiver. /// </summary> [iOSVersion(2)] [Export("lastPathComponent")] public string LastPathComponent { get; private set; } /// <summary> /// Interprets the receiver as a path and returns the receiver’s extension, if any. /// </summary> [iOSVersion(2)] [Export("pathExtension")] public string PathExtension { get; private set; } /// <summary> /// Returns a new string that replaces the current home directory portion of the current path with a tilde (~) character. /// </summary> [iOSVersion(2)] [Export("stringByAbbreviatingWithTildeInPath")] public string StringByAbbreviatingWithTildeInPath { get; private set; } /// <summary> /// Returns a new string made by deleting the last path component from the receiver, along with any final path separator. /// </summary> [iOSVersion(2)] [Export("stringByDeletingLastPathComponent")] public string StringByDeletingLastPathComponent { get; private set; } /// <summary> /// Returns a new string made by deleting the extension (if any, and only the last) from the receiver. /// </summary> [iOSVersion(2)] [Export("stringByDeletingPathExtension")] public string StringByDeletingPathExtension { get; private set; } /// <summary> /// Returns a new string made by expanding the initial component of the receiver to its full path value. /// </summary> [iOSVersion(2)] [Export("stringByExpandingTildeInPath")] public string StringByExpandingTildeInPath { get; private set; } /// <summary> /// Returns a new string made from the receiver by resolving all symbolic links and standardizing path. /// </summary> [iOSVersion(2)] [Export("stringByResolvingSymlinksInPath")] public string StringByResolvingSymlinksInPath { get; private set; } /// <summary> /// Returns a new string made by removing extraneous path components from the receiver. /// </summary> [iOSVersion(2)] [Export("stringByStandardizingPath")] public string StringByStandardizingPath { get; private set; } /// <summary> /// Returns a new string made from the receiver by replacing all percent encoded sequences with the matching UTF-8 characters. /// </summary> [iOSVersion(7)] [Export("stringByRemovingPercentEncoding")] public string StringByRemovingPercentEncoding { get; private set; } /// <summary> /// The following constants are provided by NSString as possible string encodings. /// </summary> public int NSProprietaryStringEncoding { get; set; } } /// <summary> /// Type for encoding conversion options. /// </summary> [iOSVersion(2)] public enum NSStringEncodingConversionOptions { /// <summary> /// /// </summary> AllowLossy, /// <summary> /// /// </summary> ExternalRepresentation, } /// <summary> /// These values represent the options available to many of the string classes’ search and comparison methods. /// </summary> public enum NSStringCompareOptions { /// <summary> /// A case-insensitive search. /// </summary> [iOSVersion(2)] CaseInsensitiveSearch, /// <summary> /// Exact character-by-character equivalence. /// </summary> [iOSVersion(2)] LiteralSearch, /// <summary> /// Search from end of source string. /// </summary> [iOSVersion(2)] BackwardsSearch, /// <summary> /// Search is limited to start (or end, if NSBackwardsSearch) of source string. /// </summary> [iOSVersion(2)] AnchoredSearch, /// <summary> /// Numbers within strings are compared using numeric value, that is, Name2.txt < Name7.txt < Name25.txt. /// Numeric comparison only applies to the numerals in the string, not other characters that would have meaning in a true number such as a negative sign or a decimal point. /// This option only applies to compare methods, not find. /// </summary> [iOSVersion(2)] NumericSearch, /// <summary> /// Search ignores diacritic marks. /// For example, ‘ö’ is equal to ‘o’. /// </summary> [iOSVersion(2)] DiacriticInsensitiveSearch, /// <summary> /// Search ignores width differences in characters that have full-width and half-width forms, as occurs in East Asian character sets. /// For example, with this option, the full-width Latin small letter 'a' (Unicode code point U+FF41) is equal to the basic Latin small letter 'a' (Unicode code point U+0061). /// </summary> [iOSVersion(2)] WidthInsensitiveSearch, /// <summary> /// Comparisons are forced to return either NSOrderedAscending or NSOrderedDescending if the strings are equivalent but not strictly equal. /// This option ensures reliable, reproducible results when sorting. For example, “aaa” is greater than &quot;AAA” if NSCaseInsensitiveSearch is specified. /// </summary> [iOSVersion(2)] ForcedOrderingSearch, /// <summary> /// The search string is treated as an ICU-compatible regular expression. If set, no other options can apply except NSCaseInsensitiveSearch and NSAnchoredSearch. You can use this option only with the rangeOfString:... methods and stringByReplacingOccurrencesOfString:withString:options:range:. /// </summary> [iOSVersion(3.2)] RegularExpressionSearch, } /// <summary> /// Constants to specify kinds of substrings and styles of enumeration. /// </summary> [iOSVersion(4)] public enum NSStringEnumerationOptions { /// <summary> /// Enumerates by lines. Equivalent to lineRangeForRange:. /// </summary> [iOSVersion(4)] ByLines, /// <summary> /// Enumerates by paragraphs. Equivalent to paragraphRangeForRange:. /// </summary> [iOSVersion(4)] ByParagraphs, /// <summary> /// Enumerates by composed character sequences. Equivalent to rangeOfComposedCharacterSequencesForRange:. /// </summary> [iOSVersion(4)] ByComposedCharacterSequences, /// <summary> /// Enumerates by words. /// </summary> [iOSVersion(4)] ByWords, /// <summary> /// Enumerates by sentences. /// </summary> [iOSVersion(4)] BySentences, /// <summary> /// Causes enumeration to occur from the end of the specified range to the start. /// </summary> [iOSVersion(4)] Reverse, /// <summary> /// A way to indicate that the block does not need substring, in which case nil will be passed. This is simply a performance shortcut. /// </summary> [iOSVersion(4)] SubstringNotRequired, /// <summary> /// Causes the enumeration to occur using the current locale. This does not make a difference in line, paragraph, or composed character sequence enumeration, but it may for words or sentences. /// </summary> [iOSVersion(4)] Localized, } /// <summary> /// Type for Unicode characters. /// </summary> [iOSVersion(2)] [Export("unichar")] public struct Unichar { static public implicit operator Unichar(UInt16 value) { return default(Unichar); } static public implicit operator UInt16(Unichar value) { return default(UInt16); } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSString class declares the programmatic interface for an object that manages immutable strings. An immutable string is a text string that is defined when it is created and subsequently cannot be changed. NSString is implemented to represent an array of Unicode characters, in other words, a text string. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/index.html#//apple_ref/occ/cl/NSString"/> [iOSVersion(2)] [Export("")] public class NSString/* : NSMutableString*///, AnyObject, CKRecordValue, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSMutableCopying, NSObjectProtocol, NSSecureCoding, Printable, Reflectable, StringLiteralConvertible { /// <summary> /// Returns an initialized NSString object that contains no characters. /// </summary> [iOSVersion(2)] public NSString() { } /// <summary> /// Returns an initialized NSString object that contains a given number of characters from a given C array of Unicode characters. /// </summary> /// <param name="characters">A C array of Unicode characters; the value must not be NULL. /// Important /// Raises an exception if characters is NULL, even if length is 0.</param> /// <param name="length">The number of characters to use from characters.</param> [iOSVersion(2)] [Export("convenience init")] public NSString(UnsafePointer<unichar> characters, int length) { } /// <summary> /// Returns an initialized NSString object that contains a given number of characters from a given C array of Unicode characters. /// </summary> /// <param name="charactersNoCopy">A C array of Unicode characters.</param> /// <param name="length">The number of characters to use from characters.</param> /// <param name="freeWhenDone">If true, the receiver will free the memory when it no longer needs the characters; if false it won’t.</param> [iOSVersion(2)] [Export("convenience init")] public NSString(UnsafeMutablePointer<unichar> charactersNoCopy, int length, bool freeWhenDone) { } /// <summary> /// Returns an NSString object initialized by copying the characters from another given string. /// </summary> /// <param name="@string">The string from which to copy characters. This value must not be nil. /// Important /// Raises an NSInvalidArgumentException if aString is nil.</param> [iOSVersion(2)] [Export("convenience init")] public NSString(string @string) { } /// <summary> /// Returns an NSString object initialized by using a given format string as a template into which the remaining argument values are substituted according to the current locale. /// </summary> /// <param name="format">A format string. See Formatting String Objects in String Programming Guide for examples of how to use this method, and String Format Specifiers in String Programming Guide for a list of format specifiers. This value must not be nil. /// Important /// Raises an NSInvalidArgumentException if format is nil.</param> /// <param name="arguments">A list of arguments to substitute into format.</param> [iOSVersion(2)] [Export("convenience init")] public NSString(string format, CVaListPointer arguments) { } /// <summary> /// Returns an NSString object initialized by using a given format string as a template into which the remaining argument values are substituted according to given locale information. /// </summary> /// <param name="format">A format string. See Formatting String Objects in String Programming Guide for examples of how to use this method, and String Format Specifiers in String Programming Guide for a list of format specifiers. This value must not be nil. /// Important /// Raises an NSInvalidArgumentException if format is nil.</param> /// <param name="locale">An NSLocale object specifying the locale to use. To use the current locale (specified by user preferences), pass [NSLocalecurrentLocale]. To use the system locale, pass nil. /// For legacy support, this may be an instance of NSDictionary containing locale information.</param> /// <param name="arguments">A list of arguments to substitute into format.</param> [iOSVersion(2)] [Export("convenience init")] public NSString(string format, [Optional] AnyObject locale, CVaListPointer arguments) { } /// <summary> /// Writes the contents of the receiver to a file at a given path using a given encoding. /// </summary> /// <param name="path">The file to which to write the receiver. If path contains a tilde (~) character, you must expand it with stringByExpandingTildeInPath before invoking this method.</param> /// <param name="atomically">If true, the receiver is written to an auxiliary file, and then the auxiliary file is renamed to path. If false, the receiver is written directly to path. The true option guarantees that path, if it exists at all, won’t be corrupted even if the system should crash during writing.</param> /// <param name="encoding">The encoding to use for the output.</param> /// <param name="error">If there is an error, upon return contains an NSError object that describes the problem. If you are not interested in details of errors, you may pass in NULL.</param> [iOSVersion(2)] [Export("writeToFile")] public virtual bool WriteToFile(string path, bool atomically, uint encoding, NSErrorPointer error) { return default(bool); } /// <summary> /// Writes the contents of the receiver to the URL specified by url using the specified encoding. /// </summary> /// <param name="url">The URL to which to write the receiver. Only file URLs are supported.</param> /// <param name="atomically">If true, the receiver is written to an auxiliary file, and then the auxiliary file is renamed to url. If false, the receiver is written directly to url. The true option guarantees that url, if it exists at all, won’t be corrupted even if the system should crash during writing. /// The useAuxiliaryFile parameter is ignored if url is not of a type that can be accessed atomically.</param> /// <param name="encoding">The encoding to use for the output.</param> /// <param name="error">If there is an error, upon return contains an NSError object that describes the problem. If you are not interested in details of errors, you may pass in NULL.</param> [iOSVersion(2)] [Export("writeToURL")] public virtual bool WriteToURL(NSURL url, bool atomically, uint encoding, NSErrorPointer error) { return default(bool); } /// <summary> /// Returns the number of bytes required to store the receiver in a given encoding. /// </summary> /// <param name="enc">The encoding for which to determine the receiver&#39;s length.</param> [iOSVersion(2)] [Export("lengthOfBytesUsingEncoding")] public virtual int LengthOfBytesUsingEncoding(uint enc) { return default(int); } /// <summary> /// Returns the maximum number of bytes needed to store the receiver in a given encoding. /// </summary> /// <param name="enc">The encoding for which to determine the receiver&#39;s length.</param> [iOSVersion(2)] [Export("maximumLengthOfBytesUsingEncoding")] public virtual int MaximumLengthOfBytesUsingEncoding(uint enc) { return default(int); } /// <summary> /// Returns the character at a given array position. /// </summary> /// <param name="index">The index of the character to retrieve. The index value must not lie outside the bounds of the receiver.</param> [iOSVersion(2)] [Export("characterAtIndex")] public virtual unichar CharacterAtIndex(int index) { return default(unichar); } /// <summary> /// Copies all characters from the receiver into a given buffer. /// </summary> /// <param name="buffer">Upon return, contains the characters from the receiver. buffer must be large enough to contain all characters in the string ([string length]*sizeof(unichar)).</param> [iOSVersion(2)] [Export("getCharacters")] public virtual void GetCharacters(UnsafeMutablePointer<unichar> buffer) { } /// <summary> /// Copies characters from a given range in the receiver into a given buffer. /// </summary> /// <param name="buffer">Upon return, contains the characters from the receiver. buffer must be large enough to contain the characters in the range aRange (aRange.length*sizeof(unichar)).</param> /// <param name="range">The range of characters to retrieve. The range must not exceed the bounds of the receiver. /// Important /// Raises an NSRangeException if any part of aRange lies beyond the bounds of the receiver.</param> [iOSVersion(2)] [Export("getCharacters")] public virtual void GetCharacters(UnsafeMutablePointer<unichar> buffer, NSRange range) { } /// <summary> /// Gets a given range of characters as bytes in a specified encoding. /// </summary> /// <param name="buffer">A buffer into which to store the bytes from the receiver. The returned bytes are not NULL-terminated.</param> /// <param name="maxLength">The maximum number of bytes to write to buffer.</param> /// <param name="usedLength">The number of bytes used from buffer. Pass NULL if you do not need this value.</param> /// <param name="encoding">The encoding to use for the returned bytes.</param> /// <param name="options">A mask to specify options to use for converting the receiver’s contents to encoding (if conversion is necessary).</param> /// <param name="range">The range of characters in the receiver to get.</param> /// <param name="remainingRange">The remaining range. Pass NULL If you do not need this value.</param> [iOSVersion(2)] [Export("getBytes")] public virtual bool GetBytes(UnsafeMutablePointer buffer, int maxLength, UnsafeMutablePointer<int> usedLength, uint encoding, NSStringEncodingConversionOptions options, NSRange range, NSRangePointer remainingRange) { return default(bool); } /// <summary> /// Returns a representation of the receiver as a C string using a given encoding. /// </summary> /// <param name="encoding">The encoding for the returned C string.</param> [iOSVersion(2)] [Export("cStringUsingEncoding")] public virtual UnsafePointer<Int8> CStringUsingEncoding(uint encoding) { return default(UnsafePointer<Int8>); } /// <summary> /// Converts the receiver’s content to a given encoding and stores them in a buffer. /// </summary> /// <param name="buffer">Upon return, contains the converted C-string plus the NULL termination byte. The buffer must include room for maxBufferCount bytes.</param> /// <param name="maxLength">The maximum number of bytes in the string to return in buffer (including the NULL termination byte).</param> /// <param name="encoding">The encoding for the returned C string.</param> [iOSVersion(2)] [Export("getCString")] public virtual bool GetCString(UnsafeMutablePointer<Int8> buffer, int maxLength, uint encoding) { return default(bool); } /// <summary> /// Returns a new string made by appending a given string to the receiver. /// </summary> /// <param name="aString">The string to append to the receiver. This value must not be nil. /// Important /// Raises an NSInvalidArgumentException if aString is nil.</param> [iOSVersion(2)] [Export("stringByAppendingString")] public virtual string StringByAppendingString(string aString) { return default(string); } /// <summary> /// Returns a new string formed from the receiver by either removing characters from the end, or by appending as many occurrences as necessary of a given pad string. /// </summary> /// <param name="newLength">The new length for the receiver.</param> /// <param name="withString">The string with which to extend the receiver.</param> /// <param name="startingAtIndex">The index in padString from which to start padding.</param> [iOSVersion(2)] [Export("stringByPaddingToLength")] public virtual string StringByPaddingToLength(int newLength, string withString, int startingAtIndex) { return default(string); } /// <summary> /// Returns an array containing substrings from the receiver that have been divided by a given separator. /// </summary> /// <param name="separator">The separator string.</param> [iOSVersion(2)] [Export("componentsSeparatedByString")] public virtual AnyObject[] ComponentsSeparatedByString(string separator) { return default(AnyObject[]); } /// <summary> /// Returns an array containing substrings from the receiver that have been divided by characters in a given set. /// </summary> /// <param name="separator">A character set containing the characters to to use to split the receiver. Must not be nil.</param> [iOSVersion(2)] [Export("componentsSeparatedByCharactersInSet")] public virtual AnyObject[] ComponentsSeparatedByCharactersInSet(NSCharacterSet separator) { return default(AnyObject[]); } /// <summary> /// Returns a new string made by removing from both ends of the receiver characters contained in a given character set. /// </summary> /// <param name="set">A character set containing the characters to remove from the receiver. set must not be nil.</param> [iOSVersion(2)] [Export("stringByTrimmingCharactersInSet")] public virtual string StringByTrimmingCharactersInSet(NSCharacterSet set) { return default(string); } /// <summary> /// Returns a new string containing the characters of the receiver from the one at a given index to the end. /// </summary> /// <param name="anIndex">An index. The value must lie within the bounds of the receiver, or be equal to the length of the receiver. /// Raises an NSRangeException if (anIndex - 1) lies beyond the end of the receiver.</param> [iOSVersion(2)] [Export("substringFromIndex")] public virtual string SubstringFromIndex(int anIndex) { return default(string); } /// <summary> /// Returns a string object containing the characters of the receiver that lie within a given range. /// </summary> /// <param name="aRange">A range. The range must not exceed the bounds of the receiver. /// Raises an NSRangeException if (aRange.location - 1) or (aRange.location + aRange.length - 1) lies beyond the end of the receiver.</param> [iOSVersion(2)] [Export("substringWithRange")] public virtual string SubstringWithRange(NSRange aRange) { return default(string); } /// <summary> /// Returns a new string containing the characters of the receiver up to, but not including, the one at a given index. /// </summary> /// <param name="anIndex">An index. The value must lie within the bounds of the receiver, or be equal to the length of the receiver. /// Raises an NSRangeException if (anIndex - 1) lies beyond the end of the receiver.</param> [iOSVersion(2)] [Export("substringToIndex")] public virtual string SubstringToIndex(int anIndex) { return default(string); } /// <summary> /// Finds and returns the range in the receiver of the first character from a given character set. /// </summary> /// <param name="aSet">A character set. This value must not be nil. /// Raises an NSInvalidArgumentException if aSet is nil.</param> [iOSVersion(2)] [Export("rangeOfCharacterFromSet")] public virtual NSRange RangeOfCharacterFromSet(NSCharacterSet aSet) { return default(NSRange); } /// <summary> /// Finds and returns the range in the receiver of the first character, using given options, from a given character set. /// </summary> /// <param name="aSet">A character set. This value must not be nil. /// Raises an NSInvalidArgumentException if aSet is nil.</param> /// <param name="options">A mask specifying search options. The following options may be specified by combining them with the C bitwise OR operator: NSAnchoredSearch, NSBackwardsSearch.</param> [iOSVersion(2)] [Export("rangeOfCharacterFromSet")] public virtual NSRange RangeOfCharacterFromSet(NSCharacterSet aSet, NSStringCompareOptions options) { return default(NSRange); } /// <summary> /// Finds and returns the range in the receiver of the first character from a given character set found in a given range with given options. /// </summary> /// <param name="aSet">A character set. This value must not be nil. /// Raises an NSInvalidArgumentException if aSet is nil.</param> /// <param name="options">A mask specifying search options. The following options may be specified by combining them with the C bitwise OR operator: NSAnchoredSearch, NSBackwardsSearch.</param> /// <param name="range">The range in which to search. aRange must not exceed the bounds of the receiver. /// Raises an NSRangeException if aRange is invalid.</param> [iOSVersion(2)] [Export("rangeOfCharacterFromSet")] public virtual NSRange RangeOfCharacterFromSet(NSCharacterSet aSet, NSStringCompareOptions options, NSRange range) { return default(NSRange); } /// <summary> /// Finds and returns the range of the first occurrence of a given string within the receiver. /// </summary> /// <param name="aString">The string to search for. This value must not be nil. /// Raises an NSInvalidArgumentException if aString is nil.</param> [iOSVersion(2)] [Export("rangeOfString")] public virtual NSRange RangeOfString(string aString) { return default(NSRange); } /// <summary> /// Finds and returns the range of the first occurrence of a given string within the receiver, subject to given options. /// </summary> /// <param name="aString">The string to search for. This value must not be nil. /// Important /// Raises an NSInvalidArgumentException if aString is nil.</param> /// <param name="options">A mask specifying search options. The following options may be specified by combining them with the C bitwise OR operator: NSCaseInsensitiveSearch, NSLiteralSearch, NSBackwardsSearch, NSAnchoredSearch. See String Programming Guide for details on these options.</param> [iOSVersion(2)] [Export("rangeOfString")] public virtual NSRange RangeOfString(string aString, NSStringCompareOptions options) { return default(NSRange); } /// <summary> /// Finds and returns the range of the first occurrence of a given string, within the given range of the receiver, subject to given options. /// </summary> /// <param name="aString">The string for which to search. This value must not be nil. /// Raises an NSInvalidArgumentException if aString is nil.</param> /// <param name="options">A mask specifying search options. The following options may be specified by combining them with the C bitwise OR operator: NSCaseInsensitiveSearch, NSLiteralSearch, NSBackwardsSearch, and NSAnchoredSearch. See String Programming Guide for details on these options.</param> /// <param name="range">The range within the receiver for which to search for aString. /// Raises an NSRangeException if aRange is invalid.</param> [iOSVersion(2)] [Export("rangeOfString")] public virtual NSRange RangeOfString(string aString, NSStringCompareOptions options, NSRange range) { return default(NSRange); } /// <summary> /// Finds and returns the range of the first occurrence of a given string within a given range of the receiver, subject to given options, using the specified locale, if any. /// </summary> /// <param name="aString">The string for which to search. This value must not be nil. /// Raises an NSInvalidArgumentException if aString is nil.</param> /// <param name="options">A mask specifying search options. The following options may be specified by combining them with the C bitwise OR operator: NSCaseInsensitiveSearch, NSLiteralSearch, NSBackwardsSearch, and NSAnchoredSearch. See String Programming Guide for details on these options.</param> /// <param name="range">The range within the receiver for which to search for aString. /// Raises an NSRangeException if aRange is invalid.</param> /// <param name="locale">The locale to use when comparing the receiver with aString. To use the current locale, pass [NSLocalecurrentLocale]. To use the system locale, pass nil. /// The locale argument affects the equality checking algorithm. For example, for the Turkish locale, case-insensitive compare matches “I” to “ı” (Unicode code point U+0131, Latin Small Dotless I), not the normal “i” character.</param> [iOSVersion(2)] [Export("rangeOfString")] public virtual NSRange RangeOfString(string aString, NSStringCompareOptions options, NSRange range, [Optional] NSLocale locale) { return default(NSRange); } /// <summary> /// Enumerates all the lines in a string. /// </summary> /// <param name="block">The block executed for the enumeration. /// The block takes two arguments: /// line /// The current line of the string being enumerated. The line contains just the contents of the line, without the line terminators. See getLineStart:end:contentsEnd:forRange: for a discussion of line terminators. /// stop /// A reference to a Boolean value that the block can use to stop the enumeration by setting *stop = YES; it should not touch *stop otherwise.</param> [iOSVersion(4)] [Export("enumerateLinesUsingBlock")] public virtual void EnumerateLinesUsingBlock(Action<string, UnsafeMutablePointer<ObjCBool>> block) { } /// <summary> /// Enumerates the substrings of the specified type in the specified range of the string. /// </summary> /// <param name="range">The range within the string to enumerate substrings.</param> /// <param name="options">Options specifying types of substrings and enumeration styles.</param> /// <param name="usingBlock">The block executed for the enumeration. /// The block takes four arguments: /// substring /// The enumerated string. /// substringRange /// The range of the enumerated string in the receiver. /// enclosingRange /// The range that includes the substring as well as any separator or filler characters that follow. For instance, for lines, enclosingRange contains the line terminators. The enclosingRange for the first string enumerated also contains any characters that occur before the string. Consecutive enclosing ranges are guaranteed not to overlap, and every single character in the enumerated range is included in one and only one enclosing range. /// stop /// A reference to a Boolean value that the block can use to stop the enumeration by setting *stop = YES; it should not touch *stop otherwise.</param> [iOSVersion(4)] [Export("enumerateSubstringsInRange")] public virtual void EnumerateSubstringsInRange(NSRange range, NSStringEnumerationOptions options, Action<string, NSRange, NSRange, UnsafeMutablePointer<ObjCBool>> usingBlock) { } /// <summary> /// Returns a new string in which all occurrences of a target string in the receiver are replaced by another given string. /// </summary> /// <param name="target">The string to replace.</param> /// <param name="withString">The string with which to replace target.</param> [iOSVersion(2)] [Export("stringByReplacingOccurrencesOfString")] public virtual string StringByReplacingOccurrencesOfString(string target, string withString) { return default(string); } /// <summary> /// Returns a new string in which all occurrences of a target string in a specified range of the receiver are replaced by another given string. /// </summary> /// <param name="target">The string to replace.</param> /// <param name="withString">The string with which to replace target.</param> /// <param name="options">A mask of options to use when comparing target with the receiver. Pass 0 to specify no options.</param> /// <param name="range">The range in the receiver in which to search for target.</param> [iOSVersion(2)] [Export("stringByReplacingOccurrencesOfString")] public virtual string StringByReplacingOccurrencesOfString(string target, string withString, NSStringCompareOptions options, NSRange range) { return default(string); } /// <summary> /// Returns a new string in which the characters in a specified range of the receiver are replaced by a given string. /// </summary> /// <param name="range">A range of characters in the receiver.</param> /// <param name="withString">The string with which to replace the characters in range.</param> [iOSVersion(2)] [Export("stringByReplacingCharactersInRange")] public virtual string StringByReplacingCharactersInRange(NSRange range, string withString) { return default(string); } /// <summary> /// Returns by reference the beginning of the first line and the end of the last line touched by the given range. /// </summary> /// <param name="startIndex">Upon return, contains the index of the first character of the line containing the beginning of aRange. Pass NULL if you do not need this value (in which case the work to compute the value isn’t performed).</param> /// <param name="end">Upon return, contains the index of the first character past the terminator of the line containing the end of aRange. Pass NULL if you do not need this value (in which case the work to compute the value isn’t performed).</param> /// <param name="contentsEnd">Upon return, contains the index of the first character of the terminator of the line containing the end of aRange. Pass NULL if you do not need this value (in which case the work to compute the value isn’t performed).</param> /// <param name="forRange">A range within the receiver. The value must not exceed the bounds of the receiver. /// Raises an NSRangeException if aRange is invalid.</param> [iOSVersion(2)] [Export("getLineStart")] public virtual void GetLineStart(UnsafeMutablePointer<int> startIndex, UnsafeMutablePointer<int> end, UnsafeMutablePointer<int> contentsEnd, NSRange forRange) { } /// <summary> /// Returns the range of characters representing the line or lines containing a given range. /// </summary> /// <param name="aRange">A range within the receiver. The value must not exceed the bounds of the receiver.</param> [iOSVersion(2)] [Export("lineRangeForRange")] public virtual NSRange LineRangeForRange(NSRange aRange) { return default(NSRange); } /// <summary> /// Returns by reference the beginning of the first paragraph and the end of the last paragraph touched by the given range. /// </summary> /// <param name="startIndex">Upon return, contains the index of the first character of the paragraph containing the beginning of aRange. Pass NULL if you do not need this value (in which case the work to compute the value isn’t performed).</param> /// <param name="end">Upon return, contains the index of the first character past the terminator of the paragraph containing the end of aRange. Pass NULL if you do not need this value (in which case the work to compute the value isn’t performed).</param> /// <param name="contentsEnd">Upon return, contains the index of the first character of the terminator of the paragraph containing the end of aRange. Pass NULL if you do not need this value (in which case the work to compute the value isn’t performed).</param> /// <param name="forRange">A range within the receiver. The value must not exceed the bounds of the receiver.</param> [iOSVersion(2)] [Export("getParagraphStart")] public virtual void GetParagraphStart(UnsafeMutablePointer<int> startIndex, UnsafeMutablePointer<int> end, UnsafeMutablePointer<int> contentsEnd, NSRange forRange) { } /// <summary> /// Returns the range of characters representing the paragraph or paragraphs containing a given range. /// </summary> /// <param name="aRange">A range within the receiver. The range must not exceed the bounds of the receiver.</param> [iOSVersion(2)] [Export("paragraphRangeForRange")] public virtual NSRange ParagraphRangeForRange(NSRange aRange) { return default(NSRange); } /// <summary> /// Returns the range in the receiver of the composed character sequence located at a given index. /// </summary> /// <param name="anIndex">The index of a character in the receiver. The value must not exceed the bounds of the receiver.</param> [iOSVersion(2)] [Export("rangeOfComposedCharacterSequenceAtIndex")] public virtual NSRange RangeOfComposedCharacterSequenceAtIndex(int anIndex) { return default(NSRange); } /// <summary> /// Returns the range in the string of the composed character sequences for a given range. /// </summary> /// <param name="range">A range in the receiver. The range must not exceed the bounds of the receiver.</param> [iOSVersion(2)] [Export("rangeOfComposedCharacterSequencesForRange")] public virtual NSRange RangeOfComposedCharacterSequencesForRange(NSRange range) { return default(NSRange); } /// <summary> /// Parses the receiver as a text representation of a property list, returning an NSString, NSData, NSArray, or NSDictionary object, according to the topmost element. /// </summary> [iOSVersion(2)] [Export("propertyList")] public virtual AnyObject PropertyList() { return default(AnyObject); } /// <summary> /// Returns a dictionary object initialized with the keys and values found in the receiver. /// </summary> [iOSVersion(2)] [Export("propertyListFromStringsFileFormat")] public virtual Dictionary<NSObject, AnyObject> PropertyListFromStringsFileFormat() { return default(Dictionary<NSObject, AnyObject>); } /// <summary> /// Returns the result of invoking compare:options: with NSCaseInsensitiveSearch as the only option. /// </summary> /// <param name="aString">The string with which to compare the receiver. /// This value must not be nil. If this value is nil, the behavior is undefined and may change in future versions of OS X.</param> [iOSVersion(2)] [Export("caseInsensitiveCompare")] public virtual NSComparisonResult CaseInsensitiveCompare(string aString) { return default(NSComparisonResult); } /// <summary> /// Compares the string with a given string using a case-insensitive, localized, comparison. /// </summary> /// <param name="aString">The string with which to compare the receiver. /// This value must not be nil. If this value is nil, the behavior is undefined and may change in future versions of OS X.</param> [iOSVersion(2)] [Export("localizedCaseInsensitiveCompare")] public virtual NSComparisonResult LocalizedCaseInsensitiveCompare(string aString) { return default(NSComparisonResult); } /// <summary> /// Returns the result of invoking compare:options:range: with no options and the receiver’s full extent as the range. /// </summary> /// <param name="aString">The string with which to compare the receiver. /// This value must not be nil. If this value is nil, the behavior is undefined and may change in future versions of OS X.</param> [iOSVersion(2)] [Export("compare")] public virtual NSComparisonResult Compare(string aString) { return default(NSComparisonResult); } /// <summary> /// Compares the string and a given string using a localized comparison. /// </summary> /// <param name="aString">The string with which to compare the receiver. /// This value must not be nil. If this value is nil, the behavior is undefined and may change in future versions of OS X.</param> [iOSVersion(2)] [Export("localizedCompare")] public virtual NSComparisonResult LocalizedCompare(string aString) { return default(NSComparisonResult); } /// <summary> /// Compares the string with the specified string using the given options. /// </summary> /// <param name="aString">The string with which to compare the receiver. /// This value must not be nil. If this value is nil, the behavior is undefined and may change in future versions of OS X.</param> /// <param name="options">Options for the search—you can combine any of the following using a C bitwise OR operator: NSCaseInsensitiveSearch, NSLiteralSearch, NSNumericSearch. See String Programming Guide for details on these options.</param> [iOSVersion(2)] [Export("compare")] public virtual NSComparisonResult Compare(string aString, NSStringCompareOptions options) { return default(NSComparisonResult); } /// <summary> /// Returns the result of invoking compare:options:range:locale: with a nil locale. /// </summary> /// <param name="aString">The string with which to compare the range of the receiver specified by range. /// This value must not be nil. If this value is nil, the behavior is undefined and may change in future versions of OS X.</param> /// <param name="options">Options for the search—you can combine any of the following using a C bitwise OR operator: NSCaseInsensitiveSearch, NSLiteralSearch, NSNumericSearch. /// See String Programming Guide for details on these options.</param> /// <param name="range">The range of the receiver over which to perform the comparison. The range must not exceed the bounds of the receiver. /// Important /// Raises an NSRangeException if range exceeds the bounds of the receiver.</param> [iOSVersion(2)] [Export("compare")] public virtual NSComparisonResult Compare(string aString, NSStringCompareOptions options, NSRange range) { return default(NSComparisonResult); } /// <summary> /// Compares the string using the specified options and returns the lexical ordering for the range. /// </summary> /// <param name="aString">The string with which to compare the range of the receiver specified by range. /// This value must not be nil. If this value is nil, the behavior is undefined and may change in future versions of OS X.</param> /// <param name="options">Options for the search—you can combine any of the following using a C bitwise OR operator: NSCaseInsensitiveSearch, NSLiteralSearch, NSNumericSearch. /// See String Programming Guide for details on these options.</param> /// <param name="range">The range of the receiver over which to perform the comparison. The range must not exceed the bounds of the receiver. /// Important /// Raises an NSRangeException if range exceeds the bounds of the receiver.</param> /// <param name="locale">An instance of NSLocale. To use the current locale, pass [NSLocale currentLocale]. For example, if you are comparing strings to present to the end-user, use the current locale. To use the system locale, pass nil.</param> [iOSVersion(2)] [Export("compare")] public virtual NSComparisonResult Compare(string aString, NSStringCompareOptions options, NSRange range, [Optional] AnyObject locale) { return default(NSComparisonResult); } /// <summary> /// Compares strings as sorted by the Finder. /// </summary> /// <param name="@string">The string to compare with the receiver.</param> [iOSVersion(4)] [Export("localizedStandardCompare")] public virtual NSComparisonResult LocalizedStandardCompare(string @string) { return default(NSComparisonResult); } /// <summary> /// Returns a Boolean value that indicates whether a given string matches the beginning characters of the receiver. /// </summary> /// <param name="aString">A string.</param> [iOSVersion(2)] [Export("hasPrefix")] public virtual bool HasPrefix(string aString) { return default(bool); } /// <summary> /// Returns a Boolean value that indicates whether a given string matches the ending characters of the receiver. /// </summary> /// <param name="aString">A string.</param> [iOSVersion(2)] [Export("hasSuffix")] public virtual bool HasSuffix(string aString) { return default(bool); } /// <summary> /// Returns a Boolean value that indicates whether a given string is equal to the receiver using a literal Unicode-based comparison. /// </summary> /// <param name="aString">The string with which to compare the receiver.</param> [iOSVersion(2)] [Export("isEqualToString")] public virtual bool IsEqualToString(string aString) { return default(bool); } /// <summary> /// Returns a string with the given character folding options applied. /// </summary> /// <param name="options">A mask of compare flags with a suffix InsensitiveSearch.</param> /// <param name="locale">The locale to use for the folding. To use the current locale, pass [NSLocalecurrentLocale]. To use the system locale, pass nil.</param> [iOSVersion(2)] [Export("stringByFoldingWithOptions")] public virtual string StringByFoldingWithOptions(NSStringCompareOptions options, [Optional] NSLocale locale) { return default(string); } /// <summary> /// Returns a string containing characters the receiver and a given string have in common, starting from the beginning of each up to the first characters that aren’t equivalent. /// </summary> /// <param name="aString">The string with which to compare the receiver.</param> /// <param name="options">Options for the comparison. The following search options may be specified by combining them with the C bitwise OR operator: NSCaseInsensitiveSearch, NSLiteralSearch. See String Programming Guide for details on these options.</param> [iOSVersion(2)] [Export("commonPrefixWithString")] public virtual string CommonPrefixWithString(string aString, NSStringCompareOptions options) { return default(string); } /// <summary> /// Returns a capitalized representation of the receiver using the specified locale. /// </summary> /// <param name="locale">The locale. For strings presented to users, pass the current locale ([NSLocalecurrentLocale]). To use the system locale, pass nil.</param> [iOSVersion(6)] [Export("capitalizedStringWithLocale")] public virtual string CapitalizedStringWithLocale([Optional] NSLocale locale) { return default(string); } /// <summary> /// Returns a version of the string with all letters converted to lowercase, taking into account the specified locale. /// </summary> /// <param name="locale">The locale. For strings presented to users, pass the current locale ([NSLocalecurrentLocale]). To use the system local, pass nil.</param> [iOSVersion(6)] [Export("lowercaseStringWithLocale")] public virtual string LowercaseStringWithLocale([Optional] NSLocale locale) { return default(string); } /// <summary> /// Returns a version of the string with all letters converted to uppercase, taking into account the specified locale. /// </summary> /// <param name="locale">The locale. For strings presented to users, pass the current locale ([NSLocalecurrentLocale]). To use the system locale, pass nil.</param> [iOSVersion(6)] [Export("uppercaseStringWithLocale")] public virtual string UppercaseStringWithLocale([Optional] NSLocale locale) { return default(string); } /// <summary> /// Returns a zero-terminated list of the encodings string objects support in the application’s environment. /// </summary> [iOSVersion(2)] [Export("availableStringEncodings")] public static UnsafePointer<uint> AvailableStringEncodings() { return default(UnsafePointer<uint>); } /// <summary> /// Returns the C-string encoding assumed for any method accepting a C string as an argument. /// </summary> [iOSVersion(2)] [Export("defaultCStringEncoding")] public static uint DefaultCStringEncoding() { return default(uint); } /// <summary> /// Returns a human-readable string giving the name of a given encoding. /// </summary> /// <param name="encoding">A string encoding.</param> [iOSVersion(2)] [Export("localizedNameOfStringEncoding")] public static string LocalizedNameOfStringEncoding(uint encoding) { return default(string); } /// <summary> /// Returns a Boolean value that indicates whether the receiver can be converted to a given encoding without loss of information. /// </summary> /// <param name="encoding">A string encoding.</param> [iOSVersion(2)] [Export("canBeConvertedToEncoding")] public virtual bool CanBeConvertedToEncoding(uint encoding) { return default(bool); } /// <summary> /// Returns an NSData object containing a representation of the receiver encoded using a given encoding. /// </summary> /// <param name="encoding">A string encoding.</param> [iOSVersion(2)] [Export("dataUsingEncoding")] [return:Optional] public virtual NSData DataUsingEncoding(uint encoding) { return default(NSData); } /// <summary> /// Returns an NSData object containing a representation of the receiver encoded using a given encoding. /// </summary> /// <param name="encoding">A string encoding.</param> /// <param name="allowLossyConversion">If true, then allows characters to be removed or altered in conversion.</param> [iOSVersion(2)] [Export("dataUsingEncoding")] [return:Optional] public virtual NSData DataUsingEncoding(uint encoding, bool allowLossyConversion) { return default(NSData); } /// <summary> /// Returns a string built from the strings in a given array by concatenating them with a path separator between each pair. /// </summary> /// <param name="components">An array of NSString objects representing a file path. To create an absolute path, use a slash mark (“/”) as the first component. To include a trailing path divider, use an empty string as the last component.</param> [iOSVersion(2)] [Export("pathWithComponents")] public static string PathWithComponents(AnyObject[] components) { return default(string); } /// <summary> /// Interprets the receiver as a path in the file system and attempts to perform filename completion, returning a numeric value that indicates whether a match was possible, and by reference the longest path that matches the receiver. /// </summary> /// <param name="outputName">Upon return, contains the longest path that matches the receiver.</param> /// <param name="caseSensitive">If true, the method considers case for possible completions.</param> /// <param name="matchesIntoArray">Upon return, contains all matching filenames.</param> /// <param name="filterTypes">An array of NSString objects specifying path extensions to consider for completion. Only paths whose extensions (not including the extension separator) match one of these strings are included in outputArray. Pass nil if you don’t want to filter the output.</param> [iOSVersion(2)] [Export("completePathIntoString")] public virtual int CompletePathIntoString(AutoreleasingUnsafeMutablePointer<string> outputName, bool caseSensitive, AutoreleasingUnsafeMutablePointer<NSArray> matchesIntoArray, AnyObject[] filterTypes) { return default(int); } /// <summary> /// Interprets the receiver as a system-independent path and fills a buffer with a C-string in a format and encoding suitable for use with file-system calls. /// </summary> /// <param name="buffer">Upon return, contains a C-string that represent the receiver as as a system-independent path, plus the NULL termination byte. The size of buffer must be large enough to contain maxLength bytes.</param> /// <param name="maxLength">The maximum number of bytes in the string to return in buffer (including a terminating NULL character, which this method adds).</param> [iOSVersion(2)] [Export("getFileSystemRepresentation")] public virtual bool GetFileSystemRepresentation(UnsafeMutablePointer<Int8> buffer, int maxLength) { return default(bool); } /// <summary> /// Returns a new string made by appending to the receiver a given string. /// </summary> /// <param name="aString">The path component to append to the receiver.</param> [iOSVersion(2)] [Export("stringByAppendingPathComponent")] public virtual string StringByAppendingPathComponent(string aString) { return default(string); } /// <summary> /// Returns a new string made by appending to the receiver an extension separator followed by a given extension. /// </summary> /// <param name="ext">The extension to append to the receiver.</param> [iOSVersion(2)] [Export("stringByAppendingPathExtension")] [return:Optional] public virtual string StringByAppendingPathExtension(string ext) { return default(string); } /// <summary> /// Returns an array of strings made by separately appending to the receiver each string in in a given array. /// </summary> /// <param name="paths">An array of NSString objects specifying paths to add to the receiver.</param> [iOSVersion(2)] [Export("stringsByAppendingPaths")] public virtual AnyObject[] StringsByAppendingPaths(AnyObject[] paths) { return default(AnyObject[]); } /// <summary> /// Returns a representation of the receiver using a given encoding to determine the percent escapes necessary to convert the receiver into a legal URL string. /// </summary> /// <param name="encoding">The encoding to use for the returned string. If you are uncertain of the correct encoding you should use NSUTF8StringEncoding.</param> [iOSVersion(2)] [Export("stringByAddingPercentEscapesUsingEncoding")] [return:Optional] public virtual string StringByAddingPercentEscapesUsingEncoding(uint encoding) { return default(string); } /// <summary> /// Returns a new string made by replacing in the receiver all percent escapes with the matching characters as determined by a given encoding. /// </summary> /// <param name="encoding">The encoding to use for the returned string.</param> [iOSVersion(2)] [Export("stringByReplacingPercentEscapesUsingEncoding")] [return:Optional] public virtual string StringByReplacingPercentEscapesUsingEncoding(uint encoding) { return default(string); } /// <summary> /// Returns a new string made from the receiver by replacing all characters not in the specified set with percent encoded characters. /// </summary> /// <param name="allowedCharacters">The characters not replaced in the string.</param> [iOSVersion(7)] [Export("stringByAddingPercentEncodingWithAllowedCharacters")] [return:Optional] public virtual string StringByAddingPercentEncodingWithAllowedCharacters(NSCharacterSet allowedCharacters) { return default(string); } /// <summary> /// Performs linguistic analysis on the specified string by enumerating the specific range of the string, providing the Block with the located tags. /// </summary> /// <param name="range">The range of the string to analyze.</param> /// <param name="scheme">The tag scheme to use. See Linguistic Tag Schemes for supported values.</param> /// <param name="options">The linguistic tagger options to use. See NSLinguisticTaggerOptionsfor the constants. These constants can be combined using the C-Bitwise OR operator.</param> /// <param name="orthography">The orthography of the string. If nil, the linguistic tagger will attempt to determine the orthography from the string content.</param> /// <param name="usingBlock">The Block to apply to the string. /// The block takes four arguments: /// tag /// The tag scheme for the token. The opts parameter specifies the types of tagger options that are located. /// tokenRange /// The range of a string matching the tag scheme. /// sentenceRange /// The range of the sentence in which the token is found. /// stop /// A reference to a Boolean value. The block can set the value to true to stop further processing of the array. The stop argument is an out-only argument. You should only ever set this Boolean to true within the Block.</param> [iOSVersion(5)] [Export("enumerateLinguisticTagsInRange")] public virtual void EnumerateLinguisticTagsInRange(NSRange range, string scheme, NSLinguisticTaggerOptions options, [Optional] NSOrthography orthography, Action<string, NSRange, NSRange, UnsafeMutablePointer<ObjCBool>> usingBlock) { } /// <summary> /// Returns an array of linguistic tags for the specified range and requested tags within the receiving string. /// </summary> /// <param name="range">The range of the string to analyze.</param> /// <param name="scheme">The tag scheme to use. See Linguistic Tag Schemes for supported values.</param> /// <param name="options">The linguistic tagger options to use. See NSLinguisticTaggerOptions for the constants. These constants can be combined using the C-Bitwise OR operator.</param> /// <param name="orthography">The orthography of the string. If nil, the linguistic tagger will attempt to determine the orthography from the string content.</param> /// <param name="tokenRanges">An array returned by-reference containing the token ranges of the linguistic tags wrapped in NSValue objects.</param> [iOSVersion(5)] [Export("linguisticTagsInRange")] public virtual AnyObject[] LinguisticTagsInRange(NSRange range, string scheme, NSLinguisticTaggerOptions options, [Optional] NSOrthography orthography, AutoreleasingUnsafeMutablePointer<NSArray> tokenRanges) { return default(AnyObject[]); } /// <summary> /// The number of Unicode characters in the receiver. (read-only) /// </summary> [iOSVersion(2)] [Export("length")] public int Length { get; private set; } /// <summary> /// A null-terminated UTF8 representation of the string. (read-only) /// </summary> [iOSVersion(2)] public UnsafePointer<Int8> UTF8String { get; private set; } /// <summary> /// An unsigned integer that can be used as a hash table address. (read-only) /// </summary> [iOSVersion(2)] [Export("hash")] public int Hash { get; private set; } /// <summary> /// A capitalized representation of the receiver. (read-only) /// </summary> [iOSVersion(2)] [Export("capitalizedString")] public string CapitalizedString { get; private set; } /// <summary> /// A lowercase representation of the string. /// </summary> [iOSVersion(2)] [Export("lowercaseString")] public string LowercaseString { get; private set; } /// <summary> /// An uppercase representation of the string. (read-only) /// </summary> [iOSVersion(2)] [Export("uppercaseString")] public string UppercaseString { get; private set; } /// <summary> /// A string made by normalizing the string’s contents using the Unicode Normalization Form D. (read-only) /// </summary> [iOSVersion(2)] [Export("decomposedStringWithCanonicalMapping")] public string DecomposedStringWithCanonicalMapping { get; private set; } /// <summary> /// A string made by normalizing the receiver’s contents using the Unicode Normalization Form KD. (read-only) /// </summary> [iOSVersion(2)] [Export("decomposedStringWithCompatibilityMapping")] public string DecomposedStringWithCompatibilityMapping { get; private set; } /// <summary> /// A string made by normalizing the string’s contents using the Unicode Normalization Form C. (read-only) /// </summary> [iOSVersion(2)] [Export("precomposedStringWithCanonicalMapping")] public string PrecomposedStringWithCanonicalMapping { get; private set; } /// <summary> /// A string made by normalizing the receiver’s contents using the Unicode Normalization Form KC. (read-only) /// </summary> [iOSVersion(2)] [Export("precomposedStringWithCompatibilityMapping")] public string PrecomposedStringWithCompatibilityMapping { get; private set; } /// <summary> /// The floating-point value of the string as a double. (read-only) /// </summary> [iOSVersion(2)] [Export("doubleValue")] public Double DoubleValue { get; private set; } /// <summary> /// The floating-point value of the string as a float. (read-only) /// </summary> [iOSVersion(2)] [Export("floatValue")] public float FloatValue { get; private set; } /// <summary> /// The integer value of the string. (read-only) /// </summary> [iOSVersion(2)] [Export("intValue")] public int IntValue { get; private set; } /// <summary> /// The NSInteger value of the string. (read-only) /// </summary> [iOSVersion(2)] [Export("integerValue")] public int IntegerValue { get; private set; } /// <summary> /// The long long value of the string. (read-only) /// </summary> [iOSVersion(2)] [Export("longLongValue")] public Int64 LongLongValue { get; private set; } /// <summary> /// The Boolean value of the string. (read-only) /// </summary> [iOSVersion(2)] [Export("boolValue")] public bool BoolValue { get; private set; } /// <summary> /// This NSString object. (read-only) /// </summary> [iOSVersion(2)] [Export("description")] public string Description { get; private set; } /// <summary> /// The fastest encoding to which the receiver may be converted without loss of information. (read-only) /// </summary> [iOSVersion(2)] [Export("fastestEncoding")] public uint FastestEncoding { get; private set; } /// <summary> /// The smallest encoding to which the receiver can be converted without loss of information. (read-only) /// </summary> [iOSVersion(2)] [Export("smallestEncoding")] public uint SmallestEncoding { get; private set; } /// <summary> /// The file-system path components of the receiver. (read-only) /// </summary> [iOSVersion(2)] [Export("pathComponents")] public AnyObject[] PathComponents { get; private set; } /// <summary> /// A file system-specific representation of the receiver. (read-only) /// </summary> [iOSVersion(2)] [Export("fileSystemRepresentation")] public UnsafePointer<Int8> FileSystemRepresentation { get; private set; } /// <summary> /// A Boolean value that indicates whether the receiver represents an absolute path. (read-only) /// </summary> [iOSVersion(8)] [Export("absolutePath")] public bool AbsolutePath { get; private set; } /// <summary> /// The last path component of the receiver. (read-only) /// </summary> [iOSVersion(2)] [Export("lastPathComponent")] public string LastPathComponent { get; private set; } /// <summary> /// The path extension, if any, of the string as interpreted as a path. (read-only) /// </summary> [iOSVersion(2)] [Export("pathExtension")] public string PathExtension { get; private set; } /// <summary> /// A new string that replaces the current home directory portion of the current path with a tilde (~) character. /// </summary> [iOSVersion(2)] [Export("stringByAbbreviatingWithTildeInPath")] public string StringByAbbreviatingWithTildeInPath { get; private set; } /// <summary> /// A new string made by deleting the last path component from the receiver, along with any final path separator. (read-only) /// </summary> [iOSVersion(2)] [Export("stringByDeletingLastPathComponent")] public string StringByDeletingLastPathComponent { get; private set; } /// <summary> /// A new string made by deleting the extension (if any, and only the last) from the receiver. (read-only) /// </summary> [iOSVersion(2)] [Export("stringByDeletingPathExtension")] public string StringByDeletingPathExtension { get; private set; } /// <summary> /// A new string made by expanding the initial component of the receiver to its full path value. (read-only) /// </summary> [iOSVersion(2)] [Export("stringByExpandingTildeInPath")] public string StringByExpandingTildeInPath { get; private set; } /// <summary> /// A new string made from the receiver by resolving all symbolic links and standardizing path. (read-only) /// </summary> [iOSVersion(2)] [Export("stringByResolvingSymlinksInPath")] public string StringByResolvingSymlinksInPath { get; private set; } /// <summary> /// A new string made by removing extraneous path components from the receiver. (read-only) /// </summary> [iOSVersion(2)] [Export("stringByStandardizingPath")] public string StringByStandardizingPath { get; private set; } /// <summary> /// Returns a new string made from the receiver by replacing all percent encoded sequences with the matching UTF-8 characters. /// </summary> [iOSVersion(7)] [Export("stringByRemovingPercentEncoding")] [Optional] public string StringByRemovingPercentEncoding { get; private set; } /// <summary> /// The following constants are provided by NSString as possible string encodings. /// </summary> public int NSProprietaryStringEncoding { get; private set; } } /// <summary> /// These values represent the options available to many of the string classes’ search and comparison methods. /// </summary> public enum NSStringCompareOptions { /// <summary> /// A case-insensitive search. /// </summary> [iOSVersion(2)] CaseInsensitiveSearch, /// <summary> /// Exact character-by-character equivalence. /// </summary> [iOSVersion(2)] LiteralSearch, /// <summary> /// Search from end of source string. /// </summary> [iOSVersion(2)] BackwardsSearch, /// <summary> /// Search is limited to start (or end, if NSBackwardsSearch) of source string. /// </summary> [iOSVersion(2)] AnchoredSearch, /// <summary> /// Numbers within strings are compared using numeric value, that is, Name2.txt < Name7.txt < Name25.txt. /// Numeric comparison only applies to the numerals in the string, not other characters that would have meaning in a true number such as a negative sign or a decimal point. /// This option only applies to compare methods, not find. /// </summary> [iOSVersion(2)] NumericSearch, /// <summary> /// Search ignores diacritic marks. /// For example, ‘ö’ is equal to ‘o’. /// </summary> [iOSVersion(2)] DiacriticInsensitiveSearch, /// <summary> /// Search ignores width differences in characters that have full-width and half-width forms, as occurs in East Asian character sets. /// For example, with this option, the full-width Latin small letter &#39;a&#39; (Unicode code point U+FF41) is equal to the basic Latin small letter &#39;a&#39; (Unicode code point U+0061). /// </summary> [iOSVersion(2)] WidthInsensitiveSearch, /// <summary> /// Comparisons are forced to return either NSOrderedAscending or NSOrderedDescending if the strings are equivalent but not strictly equal. /// This option ensures reliable, reproducible results when sorting. For example, “aaa” is greater than &quot;AAA” if NSCaseInsensitiveSearch is specified. /// </summary> [iOSVersion(2)] ForcedOrderingSearch, /// <summary> /// The search string is treated as an ICU-compatible regular expression. If set, no other options can apply except NSCaseInsensitiveSearch and NSAnchoredSearch. You can use this option only with the rangeOfString:... methods and stringByReplacingOccurrencesOfString:withString:options:range:. /// </summary> [iOSVersion(3.2)] RegularExpressionSearch, } /// <summary> /// Options for converting string encodings. /// </summary> public enum NSStringEncodingConversionOptions { /// <summary> /// Allows lossy conversion. /// </summary> [iOSVersion(2)] AllowLossy, /// <summary> /// Specifies an external representation (with a byte-order mark, if necessary, to indicate endianness). /// </summary> [iOSVersion(2)] ExternalRepresentation, } /// <summary> /// Constants to specify kinds of substrings and styles of enumeration. /// </summary> public enum NSStringEnumerationOptions { /// <summary> /// Enumerates by lines. Equivalent to lineRangeForRange:. /// </summary> [iOSVersion(4)] ByLines, /// <summary> /// Enumerates by paragraphs. Equivalent to paragraphRangeForRange:. /// </summary> [iOSVersion(4)] ByParagraphs, /// <summary> /// Enumerates by composed character sequences. Equivalent to rangeOfComposedCharacterSequencesForRange:. /// </summary> [iOSVersion(4)] ByComposedCharacterSequences, /// <summary> /// Enumerates by words. /// </summary> [iOSVersion(4)] ByWords, /// <summary> /// Enumerates by sentences. /// </summary> [iOSVersion(4)] BySentences, /// <summary> /// Causes enumeration to occur from the end of the specified range to the start. /// </summary> [iOSVersion(4)] Reverse, /// <summary> /// A way to indicate that the block does not need substring, in which case nil will be passed. This is simply a performance shortcut. /// </summary> [iOSVersion(4)] SubstringNotRequired, /// <summary> /// Causes the enumeration to occur using the current locale. This does not make a difference in line, paragraph, or composed character sequence enumeration, but it may for words or sentences. /// </summary> [iOSVersion(4)] Localized, } /// <summary> /// Type for Unicode characters. /// </summary> [iOSVersion(2)] [Export("unichar")] public struct Unichar { static public implicit operator Unichar(UInt16 value) { return default(Unichar); } static public implicit operator UInt16(Unichar value) { return default(UInt16); } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSTextCheckingResult.cs b/CocoaSharp/Foundation/NSTextCheckingResult.cs
index 596edd48..c708643b 100644
--- a/CocoaSharp/Foundation/NSTextCheckingResult.cs
+++ b/CocoaSharp/Foundation/NSTextCheckingResult.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSTextCheckingResult is a class used to describe items located by text checking. Each of these objects represents an occurrence of requested textual content that has been found during the analysis of a block of text. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/AppKit/Reference/NSTextCheckingResult_Class/index.html#//apple_ref/occ/cl/NSTextCheckingResult"/> [iOSVersion(4)] public class NSTextCheckingResult : NSObject//, AnyObject, NSCoding, NSCopying, NSObjectProtocol { /// <summary> /// Returns the result type that the range represents. /// </summary> /// <param name="idx">The index of the result.</param> [iOSVersion(4)] [Export("rangeAtIndex")] public NSRange RangeAtIndex(int idx) { return default(NSRange); } /// <summary> /// Creates and returns a text checking result with the specified replacement string. /// </summary> /// <param name="range">The range of the detected result.</param> /// <param name="replacementString">The replacement string.</param> [iOSVersion(4)] [Export("replacementCheckingResultWithRange")] public static NSTextCheckingResult ReplacementCheckingResultWithRange(NSRange range, string replacementString) { return default(NSTextCheckingResult); } /// <summary> /// Creates and returns a type checking result with the specified regular expression data. /// </summary> /// <param name="ranges">A C array of ranges, which must have at least one element, and the first element represents the overall range.</param> /// <param name="count">The number of items in the ranges array.</param> /// <param name="regularExpression">The regular expression.</param> [iOSVersion(4)] [Export("regularExpressionCheckingResultWithRanges")] public static NSTextCheckingResult RegularExpressionCheckingResultWithRanges(NSRangePointer ranges, int count, NSRegularExpression regularExpression) { return default(NSTextCheckingResult); } /// <summary> /// Creates and returns a text checking result with the specified URL. /// </summary> /// <param name="range">The range of the detected result.</param> /// <param name="URL">The URL.</param> [iOSVersion(4)] [Export("linkCheckingResultWithRange")] public static NSTextCheckingResult LinkCheckingResultWithRange(NSRange range, NSURL URL) { return default(NSTextCheckingResult); } /// <summary> /// Creates and returns a text checking result with the specified address components. /// </summary> /// <param name="range">The range of the detected result.</param> /// <param name="components">A dictionary containing the address components. The dictionary keys are described in Keys for Address Components.</param> [iOSVersion(4)] [Export("addressCheckingResultWithRange")] public static NSTextCheckingResult AddressCheckingResultWithRange(NSRange range, Dictionary<NSObject, AnyObject> components) { return default(NSTextCheckingResult); } /// <summary> /// Creates and returns a text checking result with the specified transit information. /// </summary> /// <param name="range">The range of the detected result.</param> /// <param name="components">A dictionary containing the transit components. The currently supported keys are NSTextCheckingAirlineKey and NSTextCheckingFlightKey.</param> [iOSVersion(4)] [Export("transitInformationCheckingResultWithRange")] public static NSTextCheckingResult TransitInformationCheckingResultWithRange(NSRange range, Dictionary<NSObject, AnyObject> components) { return default(NSTextCheckingResult); } /// <summary> /// Creates and returns a text checking result with the specified phone number. /// </summary> /// <param name="range">The range of the detected result.</param> /// <param name="phoneNumber">The phone number.</param> [iOSVersion(4)] [Export("phoneNumberCheckingResultWithRange")] public static NSTextCheckingResult PhoneNumberCheckingResultWithRange(NSRange range, string phoneNumber) { return default(NSTextCheckingResult); } /// <summary> /// Creates and returns a text checking result with the specified date. /// </summary> /// <param name="range">The range of the detected result.</param> /// <param name="date">The detected date.</param> [iOSVersion(4)] [Export("dateCheckingResultWithRange")] public static NSTextCheckingResult DateCheckingResultWithRange(NSRange range, NSDate date) { return default(NSTextCheckingResult); } /// <summary> /// Creates and returns a text checking result with the specified date, time zone, and duration. /// </summary> /// <param name="range">The range of the detected result.</param> /// <param name="date">The detected date.</param> /// <param name="timeZone">The detected time zone.</param> /// <param name="duration">The detected duration.</param> [iOSVersion(4)] [Export("dateCheckingResultWithRange")] public static NSTextCheckingResult DateCheckingResultWithRange(NSRange range, NSDate date, NSTimeZone timeZone, NSTimeInterval duration) { return default(NSTextCheckingResult); } /// <summary> /// Creates and returns a text checking result with the specified dash corrected replacement string. /// </summary> /// <param name="range">The range of the detected result.</param> /// <param name="replacementString">The replacement string.</param> [iOSVersion(4)] [Export("dashCheckingResultWithRange")] public static NSTextCheckingResult DashCheckingResultWithRange(NSRange range, string replacementString) { return default(NSTextCheckingResult); } /// <summary> /// Creates and returns a text checking result with the specified quote-balanced replacement string. /// </summary> /// <param name="range">The range of the detected result.</param> /// <param name="replacementString">The replacement string.</param> [iOSVersion(4)] [Export("quoteCheckingResultWithRange")] public static NSTextCheckingResult QuoteCheckingResultWithRange(NSRange range, string replacementString) { return default(NSTextCheckingResult); } /// <summary> /// Creates and returns a text checking result with the range of a misspelled word. /// </summary> /// <param name="range">The range of the detected result.</param> [iOSVersion(4)] [Export("spellCheckingResultWithRange")] public static NSTextCheckingResult SpellCheckingResultWithRange(NSRange range) { return default(NSTextCheckingResult); } /// <summary> /// Creates and returns a text checking result after detecting a possible correction. /// </summary> /// <param name="range">The range of the detected result.</param> /// <param name="replacementString">The suggested replacement string.</param> [iOSVersion(4)] [Export("correctionCheckingResultWithRange")] public static NSTextCheckingResult CorrectionCheckingResultWithRange(NSRange range, string replacementString) { return default(NSTextCheckingResult); } /// <summary> /// Creates and returns a text checking result with the specified orthography. /// </summary> /// <param name="range">The range of the detected result.</param> /// <param name="orthography">An orthography object that describes the script.</param> [iOSVersion(4)] [Export("orthographyCheckingResultWithRange")] public static NSTextCheckingResult OrthographyCheckingResultWithRange(NSRange range, NSOrthography orthography) { return default(NSTextCheckingResult); } /// <summary> /// Creates and returns a text checking result with the specified array of grammatical errors. /// </summary> /// <param name="range">The range of the detected result.</param> /// <param name="details">An array of details regarding the grammatical errors. This array of strings is suitable for presenting to the user.</param> [iOSVersion(4)] [Export("grammarCheckingResultWithRange")] public static NSTextCheckingResult GrammarCheckingResultWithRange(NSRange range, AnyObject[] details) { return default(NSTextCheckingResult); } /// <summary> /// Returns a new text checking result after adjusting the ranges as specified by the offset. /// </summary> /// <param name="offset">The amount the ranges are adjusted.</param> [iOSVersion(5)] [Export("resultByAdjustingRangesWithOffset")] public NSTextCheckingResult ResultByAdjustingRangesWithOffset(int offset) { return default(NSTextCheckingResult); } /// <summary> /// Returns the range of the result that the receiver represents. (read-only) /// </summary> [iOSVersion(4)] [Export("range")] public NSRange Range { get; private set; } /// <summary> /// Returns the text checking result type that the receiver represents. (read-only) /// </summary> [iOSVersion(4)] [Export("resultType")] public NSTextCheckingType ResultType { get; private set; } /// <summary> /// Returns the number of ranges. (read-only) /// </summary> [iOSVersion(4)] [Export("numberOfRanges")] public int NumberOfRanges { get; private set; } /// <summary> /// A replacement string from one of a number of replacement checking results. (read-only) /// </summary> [iOSVersion(4)] [Export("replacementString")] public string ReplacementString { get; private set; } /// <summary> /// The regular expression of a type checking result. (read-only) /// </summary> [iOSVersion(4)] [Export("regularExpression")] public NSRegularExpression RegularExpression { get; private set; } /// <summary> /// A dictionary containing the components of a type checking result. (read-only) /// </summary> [iOSVersion(4)] [Export("components")] public Dictionary<NSObject, AnyObject> Components { get; private set; } /// <summary> /// The URL of a type checking result. (read-only) /// </summary> [iOSVersion(4)] public NSURL URL { get; private set; } /// <summary> /// The address dictionary of a type checking result. (read-only) /// </summary> [iOSVersion(4)] [Export("addressComponents")] public Dictionary<NSObject, AnyObject> AddressComponents { get; private set; } /// <summary> /// The phone number of a type checking result. (read-only) /// </summary> [iOSVersion(4)] [Export("phoneNumber")] public string PhoneNumber { get; private set; } /// <summary> /// The date component of a type checking result. (read-only) /// </summary> [iOSVersion(4)] [Export("date")] public NSDate Date { get; private set; } /// <summary> /// The duration component of a type checking result. (read-only) /// </summary> [iOSVersion(4)] [Export("duration")] public NSTimeInterval Duration { get; private set; } /// <summary> /// The time zone component of a type checking result. (read-only) /// </summary> [iOSVersion(4)] [Export("timeZone")] public NSTimeZone TimeZone { get; private set; } /// <summary> /// The detected orthography of a type checking result. (read-only) /// </summary> [iOSVersion(4)] [Export("orthography")] public NSOrthography Orthography { get; private set; } /// <summary> /// The details of a located grammatical type checking result. (read-only) /// </summary> [iOSVersion(4)] [Export("grammarDetails")] public AnyObject[] GrammarDetails { get; private set; } } /// <summary> /// These constants specify the type of checking the methods should do. They are returned by resultType. /// </summary> [iOSVersion(4)] public enum NSTextCheckingType { /// <summary> /// Attempts to identify the language /// </summary> [iOSVersion(4)] Orthography, /// <summary> /// Checks spelling. /// </summary> [iOSVersion(4)] Spelling, /// <summary> /// Checks grammar. /// </summary> [iOSVersion(4)] Grammar, /// <summary> /// Attempts to locate dates. /// </summary> [iOSVersion(4)] Date, /// <summary> /// Attempts to locate addresses. /// </summary> [iOSVersion(4)] Address, /// <summary> /// Attempts to locate URL links. /// </summary> [iOSVersion(4)] Link, /// <summary> /// Replaces quotes with smart quotes. /// </summary> [iOSVersion(4)] Quote, /// <summary> /// Replaces dashes with em-dashes. /// </summary> [iOSVersion(4)] Dash, /// <summary> /// Replaces characters such as (c) with the appropriate symbol (in this case ©). /// </summary> [iOSVersion(4)] Replacement, /// <summary> /// Performs autocorrection on misspelled words. /// </summary> [iOSVersion(4)] Correction, /// <summary> /// Matches a regular expression. /// </summary> [iOSVersion(4)] RegularExpression, /// <summary> /// Matches a phone number. /// </summary> [iOSVersion(4)] PhoneNumber, /// <summary> /// Matches a transit information, for example, flight information. /// </summary> [iOSVersion(4)] TransitInformation, } /// <summary> /// Defines the types of checking that are available. These values can be combined using the C-bitwise OR operator. The system supports its own internal types, and the user can extend those types by subclassing NSTextCheckingResult and adding their own custom types. /// </summary> [iOSVersion(4)] public struct NSTextCheckingTypes { static public implicit operator NSTextCheckingTypes(UInt64 value) { return default(NSTextCheckingTypes); } static public implicit operator UInt64(NSTextCheckingTypes value) { return default(UInt64); } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSTextCheckingResult is a class used to describe items located by text checking. Each of these objects represents an occurrence of requested textual content that has been found during the analysis of a block of text. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/AppKit/Reference/NSTextCheckingResult_Class/index.html#//apple_ref/occ/cl/NSTextCheckingResult"/> [iOSVersion(4)] [Export("")] public class NSTextCheckingResult : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSObjectProtocol, Printable { public NSTextCheckingResult() { } /// <summary> /// Returns the result type that the range represents. /// </summary> /// <param name="idx">The index of the result.</param> [iOSVersion(4)] [Export("rangeAtIndex")] public virtual NSRange RangeAtIndex(int idx) { return default(NSRange); } /// <summary> /// Creates and returns a text checking result with the specified replacement string. /// </summary> /// <param name="range">The range of the detected result.</param> /// <param name="replacementString">The replacement string.</param> [iOSVersion(4)] [Export("replacementCheckingResultWithRange")] public static NSTextCheckingResult ReplacementCheckingResultWithRange(NSRange range, string replacementString) { return default(NSTextCheckingResult); } /// <summary> /// Creates and returns a type checking result with the specified regular expression data. /// </summary> /// <param name="ranges">A C array of ranges, which must have at least one element, and the first element represents the overall range.</param> /// <param name="count">The number of items in the ranges array.</param> /// <param name="regularExpression">The regular expression.</param> [iOSVersion(4)] [Export("regularExpressionCheckingResultWithRanges")] public static NSTextCheckingResult RegularExpressionCheckingResultWithRanges(NSRangePointer ranges, int count, NSRegularExpression regularExpression) { return default(NSTextCheckingResult); } /// <summary> /// Creates and returns a text checking result with the specified URL. /// </summary> /// <param name="range">The range of the detected result.</param> /// <param name="URL">The URL.</param> [iOSVersion(4)] [Export("linkCheckingResultWithRange")] public static NSTextCheckingResult LinkCheckingResultWithRange(NSRange range, NSURL URL) { return default(NSTextCheckingResult); } /// <summary> /// Creates and returns a text checking result with the specified address components. /// </summary> /// <param name="range">The range of the detected result.</param> /// <param name="components">A dictionary containing the address components. The dictionary keys are described in Keys for Address Components.</param> [iOSVersion(4)] [Export("addressCheckingResultWithRange")] public static NSTextCheckingResult AddressCheckingResultWithRange(NSRange range, Dictionary<NSObject, AnyObject> components) { return default(NSTextCheckingResult); } /// <summary> /// Creates and returns a text checking result with the specified transit information. /// </summary> /// <param name="range">The range of the detected result.</param> /// <param name="components">A dictionary containing the transit components. The currently supported keys are NSTextCheckingAirlineKey and NSTextCheckingFlightKey.</param> [iOSVersion(4)] [Export("transitInformationCheckingResultWithRange")] public static NSTextCheckingResult TransitInformationCheckingResultWithRange(NSRange range, Dictionary<NSObject, AnyObject> components) { return default(NSTextCheckingResult); } /// <summary> /// Creates and returns a text checking result with the specified phone number. /// </summary> /// <param name="range">The range of the detected result.</param> /// <param name="phoneNumber">The phone number.</param> [iOSVersion(4)] [Export("phoneNumberCheckingResultWithRange")] public static NSTextCheckingResult PhoneNumberCheckingResultWithRange(NSRange range, string phoneNumber) { return default(NSTextCheckingResult); } /// <summary> /// Creates and returns a text checking result with the specified date. /// </summary> /// <param name="range">The range of the detected result.</param> /// <param name="date">The detected date.</param> [iOSVersion(4)] [Export("dateCheckingResultWithRange")] public static NSTextCheckingResult DateCheckingResultWithRange(NSRange range, NSDate date) { return default(NSTextCheckingResult); } /// <summary> /// Creates and returns a text checking result with the specified date, time zone, and duration. /// </summary> /// <param name="range">The range of the detected result.</param> /// <param name="date">The detected date.</param> /// <param name="timeZone">The detected time zone.</param> /// <param name="duration">The detected duration.</param> [iOSVersion(4)] [Export("dateCheckingResultWithRange")] public static NSTextCheckingResult DateCheckingResultWithRange(NSRange range, NSDate date, NSTimeZone timeZone, NSTimeInterval duration) { return default(NSTextCheckingResult); } /// <summary> /// Creates and returns a text checking result with the specified dash corrected replacement string. /// </summary> /// <param name="range">The range of the detected result.</param> /// <param name="replacementString">The replacement string.</param> [iOSVersion(4)] [Export("dashCheckingResultWithRange")] public static NSTextCheckingResult DashCheckingResultWithRange(NSRange range, string replacementString) { return default(NSTextCheckingResult); } /// <summary> /// Creates and returns a text checking result with the specified quote-balanced replacement string. /// </summary> /// <param name="range">The range of the detected result.</param> /// <param name="replacementString">The replacement string.</param> [iOSVersion(4)] [Export("quoteCheckingResultWithRange")] public static NSTextCheckingResult QuoteCheckingResultWithRange(NSRange range, string replacementString) { return default(NSTextCheckingResult); } /// <summary> /// Creates and returns a text checking result with the range of a misspelled word. /// </summary> /// <param name="range">The range of the detected result.</param> [iOSVersion(4)] [Export("spellCheckingResultWithRange")] public static NSTextCheckingResult SpellCheckingResultWithRange(NSRange range) { return default(NSTextCheckingResult); } /// <summary> /// Creates and returns a text checking result after detecting a possible correction. /// </summary> /// <param name="range">The range of the detected result.</param> /// <param name="replacementString">The suggested replacement string.</param> [iOSVersion(4)] [Export("correctionCheckingResultWithRange")] public static NSTextCheckingResult CorrectionCheckingResultWithRange(NSRange range, string replacementString) { return default(NSTextCheckingResult); } /// <summary> /// Creates and returns a text checking result with the specified orthography. /// </summary> /// <param name="range">The range of the detected result.</param> /// <param name="orthography">An orthography object that describes the script.</param> [iOSVersion(4)] [Export("orthographyCheckingResultWithRange")] public static NSTextCheckingResult OrthographyCheckingResultWithRange(NSRange range, NSOrthography orthography) { return default(NSTextCheckingResult); } /// <summary> /// Creates and returns a text checking result with the specified array of grammatical errors. /// </summary> /// <param name="range">The range of the detected result.</param> /// <param name="details">An array of details regarding the grammatical errors. This array of strings is suitable for presenting to the user.</param> [iOSVersion(4)] [Export("grammarCheckingResultWithRange")] public static NSTextCheckingResult GrammarCheckingResultWithRange(NSRange range, AnyObject[] details) { return default(NSTextCheckingResult); } /// <summary> /// Returns a new text checking result after adjusting the ranges as specified by the offset. /// </summary> /// <param name="offset">The amount the ranges are adjusted.</param> [iOSVersion(5)] [Export("resultByAdjustingRangesWithOffset")] public virtual NSTextCheckingResult ResultByAdjustingRangesWithOffset(int offset) { return default(NSTextCheckingResult); } /// <summary> /// Returns the range of the result that the receiver represents. (read-only) /// </summary> [iOSVersion(4)] [Export("range")] public NSRange Range { get; private set; } /// <summary> /// Returns the text checking result type that the receiver represents. (read-only) /// </summary> [iOSVersion(4)] [Export("resultType")] public NSTextCheckingType ResultType { get; private set; } /// <summary> /// Returns the number of ranges. (read-only) /// </summary> [iOSVersion(4)] [Export("numberOfRanges")] public int NumberOfRanges { get; private set; } /// <summary> /// A replacement string from one of a number of replacement checking results. (read-only) /// </summary> [iOSVersion(4)] [Export("replacementString")] [Optional] public string ReplacementString { get; private set; } /// <summary> /// The regular expression of a type checking result. (read-only) /// </summary> [iOSVersion(4)] [Export("regularExpression")] [Optional] public NSRegularExpression RegularExpression { get; private set; } /// <summary> /// A dictionary containing the components of a type checking result. (read-only) /// </summary> [iOSVersion(4)] [Export("components")] public Dictionary<NSObject, AnyObject> Components { get; private set; } /// <summary> /// The URL of a type checking result. (read-only) /// </summary> [iOSVersion(4)] [Optional] public NSURL URL { get; private set; } /// <summary> /// The address dictionary of a type checking result. (read-only) /// </summary> [iOSVersion(4)] [Export("addressComponents")] public Dictionary<NSObject, AnyObject> AddressComponents { get; private set; } /// <summary> /// The phone number of a type checking result. (read-only) /// </summary> [iOSVersion(4)] [Export("phoneNumber")] [Optional] public string PhoneNumber { get; private set; } /// <summary> /// The date component of a type checking result. (read-only) /// </summary> [iOSVersion(4)] [Export("date")] [Optional] public NSDate Date { get; private set; } /// <summary> /// The duration component of a type checking result. (read-only) /// </summary> [iOSVersion(4)] [Export("duration")] public NSTimeInterval Duration { get; private set; } /// <summary> /// The time zone component of a type checking result. (read-only) /// </summary> [iOSVersion(4)] [Export("timeZone")] [Optional] public NSTimeZone TimeZone { get; private set; } /// <summary> /// The detected orthography of a type checking result. (read-only) /// </summary> [iOSVersion(4)] [Export("orthography")] [Optional] public NSOrthography Orthography { get; private set; } /// <summary> /// The details of a located grammatical type checking result. (read-only) /// </summary> [iOSVersion(4)] [Export("grammarDetails")] public AnyObject[] GrammarDetails { get; private set; } } /// <summary> /// These constants specify the type of checking the methods should do. They are returned by resultType. /// </summary> public enum NSTextCheckingType { /// <summary> /// Attempts to identify the language /// </summary> [iOSVersion(4)] Orthography, /// <summary> /// Checks spelling. /// </summary> [iOSVersion(4)] Spelling, /// <summary> /// Checks grammar. /// </summary> [iOSVersion(4)] Grammar, /// <summary> /// Attempts to locate dates. /// </summary> [iOSVersion(4)] Date, /// <summary> /// Attempts to locate addresses. /// </summary> [iOSVersion(4)] Address, /// <summary> /// Attempts to locate URL links. /// </summary> [iOSVersion(4)] Link, /// <summary> /// Replaces quotes with smart quotes. /// </summary> [iOSVersion(4)] Quote, /// <summary> /// Replaces dashes with em-dashes. /// </summary> [iOSVersion(4)] Dash, /// <summary> /// Replaces characters such as (c) with the appropriate symbol (in this case ©). /// </summary> [iOSVersion(4)] Replacement, /// <summary> /// Performs autocorrection on misspelled words. /// </summary> [iOSVersion(4)] Correction, /// <summary> /// Matches a regular expression. /// </summary> [iOSVersion(4)] RegularExpression, /// <summary> /// Matches a phone number. /// </summary> [iOSVersion(4)] PhoneNumber, /// <summary> /// Matches a transit information, for example, flight information. /// </summary> [iOSVersion(4)] TransitInformation, } /// <summary> /// Defines the types of checking that are available. These values can be combined using the C-bitwise OR operator. The system supports its own internal types, and the user can extend those types by subclassing NSTextCheckingResult and adding their own custom types. /// </summary> [iOSVersion(4)] public struct NSTextCheckingTypes { static public implicit operator NSTextCheckingTypes(UInt64 value) { return default(NSTextCheckingTypes); } static public implicit operator UInt64(NSTextCheckingTypes value) { return default(UInt64); } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSThread.cs b/CocoaSharp/Foundation/NSThread.cs
index bcf0f06c..5116e48e 100644
--- a/CocoaSharp/Foundation/NSThread.cs
+++ b/CocoaSharp/Foundation/NSThread.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// An NSThread object controls a thread of execution. Use this class when you want to have an Objective-C method run in its own thread of execution. Threads are especially useful when you need to perform a lengthy task, but don’t want it to block the execution of the rest of the application. In particular, you can use threads to avoid blocking the main thread of the application, which handles user interface and event-related actions. Threads can also be used to divide a large job into several smaller jobs, which can lead to performance increases on multi-core computers. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSThread_Class/index.html#//apple_ref/occ/cl/NSThread"/> [iOSVersion(2)] public class NSThread : NSObject//, AnyObject, NSObjectProtocol { /// <summary> /// Returns an initialized NSThread object. /// </summary> [iOSVersion(2)] public NSThread() { } /// <summary> /// Returns an NSThread object initialized with the given arguments. /// </summary> /// <param name="target">The object to which the message specified by selector is sent.</param> /// <param name="selector">The selector for the message to send to target. This selector must take only one argument and must not have a return value.</param> /// <param name="@object">The single argument passed to the target. May be nil.</param> [iOSVersion(2)] [Export("convenience init")] public NSThread(AnyObject target, Selector selector, AnyObject @object) { } /// <summary> /// Detaches a new thread and uses the specified selector as the thread entry point. /// </summary> /// <param name="aSelector">The selector for the message to send to the target. This selector must take only one argument and must not have a return value.</param> /// <param name="toTarget">The object that will receive the message aSelector on the new thread.</param> /// <param name="withObject">The single argument passed to the target. May be nil.</param> [iOSVersion(2)] [Export("detachNewThreadSelector")] public static void DetachNewThreadSelector(Selector aSelector, AnyObject toTarget, AnyObject withObject) { } /// <summary> /// Starts the receiver. /// </summary> [iOSVersion(2)] [Export("start")] public void Start() { } /// <summary> /// The main entry point routine for the thread. /// </summary> [iOSVersion(2)] [Export("main")] public void Main() { } /// <summary> /// Blocks the current thread until the time specified. /// </summary> /// <param name="aDate">The time at which to resume processing.</param> [iOSVersion(2)] [Export("sleepUntilDate")] public static void SleepUntilDate(NSDate aDate) { } /// <summary> /// Sleeps the thread for a given time interval. /// </summary> /// <param name="ti">The duration of the sleep.</param> [iOSVersion(2)] [Export("sleepForTimeInterval")] public static void SleepForTimeInterval(NSTimeInterval ti) { } /// <summary> /// Terminates the current thread. /// </summary> [iOSVersion(2)] [Export("exit")] public static void Exit() { } /// <summary> /// Changes the cancelled state of the receiver to indicate that it should exit. /// </summary> [iOSVersion(2)] [Export("cancel")] public void Cancel() { } /// <summary> /// Returns a Boolean value that indicates whether the current thread is the main thread. /// </summary> [iOSVersion(2)] [Export("isMainThread")] public static bool IsMainThread() { return default(bool); } /// <summary> /// Returns the NSThread object representing the main thread. /// </summary> [iOSVersion(2)] [Export("mainThread")] public static NSThread MainThread() { return default(NSThread); } /// <summary> /// Returns whether the application is multithreaded. /// </summary> [iOSVersion(2)] [Export("isMultiThreaded")] public static bool IsMultiThreaded() { return default(bool); } /// <summary> /// Returns the thread object representing the current thread of execution. /// </summary> [iOSVersion(2)] [Export("currentThread")] public static NSThread CurrentThread() { return default(NSThread); } /// <summary> /// Returns an array containing the call stack return addresses. /// </summary> [iOSVersion(2)] [Export("callStackReturnAddresses")] public static AnyObject[] CallStackReturnAddresses() { return default(AnyObject[]); } /// <summary> /// Returns an array containing the call stack symbols. /// </summary> [iOSVersion(4)] [Export("callStackSymbols")] public static AnyObject[] CallStackSymbols() { return default(AnyObject[]); } /// <summary> /// Returns the current thread’s priority. /// </summary> [iOSVersion(2)] [Export("threadPriority")] public static Double ThreadPriority() { return default(Double); } /// <summary> /// Sets the current thread’s priority. /// </summary> /// <param name="priority">The new priority, specified with a floating point number from 0.0 to 1.0, where 1.0 is highest priority.</param> [iOSVersion(2)] [Export("setThreadPriority")] public static bool SetThreadPriority(Double priority) { return default(bool); } /// <summary> /// A Boolean value that indicates whether the receiver is executing. (read-only) /// </summary> [iOSVersion(2)] [Export("executing")] public bool Executing { get; private set; } /// <summary> /// A Boolean value that indicates whether the receiver has finished execution. (read-only) /// </summary> [iOSVersion(2)] [Export("finished")] public bool Finished { get; private set; } /// <summary> /// A Boolean value that indicates whether the receiver is cancelled. (read-only) /// </summary> [iOSVersion(2)] [Export("cancelled")] public bool Cancelled { get; private set; } /// <summary> /// The thread object's dictionary. (read-only) /// </summary> [iOSVersion(2)] [Export("threadDictionary")] public NSMutableDictionary ThreadDictionary { get; private set; } /// <summary> /// The name of the receiver. /// </summary> [iOSVersion(2)] [Export("name")] public string Name { get; set; } /// <summary> /// The stack size of the receiver, in bytes. /// </summary> [iOSVersion(2)] [Export("stackSize")] public int StackSize { get; set; } } /// <summary> /// /// </summary> [iOSVersion(2)] public class NSDidBecomeSingleThreadedNotification : NSNotification { public NSDidBecomeSingleThreadedNotification() : base("", null) { } } /// <summary> /// The notification object is the exiting NSThread object. This notification does not contain a userInfo dictionary. /// </summary> [iOSVersion(2)] public class NSThreadWillExitNotification : NSNotification { public NSThreadWillExitNotification() : base("", null) { } } /// <summary> /// This notification does not contain a notification object or a userInfo dictionary. /// </summary> [iOSVersion(2)] public class NSWillBecomeMultiThreadedNotification : NSNotification { public NSWillBecomeMultiThreadedNotification() : base("", null) { } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// An NSThread object controls a thread of execution. Use this class when you want to have an Objective-C method run in its own thread of execution. Threads are especially useful when you need to perform a lengthy task, but don’t want it to block the execution of the rest of the application. In particular, you can use threads to avoid blocking the main thread of the application, which handles user interface and event-related actions. Threads can also be used to divide a large job into several smaller jobs, which can lead to performance increases on multi-core computers. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSThread_Class/index.html#//apple_ref/occ/cl/NSThread"/> [iOSVersion(2)] [Export("")] public class NSThread : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSObjectProtocol, Printable { /// <summary> /// Returns an initialized NSThread object. /// </summary> [iOSVersion(2)] public NSThread() { } /// <summary> /// Returns an NSThread object initialized with the given arguments. /// </summary> /// <param name="target">The object to which the message specified by selector is sent.</param> /// <param name="selector">The selector for the message to send to target. This selector must take only one argument and must not have a return value.</param> /// <param name="@object">The single argument passed to the target. May be nil.</param> [iOSVersion(2)] [Export("convenience init")] public NSThread(AnyObject target, Selector selector, [Optional] AnyObject @object) { } /// <summary> /// Detaches a new thread and uses the specified selector as the thread entry point. /// </summary> /// <param name="aSelector">The selector for the message to send to the target. This selector must take only one argument and must not have a return value.</param> /// <param name="toTarget">The object that will receive the message aSelector on the new thread.</param> /// <param name="withObject">The single argument passed to the target. May be nil.</param> [iOSVersion(2)] [Export("detachNewThreadSelector")] public static void DetachNewThreadSelector(Selector aSelector, AnyObject toTarget, [Optional] AnyObject withObject) { } /// <summary> /// Starts the receiver. /// </summary> [iOSVersion(2)] [Export("start")] public virtual void Start() { } /// <summary> /// The main entry point routine for the thread. /// </summary> [iOSVersion(2)] [Export("main")] public virtual void Main() { } /// <summary> /// Blocks the current thread until the time specified. /// </summary> /// <param name="aDate">The time at which to resume processing.</param> [iOSVersion(2)] [Export("sleepUntilDate")] public static void SleepUntilDate(NSDate aDate) { } /// <summary> /// Sleeps the thread for a given time interval. /// </summary> /// <param name="ti">The duration of the sleep.</param> [iOSVersion(2)] [Export("sleepForTimeInterval")] public static void SleepForTimeInterval(NSTimeInterval ti) { } /// <summary> /// Terminates the current thread. /// </summary> [iOSVersion(2)] [Export("exit")] public static void Exit() { } /// <summary> /// Changes the cancelled state of the receiver to indicate that it should exit. /// </summary> [iOSVersion(2)] [Export("cancel")] public virtual void Cancel() { } /// <summary> /// Returns a Boolean value that indicates whether the current thread is the main thread. /// </summary> [iOSVersion(2)] [Export("isMainThread")] public static bool StaticIsMainThread() { return default(bool); } /// <summary> /// Returns the NSThread object representing the main thread. /// </summary> [iOSVersion(2)] [Export("mainThread")] public static NSThread MainThread() { return default(NSThread); } /// <summary> /// Returns whether the application is multithreaded. /// </summary> [iOSVersion(2)] [Export("isMultiThreaded")] public static bool IsMultiThreaded() { return default(bool); } /// <summary> /// Returns the thread object representing the current thread of execution. /// </summary> [iOSVersion(2)] [Export("currentThread")] public static NSThread CurrentThread() { return default(NSThread); } /// <summary> /// Returns an array containing the call stack return addresses. /// </summary> [iOSVersion(2)] [Export("callStackReturnAddresses")] public static AnyObject[] CallStackReturnAddresses() { return default(AnyObject[]); } /// <summary> /// Returns an array containing the call stack symbols. /// </summary> [iOSVersion(4)] [Export("callStackSymbols")] public static AnyObject[] CallStackSymbols() { return default(AnyObject[]); } /// <summary> /// Returns the current thread’s priority. /// </summary> [iOSVersion(2)] [Export("threadPriority")] public static Double ThreadPriority() { return default(Double); } /// <summary> /// Sets the current thread’s priority. /// </summary> /// <param name="priority">The new priority, specified with a floating point number from 0.0 to 1.0, where 1.0 is highest priority.</param> [iOSVersion(2)] [Export("setThreadPriority")] public static bool SetThreadPriority(Double priority) { return default(bool); } /// <summary> /// A Boolean value that indicates whether the receiver is executing. (read-only) /// </summary> [iOSVersion(2)] [Export("executing")] public bool Executing { get; private set; } /// <summary> /// A Boolean value that indicates whether the receiver has finished execution. (read-only) /// </summary> [iOSVersion(2)] [Export("finished")] public bool Finished { get; private set; } /// <summary> /// A Boolean value that indicates whether the receiver is cancelled. (read-only) /// </summary> [iOSVersion(2)] [Export("cancelled")] public bool Cancelled { get; private set; } /// <summary> /// A Boolean value that indicates whether the receiver is the main thread. (read-only) /// </summary> [iOSVersion(2)] [Export("isMainThread")] public bool IsMainThread { get; private set; } /// <summary> /// The thread object&#39;s dictionary. (read-only) /// </summary> [iOSVersion(2)] [Export("threadDictionary")] public NSMutableDictionary ThreadDictionary { get; private set; } /// <summary> /// The name of the receiver. /// </summary> [iOSVersion(2)] [Export("name")] [Unwrapped] public string Name { get; set; } /// <summary> /// The stack size of the receiver, in bytes. /// </summary> [iOSVersion(2)] [Export("stackSize")] public int StackSize { get; set; } /// <summary> /// The receiver’s priority /// </summary> [iOSVersion(4)] [Export("threadPriority")] public Double InstanceThreadPriority { get; set; } } /// <summary> /// Not implemented. /// </summary> public class NSDidBecomeSingleThreadedNotification : NSNotification { public NSDidBecomeSingleThreadedNotification() : base("", null) { } } /// <summary> /// An NSThread object posts this notification when it receives the exit message, before the thread exits. Observer methods invoked to receive this notification execute in the exiting thread, before it exits. /// The notification object is the exiting NSThread object. This notification does not contain a userInfo dictionary. /// </summary> public class NSThreadWillExitNotification : NSNotification { public NSThreadWillExitNotification() : base("", null) { } } /// <summary> /// Posted when the first thread is detached from the current thread. The NSThread class posts this notification at most once—the first time a thread is detached using detachNewThreadSelector:toTarget:withObject: or the start method. Subsequent invocations of those methods do not post this notification. Observers of this notification have their notification method invoked in the main thread, not the new thread. The observer notification methods always execute before the new thread begins executing. /// This notification does not contain a notification object or a userInfo dictionary. /// </summary> public class NSWillBecomeMultiThreadedNotification : NSNotification { public NSWillBecomeMultiThreadedNotification() : base("", null) { } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSTimeZone.cs b/CocoaSharp/Foundation/NSTimeZone.cs
index 204d94eb..829081a8 100644
--- a/CocoaSharp/Foundation/NSTimeZone.cs
+++ b/CocoaSharp/Foundation/NSTimeZone.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSTimeZone is an abstract class that defines the behavior of time zone objects. Time zone objects represent geopolitical regions. Consequently, these objects have names for these regions. Time zone objects also represent a temporal offset, either plus or minus, from Greenwich Mean Time (GMT) and an abbreviation (such as PST for Pacific Standard Time). /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSTimeZone_Class/index.html#//apple_ref/occ/cl/NSTimeZone"/> [iOSVersion(2)] public class NSTimeZone : NSObject//, AnyObject, NSCoding, NSCopying, NSObjectProtocol, NSSecureCoding { /// <summary> /// Returns the time zone object identified by a given abbreviation. /// </summary> /// <param name="abbreviation">An abbreviation for a time zone.</param> [iOSVersion(2)] [Export("convenience init")] public NSTimeZone(string abbreviation) { } /// <summary> /// Returns a time zone object offset from Greenwich Mean Time by a given number of seconds. /// </summary> /// <param name="forSecondsFromGMT">The number of seconds by which the new time zone is offset from GMT.</param> [iOSVersion(2)] [Export("convenience init")] public NSTimeZone(int forSecondsFromGMT) { } /// <summary> /// Returns a time zone initialized with a given ID. /// </summary> /// <param name="name">The ID for the time zone. Providing nil for this parameter raises an invalid argument exception.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [IgnoreParameter("NAME_YOUR_PARAMS")] public NSTimeZone(string name, bool NAME_YOUR_PARAMS = false) { } /// <summary> /// Initializes a time zone with a given ID and time zone data. /// </summary> /// <param name="name">The ID for the time zone. Providing nil for this parameter raises an invalid argument exception.</param> /// <param name="data">The data from the time-zone files located at /usr/share/zoneinfo.</param> [iOSVersion(2)] public NSTimeZone(string name, NSData data) { } /// <summary> /// Returns the time zone data version. /// </summary> [iOSVersion(4)] [Export("timeZoneDataVersion")] public static string TimeZoneDataVersion() { return default(string); } /// <summary> /// Returns an object that forwards all messages to the default time zone for the current application. /// </summary> [iOSVersion(2)] [Export("localTimeZone")] public static NSTimeZone LocalTimeZone() { return default(NSTimeZone); } /// <summary> /// Returns the default time zone for the current application. /// </summary> [iOSVersion(2)] [Export("defaultTimeZone")] public static NSTimeZone DefaultTimeZone() { return default(NSTimeZone); } /// <summary> /// Sets the default time zone for the current application to a given time zone. /// </summary> /// <param name="aTimeZone">The new default time zone for the current application.</param> [iOSVersion(2)] [Export("setDefaultTimeZone")] public static void SetDefaultTimeZone(NSTimeZone aTimeZone) { } /// <summary> /// Resets the system time zone object cached by the application, if any. /// </summary> [iOSVersion(2)] [Export("resetSystemTimeZone")] public static void ResetSystemTimeZone() { } /// <summary> /// Returns the time zone currently used by the system. /// </summary> [iOSVersion(2)] [Export("systemTimeZone")] public static NSTimeZone SystemTimeZone() { return default(NSTimeZone); } /// <summary> /// Returns a dictionary holding the mappings of time zone abbreviations to time zone names. /// </summary> [iOSVersion(2)] [Export("abbreviationDictionary")] public static Dictionary<NSObject, AnyObject> AbbreviationDictionary() { return default(Dictionary<NSObject, AnyObject>); } /// <summary> /// Returns an array of strings listing the IDs of all the time zones known to the system. /// </summary> [iOSVersion(2)] [Export("knownTimeZoneNames")] public static AnyObject[] KnownTimeZoneNames() { return default(AnyObject[]); } /// <summary> /// Sets the abbreviation dictionary to the specified dictionary. /// </summary> /// <param name="dict">A dictionary containing key-value pairs for looking up time zone names given their abbreviations. The keys should be NSString objects containing the abbreviations; the values should be NSString objects containing their corresponding geopolitical region names.</param> [iOSVersion(4)] [Export("setAbbreviationDictionary")] public static void SetAbbreviationDictionary(Dictionary<NSObject, AnyObject> dict) { } /// <summary> /// Returns the abbreviation for the receiver at a given date. /// </summary> /// <param name="aDate">The date for which to get the abbreviation for the receiver.</param> [iOSVersion(2)] [Export("abbreviationForDate")] public string AbbreviationForDate(NSDate aDate) { return default(string); } /// <summary> /// Returns the difference in seconds between the receiver and Greenwich Mean Time at a given date. /// </summary> /// <param name="aDate">The date against which to test the receiver.</param> [iOSVersion(2)] [Export("secondsFromGMTForDate")] public int SecondsFromGMTForDate(NSDate aDate) { return default(int); } /// <summary> /// Returns a Boolean value that indicates whether the receiver has the same name and data as the specified time zone. /// </summary> /// <param name="aTimeZone">The time zone to compare with the receiver.</param> [iOSVersion(2)] [Export("isEqualToTimeZone")] public bool IsEqualToTimeZone(NSTimeZone aTimeZone) { return default(bool); } /// <summary> /// Returns the name of the receiver localized for a given locale. /// </summary> /// <param name="style">The format style for the returned string.</param> /// <param name="locale">The locale for which to format the name.</param> [iOSVersion(2)] [Export("localizedName")] public string LocalizedName(NSTimeZoneNameStyle style, NSLocale locale) { return default(string); } /// <summary> /// Returns a Boolean value that indicates whether the receiver uses daylight saving time at a given date. /// </summary> /// <param name="aDate">The date against which to test the receiver.</param> [iOSVersion(2)] [Export("isDaylightSavingTimeForDate")] public bool IsDaylightSavingTimeForDate(NSDate aDate) { return default(bool); } /// <summary> /// Returns the daylight saving time offset for a given date. /// </summary> /// <param name="aDate">A date.</param> [iOSVersion(2)] [Export("daylightSavingTimeOffsetForDate")] public NSTimeInterval DaylightSavingTimeOffsetForDate(NSDate aDate) { return default(NSTimeInterval); } /// <summary> /// Returns the next daylight saving time transition after a given date. /// </summary> /// <param name="aDate">A date.</param> [iOSVersion(2)] [Export("nextDaylightSavingTimeTransitionAfterDate")] public NSDate NextDaylightSavingTimeTransitionAfterDate(NSDate aDate) { return default(NSDate); } /// <summary> /// The abbreviation for the receiver, such as “EDT” (Eastern Daylight Time). (read-only) /// </summary> [iOSVersion(2)] [Export("abbreviation")] public string Abbreviation { get; private set; } /// <summary> /// The geopolitical region ID that identifies the receiver. (read-only) /// </summary> [iOSVersion(2)] [Export("name")] public string Name { get; private set; } /// <summary> /// The current difference in seconds between the receiver and Greenwich Mean Time. (read-only) /// </summary> [iOSVersion(2)] [Export("secondsFromGMT")] public int SecondsFromGMT { get; private set; } /// <summary> /// The data that stores the information used by the receiver. (read-only) /// </summary> [iOSVersion(2)] [Export("data")] public NSData Data { get; private set; } /// <summary> /// The description of the receiver, including the name, abbreviation, offset from GMT, and whether or not daylight saving time is currently in effect. (read-only) /// </summary> [iOSVersion(2)] [Export("description")] public string Description { get; private set; } /// <summary> /// A Boolean value that indicates whether the receiver is currently using daylight saving time. (read-only) /// </summary> [iOSVersion(8)] [Export("daylightSavingTime")] public bool DaylightSavingTime { get; private set; } /// <summary> /// The current daylight saving time offset of the receiver. (read-only) /// </summary> [iOSVersion(2)] [Export("daylightSavingTimeOffset")] public NSTimeInterval DaylightSavingTimeOffset { get; private set; } /// <summary> /// The date of the next daylight saving time transition for the receiver. /// </summary> [iOSVersion(2)] [Export("nextDaylightSavingTimeTransition")] public NSDate NextDaylightSavingTimeTransition { get; private set; } } /// <summary> /// Specify styles for presenting time zone names. /// </summary> [iOSVersion(2)] public enum NSTimeZoneNameStyle { /// <summary> /// Specifies a standard name style. For example, “Central Standard Time” for Central Time. /// </summary> [iOSVersion(2)] Standard, /// <summary> /// Specifies a short name style. For example, “CST” for Central Time. /// </summary> [iOSVersion(2)] ShortStandard, /// <summary> /// Specifies a daylight saving name style. For example, “Central Daylight Time” for Central Time. /// </summary> [iOSVersion(2)] DaylightSaving, /// <summary> /// Specifies a short daylight saving name style. For example, “CDT” for Central Time. /// </summary> [iOSVersion(2)] ShortDaylightSaving, /// <summary> /// Specifies a generic name style. For example, “Central Time” for Central Time. /// </summary> [iOSVersion(4)] Generic, /// <summary> /// Specifies a generic time zone name. For example, “CT” for Central Time. /// </summary> [iOSVersion(4)] ShortGeneric, } /// <summary> /// /// </summary> [iOSVersion(2)] public class NSSystemTimeZoneDidChangeNotification : NSNotification { public NSSystemTimeZoneDidChangeNotification() : base("", null) { } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSTimeZone is an abstract class that defines the behavior of time zone objects. Time zone objects represent geopolitical regions. Consequently, these objects have names for these regions. Time zone objects also represent a temporal offset, either plus or minus, from Greenwich Mean Time (GMT) and an abbreviation (such as PST for Pacific Standard Time). /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSTimeZone_Class/index.html#//apple_ref/occ/cl/NSTimeZone"/> [iOSVersion(2)] [Export("")] public class NSTimeZone : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSObjectProtocol, NSSecureCoding, Printable { public NSTimeZone() { } /// <summary> /// Returns a time zone object offset from Greenwich Mean Time by a given number of seconds. /// </summary> /// <param name="forSecondsFromGMT">The number of seconds by which the new time zone is offset from GMT.</param> [iOSVersion(2)] [Export("convenience init")] public NSTimeZone(int forSecondsFromGMT) { } /// <summary> /// Returns the time zone data version. /// </summary> [iOSVersion(4)] [Export("timeZoneDataVersion")] public static string TimeZoneDataVersion() { return default(string); } /// <summary> /// Returns an object that forwards all messages to the default time zone for the current application. /// </summary> [iOSVersion(2)] [Export("localTimeZone")] public static NSTimeZone LocalTimeZone() { return default(NSTimeZone); } /// <summary> /// Returns the default time zone for the current application. /// </summary> [iOSVersion(2)] [Export("defaultTimeZone")] public static NSTimeZone DefaultTimeZone() { return default(NSTimeZone); } /// <summary> /// Sets the default time zone for the current application to a given time zone. /// </summary> /// <param name="aTimeZone">The new default time zone for the current application.</param> [iOSVersion(2)] [Export("setDefaultTimeZone")] public static void SetDefaultTimeZone(NSTimeZone aTimeZone) { } /// <summary> /// Resets the system time zone object cached by the application, if any. /// </summary> [iOSVersion(2)] [Export("resetSystemTimeZone")] public static void ResetSystemTimeZone() { } /// <summary> /// Returns the time zone currently used by the system. /// </summary> [iOSVersion(2)] [Export("systemTimeZone")] public static NSTimeZone SystemTimeZone() { return default(NSTimeZone); } /// <summary> /// Returns a dictionary holding the mappings of time zone abbreviations to time zone names. /// </summary> [iOSVersion(2)] [Export("abbreviationDictionary")] public static Dictionary<NSObject, AnyObject> AbbreviationDictionary() { return default(Dictionary<NSObject, AnyObject>); } /// <summary> /// Returns an array of strings listing the IDs of all the time zones known to the system. /// </summary> [iOSVersion(2)] [Export("knownTimeZoneNames")] public static AnyObject[] KnownTimeZoneNames() { return default(AnyObject[]); } /// <summary> /// Sets the abbreviation dictionary to the specified dictionary. /// </summary> /// <param name="dict">A dictionary containing key-value pairs for looking up time zone names given their abbreviations. The keys should be NSString objects containing the abbreviations; the values should be NSString objects containing their corresponding geopolitical region names.</param> [iOSVersion(4)] [Export("setAbbreviationDictionary")] public static void SetAbbreviationDictionary(Dictionary<NSObject, AnyObject> dict) { } /// <summary> /// Returns the abbreviation for the receiver at a given date. /// </summary> /// <param name="aDate">The date for which to get the abbreviation for the receiver.</param> [iOSVersion(2)] [Export("abbreviationForDate")] [return:Optional] public virtual string AbbreviationForDate(NSDate aDate) { return default(string); } /// <summary> /// Returns the difference in seconds between the receiver and Greenwich Mean Time at a given date. /// </summary> /// <param name="aDate">The date against which to test the receiver.</param> [iOSVersion(2)] [Export("secondsFromGMTForDate")] public virtual int SecondsFromGMTForDate(NSDate aDate) { return default(int); } /// <summary> /// Returns a Boolean value that indicates whether the receiver has the same name and data as the specified time zone. /// </summary> /// <param name="aTimeZone">The time zone to compare with the receiver.</param> [iOSVersion(2)] [Export("isEqualToTimeZone")] public virtual bool IsEqualToTimeZone(NSTimeZone aTimeZone) { return default(bool); } /// <summary> /// Returns the name of the receiver localized for a given locale. /// </summary> /// <param name="style">The format style for the returned string.</param> /// <param name="locale">The locale for which to format the name.</param> [iOSVersion(2)] [Export("localizedName")] [return:Optional] public virtual string LocalizedName(NSTimeZoneNameStyle style, [Optional] NSLocale locale) { return default(string); } /// <summary> /// Returns a Boolean value that indicates whether the receiver uses daylight saving time at a given date. /// </summary> /// <param name="aDate">The date against which to test the receiver.</param> [iOSVersion(2)] [Export("isDaylightSavingTimeForDate")] public virtual bool IsDaylightSavingTimeForDate(NSDate aDate) { return default(bool); } /// <summary> /// Returns the daylight saving time offset for a given date. /// </summary> /// <param name="aDate">A date.</param> [iOSVersion(2)] [Export("daylightSavingTimeOffsetForDate")] public virtual NSTimeInterval DaylightSavingTimeOffsetForDate(NSDate aDate) { return default(NSTimeInterval); } /// <summary> /// Returns the next daylight saving time transition after a given date. /// </summary> /// <param name="aDate">A date.</param> [iOSVersion(2)] [Export("nextDaylightSavingTimeTransitionAfterDate")] [return:Optional] public virtual NSDate NextDaylightSavingTimeTransitionAfterDate(NSDate aDate) { return default(NSDate); } /// <summary> /// The abbreviation for the receiver, such as “EDT” (Eastern Daylight Time). (read-only) /// </summary> [iOSVersion(2)] [Export("abbreviation")] [Optional] public string Abbreviation { get; private set; } /// <summary> /// The geopolitical region ID that identifies the receiver. (read-only) /// </summary> [iOSVersion(2)] [Export("name")] public string Name { get; private set; } /// <summary> /// The current difference in seconds between the receiver and Greenwich Mean Time. (read-only) /// </summary> [iOSVersion(2)] [Export("secondsFromGMT")] public int SecondsFromGMT { get; private set; } /// <summary> /// The data that stores the information used by the receiver. (read-only) /// </summary> [iOSVersion(2)] [Export("data")] public NSData Data { get; private set; } /// <summary> /// The description of the receiver, including the name, abbreviation, offset from GMT, and whether or not daylight saving time is currently in effect. (read-only) /// </summary> [iOSVersion(2)] [Export("description")] public string Description { get; private set; } /// <summary> /// A Boolean value that indicates whether the receiver is currently using daylight saving time. (read-only) /// </summary> [iOSVersion(8)] [Export("daylightSavingTime")] public bool DaylightSavingTime { get; private set; } /// <summary> /// The current daylight saving time offset of the receiver. (read-only) /// </summary> [iOSVersion(2)] [Export("daylightSavingTimeOffset")] public NSTimeInterval DaylightSavingTimeOffset { get; private set; } /// <summary> /// The date of the next daylight saving time transition for the receiver. /// </summary> [iOSVersion(2)] [Export("nextDaylightSavingTimeTransition")] [Optional] public NSDate NextDaylightSavingTimeTransition { get; private set; } } /// <summary> /// Specify styles for presenting time zone names. /// </summary> public enum NSTimeZoneNameStyle { /// <summary> /// Specifies a standard name style. For example, “Central Standard Time” for Central Time. /// </summary> [iOSVersion(2)] Standard, /// <summary> /// Specifies a short name style. For example, “CST” for Central Time. /// </summary> [iOSVersion(2)] ShortStandard, /// <summary> /// Specifies a daylight saving name style. For example, “Central Daylight Time” for Central Time. /// </summary> [iOSVersion(2)] DaylightSaving, /// <summary> /// Specifies a short daylight saving name style. For example, “CDT” for Central Time. /// </summary> [iOSVersion(2)] ShortDaylightSaving, /// <summary> /// Specifies a generic name style. For example, “Central Time” for Central Time. /// </summary> [iOSVersion(4)] Generic, /// <summary> /// Specifies a generic time zone name. For example, “CT” for Central Time. /// </summary> [iOSVersion(4)] ShortGeneric, } /// <summary> /// Sent when the time zone changed. /// </summary> public class NSSystemTimeZoneDidChangeNotification : NSNotification { public NSSystemTimeZoneDidChangeNotification() : base("", null) { } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSTimer.cs b/CocoaSharp/Foundation/NSTimer.cs
index 360d4350..9ae227d5 100644
--- a/CocoaSharp/Foundation/NSTimer.cs
+++ b/CocoaSharp/Foundation/NSTimer.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// You use the NSTimer class to create timer objects or, more simply, timers. A timer waits until a certain time interval has elapsed and then fires, sending a specified message to a target object. For example, you could create an NSTimer object that sends a message to a window, telling it to update itself after a certain time interval. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSTimer_Class/index.html#//apple_ref/occ/cl/NSTimer"/> [iOSVersion(2)] public class NSTimer : NSObject//, AnyObject, NSObjectProtocol { /// <summary> /// Creates and returns a new NSTimer object and schedules it on the current run loop in the default mode. /// </summary> /// <param name="seconds">The number of seconds between firings of the timer. If seconds is less than or equal to 0.0, this method chooses the nonnegative value of 0.1 milliseconds instead.</param> /// <param name="invocation">The invocation to use when the timer fires. The invocation object maintains a strong reference to its arguments until the timer is invalidated.</param> /// <param name="repeats">If true, the timer will repeatedly reschedule itself until invalidated. If false, the timer will be invalidated after it fires.</param> [iOSVersion(2)] [Export("scheduledTimerWithTimeInterval")] public static NSTimer ScheduledTimerWithTimeInterval(NSTimeInterval seconds, NSInvocation invocation, bool repeats) { return default(NSTimer); } /// <summary> /// Creates and returns a new NSTimer object and schedules it on the current run loop in the default mode. /// </summary> /// <param name="seconds">The number of seconds between firings of the timer. If seconds is less than or equal to 0.0, this method chooses the nonnegative value of 0.1 milliseconds instead.</param> /// <param name="target">The object to which to send the message specified by aSelector when the timer fires. The timer maintains a strong reference to target until it (the timer) is invalidated.</param> /// <param name="selector">The message to send to target when the timer fires. /// The selector should have the following signature: timerFireMethod: (including a colon to indicate that the method takes an argument). The timer passes itself as the argument, thus the method would adopt the following pattern: /// - (void)timerFireMethod:(NSTimer *)timer</param> /// <param name="userInfo">The user info for the timer. The timer maintains a strong reference to this object until it (the timer) is invalidated. This parameter may be nil.</param> /// <param name="repeats">If true, the timer will repeatedly reschedule itself until invalidated. If false, the timer will be invalidated after it fires.</param> [iOSVersion(2)] [Export("scheduledTimerWithTimeInterval")] public static NSTimer ScheduledTimerWithTimeInterval(NSTimeInterval seconds, AnyObject target, Selector selector, AnyObject userInfo, bool repeats) { return default(NSTimer); } /// <summary> /// Creates and returns a new NSTimer object initialized with the specified invocation object. /// </summary> /// <param name="timeInterval">The number of seconds between firings of the timer. If seconds is less than or equal to 0.0, this method chooses the nonnegative value of 0.1 milliseconds instead</param> /// <param name="invocation">The invocation to use when the timer fires. The timer instructs the invocation object to maintain a strong reference to its arguments.</param> /// <param name="repeats">If true, the timer will repeatedly reschedule itself until invalidated. If false, the timer will be invalidated after it fires.</param> [iOSVersion(2)] public NSTimer(NSTimeInterval timeInterval, NSInvocation invocation, bool repeats) { } /// <summary> /// Creates and returns a new NSTimer object initialized with the specified object and selector. /// </summary> /// <param name="timeInterval">The number of seconds between firings of the timer. If seconds is less than or equal to 0.0, this method chooses the nonnegative value of 0.1 milliseconds instead.</param> /// <param name="target">The object to which to send the message specified by aSelector when the timer fires. The timer maintains a strong reference to this object until it (the timer) is invalidated.</param> /// <param name="selector">The message to send to target when the timer fires. /// The selector should have the following signature: timerFireMethod: (including a colon to indicate that the method takes an argument). The timer passes itself as the argument, thus the method would adopt the following pattern: /// - (void)timerFireMethod:(NSTimer *)timer</param> /// <param name="userInfo">Custom user info for the timer. /// The timer maintains a strong reference to this object until it (the timer) is invalidated. This parameter may be nil.</param> /// <param name="repeats">If true, the timer will repeatedly reschedule itself until invalidated. If false, the timer will be invalidated after it fires.</param> [iOSVersion(2)] public NSTimer(NSTimeInterval timeInterval, AnyObject target, Selector selector, AnyObject userInfo, bool repeats) { } /// <summary> /// Initializes a new NSTimer object using the specified object and selector. /// </summary> /// <param name="fireDate">The time at which the timer should first fire.</param> /// <param name="interval">For a repeating timer, this parameter contains the number of seconds between firings of the timer. If seconds is less than or equal to 0.0, this method chooses the nonnegative value of 0.1 milliseconds instead.</param> /// <param name="target">The object to which to send the message specified by aSelector when the timer fires. The timer maintains a strong reference to this object until it (the timer) is invalidated.</param> /// <param name="selector">The message to send to target when the timer fires. /// The selector should have the following signature: timerFireMethod: (including a colon to indicate that the method takes an argument). The timer passes itself as the argument, thus the method would adopt the following pattern: /// - (void)timerFireMethod:(NSTimer *)timer</param> /// <param name="userInfo">Custom user info for the timer. The timer maintains a strong reference to this object until it (the timer) is invalidated. This parameter may be nil.</param> /// <param name="repeats">If true, the timer will repeatedly reschedule itself until invalidated. If false, the timer will be invalidated after it fires.</param> [iOSVersion(2)] public NSTimer(NSDate fireDate, NSTimeInterval interval, AnyObject target, Selector selector, AnyObject userInfo, bool repeats) { } /// <summary> /// Causes the receiver’s message to be sent to its target. /// </summary> [iOSVersion(2)] [Export("fire")] public void Fire() { } /// <summary> /// Stops the receiver from ever firing again and requests its removal from its run loop. /// </summary> [iOSVersion(2)] [Export("invalidate")] public void Invalidate() { } /// <summary> /// A Boolean value that indicates whether the receiver is currently valid. (read-only) /// </summary> [iOSVersion(8)] [Export("valid")] public bool Valid { get; private set; } /// <summary> /// The date at which the timer will fire. /// </summary> [iOSVersion(2)] [Export("fireDate")] public NSDate FireDate { get; set; } /// <summary> /// The timer’s time interval. (read-only) /// </summary> [iOSVersion(2)] [Export("timeInterval")] public NSTimeInterval TimeInterval { get; private set; } /// <summary> /// The receiver's userInfo object. (read-only) /// </summary> [iOSVersion(2)] [Export("userInfo")] public AnyObject UserInfo { get; private set; } /// <summary> /// The amount of time after the scheduled fire date that the timer may fire. /// </summary> [iOSVersion(7)] [Export("tolerance")] public NSTimeInterval Tolerance { get; set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// You use the NSTimer class to create timer objects or, more simply, timers. A timer waits until a certain time interval has elapsed and then fires, sending a specified message to a target object. For example, you could create an NSTimer object that sends a message to a window, telling it to update itself after a certain time interval. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSTimer_Class/index.html#//apple_ref/occ/cl/NSTimer"/> [iOSVersion(2)] [Export("")] public class NSTimer : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSObjectProtocol, Printable { public NSTimer() { } /// <summary> /// Creates and returns a new NSTimer object and schedules it on the current run loop in the default mode. /// </summary> /// <param name="seconds">The number of seconds between firings of the timer. If seconds is less than or equal to 0.0, this method chooses the nonnegative value of 0.1 milliseconds instead.</param> /// <param name="invocation">The invocation to use when the timer fires. The invocation object maintains a strong reference to its arguments until the timer is invalidated.</param> /// <param name="repeats">If true, the timer will repeatedly reschedule itself until invalidated. If false, the timer will be invalidated after it fires.</param> [iOSVersion(2)] [Export("scheduledTimerWithTimeInterval")] public static NSTimer ScheduledTimerWithTimeInterval(NSTimeInterval seconds, NSInvocation invocation, bool repeats) { return default(NSTimer); } /// <summary> /// Creates and returns a new NSTimer object and schedules it on the current run loop in the default mode. /// </summary> /// <param name="seconds">The number of seconds between firings of the timer. If seconds is less than or equal to 0.0, this method chooses the nonnegative value of 0.1 milliseconds instead.</param> /// <param name="target">The object to which to send the message specified by aSelector when the timer fires. The timer maintains a strong reference to target until it (the timer) is invalidated.</param> /// <param name="selector">The message to send to target when the timer fires. /// The selector should have the following signature: timerFireMethod: (including a colon to indicate that the method takes an argument). The timer passes itself as the argument, thus the method would adopt the following pattern: /// - (void)timerFireMethod:(NSTimer *)timer</param> /// <param name="userInfo">The user info for the timer. The timer maintains a strong reference to this object until it (the timer) is invalidated. This parameter may be nil.</param> /// <param name="repeats">If true, the timer will repeatedly reschedule itself until invalidated. If false, the timer will be invalidated after it fires.</param> [iOSVersion(2)] [Export("scheduledTimerWithTimeInterval")] public static NSTimer ScheduledTimerWithTimeInterval(NSTimeInterval seconds, AnyObject target, Selector selector, [Optional] AnyObject userInfo, bool repeats) { return default(NSTimer); } /// <summary> /// Creates and returns a new NSTimer object initialized with the specified invocation object. /// </summary> /// <param name="timeInterval">The number of seconds between firings of the timer. If seconds is less than or equal to 0.0, this method chooses the nonnegative value of 0.1 milliseconds instead</param> /// <param name="invocation">The invocation to use when the timer fires. The timer instructs the invocation object to maintain a strong reference to its arguments.</param> /// <param name="repeats">If true, the timer will repeatedly reschedule itself until invalidated. If false, the timer will be invalidated after it fires.</param> [iOSVersion(2)] public NSTimer(NSTimeInterval timeInterval, NSInvocation invocation, bool repeats) { } /// <summary> /// Creates and returns a new NSTimer object initialized with the specified object and selector. /// </summary> /// <param name="timeInterval">The number of seconds between firings of the timer. If seconds is less than or equal to 0.0, this method chooses the nonnegative value of 0.1 milliseconds instead.</param> /// <param name="target">The object to which to send the message specified by aSelector when the timer fires. The timer maintains a strong reference to this object until it (the timer) is invalidated.</param> /// <param name="selector">The message to send to target when the timer fires. /// The selector should have the following signature: timerFireMethod: (including a colon to indicate that the method takes an argument). The timer passes itself as the argument, thus the method would adopt the following pattern: /// - (void)timerFireMethod:(NSTimer *)timer</param> /// <param name="userInfo">Custom user info for the timer. /// The timer maintains a strong reference to this object until it (the timer) is invalidated. This parameter may be nil.</param> /// <param name="repeats">If true, the timer will repeatedly reschedule itself until invalidated. If false, the timer will be invalidated after it fires.</param> [iOSVersion(2)] public NSTimer(NSTimeInterval timeInterval, AnyObject target, Selector selector, [Optional] AnyObject userInfo, bool repeats) { } /// <summary> /// Initializes a new NSTimer object using the specified object and selector. /// </summary> /// <param name="fireDate">The time at which the timer should first fire.</param> /// <param name="interval">For a repeating timer, this parameter contains the number of seconds between firings of the timer. If seconds is less than or equal to 0.0, this method chooses the nonnegative value of 0.1 milliseconds instead.</param> /// <param name="target">The object to which to send the message specified by aSelector when the timer fires. The timer maintains a strong reference to this object until it (the timer) is invalidated.</param> /// <param name="selector">The message to send to target when the timer fires. /// The selector should have the following signature: timerFireMethod: (including a colon to indicate that the method takes an argument). The timer passes itself as the argument, thus the method would adopt the following pattern: /// - (void)timerFireMethod:(NSTimer *)timer</param> /// <param name="userInfo">Custom user info for the timer. The timer maintains a strong reference to this object until it (the timer) is invalidated. This parameter may be nil.</param> /// <param name="repeats">If true, the timer will repeatedly reschedule itself until invalidated. If false, the timer will be invalidated after it fires.</param> [iOSVersion(2)] public NSTimer(NSDate fireDate, NSTimeInterval interval, AnyObject target, Selector selector, [Optional] AnyObject userInfo, bool repeats) { } /// <summary> /// Causes the receiver’s message to be sent to its target. /// </summary> [iOSVersion(2)] [Export("fire")] public virtual void Fire() { } /// <summary> /// Stops the receiver from ever firing again and requests its removal from its run loop. /// </summary> [iOSVersion(2)] [Export("invalidate")] public virtual void Invalidate() { } /// <summary> /// A Boolean value that indicates whether the receiver is currently valid. (read-only) /// </summary> [iOSVersion(8)] [Export("valid")] public bool Valid { get; private set; } /// <summary> /// The date at which the timer will fire. /// </summary> [iOSVersion(2)] [Export("fireDate")] public NSDate FireDate { get; set; } /// <summary> /// The timer’s time interval. (read-only) /// </summary> [iOSVersion(2)] [Export("timeInterval")] public NSTimeInterval TimeInterval { get; private set; } /// <summary> /// The receiver&#39;s userInfo object. (read-only) /// </summary> [iOSVersion(2)] [Export("userInfo")] [Optional] public AnyObject UserInfo { get; private set; } /// <summary> /// The amount of time after the scheduled fire date that the timer may fire. /// </summary> [iOSVersion(7)] [Export("tolerance")] public NSTimeInterval Tolerance { get; set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSURL.cs b/CocoaSharp/Foundation/NSURL.cs
index 9d7fcee4..556b9033 100644
--- a/CocoaSharp/Foundation/NSURL.cs
+++ b/CocoaSharp/Foundation/NSURL.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// An NSURL object represents a URL that can potentially contain the location of a resource on a remote server, the path of a local file on disk, or even an arbitrary piece of encoded data. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSURL_Class/index.html#//apple_ref/occ/cl/NSURL"/> [iOSVersion(2)] public class NSURL : NSObject//, AnyObject, NSCoding, NSCopying, NSObjectProtocol, NSSecureCoding, Reflectable { /// <summary> /// Initializes a newly created NSURL with a specified scheme, host, and path. /// </summary> /// <param name="scheme">The scheme for the NSURL object. For example, in the URL http://www.example.com/index.html, the scheme is http.</param> /// <param name="host">The host for the NSURL object (for example, www.example.com). May be the empty string.</param> /// <param name="path">The path for the NSURL object (for example, /index.html). If the path begins with a tilde, you must first expand it by calling stringByExpandingTildeInPath.</param> [iOSVersion(2)] [Export("convenience init")] public NSURL(string scheme, string host, string path) { } /// <summary> /// Creates and returns an NSURL object initialized with a provided URL string. /// </summary> /// <param name="URLString">The URL string with which to initialize the NSURL object. Must be a URL that conforms to RFC 2396. This method parses URLString according to RFCs 1738 and 1808.</param> [iOSVersion(2)] public static NSURL URLWithString(string URLString) { return default(NSURL); } /// <summary> /// Initializes an NSURL object with a provided URL string. /// </summary> /// <param name="@string">The URL string with which to initialize the NSURL object. This URL string must conform to URL format as described in RFC 2396, and must not be nil. This method parses URLString according to RFCs 1738 and 1808.</param> [iOSVersion(2)] [Export("convenience init")] public NSURL(string @string) { } /// <summary> /// Creates and returns an NSURL object initialized with a base URL and a relative string. /// </summary> /// <param name="URLString">The URL string with which to initialize the NSURL object. May not be nil. Must conform to RFC 2396. URLString is interpreted relative to baseURL.</param> /// <param name="relativeToURL">The base URL for the NSURL object.</param> [iOSVersion(2)] public static NSURL URLWithString(string URLString, NSURL relativeToURL) { return default(NSURL); } /// <summary> /// Initializes an NSURL object with a base URL and a relative string. /// </summary> /// <param name="@string">The URL string with which to initialize the NSURL object. Must conform to RFC 2396. URLString is interpreted relative to baseURL.</param> /// <param name="relativeToURL">The base URL for the NSURL object.</param> [iOSVersion(2)] public NSURL(string @string, NSURL relativeToURL) { } /// <summary> /// Initializes and returns a newly created NSURL object as a file URL with a specified path. /// </summary> /// <param name="path">The path that the NSURL object will represent. path should be a valid system path. If path begins with a tilde, it must first be expanded with stringByExpandingTildeInPath. If path is a relative path, it is treated as being relative to the current working directory. /// Passing nil for this parameter produces an exception.</param> /// <param name="isDirectory">A Boolean value that specifies whether path is treated as a directory path when resolving against relative path components. Pass true if the path indicates a directory, false otherwise.</param> [iOSVersion(2)] [Export("fileURLWithPath")] public static NSURL FileURLWithPath(string path, bool isDirectory) { return default(NSURL); } /// <summary> /// Initializes a newly created NSURL referencing the local file or directory at path. /// </summary> /// <param name="fileURLWithPath">The path that the NSURL object will represent. path should be a valid system path. If path begins with a tilde, it must first be expanded with stringByExpandingTildeInPath. If path is a relative path, it is treated as being relative to the current working directory. /// Passing nil for this parameter produces an exception.</param> /// <param name="isDirectory">A Boolean value that specifies whether path is treated as a directory path when resolving against relative path components. Pass true if the path indicates a directory, false otherwise</param> [iOSVersion(2)] public NSURL(string fileURLWithPath, bool isDirectory) { } /// <summary> /// Initializes and returns a newly created NSURL object as a file URL with a specified path. /// </summary> /// <param name="path">The path that the NSURL object will represent. path should be a valid system path. If path begins with a tilde, it must first be expanded with stringByExpandingTildeInPath. If path is a relative path, it is treated as being relative to the current working directory. /// Passing nil for this parameter produces an exception.</param> [iOSVersion(2)] [Export("fileURLWithPath")] public static NSURL FileURLWithPath(string path) { return default(NSURL); } /// <summary> /// Initializes a newly created NSURL referencing the local file or directory at path. /// </summary> /// <param name="fileURLWithPath">The path that the NSURL object will represent. path should be a valid system path. If path begins with a tilde, it must first be expanded with stringByExpandingTildeInPath. If path is a relative path, it is treated as being relative to the current working directory. /// Passing nil for this parameter produces an exception.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [IgnoreParameter("NAME_YOUR_PARAMS")] public NSURL(string fileURLWithPath, int NAME_YOUR_PARAMS = 0) { } /// <summary> /// Initializes and returns a newly created NSURL object as a file URL with specified path components. /// </summary> /// <param name="components">An array of path components. /// Passing nil for this parameter produces an exception.</param> [iOSVersion(4)] [Export("fileURLWithPathComponents")] public static NSURL FileURLWithPathComponents(AnyObject[] components) { return default(NSURL); } /// <summary> /// Returns a new URL made by resolving the alias file at url. /// </summary> /// <param name="url">The URL pointing to the alias file.</param> /// <param name="options">Options taken into account when resolving the bookmark data. The NSURLBookmarkResolutionWithSecurityScope option is not supported by this method.</param> /// <param name="error">The error that occurred while trying to resolve the provided URL.</param> [iOSVersion(8)] public static NSURL URLByResolvingAliasFileAtURL(NSURL url, NSURLBookmarkResolutionOptions options, NSErrorPointer error) { return default(NSURL); } /// <summary> /// Returns a new URL made by resolving bookmark data. /// </summary> /// <param name="bookmarkData">The bookmark data the URL is derived from.</param> /// <param name="options">Options taken into account when resolving the bookmark data. /// To resolve a security-scoped bookmark to support App Sandbox, you must include (by way of bitwise OR operators with any other options in this parameter) the NSURLBookmarkResolutionWithSecurityScope option.</param> /// <param name="relativeToURL">The base URL that the bookmark data is relative to. /// If you are resolving a security-scoped bookmark to obtain a security-scoped URL, use this parameter as follows: /// To resolve an app-scoped bookmark, use a value of nil. /// To resolve a document-scoped bookmark, use the absolute path (despite this parameter’s name) to the document from which you retrieved the bookmark.</param> /// <param name="bookmarkDataIsStale">On return, if true, the bookmark data is stale. Your app should create a new bookmark using the returned URL and use it in place of any stored copies of the existing bookmark.</param> /// <param name="error">The error that occurred in the case that the URL cannot be created.</param> [iOSVersion(5)] public static NSURL URLByResolvingBookmarkData(NSData bookmarkData, NSURLBookmarkResolutionOptions options, NSURL relativeToURL, UnsafePointer<ObjCBool> bookmarkDataIsStale, NSErrorPointer error) { return default(NSURL); } /// <summary> /// Initializes a newly created NSURL that points to a location specified by resolving bookmark data. /// </summary> /// <param name="byResolvingBookmarkData">The bookmark data the URL is derived from.</param> /// <param name="options">Options taken into account when resolving the bookmark data.</param> /// <param name="relativeToURL">The base URL that the bookmark data is relative to.</param> /// <param name="bookmarkDataIsStale">If true, the bookmark data is stale.</param> /// <param name="error">The error that occurred in the case that the URL cannot be created.</param> [iOSVersion(5)] [Export("convenience init")] public NSURL(NSData byResolvingBookmarkData, NSURLBookmarkResolutionOptions options, NSURL relativeToURL, UnsafePointer<ObjCBool> bookmarkDataIsStale, NSErrorPointer error) { } /// <summary> /// Returns a new URL object initialized with a C string representing a local file system path. /// </summary> /// <param name="path">A null-terminated C string in file system representation containing the path to represent as a URL. If this path is a relative path, it is treated as being relative to the current working directory.</param> /// <param name="isDirectory">true if the last path part is a directory, otherwise false.</param> /// <param name="relativeToURL">The base URL for the new URL object. This must be a file URL. If path is absolute, this URL is ignored.</param> [iOSVersion(7)] [Export("fileURLWithFileSystemRepresentation")] public static NSURL FileURLWithFileSystemRepresentation(ConstUnsafePointer<Int8> path, bool isDirectory, NSURL relativeToURL) { return default(NSURL); } /// <summary> /// Fills the provided buffer with a C string representing a local file system path. /// </summary> /// <param name="buffer">A buffer large enough to hold the path. On return, contains a null-terminated C string in file system representation.</param> /// <param name="maxLength">The size of buffer in bytes (typically MAXPATHLEN or PATH_MAX).</param> [iOSVersion(7)] [Export("getFileSystemRepresentation")] public bool GetFileSystemRepresentation(UnsafePointer<Int8> buffer, int maxLength) { return default(bool); } /// <summary> /// Initializes a URL object with a C string representing a local file system path. /// </summary> /// <param name="fileURLWithFileSystemRepresentation">A null-terminated C string in file system representation containing the path to represent as a URL. If this path is a relative path, it is treated as being relative to the current working directory.</param> /// <param name="isDirectory">true if the last path part is a directory, otherwise false.</param> /// <param name="relativeToURL">The base URL for the new URL object. This must be a file URL. If path is absolute, this URL is ignored.</param> [iOSVersion(7)] public NSURL(ConstUnsafePointer<Int8> fileURLWithFileSystemRepresentation, bool isDirectory, NSURL relativeToURL) { } /// <summary> /// Returns whether the resource pointed to by a file URL can be reached. /// </summary> /// <param name="error">The error that occurred when the resource could not be reached.</param> [iOSVersion(5)] [Export("checkResourceIsReachableAndReturnError")] public bool CheckResourceIsReachableAndReturnError(NSErrorPointer error) { return default(bool); } /// <summary> /// Returns whether the URL is a file reference URL. /// </summary> [iOSVersion(5)] [Export("isFileReferenceURL")] public bool IsFileReferenceURL() { return default(bool); } /// <summary> /// Returns a new file reference URL that points to the same resource as the receiver. /// </summary> [iOSVersion(5)] [Export("fileReferenceURL")] public NSURL FileReferenceURL() { return default(NSURL); } /// <summary> /// Returns a new URL made by appending a path component to the original URL. /// </summary> /// <param name="pathComponent">The path component to add to the URL, in its original form (not URL encoded).</param> [iOSVersion(4)] public NSURL URLByAppendingPathComponent(string pathComponent) { return default(NSURL); } /// <summary> /// Returns a new URL made by appending a path component to the original URL, along with a trailing slash if the component is designated a directory. /// </summary> /// <param name="pathComponent">The path component to add to the URL.</param> /// <param name="isDirectory">If true, a trailing slash is appended after pathComponent.</param> [iOSVersion(5)] public NSURL URLByAppendingPathComponent(string pathComponent, bool isDirectory) { return default(NSURL); } /// <summary> /// Returns a new URL made by appending a path extension to the original URL. /// </summary> /// <param name="pathExtension">The path extension to add to the URL.</param> [iOSVersion(4)] public NSURL URLByAppendingPathExtension(string pathExtension) { return default(NSURL); } /// <summary> /// Initializes and returns bookmark data derived from an alias file pointed to by a specified URL. /// </summary> /// <param name="bookmarkFileURL">The URL that points to the alias file.</param> /// <param name="error">The error that occurred in the case that the bookmark data cannot be derived.</param> [iOSVersion(5)] [Export("bookmarkDataWithContentsOfURL")] public static NSData BookmarkDataWithContentsOfURL(NSURL bookmarkFileURL, NSErrorPointer error) { return default(NSData); } /// <summary> /// Returns a bookmark for the URL, created with specified options and resource values. /// </summary> /// <param name="options">Options taken into account when creating the bookmark for the URL. The possible flags (which can be combined with bitwise OR operations) are described in Bookmark Data Creation Options. /// To create a security-scoped bookmark to support App Sandbox, include the NSURLBookmarkCreationWithSecurityScope flag. When you later resolve the bookmark, you can use the resulting security-scoped URL to obtain read/write access to the file-system resource pointed to by the URL. /// If you instead want to create a security-scoped bookmark that, when resolved, enables you to obtain read-only access to a file-system resource, bitwise OR this parameter’s value with both the NSURLBookmarkCreationWithSecurityScope option and the NSURLBookmarkCreationSecurityScopeAllowOnlyReadAccess option.</param> /// <param name="includingResourceValuesForKeys">An array of names of URL resource properties to store as part of the bookmark. You can later access these values (without resolving the bookmark) by calling the resourceValuesForKeys:fromBookmarkData: method. /// The values of these properties must be of a type that the bookmark generation code can serialize. Specifically, the values can contain any of the following primitive types: /// NSString or CFString /// NSData or CFData /// NSDate or CFDate /// NSNumber or CFNumber /// CFBoolean /// NSURL or CFURL /// kCFNull or NSNull /// CFUUID /// In addition, the properties can contain the following collection classes: /// NSArray or CFArray containing only the above primitive types /// NSDictionary or CFDictionary with NSString or CFString keys, in which all values contain only the above primitive types</param> /// <param name="relativeToURL">The URL that the bookmark data will be relative to. /// If you are creating a security-scoped bookmark to support App Sandbox, use this parameter as follows: /// To create an app-scoped bookmark, use a value of nil. /// To create a document-scoped bookmark, use the absolute path (despite this parameter’s name) to the document file that is to own the new security-scoped bookmark.</param> /// <param name="error">The error that occurred in the case that the bookmark data cannot be created.</param> [iOSVersion(5)] [Export("bookmarkDataWithOptions")] public NSData BookmarkDataWithOptions(NSURLBookmarkCreationOptions options, AnyObject[] includingResourceValuesForKeys, NSURL relativeToURL, NSErrorPointer error) { return default(NSData); } /// <summary> /// Returns the resource values for properties identified by a specified array of keys contained in specified bookmark data. /// </summary> /// <param name="keys">An array of names of URL resource properties. In addition to the standard, system-defined resource properties, you can also request any custom properties that you provided when you created the bookmark. See the bookmarkDataWithOptions:includingResourceValuesForKeys:relativeToURL:error: method for details.</param> /// <param name="fromBookmarkData">The bookmark data from which you want to retrieve resource values.</param> [iOSVersion(5)] [Export("resourceValuesForKeys")] public static Dictionary<NSObject, AnyObject> ResourceValuesForKeys(AnyObject[] keys, NSData fromBookmarkData) { return default(Dictionary<NSObject, AnyObject>); } /// <summary> /// Creates an alias file on disk at a specified location with specified bookmark data. /// </summary> /// <param name="bookmarkData">The bookmark data containing information for the alias file.</param> /// <param name="toURL">The desired location of the alias file.</param> /// <param name="options">Options taken into account when creating the alias file.</param> /// <param name="error">The error that occurred in the case that the alias file cannot be created.</param> [iOSVersion(5)] [Export("writeBookmarkData")] public static bool WriteBookmarkData(NSData bookmarkData, NSURL toURL, NSURLBookmarkFileCreationOptions options, NSErrorPointer error) { return default(bool); } /// <summary> /// In an app that has adopted App Sandbox, makes the resource pointed to by a security-scoped URL available to the app. /// </summary> [iOSVersion(8)] [Export("startAccessingSecurityScopedResource")] public bool StartAccessingSecurityScopedResource() { return default(bool); } /// <summary> /// In an app that adopts App Sandbox, revokes access to the resource pointed to by a security-scoped URL. /// </summary> [iOSVersion(8)] [Export("stopAccessingSecurityScopedResource")] public void StopAccessingSecurityScopedResource() { } /// <summary> /// Returns the value of the resource property for the specified key. /// </summary> /// <param name="value">The location where the value for the resource property identified by key should be stored.</param> /// <param name="forKey">The name of one of the URL’s resource properties.</param> /// <param name="error">The error that occurred if the resource value could not be retrieved. This parameter is optional. If you are not interested in receiving error information, you can pass nil.</param> [iOSVersion(5)] [Export("getResourceValue")] public bool GetResourceValue(AutoreleasingUnsafePointer<AnyObject> value, string forKey, NSErrorPointer error) { return default(bool); } /// <summary> /// Returns the resource values for the properties identified by specified array of keys. /// </summary> /// <param name="keys">An array of property keys for the desired resource properties.</param> /// <param name="error">The error that occurred if one or more resource values could not be retrieved. This parameter is optional. If you are not interested in receiving error information, you can pass nil.</param> [iOSVersion(5)] [Export("resourceValuesForKeys")] public Dictionary<NSObject, AnyObject> ResourceValuesForKeys(AnyObject[] keys, NSErrorPointer error) { return default(Dictionary<NSObject, AnyObject>); } /// <summary> /// Sets the URL’s resource property for a given key to a given value. /// </summary> /// <param name="value">The value for the resource property defined by key.</param> /// <param name="forKey">The name of one of the URL’s resource properties.</param> /// <param name="error">The error that occurred if the resource value could not be set.</param> [iOSVersion(5)] [Export("setResourceValue")] public bool SetResourceValue(AnyObject value, string forKey, NSErrorPointer error) { return default(bool); } /// <summary> /// Sets the URL’s resource properties for a given set of keys to a given set of values. /// </summary> /// <param name="keyedValues">A dictionary of resource values to be set.</param> /// <param name="error">The error that occurred if one or more resource values could not be set.</param> [iOSVersion(5)] [Export("setResourceValues")] public bool SetResourceValues(Dictionary<NSObject, AnyObject> keyedValues, NSErrorPointer error) { return default(bool); } /// <summary> /// Removes all cached resource values and temporary resource values from the URL object. /// </summary> [iOSVersion(7)] [Export("removeAllCachedResourceValues")] public void RemoveAllCachedResourceValues() { } /// <summary> /// Removes the cached resource value identified by a given key from the URL object. /// </summary> /// <param name="key">The resource value key whose cached values you want to remove.</param> [iOSVersion(7)] [Export("removeCachedResourceValueForKey")] public void RemoveCachedResourceValueForKey(string key) { } /// <summary> /// Sets a temporary resource value on the URL object. /// </summary> /// <param name="value">The value to store.</param> /// <param name="forKey">The key where the value should be stored. This key must be unique and must not conflict with any system-defined keys. Reverse-domain-name notation is recommended.</param> [iOSVersion(7)] [Export("setTemporaryResourceValue")] public void SetTemporaryResourceValue(AnyObject value, string forKey) { } /// <summary> /// Returns whether the promised item can be reached. /// </summary> /// <param name="error">The error that occurred when the promised item could not be reached.</param> [iOSVersion(8)] [Export("checkPromisedItemIsReachableAndReturnError")] public bool CheckPromisedItemIsReachableAndReturnError(NSErrorPointer error) { return default(bool); } /// <summary> /// Returns the value of the resource property for the specified key. /// </summary> /// <param name="value">The location where the value for the resource property identified by key should be stored.</param> /// <param name="forKey">The name of one of the URL’s resource properties.</param> /// <param name="error">The error that occurred in the case that the resource value cannot be retrieved.</param> [iOSVersion(8)] [Export("getPromisedItemResourceValue")] public bool GetPromisedItemResourceValue(AutoreleasingUnsafePointer<AnyObject> value, string forKey, NSErrorPointer error) { return default(bool); } /// <summary> /// Returns the resource values for the properties identified by specified array of keys. /// </summary> /// <param name="keys">An array of names of URL resource properties.</param> /// <param name="error">The error that occurred in the case that one or more resource values cannot be retrieved.</param> [iOSVersion(8)] [Export("promisedItemResourceValuesForKeys")] public Dictionary<NSObject, AnyObject> PromisedItemResourceValuesForKeys(AnyObject[] keys, NSErrorPointer error) { return default(Dictionary<NSObject, AnyObject>); } /// <summary> /// A boolean value that determines whether the receiver is a file URL. (read-only) /// </summary> [iOSVersion(8)] [Export("fileURL")] public bool FileURL { get; private set; } /// <summary> /// The URL string for the receiver as an absolute URL. (read-only) /// </summary> [iOSVersion(2)] [Export("absoluteString")] public string AbsoluteString { get; private set; } /// <summary> /// An absolute URL that refers to the same resource as the receiver. (read-only) /// </summary> [iOSVersion(2)] [Export("absoluteURL")] public NSURL AbsoluteURL { get; private set; } /// <summary> /// The base URL. (read-only) /// </summary> [iOSVersion(2)] [Export("baseURL")] public NSURL BaseURL { get; private set; } /// <summary> /// A C string containing the URL’s file system path. (read-only) /// </summary> [iOSVersion(7)] [Export("fileSystemRepresentation")] public ConstUnsafePointer<Int8> FileSystemRepresentation { get; private set; } /// <summary> /// The fragment identifier, conforming to RFC 1808. (read-only) /// </summary> [iOSVersion(2)] [Export("fragment")] public string Fragment { get; private set; } /// <summary> /// The host, conforming to RFC 1808. (read-only) /// </summary> [iOSVersion(2)] [Export("host")] public string Host { get; private set; } /// <summary> /// The last path component. (read-only) /// </summary> [iOSVersion(4)] [Export("lastPathComponent")] public string LastPathComponent { get; private set; } /// <summary> /// The parameter string conforming to RFC 1808. (read-only) /// </summary> [iOSVersion(2)] [Export("parameterString")] public string ParameterString { get; private set; } /// <summary> /// The password conforming to RFC 1808. (read-only) /// </summary> [iOSVersion(2)] [Export("password")] public string Password { get; private set; } /// <summary> /// The path, conforming to RFC 1808. (read-only) /// </summary> [iOSVersion(2)] [Export("path")] public string Path { get; private set; } /// <summary> /// An array containing the path components. (read-only) /// </summary> [iOSVersion(4)] [Export("pathComponents")] public AnyObject[] PathComponents { get; private set; } /// <summary> /// The path extension. (read-only) /// </summary> [iOSVersion(4)] [Export("pathExtension")] public string PathExtension { get; private set; } /// <summary> /// The port, conforming to RFC 1808. (read-only) /// </summary> [iOSVersion(2)] [Export("port")] public NSNumber Port { get; private set; } /// <summary> /// The query string, conforming to RFC 1808. (read-only) /// </summary> [iOSVersion(2)] [Export("query")] public string Query { get; private set; } /// <summary> /// The relative path, conforming to RFC 1808. (read-only) /// </summary> [iOSVersion(2)] [Export("relativePath")] public string RelativePath { get; private set; } /// <summary> /// A string representation of the relative portion of the URL. (read-only) /// </summary> [iOSVersion(2)] [Export("relativeString")] public string RelativeString { get; private set; } /// <summary> /// The resource specifier. (read-only) /// </summary> [iOSVersion(2)] [Export("resourceSpecifier")] public string ResourceSpecifier { get; private set; } /// <summary> /// The scheme. (read-only) /// </summary> [iOSVersion(2)] [Export("scheme")] public string Scheme { get; private set; } /// <summary> /// A copy of the URL with any instances of &quot;..&quot; or &quot;.&quot; removed from its path. (read-only) /// </summary> [iOSVersion(2)] [Export("standardizedURL")] public NSURL StandardizedURL { get; private set; } /// <summary> /// The user name, conforming to RFC 1808. (read-only) /// </summary> [iOSVersion(2)] [Export("user")] public string User { get; private set; } /// <summary> /// A file path URL that points to the same resource as the URL object. (read-only) /// </summary> [iOSVersion(5)] [Export("filePathURL")] public NSURL FilePathURL { get; private set; } /// <summary> /// A URL created by taking the receiver and removing the last path component. (read-only) /// </summary> [iOSVersion(4)] public NSURL URLByDeletingLastPathComponent { get; private set; } /// <summary> /// A URL created by taking the receiver and removing the path extension, if any. (read-only) /// </summary> [iOSVersion(4)] public NSURL URLByDeletingPathExtension { get; private set; } /// <summary> /// A URL that points to the same resource as the receiver and includes no symbolic links. (read-only) /// </summary> [iOSVersion(4)] public NSURL URLByResolvingSymlinksInPath { get; private set; } /// <summary> /// A URL that points to the same resource as the original URL using an absolute path. (read-only) /// </summary> [iOSVersion(4)] public NSURL URLByStandardizingPath { get; private set; } /// <summary> /// These schemes are the ones that NSURL can parse. /// </summary> public string NSURLFileScheme { get; set; } } /// <summary> /// Options used when creating bookmark data. /// </summary> [iOSVersion(4)] public enum NSURLBookmarkCreationOptions { /// <summary> /// Specifies that when a bookmark created with this option is resolved, its embedded file ID should take precedence over other sources of information (file system path, for example) in the event of a conflict. /// Available in iOS 4.0 and later. /// Deprecated in iOS 7.0. /// </summary> [Obsolete] PreferFileIDResolution, /// <summary> /// Specifies that a bookmark created with this option should be created with minimal information. This produces a smaller bookmark that can be resolved in fewer ways. /// </summary> [iOSVersion(4)] MinimalBookmark, /// <summary> /// Specifies that the bookmark data should include properties required to create Finder alias files. /// </summary> [iOSVersion(4)] SuitableForBookmarkFile, /// <summary> /// /// </summary> WithSecurityScope, /// <summary> /// /// </summary> SecurityScopeAllowOnlyReadAccess, } /// <summary> /// Options used when resolving bookmark data. /// </summary> [iOSVersion(4)] public enum NSURLBookmarkResolutionOptions { /// <summary> /// Specifies that no UI feedback should accompany resolution of the bookmark data. /// </summary> [iOSVersion(4)] WithoutUI, /// <summary> /// Specifies that no volume should be mounted during resolution of the bookmark data. /// </summary> [iOSVersion(4)] WithoutMounting, /// <summary> /// /// </summary> WithSecurityScope, } /// <summary> /// Options used when creating file bookmark data /// </summary> [iOSVersion(4)] public struct NSURLBookmarkFileCreationOptions { static public implicit operator NSURLBookmarkFileCreationOptions(int value) { return default(NSURLBookmarkFileCreationOptions); } static public implicit operator int(NSURLBookmarkFileCreationOptions value) { return default(int); } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// An NSURL object represents a URL that can potentially contain the location of a resource on a remote server, the path of a local file on disk, or even an arbitrary piece of encoded data. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSURL_Class/index.html#//apple_ref/occ/cl/NSURL"/> [iOSVersion(2)] [Export("")] public class NSURL : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSObjectProtocol, NSSecureCoding, Printable, QLPreviewItem, Reflectable { public NSURL() { } /// <summary> /// Initializes and returns a newly created NSURL object as a file URL with a specified path. /// </summary> /// <param name="path">The path that the NSURL object will represent. path should be a valid system path. If path begins with a tilde, it must first be expanded with stringByExpandingTildeInPath. If path is a relative path, it is treated as being relative to the current working directory. /// Passing nil for this parameter produces an exception.</param> /// <param name="isDirectory">A Boolean value that specifies whether path is treated as a directory path when resolving against relative path components. Pass true if the path indicates a directory, false otherwise.</param> [iOSVersion(2)] [Export("fileURLWithPath")] [return:Optional] public static NSURL FileURLWithPath(string path, bool isDirectory) { return default(NSURL); } /// <summary> /// Initializes and returns a newly created NSURL object as a file URL with a specified path. /// </summary> /// <param name="path">The path that the NSURL object will represent. path should be a valid system path. If path begins with a tilde, it must first be expanded with stringByExpandingTildeInPath. If path is a relative path, it is treated as being relative to the current working directory. /// Passing nil for this parameter produces an exception.</param> [iOSVersion(2)] [Export("fileURLWithPath")] [return:Optional] public static NSURL FileURLWithPath(string path) { return default(NSURL); } /// <summary> /// Initializes and returns a newly created NSURL object as a file URL with specified path components. /// </summary> /// <param name="components">An array of path components. /// Passing nil for this parameter produces an exception.</param> [iOSVersion(4)] [Export("fileURLWithPathComponents")] [return:Optional] public static NSURL FileURLWithPathComponents(AnyObject[] components) { return default(NSURL); } /// <summary> /// Returns a new URL object initialized with a C string representing a local file system path. /// </summary> /// <param name="path">A null-terminated C string in file system representation containing the path to represent as a URL. If this path is a relative path, it is treated as being relative to the current working directory.</param> /// <param name="isDirectory">true if the last path part is a directory, otherwise false.</param> /// <param name="relativeToURL">The base URL for the new URL object. This must be a file URL. If path is absolute, this URL is ignored.</param> [iOSVersion(7)] [Export("fileURLWithFileSystemRepresentation")] [return:Optional] public static NSURL FileURLWithFileSystemRepresentation(UnsafePointer<Int8> path, bool isDirectory, [Optional] NSURL relativeToURL) { return default(NSURL); } /// <summary> /// Fills the provided buffer with a C string representing a local file system path. /// </summary> /// <param name="buffer">A buffer large enough to hold the path. On return, contains a null-terminated C string in file system representation.</param> /// <param name="maxLength">The size of buffer in bytes (typically MAXPATHLEN or PATH_MAX).</param> [iOSVersion(7)] [Export("getFileSystemRepresentation")] public virtual bool GetFileSystemRepresentation(UnsafeMutablePointer<Int8> buffer, int maxLength) { return default(bool); } /// <summary> /// Returns whether the resource pointed to by a file URL can be reached. /// </summary> /// <param name="error">The error that occurred when the resource could not be reached.</param> [iOSVersion(5)] [Export("checkResourceIsReachableAndReturnError")] public virtual bool CheckResourceIsReachableAndReturnError(NSErrorPointer error) { return default(bool); } /// <summary> /// Returns whether the URL is a file reference URL. /// </summary> [iOSVersion(5)] [Export("isFileReferenceURL")] public virtual bool IsFileReferenceURL() { return default(bool); } /// <summary> /// Returns a new file reference URL that points to the same resource as the receiver. /// </summary> [iOSVersion(5)] [Export("fileReferenceURL")] [return:Optional] public virtual NSURL FileReferenceURL() { return default(NSURL); } /// <summary> /// Returns a new URL made by appending a path component to the original URL. /// </summary> /// <param name="pathComponent">The path component to add to the URL, in its original form (not URL encoded).</param> [iOSVersion(4)] public virtual NSURL URLByAppendingPathComponent(string pathComponent) { return default(NSURL); } /// <summary> /// Returns a new URL made by appending a path component to the original URL, along with a trailing slash if the component is designated a directory. /// </summary> /// <param name="pathComponent">The path component to add to the URL.</param> /// <param name="isDirectory">If true, a trailing slash is appended after pathComponent.</param> [iOSVersion(5)] public virtual NSURL URLByAppendingPathComponent(string pathComponent, bool isDirectory) { return default(NSURL); } /// <summary> /// Returns a new URL made by appending a path extension to the original URL. /// </summary> /// <param name="pathExtension">The path extension to add to the URL.</param> [iOSVersion(4)] public virtual NSURL URLByAppendingPathExtension(string pathExtension) { return default(NSURL); } /// <summary> /// Initializes and returns bookmark data derived from an alias file pointed to by a specified URL. /// </summary> /// <param name="bookmarkFileURL">The URL that points to the alias file.</param> /// <param name="error">The error that occurred in the case that the bookmark data cannot be derived.</param> [iOSVersion(5)] [Export("bookmarkDataWithContentsOfURL")] [return:Optional] public static NSData BookmarkDataWithContentsOfURL(NSURL bookmarkFileURL, NSErrorPointer error) { return default(NSData); } /// <summary> /// Returns a bookmark for the URL, created with specified options and resource values. /// </summary> /// <param name="options">Options taken into account when creating the bookmark for the URL. The possible flags (which can be combined with bitwise OR operations) are described in Bookmark Data Creation Options. /// To create a security-scoped bookmark to support App Sandbox, include the NSURLBookmarkCreationWithSecurityScope flag. When you later resolve the bookmark, you can use the resulting security-scoped URL to obtain read/write access to the file-system resource pointed to by the URL. /// If you instead want to create a security-scoped bookmark that, when resolved, enables you to obtain read-only access to a file-system resource, bitwise OR this parameter’s value with both the NSURLBookmarkCreationWithSecurityScope option and the NSURLBookmarkCreationSecurityScopeAllowOnlyReadAccess option.</param> /// <param name="includingResourceValuesForKeys">An array of names of URL resource properties to store as part of the bookmark. You can later access these values (without resolving the bookmark) by calling the resourceValuesForKeys:fromBookmarkData: method. /// The values of these properties must be of a type that the bookmark generation code can serialize. Specifically, the values can contain any of the following primitive types: /// NSString or CFString /// NSData or CFData /// NSDate or CFDate /// NSNumber or CFNumber /// CFBoolean /// NSURL or CFURL /// kCFNull or NSNull /// CFUUID /// In addition, the properties can contain the following collection classes: /// NSArray or CFArray containing only the above primitive types /// NSDictionary or CFDictionary with NSString or CFString keys, in which all values contain only the above primitive types</param> /// <param name="relativeToURL">The URL that the bookmark data will be relative to. /// If you are creating a security-scoped bookmark to support App Sandbox, use this parameter as follows: /// To create an app-scoped bookmark, use a value of nil. /// To create a document-scoped bookmark, use the absolute path (despite this parameter’s name) to the document file that is to own the new security-scoped bookmark.</param> /// <param name="error">The error that occurred in the case that the bookmark data cannot be created.</param> [iOSVersion(5)] [Export("bookmarkDataWithOptions")] [return:Optional] public virtual NSData BookmarkDataWithOptions(NSURLBookmarkCreationOptions options, AnyObject[] includingResourceValuesForKeys, [Optional] NSURL relativeToURL, NSErrorPointer error) { return default(NSData); } /// <summary> /// Returns the resource values for properties identified by a specified array of keys contained in specified bookmark data. /// </summary> /// <param name="keys">An array of names of URL resource properties. In addition to the standard, system-defined resource properties, you can also request any custom properties that you provided when you created the bookmark. See the bookmarkDataWithOptions:includingResourceValuesForKeys:relativeToURL:error: method for details.</param> /// <param name="fromBookmarkData">The bookmark data from which you want to retrieve resource values.</param> [iOSVersion(5)] [Export("resourceValuesForKeys")] public static Dictionary<NSObject, AnyObject> ResourceValuesForKeys(AnyObject[] keys, NSData fromBookmarkData) { return default(Dictionary<NSObject, AnyObject>); } /// <summary> /// Creates an alias file on disk at a specified location with specified bookmark data. /// </summary> /// <param name="bookmarkData">The bookmark data containing information for the alias file.</param> /// <param name="toURL">The desired location of the alias file.</param> /// <param name="options">Options taken into account when creating the alias file.</param> /// <param name="error">The error that occurred in the case that the alias file cannot be created.</param> [iOSVersion(5)] [Export("writeBookmarkData")] public static bool WriteBookmarkData(NSData bookmarkData, NSURL toURL, NSURLBookmarkFileCreationOptions options, NSErrorPointer error) { return default(bool); } /// <summary> /// In an app that has adopted App Sandbox, makes the resource pointed to by a security-scoped URL available to the app. /// </summary> [iOSVersion(8)] [Export("startAccessingSecurityScopedResource")] public virtual bool StartAccessingSecurityScopedResource() { return default(bool); } /// <summary> /// In an app that adopts App Sandbox, revokes access to the resource pointed to by a security-scoped URL. /// </summary> [iOSVersion(8)] [Export("stopAccessingSecurityScopedResource")] public virtual void StopAccessingSecurityScopedResource() { } /// <summary> /// Returns the value of the resource property for the specified key. /// </summary> /// <param name="value">The location where the value for the resource property identified by key should be stored.</param> /// <param name="forKey">The name of one of the URL’s resource properties.</param> /// <param name="error">The error that occurred if the resource value could not be retrieved. This parameter is optional. If you are not interested in receiving error information, you can pass nil.</param> [iOSVersion(5)] [Export("getResourceValue")] public virtual bool GetResourceValue(AutoreleasingUnsafeMutablePointer<AnyObject> value, string forKey, NSErrorPointer error) { return default(bool); } /// <summary> /// Returns the resource values for the properties identified by specified array of keys. /// </summary> /// <param name="keys">An array of property keys for the desired resource properties.</param> /// <param name="error">The error that occurred if one or more resource values could not be retrieved. This parameter is optional. If you are not interested in receiving error information, you can pass nil.</param> [iOSVersion(5)] [Export("resourceValuesForKeys")] public virtual Dictionary<NSObject, AnyObject> ResourceValuesForKeys(AnyObject[] keys, NSErrorPointer error) { return default(Dictionary<NSObject, AnyObject>); } /// <summary> /// Sets the URL’s resource property for a given key to a given value. /// </summary> /// <param name="value">The value for the resource property defined by key.</param> /// <param name="forKey">The name of one of the URL’s resource properties.</param> /// <param name="error">The error that occurred if the resource value could not be set.</param> [iOSVersion(5)] [Export("setResourceValue")] public virtual bool SetResourceValue([Optional] AnyObject value, string forKey, NSErrorPointer error) { return default(bool); } /// <summary> /// Sets the URL’s resource properties for a given set of keys to a given set of values. /// </summary> /// <param name="keyedValues">A dictionary of resource values to be set.</param> /// <param name="error">The error that occurred if one or more resource values could not be set.</param> [iOSVersion(5)] [Export("setResourceValues")] public virtual bool SetResourceValues(Dictionary<NSObject, AnyObject> keyedValues, NSErrorPointer error) { return default(bool); } /// <summary> /// Removes all cached resource values and temporary resource values from the URL object. /// </summary> [iOSVersion(7)] [Export("removeAllCachedResourceValues")] public virtual void RemoveAllCachedResourceValues() { } /// <summary> /// Removes the cached resource value identified by a given key from the URL object. /// </summary> /// <param name="key">The resource value key whose cached values you want to remove.</param> [iOSVersion(7)] [Export("removeCachedResourceValueForKey")] public virtual void RemoveCachedResourceValueForKey(string key) { } /// <summary> /// Sets a temporary resource value on the URL object. /// </summary> /// <param name="value">The value to store.</param> /// <param name="forKey">The key where the value should be stored. This key must be unique and must not conflict with any system-defined keys. Reverse-domain-name notation is recommended.</param> [iOSVersion(7)] [Export("setTemporaryResourceValue")] public virtual void SetTemporaryResourceValue([Optional] AnyObject value, string forKey) { } /// <summary> /// Returns whether the promised item can be reached. /// </summary> /// <param name="error">The error that occurred when the promised item could not be reached.</param> [iOSVersion(8)] [Export("checkPromisedItemIsReachableAndReturnError")] public virtual bool CheckPromisedItemIsReachableAndReturnError(NSErrorPointer error) { return default(bool); } /// <summary> /// Returns the value of the resource property for the specified key. /// </summary> /// <param name="value">The location where the value for the resource property identified by key should be stored.</param> /// <param name="forKey">The name of one of the URL’s resource properties.</param> /// <param name="error">The error that occurred in the case that the resource value cannot be retrieved.</param> [iOSVersion(8)] [Export("getPromisedItemResourceValue")] public virtual bool GetPromisedItemResourceValue(AutoreleasingUnsafeMutablePointer<AnyObject> value, string forKey, NSErrorPointer error) { return default(bool); } /// <summary> /// Returns the resource values for the properties identified by specified array of keys. /// </summary> /// <param name="keys">An array of names of URL resource properties.</param> /// <param name="error">The error that occurred in the case that one or more resource values cannot be retrieved.</param> [iOSVersion(8)] [Export("promisedItemResourceValuesForKeys")] public virtual Dictionary<NSObject, AnyObject> PromisedItemResourceValuesForKeys(AnyObject[] keys, NSErrorPointer error) { return default(Dictionary<NSObject, AnyObject>); } /// <summary> /// A boolean value that determines whether the receiver is a file URL. (read-only) /// </summary> [iOSVersion(8)] [Export("fileURL")] public bool FileURL { get; private set; } /// <summary> /// The URL string for the receiver as an absolute URL. (read-only) /// </summary> [iOSVersion(2)] [Export("absoluteString")] [Optional] public string AbsoluteString { get; private set; } /// <summary> /// An absolute URL that refers to the same resource as the receiver. (read-only) /// </summary> [iOSVersion(2)] [Export("absoluteURL")] [Optional] public NSURL AbsoluteURL { get; private set; } /// <summary> /// The base URL. (read-only) /// </summary> [iOSVersion(2)] [Export("baseURL")] [Optional] public NSURL BaseURL { get; private set; } /// <summary> /// A C string containing the URL’s file system path. (read-only) /// </summary> [iOSVersion(7)] [Export("fileSystemRepresentation")] public UnsafePointer<Int8> FileSystemRepresentation { get; private set; } /// <summary> /// The fragment identifier, conforming to RFC 1808. (read-only) /// </summary> [iOSVersion(2)] [Export("fragment")] [Optional] public string Fragment { get; private set; } /// <summary> /// The host, conforming to RFC 1808. (read-only) /// </summary> [iOSVersion(2)] [Export("host")] [Optional] public string Host { get; private set; } /// <summary> /// The last path component. (read-only) /// </summary> [iOSVersion(4)] [Export("lastPathComponent")] [Optional] public string LastPathComponent { get; private set; } /// <summary> /// The parameter string conforming to RFC 1808. (read-only) /// </summary> [iOSVersion(2)] [Export("parameterString")] [Optional] public string ParameterString { get; private set; } /// <summary> /// The password conforming to RFC 1808. (read-only) /// </summary> [iOSVersion(2)] [Export("password")] [Optional] public string Password { get; private set; } /// <summary> /// The path, conforming to RFC 1808. (read-only) /// </summary> [iOSVersion(2)] [Export("path")] [Optional] public string Path { get; private set; } /// <summary> /// An array containing the path components. (read-only) /// </summary> [iOSVersion(4)] [Export("pathComponents")] public AnyObject[] PathComponents { get; private set; } /// <summary> /// The path extension. (read-only) /// </summary> [iOSVersion(4)] [Export("pathExtension")] [Optional] public string PathExtension { get; private set; } /// <summary> /// The port, conforming to RFC 1808. (read-only) /// </summary> [iOSVersion(2)] [Export("port")] [Optional] public NSNumber Port { get; private set; } /// <summary> /// The query string, conforming to RFC 1808. (read-only) /// </summary> [iOSVersion(2)] [Export("query")] [Optional] public string Query { get; private set; } /// <summary> /// The relative path, conforming to RFC 1808. (read-only) /// </summary> [iOSVersion(2)] [Export("relativePath")] [Optional] public string RelativePath { get; private set; } /// <summary> /// A string representation of the relative portion of the URL. (read-only) /// </summary> [iOSVersion(2)] [Export("relativeString")] [Optional] public string RelativeString { get; private set; } /// <summary> /// The resource specifier. (read-only) /// </summary> [iOSVersion(2)] [Export("resourceSpecifier")] [Optional] public string ResourceSpecifier { get; private set; } /// <summary> /// The scheme. (read-only) /// </summary> [iOSVersion(2)] [Export("scheme")] [Optional] public string Scheme { get; private set; } /// <summary> /// A copy of the URL with any instances of &quot;..&quot; or &quot;.&quot; removed from its path. (read-only) /// </summary> [iOSVersion(2)] [Export("standardizedURL")] [Optional] public NSURL StandardizedURL { get; private set; } /// <summary> /// The user name, conforming to RFC 1808. (read-only) /// </summary> [iOSVersion(2)] [Export("user")] [Optional] public string User { get; private set; } /// <summary> /// A file path URL that points to the same resource as the URL object. (read-only) /// </summary> [iOSVersion(5)] [Export("filePathURL")] [Optional] public NSURL FilePathURL { get; private set; } /// <summary> /// A URL created by taking the receiver and removing the last path component. (read-only) /// </summary> [iOSVersion(4)] [Optional] public NSURL URLByDeletingLastPathComponent { get; private set; } /// <summary> /// A URL created by taking the receiver and removing the path extension, if any. (read-only) /// </summary> [iOSVersion(4)] [Optional] public NSURL URLByDeletingPathExtension { get; private set; } /// <summary> /// A URL that points to the same resource as the receiver and includes no symbolic links. (read-only) /// </summary> [iOSVersion(4)] [Optional] public NSURL URLByResolvingSymlinksInPath { get; private set; } /// <summary> /// A URL that points to the same resource as the original URL using an absolute path. (read-only) /// </summary> [iOSVersion(4)] [Optional] public NSURL URLByStandardizingPath { get; private set; } /// <summary> /// These schemes are the ones that NSURL can parse. /// </summary> [Unwrapped] public string NSURLFileScheme { get; set; } } /// <summary> /// Options used when creating bookmark data. /// </summary> public enum NSURLBookmarkCreationOptions { /// <summary> /// Specifies that when a bookmark created with this option is resolved, its embedded file ID should take precedence over other sources of information (file system path, for example) in the event of a conflict. /// Available in iOS 4.0 and later. /// Deprecated in iOS 7.0. /// </summary> [Obsolete] PreferFileIDResolution, /// <summary> /// Specifies that a bookmark created with this option should be created with minimal information. This produces a smaller bookmark that can be resolved in fewer ways. /// </summary> [iOSVersion(4)] MinimalBookmark, /// <summary> /// Specifies that the bookmark data should include properties required to create Finder alias files. /// </summary> [iOSVersion(4)] SuitableForBookmarkFile, /// <summary> /// /// </summary> WithSecurityScope, /// <summary> /// /// </summary> SecurityScopeAllowOnlyReadAccess, } /// <summary> /// Options used when resolving bookmark data. /// </summary> public enum NSURLBookmarkResolutionOptions { /// <summary> /// Specifies that no UI feedback should accompany resolution of the bookmark data. /// </summary> [iOSVersion(4)] WithoutUI, /// <summary> /// Specifies that no volume should be mounted during resolution of the bookmark data. /// </summary> [iOSVersion(4)] WithoutMounting, /// <summary> /// /// </summary> WithSecurityScope, } /// <summary> /// Options used when creating file bookmark data /// </summary> [iOSVersion(4)] public struct NSURLBookmarkFileCreationOptions { static public implicit operator NSURLBookmarkFileCreationOptions(int value) { return default(NSURLBookmarkFileCreationOptions); } static public implicit operator int(NSURLBookmarkFileCreationOptions value) { return default(int); } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSURLAuthenticationChallenge.cs b/CocoaSharp/Foundation/NSURLAuthenticationChallenge.cs
index f14212d7..4154d5fd 100644
--- a/CocoaSharp/Foundation/NSURLAuthenticationChallenge.cs
+++ b/CocoaSharp/Foundation/NSURLAuthenticationChallenge.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSURLAuthenticationChallenge encapsulates a challenge from a server requiring authentication from the client. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSURLAuthenticationChallenge_Class/index.html#//apple_ref/occ/cl/NSURLAuthenticationChallenge"/> [iOSVersion(2)] public class NSURLAuthenticationChallenge : NSObject//, AnyObject, NSCoding, NSObjectProtocol, NSSecureCoding { /// <summary> /// Returns an initialized NSURLAuthenticationChallenge object copying the properties from challenge, and setting the authentication sender to sender. /// </summary> /// <param name="authenticationChallenge">The challenge that you want to copy.</param> /// <param name="sender">The sender that you want to use for the new object. Typically, the sender is the instance of your custom NSURLProtocol subclass that called this method.</param> [iOSVersion(2)] public NSURLAuthenticationChallenge(NSURLAuthenticationChallenge authenticationChallenge, NSURLAuthenticationChallengeSender sender) { } /// <summary> /// Returns an initialized NSURLAuthenticationChallenge object for the specified protection space, credential, failure count, server response, error, and sender. /// </summary> /// <param name="protectionSpace">The protection space for the URL challenge. This provides additional information about the authentication request, such as the host, port, authentication realm, and so on.</param> /// <param name="proposedCredential">The proposed credential, or nil.</param> /// <param name="previousFailureCount">The total number of previous failures for this request, including failures for other protection spaces.</param> /// <param name="failureResponse">An NSURLResponse object containing the server response that caused you to generate an authentication challenge, or nil if no response object is applicable to the challenge.</param> /// <param name="error">An NSError object describing the authentication failure, or nil if it is not applicable to the challenge.</param> /// <param name="sender">The object that initiated the authentication challenge (typically, the object that called this method).</param> [iOSVersion(2)] public NSURLAuthenticationChallenge(NSURLProtectionSpace protectionSpace, NSURLCredential proposedCredential, int previousFailureCount, NSURLResponse failureResponse, NSError error, NSURLAuthenticationChallengeSender sender) { } /// <summary> /// Returns the NSError object representing the last authentication failure. /// </summary> [iOSVersion(2)] [Export("error")] public NSError Error { get; private set; } /// <summary> /// Returns the NSURLResponse object representing the last authentication failure. /// </summary> [iOSVersion(2)] [Export("failureResponse")] public NSURLResponse FailureResponse { get; private set; } /// <summary> /// Returns the receiver’s count of failed authentication attempts. /// </summary> [iOSVersion(2)] [Export("previousFailureCount")] public int PreviousFailureCount { get; private set; } /// <summary> /// Returns the proposed credential for this challenge. /// </summary> [iOSVersion(2)] [Export("proposedCredential")] public NSURLCredential ProposedCredential { get; private set; } /// <summary> /// Returns the receiver’s protection space. /// </summary> [iOSVersion(2)] [Export("protectionSpace")] public NSURLProtectionSpace ProtectionSpace { get; private set; } /// <summary> /// Returns the receiver’s sender. /// </summary> [iOSVersion(2)] [Export("sender")] public NSURLAuthenticationChallengeSender Sender { get; private set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSURLAuthenticationChallenge encapsulates a challenge from a server requiring authentication from the client. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSURLAuthenticationChallenge_Class/index.html#//apple_ref/occ/cl/NSURLAuthenticationChallenge"/> [iOSVersion(2)] [Export("")] public class NSURLAuthenticationChallenge : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSObjectProtocol, NSSecureCoding, Printable { public NSURLAuthenticationChallenge() { } /// <summary> /// Returns an initialized NSURLAuthenticationChallenge object copying the properties from challenge, and setting the authentication sender to sender. /// </summary> /// <param name="authenticationChallenge">The challenge that you want to copy.</param> /// <param name="sender">The sender that you want to use for the new object. Typically, the sender is the instance of your custom NSURLProtocol subclass that called this method.</param> [iOSVersion(2)] public NSURLAuthenticationChallenge(NSURLAuthenticationChallenge authenticationChallenge, NSURLAuthenticationChallengeSender sender) { } /// <summary> /// Returns an initialized NSURLAuthenticationChallenge object for the specified protection space, credential, failure count, server response, error, and sender. /// </summary> /// <param name="protectionSpace">The protection space for the URL challenge. This provides additional information about the authentication request, such as the host, port, authentication realm, and so on.</param> /// <param name="proposedCredential">The proposed credential, or nil.</param> /// <param name="previousFailureCount">The total number of previous failures for this request, including failures for other protection spaces.</param> /// <param name="failureResponse">An NSURLResponse object containing the server response that caused you to generate an authentication challenge, or nil if no response object is applicable to the challenge.</param> /// <param name="error">An NSError object describing the authentication failure, or nil if it is not applicable to the challenge.</param> /// <param name="sender">The object that initiated the authentication challenge (typically, the object that called this method).</param> [iOSVersion(2)] public NSURLAuthenticationChallenge(NSURLProtectionSpace protectionSpace, [Optional] NSURLCredential proposedCredential, int previousFailureCount, [Optional] NSURLResponse failureResponse, [Optional] NSError error, NSURLAuthenticationChallengeSender sender) { } /// <summary> /// The error object representing the last authentication failure. (read-only) /// </summary> [iOSVersion(2)] [Export("error")] [Optional] public NSError Error { get; private set; } /// <summary> /// The URL response object representing the last authentication failure. (read-only) /// </summary> [iOSVersion(2)] [Export("failureResponse")] [Optional] public NSURLResponse FailureResponse { get; private set; } /// <summary> /// The receiver’s count of failed authentication attempts. (read-only) /// </summary> [iOSVersion(2)] [Export("previousFailureCount")] public int PreviousFailureCount { get; private set; } /// <summary> /// The proposed credential for this challenge. (read-only) /// </summary> [iOSVersion(2)] [Export("proposedCredential")] [Optional] public NSURLCredential ProposedCredential { get; private set; } /// <summary> /// The receiver’s protection space. (read-only) /// </summary> [iOSVersion(2)] [Export("protectionSpace")] public NSURLProtectionSpace ProtectionSpace { get; private set; } /// <summary> /// The receiver’s sender. /// </summary> [iOSVersion(2)] [Export("sender")] public NSURLAuthenticationChallengeSender Sender { get; private set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSURLCache.cs b/CocoaSharp/Foundation/NSURLCache.cs
index 495b1258..ecb9c99d 100644
--- a/CocoaSharp/Foundation/NSURLCache.cs
+++ b/CocoaSharp/Foundation/NSURLCache.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSURLCache class implements the caching of responses to URL load requests by mapping NSURLRequest objects to NSCachedURLResponse objects. It provides a composite in-memory and on-disk cache, and lets you manipulate the sizes of both the in-memory and on-disk portions. You can also control the path where cache data is stored persistently. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSURLCache_Class/index.html#//apple_ref/occ/cl/NSURLCache"/> [iOSVersion(2)] public class NSURLCache : NSObject//, AnyObject, NSObjectProtocol { /// <summary> /// Returns the shared NSURLCache instance. /// </summary> [iOSVersion(2)] [Export("sharedURLCache")] public static NSURLCache SharedURLCache() { return default(NSURLCache); } /// <summary> /// Sets the shared NSURLCache instance to a specified cache object. /// </summary> /// <param name="cache">The cache object to use as the shared cache object.</param> [iOSVersion(2)] [Export("setSharedURLCache")] public static void SetSharedURLCache(NSURLCache cache) { } /// <summary> /// Initializes an NSURLCache object with the specified values. /// </summary> /// <param name="memoryCapacity">The memory capacity of the cache, in bytes.</param> /// <param name="diskCapacity">The disk capacity of the cache, in bytes.</param> /// <param name="diskPath">In OS X, path is the location at which to store the on-disk cache. /// In iOS, path is the name of a subdirectory of the application’s default cache directory in which to store the on-disk cache (the subdirectory is created if it does not exist).</param> [iOSVersion(2)] public NSURLCache(int memoryCapacity, int diskCapacity, string diskPath) { } /// <summary> /// Returns the cached URL response in the cache for the specified URL request. /// </summary> /// <param name="request">The URL request whose cached response is desired.</param> [iOSVersion(2)] [Export("cachedResponseForRequest")] public NSCachedURLResponse CachedResponseForRequest(NSURLRequest request) { return default(NSCachedURLResponse); } /// <summary> /// Stores a cached URL response for a specified request /// </summary> /// <param name="cachedResponse">The cached URL response to store.</param> /// <param name="forRequest">The request for which the cached URL response is being stored.</param> [iOSVersion(2)] [Export("storeCachedResponse")] public void StoreCachedResponse(NSCachedURLResponse cachedResponse, NSURLRequest forRequest) { } /// <summary> /// Clears the receiver’s cache, removing all stored cached URL responses. /// </summary> [iOSVersion(2)] [Export("removeAllCachedResponses")] public void RemoveAllCachedResponses() { } /// <summary> /// Removes the cached URL response for a specified URL request. /// </summary> /// <param name="request">The URL request whose cached URL response should be removed. If there is no corresponding cached URL response, no action is taken.</param> [iOSVersion(2)] [Export("removeCachedResponseForRequest")] public void RemoveCachedResponseForRequest(NSURLRequest request) { } /// <summary> /// Returns the current size of the receiver’s on-disk cache, in bytes. /// </summary> [iOSVersion(2)] [Export("currentDiskUsage")] public int CurrentDiskUsage { get; private set; } /// <summary> /// Returns the capacity of the receiver’s on-disk cache, in bytes. /// </summary> [iOSVersion(2)] [Export("diskCapacity")] public int DiskCapacity { get; set; } /// <summary> /// Returns the current size of the receiver’s in-memory cache, in bytes. /// </summary> [iOSVersion(2)] [Export("currentMemoryUsage")] public int CurrentMemoryUsage { get; private set; } /// <summary> /// Returns the capacity of the receiver’s in-memory cache, in bytes. /// </summary> [iOSVersion(2)] [Export("memoryCapacity")] public int MemoryCapacity { get; set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSURLCache class implements the caching of responses to URL load requests by mapping NSURLRequest objects to NSCachedURLResponse objects. It provides a composite in-memory and on-disk cache, and lets you manipulate the sizes of both the in-memory and on-disk portions. You can also control the path where cache data is stored persistently. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSURLCache_Class/index.html#//apple_ref/occ/cl/NSURLCache"/> [iOSVersion(2)] [Export("")] public class NSURLCache : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSObjectProtocol, Printable { public NSURLCache() { } /// <summary> /// Returns the shared NSURLCache instance. /// </summary> [iOSVersion(2)] [Export("sharedURLCache")] public static NSURLCache SharedURLCache() { return default(NSURLCache); } /// <summary> /// Sets the shared NSURLCache instance to a specified cache object. /// </summary> /// <param name="cache">The cache object to use as the shared cache object.</param> [iOSVersion(2)] [Export("setSharedURLCache")] public static void SetSharedURLCache(NSURLCache cache) { } /// <summary> /// Initializes an NSURLCache object with the specified values. /// </summary> /// <param name="memoryCapacity">The memory capacity of the cache, in bytes.</param> /// <param name="diskCapacity">The disk capacity of the cache, in bytes.</param> /// <param name="diskPath">In OS X, path is the location at which to store the on-disk cache. /// In iOS, path is the name of a subdirectory of the application’s default cache directory in which to store the on-disk cache (the subdirectory is created if it does not exist).</param> [iOSVersion(2)] public NSURLCache(int memoryCapacity, int diskCapacity, [Optional] string diskPath) { } /// <summary> /// Returns the cached URL response in the cache for the specified URL request. /// </summary> /// <param name="request">The URL request whose cached response is desired.</param> [iOSVersion(2)] [Export("cachedResponseForRequest")] [return:Optional] public virtual NSCachedURLResponse CachedResponseForRequest(NSURLRequest request) { return default(NSCachedURLResponse); } /// <summary> /// Stores a cached URL response for a specified request /// </summary> /// <param name="cachedResponse">The cached URL response to store.</param> /// <param name="forRequest">The request for which the cached URL response is being stored.</param> [iOSVersion(2)] [Export("storeCachedResponse")] public virtual void StoreCachedResponse(NSCachedURLResponse cachedResponse, NSURLRequest forRequest) { } /// <summary> /// Clears the receiver’s cache, removing all stored cached URL responses. /// </summary> [iOSVersion(2)] [Export("removeAllCachedResponses")] public virtual void RemoveAllCachedResponses() { } /// <summary> /// Removes the cached URL response for a specified URL request. /// </summary> /// <param name="request">The URL request whose cached URL response should be removed. If there is no corresponding cached URL response, no action is taken.</param> [iOSVersion(2)] [Export("removeCachedResponseForRequest")] public virtual void RemoveCachedResponseForRequest(NSURLRequest request) { } /// <summary> /// The current size of the receiver’s on-disk cache, in bytes. (read-only) /// </summary> [iOSVersion(2)] [Export("currentDiskUsage")] public int CurrentDiskUsage { get; private set; } /// <summary> /// The capacity of the receiver’s on-disk cache, in bytes. /// </summary> [iOSVersion(2)] [Export("diskCapacity")] public int DiskCapacity { get; set; } /// <summary> /// The current size of the receiver’s in-memory cache, in bytes. (read-only) /// </summary> [iOSVersion(2)] [Export("currentMemoryUsage")] public int CurrentMemoryUsage { get; private set; } /// <summary> /// The capacity of the receiver’s in-memory cache, in bytes. /// </summary> [iOSVersion(2)] [Export("memoryCapacity")] public int MemoryCapacity { get; set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSURLComponents.cs b/CocoaSharp/Foundation/NSURLComponents.cs
index 08357620..7e8f5e73 100644
--- a/CocoaSharp/Foundation/NSURLComponents.cs
+++ b/CocoaSharp/Foundation/NSURLComponents.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSURLComponents class is a class that is designed to parse URLs based on RFC 3986 and to construct URLs from their constituent parts. Its behavior differs subtly from the NSURL class, which conforms to older RFCs. However, you can easily obtain an NSURL object based on the contents of a URL components object or vice versa. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSURLComponents_class/index.html#//apple_ref/occ/cl/NSURLComponents"/> [iOSVersion(7)] public class NSURLComponents : NSObject//, AnyObject, NSCopying, NSObjectProtocol { /// <summary> /// Returns a URL components object by parsing a URL in string form. /// </summary> /// <param name="URLString">The URL string to parse.</param> [iOSVersion(7)] [Export("componentsWithString")] public static NSURLComponents ComponentsWithString(string URLString) { return default(NSURLComponents); } /// <summary> /// Returns a URL components object by parsing the URL from an NSURL object. /// </summary> /// <param name="url">The URL to parse.</param> /// <param name="resolvingAgainstBaseURL">Controls whether the URL should be resolved against its base URL before parsing. If true, and if the url parameter contains a relative URL, the original URL is resolved against its base URL before parsing by calling the absoluteURL method. Otherwise, the string portion is used by itself.</param> [iOSVersion(7)] [Export("componentsWithURL")] public static NSURLComponents ComponentsWithURL(NSURL url, bool resolvingAgainstBaseURL) { return default(NSURLComponents); } /// <summary> /// Initializes a URL components object with nil for every component. /// </summary> [iOSVersion(7)] public NSURLComponents() { } /// <summary> /// Initializes a URL components object by parsing a URL in string form. /// </summary> /// <param name="@string">The URL string to parse.</param> [iOSVersion(7)] public NSURLComponents(string @string) { } /// <summary> /// Initializes a URL components object by parsing the URL from an NSURL object. /// </summary> /// <param name="URL">The URL to parse.</param> /// <param name="resolvingAgainstBaseURL">Controls whether the URL should be resolved against its base URL before parsing. If true, and if the url parameter contains a relative URL, the original URL is resolved against its base URL before parsing by calling the absoluteURL method. Otherwise, the string portion is used by itself.</param> [iOSVersion(7)] public NSURLComponents(NSURL URL, bool resolvingAgainstBaseURL) { } /// <summary> /// Returns a URL object derived from the components object. /// </summary> /// <param name="baseURL">If non-nil, this URL is used as the base URL portion of the resulting URL object.</param> [iOSVersion(7)] public NSURL URLRelativeToURL(NSURL baseURL) { return default(NSURL); } /// <summary> /// A URL derived from the components object, in string form. (read-only) /// </summary> [iOSVersion(8)] [Export("string")] public string String { get; private set; } /// <summary> /// A URL object derived from the components object. (read-only) /// </summary> [iOSVersion(7)] public NSURL URL { get; private set; } /// <summary> /// The fragment URL component (the part after a # symbol), or nil if not present. /// </summary> [iOSVersion(7)] [Export("fragment")] public string Fragment { get; set; } /// <summary> /// The host URL subcomponent, or nil if not present. /// </summary> [iOSVersion(7)] [Export("host")] public string Host { get; set; } /// <summary> /// The password URL subcomponent, or nil if not present. /// </summary> [iOSVersion(7)] [Export("password")] public string Password { get; set; } /// <summary> /// The path URL component, or nil if not present. /// </summary> [iOSVersion(7)] [Export("path")] public string Path { get; set; } /// <summary> /// The port number URL component, or nil if not present. /// </summary> [iOSVersion(7)] [Export("port")] public NSNumber Port { get; set; } /// <summary> /// The query URL component, or nil if not present. /// </summary> [iOSVersion(7)] [Export("query")] public string Query { get; set; } /// <summary> /// The scheme URL component, or nil if not present. /// </summary> [iOSVersion(7)] [Export("scheme")] public string Scheme { get; set; } /// <summary> /// The username URL subcomponent, or nil if not present. /// </summary> [iOSVersion(7)] [Export("user")] public string User { get; set; } /// <summary> /// The fragment URL component (the part after a # symbol) expressed as a URL-encoded string, or nil if not present. /// </summary> [iOSVersion(7)] [Export("percentEncodedFragment")] public string PercentEncodedFragment { get; set; } /// <summary> /// The host URL subcomponent expressed as a URL-encoded string, or nil if not present. /// </summary> [iOSVersion(7)] [Export("percentEncodedHost")] public string PercentEncodedHost { get; set; } /// <summary> /// The password URL subcomponent expressed as a URL-encoded string, or nil if not present. /// </summary> [iOSVersion(7)] [Export("percentEncodedPassword")] public string PercentEncodedPassword { get; set; } /// <summary> /// The path URL component expressed as a URL-encoded string, or nil if not present. /// </summary> [iOSVersion(7)] [Export("percentEncodedPath")] public string PercentEncodedPath { get; set; } /// <summary> /// The query URL component expressed as a URL-encoded string, or nil if not present. /// </summary> [iOSVersion(7)] [Export("percentEncodedQuery")] public string PercentEncodedQuery { get; set; } /// <summary> /// The username URL subcomponent expressed as a URL-encoded string, or nil if not present. /// </summary> [iOSVersion(7)] [Export("percentEncodedUser")] public string PercentEncodedUser { get; set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSURLComponents class is a class that is designed to parse URLs based on RFC 3986 and to construct URLs from their constituent parts. Its behavior differs subtly from the NSURL class, which conforms to older RFCs. However, you can easily obtain an NSURL object based on the contents of a URL components object or vice versa. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSURLComponents_class/index.html#//apple_ref/occ/cl/NSURLComponents"/> [iOSVersion(7)] [Export("")] public class NSURLComponents : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSCopying, NSObjectProtocol, Printable { /// <summary> /// Initializes a URL components object with nil for every component. /// </summary> [iOSVersion(7)] public NSURLComponents() { } /// <summary> /// Returns a URL object derived from the components object. /// </summary> /// <param name="baseURL">If non-nil, this URL is used as the base URL portion of the resulting URL object.</param> [iOSVersion(7)] [return:Optional] public virtual NSURL URLRelativeToURL([Optional] NSURL baseURL) { return default(NSURL); } /// <summary> /// A URL derived from the components object, in string form. (read-only) /// </summary> [iOSVersion(8)] [Export("string")] [Optional] public string String { get; private set; } /// <summary> /// A URL object derived from the components object. (read-only) /// </summary> [iOSVersion(7)] [Optional] public NSURL URL { get; private set; } /// <summary> /// The fragment URL component (the part after a # symbol), or nil if not present. /// </summary> [iOSVersion(7)] [Export("fragment")] [Optional] public string Fragment { get; set; } /// <summary> /// The host URL subcomponent, or nil if not present. /// </summary> [iOSVersion(7)] [Export("host")] [Optional] public string Host { get; set; } /// <summary> /// The password URL subcomponent, or nil if not present. /// </summary> [iOSVersion(7)] [Export("password")] [Optional] public string Password { get; set; } /// <summary> /// The path URL component, or nil if not present. /// </summary> [iOSVersion(7)] [Export("path")] [Optional] public string Path { get; set; } /// <summary> /// The port number URL component, or nil if not present. /// </summary> [iOSVersion(7)] [Export("port")] [Optional] public NSNumber Port { get; set; } /// <summary> /// The query URL component as a string, or nil if not present. /// </summary> [iOSVersion(7)] [Export("query")] [Optional] public string Query { get; set; } /// <summary> /// The query URL component as an array of name/value pairs. /// </summary> [iOSVersion(8)] [Export("queryItems")] public AnyObject[] QueryItems { get; set; } /// <summary> /// The scheme URL component, or nil if not present. /// </summary> [iOSVersion(7)] [Export("scheme")] [Optional] public string Scheme { get; set; } /// <summary> /// The username URL subcomponent, or nil if not present. /// </summary> [iOSVersion(7)] [Export("user")] [Optional] public string User { get; set; } /// <summary> /// The fragment URL component (the part after a # symbol) expressed as a URL-encoded string, or nil if not present. /// </summary> [iOSVersion(7)] [Export("percentEncodedFragment")] [Optional] public string PercentEncodedFragment { get; set; } /// <summary> /// The host URL subcomponent expressed as a URL-encoded string, or nil if not present. /// </summary> [iOSVersion(7)] [Export("percentEncodedHost")] [Optional] public string PercentEncodedHost { get; set; } /// <summary> /// The password URL subcomponent expressed as a URL-encoded string, or nil if not present. /// </summary> [iOSVersion(7)] [Export("percentEncodedPassword")] [Optional] public string PercentEncodedPassword { get; set; } /// <summary> /// The path URL component expressed as a URL-encoded string, or nil if not present. /// </summary> [iOSVersion(7)] [Export("percentEncodedPath")] [Optional] public string PercentEncodedPath { get; set; } /// <summary> /// The query URL component expressed as a URL-encoded string, or nil if not present. /// </summary> [iOSVersion(7)] [Export("percentEncodedQuery")] [Optional] public string PercentEncodedQuery { get; set; } /// <summary> /// The username URL subcomponent expressed as a URL-encoded string, or nil if not present. /// </summary> [iOSVersion(7)] [Export("percentEncodedUser")] [Optional] public string PercentEncodedUser { get; set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSURLConnection.cs b/CocoaSharp/Foundation/NSURLConnection.cs
index e92539c5..b34ab8a4 100644
--- a/CocoaSharp/Foundation/NSURLConnection.cs
+++ b/CocoaSharp/Foundation/NSURLConnection.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// An NSURLConnection object lets you load the contents of a URL by providing a URL request object. The interface for NSURLConnection is sparse, providing only the controls to start and cancel asynchronous loads of a URL request. You perform most of your configuration on the URL request object itself. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSURLConnection_Class/index.html#//apple_ref/occ/cl/NSURLConnection"/> [iOSVersion(2)] public class NSURLConnection : NSObject//, AnyObject, NSObjectProtocol { /// <summary> /// Returns whether a request can be handled based on a preflight evaluation. /// </summary> /// <param name="request">The request to evaluate. The connection deep-copies the request on creation.</param> [iOSVersion(2)] [Export("canHandleRequest")] public static bool CanHandleRequest(NSURLRequest request) { return default(bool); } /// <summary> /// Performs a synchronous load of the specified URL request. /// </summary> /// <param name="request">The URL request to load. The request object is deep-copied as part of the initialization process. Changes made to request after this method returns do not affect the request that is used for the loading process.</param> /// <param name="returningResponse">Out parameter for the URL response returned by the server.</param> /// <param name="error">Out parameter used if an error occurs while processing the request. May be NULL.</param> [iOSVersion(2)] [Export("sendSynchronousRequest")] public static NSData SendSynchronousRequest(NSURLRequest request, AutoreleasingUnsafePointer<NSURLResponse> returningResponse, NSErrorPointer error) { return default(NSData); } /// <summary> /// Creates and returns an initialized URL connection and begins to load the data for the URL request. /// </summary> /// <param name="request">The URL request to load. The request object is deep-copied as part of the initialization process. Changes made to request after this method returns do not affect the request that is used for the loading process.</param> /// <param name="@delegate">The delegate object for the connection. The connection calls methods on this delegate as the load progresses. Delegate methods are called on the same thread that called this method. For the connection to work correctly, the calling thread’s run loop must be operating in the default run loop mode.</param> [iOSVersion(2)] [Export("connectionWithRequest")] public static NSURLConnection ConnectionWithRequest(NSURLRequest request, AnyObject @delegate) { return default(NSURLConnection); } /// <summary> /// Returns an initialized URL connection and begins to load the data for the URL request. /// </summary> /// <param name="request">The URL request to load. The request object is deep-copied as part of the initialization process. Changes made to request after this method returns do not affect the request that is used for the loading process.</param> /// <param name="@delegate">The delegate object for the connection. The connection calls methods on this delegate as the load progresses. Delegate methods are called on the same thread that called this method. By default, for the connection to work correctly, the calling thread’s run loop must be operating in the default run loop mode. See scheduleInRunLoop:forMode: to change the run loop and mode.</param> [iOSVersion(2)] public NSURLConnection(NSURLRequest request, AnyObject @delegate) { } /// <summary> /// Returns an initialized URL connection and begins to load the data for the URL request, if specified. /// </summary> /// <param name="request">The URL request to load. The request object is deep-copied as part of the initialization process. Changes made to request after this method returns do not affect the request that is used for the loading process.</param> /// <param name="@delegate">The delegate object for the connection. The connection calls methods on this delegate as the load progresses.</param> /// <param name="startImmediately">true if the connection should begin loading data immediately, otherwise false. If you pass false, the connection is not scheduled with a run loop. You can then schedule the connection in the run loop and mode of your choice by calling scheduleInRunLoop:forMode:.</param> [iOSVersion(2)] public NSURLConnection(NSURLRequest request, AnyObject @delegate, bool startImmediately) { } /// <summary> /// Loads the data for a URL request and executes a handler block on an operation queue when the request completes or fails. /// </summary> /// <param name="request">The URL request to load. The request object is deep-copied as part of the initialization process. Changes made to request after this method returns do not affect the request that is used for the loading process.</param> /// <param name="queue">The operation queue to which the handler block is dispatched when the request completes or failed.</param> /// <param name="completionHandler">The handler block to execute.</param> [iOSVersion(5)] [Export("sendAsynchronousRequest")] public static void SendAsynchronousRequest(NSURLRequest request, NSOperationQueue queue, Action<NSURLResponse, NSData, NSError> completionHandler) { } /// <summary> /// Causes the connection to begin loading data, if it has not already. /// </summary> [iOSVersion(2)] [Export("start")] public void Start() { } /// <summary> /// Cancels an asynchronous load of a request. /// </summary> [iOSVersion(2)] [Export("cancel")] public void Cancel() { } /// <summary> /// Determines the run loop and mode that the connection uses to call methods on its delegate. /// </summary> /// <param name="aRunLoop">The NSRunLoop instance to use when calling delegate methods.</param> /// <param name="forMode">The mode in which to call delegate methods.</param> [iOSVersion(2)] [Export("scheduleInRunLoop")] public void ScheduleInRunLoop(NSRunLoop aRunLoop, string forMode) { } /// <summary> /// Determines the operation queue that is used to call methods on the connection’s delegate. /// </summary> /// <param name="queue">The operation queue to use when calling delegate methods.</param> [iOSVersion(5)] [Export("setDelegateQueue")] public void SetDelegateQueue(NSOperationQueue queue) { } /// <summary> /// Causes the connection to stop calling delegate methods in the specified run loop and mode. /// </summary> /// <param name="aRunLoop">The run loop instance to unschedule.</param> /// <param name="forMode">The mode to unschedule.</param> [iOSVersion(2)] [Export("unscheduleFromRunLoop")] public void UnscheduleFromRunLoop(NSRunLoop aRunLoop, string forMode) { } /// <summary> /// A deep copy of the original connection request. (read-only) /// </summary> [iOSVersion(5)] [Export("originalRequest")] public NSURLRequest OriginalRequest { get; private set; } /// <summary> /// The current connection request. (read-only) /// </summary> [iOSVersion(5)] [Export("currentRequest")] public NSURLRequest CurrentRequest { get; private set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// An NSURLConnection object lets you load the contents of a URL by providing a URL request object. The interface for NSURLConnection is sparse, providing only the controls to start and cancel asynchronous loads of a URL request. You perform most of your configuration on the URL request object itself. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSURLConnection_Class/index.html#//apple_ref/occ/cl/NSURLConnection"/> [iOSVersion(2)] [Export("")] public class NSURLConnection : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSObjectProtocol, Printable { public NSURLConnection() { } /// <summary> /// Returns whether a request can be handled based on a preflight evaluation. /// </summary> /// <param name="request">The request to evaluate. The connection deep-copies the request on creation.</param> [iOSVersion(2)] [Export("canHandleRequest")] public static bool CanHandleRequest(NSURLRequest request) { return default(bool); } /// <summary> /// Performs a synchronous load of the specified URL request. /// </summary> /// <param name="request">The URL request to load. The request object is deep-copied as part of the initialization process. Changes made to request after this method returns do not affect the request that is used for the loading process.</param> /// <param name="returningResponse">Out parameter for the URL response returned by the server.</param> /// <param name="error">Out parameter used if an error occurs while processing the request. May be NULL.</param> [iOSVersion(2)] [Export("sendSynchronousRequest")] [return:Optional] public static NSData SendSynchronousRequest(NSURLRequest request, AutoreleasingUnsafeMutablePointer<NSURLResponse> returningResponse, NSErrorPointer error) { return default(NSData); } /// <summary> /// Loads the data for a URL request and executes a handler block on an operation queue when the request completes or fails. /// </summary> /// <param name="request">The URL request to load. The request object is deep-copied as part of the initialization process. Changes made to request after this method returns do not affect the request that is used for the loading process.</param> /// <param name="queue">The operation queue to which the handler block is dispatched when the request completes or failed.</param> /// <param name="completionHandler">The handler block to execute.</param> [iOSVersion(5)] [Export("sendAsynchronousRequest")] public static void SendAsynchronousRequest(NSURLRequest request, [Unwrapped] NSOperationQueue queue, Action<NSURLResponse, NSData, NSError> completionHandler) { } /// <summary> /// Causes the connection to begin loading data, if it has not already. /// </summary> [iOSVersion(2)] [Export("start")] public virtual void Start() { } /// <summary> /// Cancels an asynchronous load of a request. /// </summary> [iOSVersion(2)] [Export("cancel")] public virtual void Cancel() { } /// <summary> /// Determines the run loop and mode that the connection uses to call methods on its delegate. /// </summary> /// <param name="aRunLoop">The NSRunLoop instance to use when calling delegate methods.</param> /// <param name="forMode">The mode in which to call delegate methods.</param> [iOSVersion(2)] [Export("scheduleInRunLoop")] public virtual void ScheduleInRunLoop(NSRunLoop aRunLoop, string forMode) { } /// <summary> /// Determines the operation queue that is used to call methods on the connection’s delegate. /// </summary> /// <param name="queue">The operation queue to use when calling delegate methods.</param> [iOSVersion(5)] [Export("setDelegateQueue")] public virtual void SetDelegateQueue([Unwrapped] NSOperationQueue queue) { } /// <summary> /// Causes the connection to stop calling delegate methods in the specified run loop and mode. /// </summary> /// <param name="aRunLoop">The run loop instance to unschedule.</param> /// <param name="forMode">The mode to unschedule.</param> [iOSVersion(2)] [Export("unscheduleFromRunLoop")] public virtual void UnscheduleFromRunLoop(NSRunLoop aRunLoop, string forMode) { } /// <summary> /// A deep copy of the original connection request. (read-only) /// </summary> [iOSVersion(5)] [Export("originalRequest")] public NSURLRequest OriginalRequest { get; private set; } /// <summary> /// The current connection request. (read-only) /// </summary> [iOSVersion(5)] [Export("currentRequest")] public NSURLRequest CurrentRequest { get; private set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSURLCredential.cs b/CocoaSharp/Foundation/NSURLCredential.cs
index 5db53906..8b7b0839 100644
--- a/CocoaSharp/Foundation/NSURLCredential.cs
+++ b/CocoaSharp/Foundation/NSURLCredential.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSURLCredential is an immutable object representing an authentication credential consisting of authentication information specific to the type of credential and the type of persistent storage to use, if any. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSURLCredential_Class/index.html#//apple_ref/occ/cl/NSURLCredential"/> [iOSVersion(2)] public class NSURLCredential : NSObject//, AnyObject, NSCoding, NSCopying, NSObjectProtocol, NSSecureCoding { /// <summary> /// Creates and returns an NSURLCredential object for server trust authentication with a given accepted trust. /// </summary> /// <param name="forTrust">The accepted trust.</param> [iOSVersion(3)] public NSURLCredential(SecTrust forTrust) { } /// <summary> /// Creates and returns an NSURLCredential object for internet password authentication with a given user name and password using a given persistence setting. /// </summary> /// <param name="user">The user for the credential.</param> /// <param name="password">The password for user.</param> /// <param name="persistence">The persistence setting for the credential.</param> [iOSVersion(2)] [Export("credentialWithUser")] public static NSURLCredential CredentialWithUser(string user, string password, NSURLCredentialPersistence persistence) { return default(NSURLCredential); } /// <summary> /// Creates and returns an NSURLCredential object for client certificate authentication with a given identity and a given array of client certificates using a given persistence setting. /// </summary> /// <param name="identity">The identity for the credential.</param> /// <param name="certificates">An array of one or more SecCertificateRef objects representing certificates for the credential.</param> /// <param name="persistence">The persistence setting for the credential.</param> [iOSVersion(3)] [Export("credentialWithIdentity")] public static NSURLCredential CredentialWithIdentity(SecIdentity identity, AnyObject[] certificates, NSURLCredentialPersistence persistence) { return default(NSURLCredential); } /// <summary> /// Returns an NSURLCredential object for client certificate authentication initialized with a given identity and a given array of client certificates using a given persistence setting. /// </summary> /// <param name="identity">The identity for the credential.</param> /// <param name="certificates">An array of one or more SecCertificateRef objects representing certificates for the credential.</param> /// <param name="persistence">The persistence setting for the credential.</param> [iOSVersion(3)] public NSURLCredential(SecIdentity identity, AnyObject[] certificates, NSURLCredentialPersistence persistence) { } /// <summary> /// Returns an NSURLCredential object for server trust authentication initialized with a given accepted trust. /// </summary> /// <param name="trust">The accepted trust.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(3)] [IgnoreParameter("NAME_YOUR_PARAMS")] public NSURLCredential(SecTrust trust, bool NAME_YOUR_PARAMS = false) { } /// <summary> /// Returns an NSURLCredential object initialized with a given user name and password using a given persistence setting. /// </summary> /// <param name="user">The user for the credential.</param> /// <param name="password">The password for user.</param> /// <param name="persistence">The persistence setting for the credential.</param> [iOSVersion(2)] public NSURLCredential(string user, string password, NSURLCredentialPersistence persistence) { } /// <summary> /// The receiver’s user name. (read-only) /// </summary> [iOSVersion(2)] [Export("user")] public string User { get; private set; } /// <summary> /// The certificates of the credential, if it is a client certificate credential. (read-only) /// </summary> [iOSVersion(3)] [Export("certificates")] public AnyObject[] Certificates { get; private set; } /// <summary> /// A Boolean value that indicates whether the receiver has a password. (read-only) /// </summary> [iOSVersion(2)] [Export("hasPassword")] public bool HasPassword { get; private set; } /// <summary> /// The receiver’s password. (read-only) /// </summary> [iOSVersion(2)] [Export("password")] public string Password { get; private set; } /// <summary> /// The identity of this credential if it is a client certificate credential. (read-only) /// </summary> [iOSVersion(3)] [Export("identity")] public SecIdentity Identity { get; private set; } /// <summary> /// The receiver’s persistence setting. (read-only) /// </summary> [iOSVersion(2)] [Export("persistence")] public NSURLCredentialPersistence Persistence { get; private set; } } /// <summary> /// These constants specify how long the credential will be kept. /// </summary> [iOSVersion(2)] public enum NSURLCredentialPersistence { /// <summary> /// Credential should not be stored. /// </summary> [iOSVersion(2)] None, /// <summary> /// Credential should be stored only for this session. /// </summary> [iOSVersion(2)] ForSession, /// <summary> /// Credential should be stored in the keychain. /// </summary> [iOSVersion(2)] Permanent, /// <summary> /// Credential should be stored permanently in the keychain, and in addition should be distributed to other devices based on the owning AppleID. /// </summary> [iOSVersion(6)] Synchronizable, } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSURLCredential is an immutable object representing an authentication credential consisting of authentication information specific to the type of credential and the type of persistent storage to use, if any. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSURLCredential_Class/index.html#//apple_ref/occ/cl/NSURLCredential"/> [iOSVersion(2)] [Export("")] public class NSURLCredential : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSObjectProtocol, NSSecureCoding, Printable { public NSURLCredential() { } /// <summary> /// Creates and returns an NSURLCredential object for server trust authentication with a given accepted trust. /// </summary> /// <param name="forTrust">The accepted trust.</param> [iOSVersion(3)] public NSURLCredential([Unwrapped] SecTrust forTrust) { } /// <summary> /// Creates and returns an NSURLCredential object for client certificate authentication with a given identity and a given array of client certificates using a given persistence setting. /// </summary> /// <param name="identity">The identity for the credential.</param> /// <param name="certificates">An array of one or more SecCertificateRef objects representing certificates for the credential.</param> /// <param name="persistence">The persistence setting for the credential.</param> [iOSVersion(3)] public NSURLCredential(SecIdentity identity, AnyObject[] certificates, NSURLCredentialPersistence persistence) { } /// <summary> /// Returns an NSURLCredential object for client certificate authentication initialized with a given identity and a given array of client certificates using a given persistence setting. /// </summary> /// <param name="identity">The identity for the credential.</param> /// <param name="certificates">An array of one or more SecCertificateRef objects representing certificates for the credential.</param> /// <param name="persistence">The persistence setting for the credential.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(3)] [IgnoreParameter("NAME_YOUR_PARAMS")] public NSURLCredential([Unwrapped] SecIdentity identity, AnyObject[] certificates, NSURLCredentialPersistence persistence, bool NAME_YOUR_PARAMS = false) { } /// <summary> /// Returns an NSURLCredential object for server trust authentication initialized with a given accepted trust. /// </summary> /// <param name="trust">The accepted trust.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(3)] [IgnoreParameter("NAME_YOUR_PARAMS")] public NSURLCredential([Unwrapped] SecTrust trust, bool NAME_YOUR_PARAMS = false) { } /// <summary> /// Returns an NSURLCredential object initialized with a given user name and password using a given persistence setting. /// </summary> /// <param name="user">The user for the credential.</param> /// <param name="password">The password for user.</param> /// <param name="persistence">The persistence setting for the credential.</param> [iOSVersion(2)] public NSURLCredential(string user, string password, NSURLCredentialPersistence persistence) { } /// <summary> /// The receiver’s user name. (read-only) /// </summary> [iOSVersion(2)] [Export("user")] [Optional] public string User { get; private set; } /// <summary> /// The certificates of the credential, if it is a client certificate credential. (read-only) /// </summary> [iOSVersion(3)] [Export("certificates")] public AnyObject[] Certificates { get; private set; } /// <summary> /// A Boolean value that indicates whether the receiver has a password. (read-only) /// </summary> [iOSVersion(2)] [Export("hasPassword")] public bool HasPassword { get; private set; } /// <summary> /// The receiver’s password. (read-only) /// </summary> [iOSVersion(2)] [Export("password")] [Optional] public string Password { get; private set; } /// <summary> /// The identity of this credential if it is a client certificate credential. (read-only) /// </summary> [iOSVersion(3)] [Export("identity")] [Optional] public SecIdentity Identity { get; private set; } /// <summary> /// The receiver’s persistence setting. (read-only) /// </summary> [iOSVersion(2)] [Export("persistence")] public NSURLCredentialPersistence Persistence { get; private set; } } /// <summary> /// These constants specify how long the credential will be kept. /// </summary> public enum NSURLCredentialPersistence { /// <summary> /// Credential should not be stored. /// </summary> [iOSVersion(2)] None, /// <summary> /// Credential should be stored only for this session. /// </summary> [iOSVersion(2)] ForSession, /// <summary> /// Credential should be stored in the keychain. /// </summary> [iOSVersion(2)] Permanent, /// <summary> /// Credential should be stored permanently in the keychain, and in addition should be distributed to other devices based on the owning AppleID. /// </summary> [iOSVersion(6)] Synchronizable, } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSURLCredentialStorage.cs b/CocoaSharp/Foundation/NSURLCredentialStorage.cs
index 2b09bff8..1cb95cdb 100644
--- a/CocoaSharp/Foundation/NSURLCredentialStorage.cs
+++ b/CocoaSharp/Foundation/NSURLCredentialStorage.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSURLCredentialStorage implements a singleton (shared object) that manages the credential storage. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSURLCredentialStorage_Class/index.html#//apple_ref/occ/cl/NSURLCredentialStorage"/> [iOSVersion(2)] public class NSURLCredentialStorage : NSObject//, AnyObject, NSObjectProtocol { /// <summary> /// Returns the shared URL credential storage object. /// </summary> [iOSVersion(2)] [Export("sharedCredentialStorage")] public static NSURLCredentialStorage SharedCredentialStorage() { return default(NSURLCredentialStorage); } /// <summary> /// Returns the default credential for the specified protectionSpace. /// </summary> /// <param name="protectionSpace">The URL protection space of interest.</param> [iOSVersion(2)] [Export("defaultCredentialForProtectionSpace")] public NSURLCredential DefaultCredentialForProtectionSpace(NSURLProtectionSpace protectionSpace) { return default(NSURLCredential); } /// <summary> /// Sets the default credential for a specified protection space. /// </summary> /// <param name="credential">The URL credential to set as the default for protectionSpace. If the receiver does not contain credential in the specified protectionSpace it will be added.</param> /// <param name="forProtectionSpace">The protection space whose default credential is being set.</param> [iOSVersion(2)] [Export("setDefaultCredential")] public void SetDefaultCredential(NSURLCredential credential, NSURLProtectionSpace forProtectionSpace) { } /// <summary> /// Removes a specified credential from the credential storage for the specified protection space. /// </summary> /// <param name="credential">The credential to remove.</param> /// <param name="forProtectionSpace">The protection space from which to remove the credential.</param> [iOSVersion(2)] [Export("removeCredential")] public void RemoveCredential(NSURLCredential credential, NSURLProtectionSpace forProtectionSpace) { } /// <summary> /// Removes a specified credential from the credential storage for the specified protection space using the given options. /// </summary> /// <param name="credential">The credential to remove.</param> /// <param name="forProtectionSpace">The protection space from which to remove the credential.</param> /// <param name="options">A dictionary containing options to consider when removing the credential. /// For possible keys, see Dictionary Key for Credential Removal Options. You should use this when trying to delete a credential that has the NSURLCredentialPersistenceSynchronizable policy. /// Note /// When NSURLCredential objects that have a NSURLCredentialPersistenceSynchronizable policy /// are removed, the credential will be removed on all devices that contain this credential.</param> [iOSVersion(7)] [Export("removeCredential")] public void RemoveCredential(NSURLCredential credential, NSURLProtectionSpace forProtectionSpace, Dictionary<NSObject, AnyObject> options) { } /// <summary> /// Adds credential to the credential storage for the specified protectionSpace. /// </summary> /// <param name="credential">The credential to add. If a credential with the same user name already exists in protectionSpace, then credential replaces the existing object.</param> /// <param name="forProtectionSpace">The protection space to which to add the credential.</param> [iOSVersion(2)] [Export("setCredential")] public void SetCredential(NSURLCredential credential, NSURLProtectionSpace forProtectionSpace) { } /// <summary> /// Returns a dictionary containing the credentials for the specified protection space. /// </summary> /// <param name="protectionSpace">The protection space whose credentials you want to retrieve.</param> [iOSVersion(2)] [Export("credentialsForProtectionSpace")] public Dictionary<NSObject, AnyObject> CredentialsForProtectionSpace(NSURLProtectionSpace protectionSpace) { return default(Dictionary<NSObject, AnyObject>); } /// <summary> /// The credentials for all available protection spaces. (read-only) /// </summary> [iOSVersion(2)] [Export("allCredentials")] public Dictionary<NSObject, AnyObject> AllCredentials { get; private set; } } /// <summary> /// The notification object is the NSURLCredentialStorage instance. This notification does not contain a userInfo dictionary. /// </summary> [iOSVersion(2)] public class NSURLCredentialStorageChangedNotification : NSNotification { public NSURLCredentialStorageChangedNotification() : base("", null) { } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSURLCredentialStorage implements a singleton (shared object) that manages the credential storage. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSURLCredentialStorage_Class/index.html#//apple_ref/occ/cl/NSURLCredentialStorage"/> [iOSVersion(2)] [Export("")] public class NSURLCredentialStorage : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSObjectProtocol, Printable { public NSURLCredentialStorage() { } /// <summary> /// Returns the shared URL credential storage object. /// </summary> [iOSVersion(2)] [Export("sharedCredentialStorage")] public static NSURLCredentialStorage SharedCredentialStorage() { return default(NSURLCredentialStorage); } /// <summary> /// Returns the default credential for the specified protectionSpace. /// </summary> /// <param name="protectionSpace">The URL protection space of interest.</param> [iOSVersion(2)] [Export("defaultCredentialForProtectionSpace")] [return:Optional] public virtual NSURLCredential DefaultCredentialForProtectionSpace(NSURLProtectionSpace protectionSpace) { return default(NSURLCredential); } /// <summary> /// Sets the default credential for a specified protection space. /// </summary> /// <param name="credential">The URL credential to set as the default for protectionSpace. If the receiver does not contain credential in the specified protectionSpace it will be added.</param> /// <param name="forProtectionSpace">The protection space whose default credential is being set.</param> [iOSVersion(2)] [Export("setDefaultCredential")] public virtual void SetDefaultCredential(NSURLCredential credential, NSURLProtectionSpace forProtectionSpace) { } /// <summary> /// Removes a specified credential from the credential storage for the specified protection space. /// </summary> /// <param name="credential">The credential to remove.</param> /// <param name="forProtectionSpace">The protection space from which to remove the credential.</param> [iOSVersion(2)] [Export("removeCredential")] public virtual void RemoveCredential(NSURLCredential credential, NSURLProtectionSpace forProtectionSpace) { } /// <summary> /// Removes a specified credential from the credential storage for the specified protection space using the given options. /// </summary> /// <param name="credential">The credential to remove.</param> /// <param name="forProtectionSpace">The protection space from which to remove the credential.</param> /// <param name="options">A dictionary containing options to consider when removing the credential. /// For possible keys, see Dictionary Key for Credential Removal Options. You should use this when trying to delete a credential that has the NSURLCredentialPersistenceSynchronizable policy. /// Note /// When NSURLCredential objects that have a NSURLCredentialPersistenceSynchronizable policy /// are removed, the credential will be removed on all devices that contain this credential.</param> [iOSVersion(7)] [Export("removeCredential")] public virtual void RemoveCredential(NSURLCredential credential, NSURLProtectionSpace forProtectionSpace, Dictionary<NSObject, AnyObject> options) { } /// <summary> /// Adds credential to the credential storage for the specified protectionSpace. /// </summary> /// <param name="credential">The credential to add. If a credential with the same user name already exists in protectionSpace, then credential replaces the existing object.</param> /// <param name="forProtectionSpace">The protection space to which to add the credential.</param> [iOSVersion(2)] [Export("setCredential")] public virtual void SetCredential(NSURLCredential credential, NSURLProtectionSpace forProtectionSpace) { } /// <summary> /// Returns a dictionary containing the credentials for the specified protection space. /// </summary> /// <param name="protectionSpace">The protection space whose credentials you want to retrieve.</param> [iOSVersion(2)] [Export("credentialsForProtectionSpace")] public virtual Dictionary<NSObject, AnyObject> CredentialsForProtectionSpace(NSURLProtectionSpace protectionSpace) { return default(Dictionary<NSObject, AnyObject>); } /// <summary> /// The credentials for all available protection spaces. (read-only) /// </summary> [iOSVersion(2)] [Export("allCredentials")] public Dictionary<NSObject, AnyObject> AllCredentials { get; private set; } } /// <summary> /// This notification is posted when the set of stored credentials changes. /// The notification object is the NSURLCredentialStorage instance. This notification does not contain a userInfo dictionary. /// </summary> public class NSURLCredentialStorageChangedNotification : NSNotification { public NSURLCredentialStorageChangedNotification() : base("", null) { } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSURLProtectionSpace.cs b/CocoaSharp/Foundation/NSURLProtectionSpace.cs
index bb9fe269..b7e1443d 100644
--- a/CocoaSharp/Foundation/NSURLProtectionSpace.cs
+++ b/CocoaSharp/Foundation/NSURLProtectionSpace.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// An NSURLProtectionSpace object represents a server or an area on a server, commonly referred to as a realm, that requires authentication. The protection space defines a series of matching constraints that determine which credential should be provided. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSURLProtectionSpace_Class/index.html#//apple_ref/occ/cl/NSURLProtectionSpace"/> [iOSVersion(2)] public class NSURLProtectionSpace : NSObject//, AnyObject, NSCoding, NSCopying, NSObjectProtocol, NSSecureCoding { /// <summary> /// Initializes a protection space object. /// </summary> /// <param name="host">The host name for the protection space object.</param> /// <param name="port">The port for the protection space object. If port is 0 the default port for the specified protocol is used, for example, port 80 for HTTP. Note that servers can, and do, treat these values differently.</param> /// <param name="protocol"></param> /// <param name="realm">A string indicating a protocol specific subdivision of the host. realm may be nil if there is no specified realm or if the protocol doesn’t support realms.</param> /// <param name="authenticationMethod">The type of authentication to use. authenticationMethod should be set to one of the values in NSURLProtectionSpace Authentication Methods or nil to use the default, NSURLAuthenticationMethodDefault.</param> [iOSVersion(2)] public NSURLProtectionSpace(string host, int port, string protocol, string realm, string authenticationMethod) { } /// <summary> /// Initializes a protection space object representing a proxy server. /// </summary> /// <param name="proxyHost">The host of the proxy server for the protection space object.</param> /// <param name="port">The port for the protection space object. If port is 0 the default port for the specified proxy type is used, for example, port 80 for HTTP. Note that servers can, and do, treat these values differently.</param> /// <param name="type">The type of proxy server. The value of proxyType should be set to one of the values specified in NSURLProtectionSpace Proxy Types.</param> /// <param name="realm">A string indicating a protocol specific subdivision of the host. realm may be nil if there is no specified realm or if the protocol doesn’t support realms.</param> /// <param name="authenticationMethod">The type of authentication to use. authenticationMethod should be set to one of the values in NSURLProtectionSpace Authentication Methods or nil to use the default, NSURLAuthenticationMethodDefault.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [IgnoreParameter("NAME_YOUR_PARAMS")] public NSURLProtectionSpace(string proxyHost, int port, string type, string realm, string authenticationMethod, bool NAME_YOUR_PARAMS = false) { } /// <summary> /// The authentication method used by the receiver. (read-only) /// </summary> [iOSVersion(2)] [Export("authenticationMethod")] public string AuthenticationMethod { get; private set; } /// <summary> /// The acceptable certificate-issuing authorities for client certificate authentication. (read-only) /// </summary> [iOSVersion(3)] [Export("distinguishedNames")] public AnyObject[] DistinguishedNames { get; private set; } /// <summary> /// The receiver’s host. (read-only) /// </summary> [iOSVersion(2)] [Export("host")] public string Host { get; private set; } /// <summary> /// The receiver’s port. (read-only) /// </summary> [iOSVersion(2)] [Export("port")] public int Port { get; private set; } /// <summary> /// The receiver’s protocol. (read-only) /// </summary> [iOSVersion(2)] public string protocol { get; private set; } /// <summary> /// The receiver's proxy type. (read-only) /// </summary> [iOSVersion(2)] [Export("proxyType")] public string ProxyType { get; private set; } /// <summary> /// The receiver’s authentication realm (read-only) /// </summary> [iOSVersion(2)] [Export("realm")] public string Realm { get; private set; } /// <summary> /// A boolean value that indicates whether the credentials for the protection space can be sent securely. (read-only) /// </summary> [iOSVersion(2)] [Export("receivesCredentialSecurely")] public bool ReceivesCredentialSecurely { get; private set; } /// <summary> /// A representation of the server’s SSL transaction state. (read-only) /// </summary> [iOSVersion(3)] [Export("serverTrust")] public SecTrust ServerTrust { get; private set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// An NSURLProtectionSpace object represents a server or an area on a server, commonly referred to as a realm, that requires authentication. The protection space defines a series of matching constraints that determine which credential should be provided. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSURLProtectionSpace_Class/index.html#//apple_ref/occ/cl/NSURLProtectionSpace"/> [iOSVersion(2)] [Export("")] public class NSURLProtectionSpace : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSObjectProtocol, NSSecureCoding, Printable { public NSURLProtectionSpace() { } /// <summary> /// Initializes a protection space object. /// </summary> /// <param name="host">The host name for the protection space object.</param> /// <param name="port">The port for the protection space object. If port is 0 the default port for the specified protocol is used, for example, port 80 for HTTP. Note that servers can, and do, treat these values differently.</param> /// <param name="protocol"></param> /// <param name="realm">A string indicating a protocol specific subdivision of the host. realm may be nil if there is no specified realm or if the protocol doesn’t support realms.</param> /// <param name="authenticationMethod">The type of authentication to use. authenticationMethod should be set to one of the values in NSURLProtectionSpace Authentication Methods or nil to use the default, NSURLAuthenticationMethodDefault.</param> [iOSVersion(2)] public NSURLProtectionSpace(string host, int port, [Optional] string protocol, [Optional] string realm, [Optional] string authenticationMethod) { } /// <summary> /// Initializes a protection space object representing a proxy server. /// </summary> /// <param name="proxyHost">The host of the proxy server for the protection space object.</param> /// <param name="port">The port for the protection space object. If port is 0 the default port for the specified proxy type is used, for example, port 80 for HTTP. Note that servers can, and do, treat these values differently.</param> /// <param name="type">The type of proxy server. The value of proxyType should be set to one of the values specified in NSURLProtectionSpace Proxy Types.</param> /// <param name="realm">A string indicating a protocol specific subdivision of the host. realm may be nil if there is no specified realm or if the protocol doesn’t support realms.</param> /// <param name="authenticationMethod">The type of authentication to use. authenticationMethod should be set to one of the values in NSURLProtectionSpace Authentication Methods or nil to use the default, NSURLAuthenticationMethodDefault.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [IgnoreParameter("NAME_YOUR_PARAMS")] public NSURLProtectionSpace(string proxyHost, int port, [Optional] string type, [Optional] string realm, [Optional] string authenticationMethod, bool NAME_YOUR_PARAMS = false) { } /// <summary> /// The authentication method used by the receiver. (read-only) /// </summary> [iOSVersion(2)] [Export("authenticationMethod")] [Optional] public string AuthenticationMethod { get; private set; } /// <summary> /// The acceptable certificate-issuing authorities for client certificate authentication. (read-only) /// </summary> [iOSVersion(3)] [Export("distinguishedNames")] public AnyObject[] DistinguishedNames { get; private set; } /// <summary> /// The receiver’s host. (read-only) /// </summary> [iOSVersion(2)] [Export("host")] public string Host { get; private set; } /// <summary> /// The receiver’s port. (read-only) /// </summary> [iOSVersion(2)] [Export("port")] public int Port { get; private set; } /// <summary> /// The receiver’s protocol. (read-only) /// </summary> [iOSVersion(2)] [Export("`protocol`")] [Optional] public string protocol { get; private set; } /// <summary> /// The receiver&#39;s proxy type. (read-only) /// </summary> [iOSVersion(2)] [Export("proxyType")] [Optional] public string ProxyType { get; private set; } /// <summary> /// The receiver’s authentication realm (read-only) /// </summary> [iOSVersion(2)] [Export("realm")] [Optional] public string Realm { get; private set; } /// <summary> /// A boolean value that indicates whether the credentials for the protection space can be sent securely. (read-only) /// </summary> [iOSVersion(2)] [Export("receivesCredentialSecurely")] public bool ReceivesCredentialSecurely { get; private set; } /// <summary> /// A representation of the server’s SSL transaction state. (read-only) /// </summary> [iOSVersion(3)] [Export("serverTrust")] [Optional] public SecTrust ServerTrust { get; private set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSURLProtocol.cs b/CocoaSharp/Foundation/NSURLProtocol.cs
index 86e947f5..f04536cf 100644
--- a/CocoaSharp/Foundation/NSURLProtocol.cs
+++ b/CocoaSharp/Foundation/NSURLProtocol.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSURLProtocol is an abstract class that provides the basic structure for performing protocol-specific loading of URL data. Concrete subclasses handle the specifics associated with one or more protocols or URL schemes. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSURLProtocol_Class/index.html#//apple_ref/occ/cl/NSURLProtocol"/> [iOSVersion(2)] public class NSURLProtocol : NSObject//, AnyObject, NSObjectProtocol { /// <summary> /// Initializes an NSURLProtocol object. /// </summary> /// <param name="request">The URL request for the URL protocol object. This request is retained.</param> /// <param name="cachedResponse">A cached response for the request; may be nil if there is no existing cached response for the request.</param> /// <param name="client">An object that provides an implementation of the NSURLProtocolClient protocol that the receiver uses to communicate with the URL loading system. This client object is retained.</param> [iOSVersion(2)] public NSURLProtocol(NSURLRequest request, NSCachedURLResponse cachedResponse, NSURLProtocolClient client) { } /// <summary> /// Attempts to register a subclass of NSURLProtocol, making it visible to the URL loading system. /// </summary> /// <param name="protocolClass">The subclass of NSURLProtocol to register.</param> [iOSVersion(2)] [Export("registerClass")] public static bool RegisterClass(AnyClass protocolClass) { return default(bool); } /// <summary> /// Unregisters the specified subclass of NSURLProtocol. /// </summary> /// <param name="protocolClass">The subclass of NSURLProtocol to unregister.</param> [iOSVersion(2)] [Export("unregisterClass")] public static void UnregisterClass(AnyClass protocolClass) { } /// <summary> /// Returns the property associated with the specified key in the specified request. /// </summary> /// <param name="key">The key of the desired property.</param> /// <param name="inRequest">The request whose properties are to be queried.</param> [iOSVersion(2)] [Export("propertyForKey")] public static AnyObject PropertyForKey(string key, NSURLRequest inRequest) { return default(AnyObject); } /// <summary> /// Sets the property associated with the specified key in the specified request. /// </summary> /// <param name="value">The value to set for the specified property.</param> /// <param name="forKey">The key for the specified property.</param> /// <param name="inRequest">The request for which to create the property.</param> [iOSVersion(2)] [Export("setProperty")] public static void SetProperty(AnyObject value, string forKey, NSMutableURLRequest inRequest) { } /// <summary> /// Removes the property associated with the specified key in the specified request. /// </summary> /// <param name="key">The key whose value should be removed.</param> /// <param name="inRequest">The request from which to remove the property value.</param> [iOSVersion(2)] [Export("removePropertyForKey")] public static void RemovePropertyForKey(string key, NSMutableURLRequest inRequest) { } /// <summary> /// Returns whether the protocol subclass can handle the specified request. /// </summary> /// <param name="request">The request to be handled.</param> [iOSVersion(2)] [Export("canInitWithRequest")] public static bool CanInitWithRequest(NSURLRequest request) { return default(bool); } /// <summary> /// Returns a canonical version of the specified request. /// </summary> /// <param name="request">The request whose canonical version is desired.</param> [iOSVersion(2)] [Export("canonicalRequestForRequest")] public static NSURLRequest CanonicalRequestForRequest(NSURLRequest request) { return default(NSURLRequest); } /// <summary> /// Returns whether two requests are equivalent for cache purposes. /// </summary> /// <param name="aRequest">The request to compare with bRequest.</param> /// <param name="toRequest">The request to compare with aRequest.</param> [iOSVersion(2)] [Export("requestIsCacheEquivalent")] public static bool RequestIsCacheEquivalent(NSURLRequest aRequest, NSURLRequest toRequest) { return default(bool); } /// <summary> /// Starts protocol-specific loading of the request. /// </summary> [iOSVersion(2)] [Export("startLoading")] public void StartLoading() { } /// <summary> /// Stops protocol-specific loading of the request. /// </summary> [iOSVersion(2)] [Export("stopLoading")] public void StopLoading() { } /// <summary> /// The receiver’s cached response. (read-only) /// </summary> [iOSVersion(2)] [Export("cachedResponse")] public NSCachedURLResponse CachedResponse { get; private set; } /// <summary> /// The object the receiver uses to communicate with the URL loading system. (read-only) /// </summary> [iOSVersion(2)] [Export("client")] public NSURLProtocolClient Client { get; private set; } /// <summary> /// The receiver’s request. (read-only) /// </summary> [iOSVersion(2)] [Export("request")] public NSURLRequest Request { get; private set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSURLProtocol is an abstract class that provides the basic structure for performing protocol-specific loading of URL data. Concrete subclasses handle the specifics associated with one or more protocols or URL schemes. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSURLProtocol_Class/index.html#//apple_ref/occ/cl/NSURLProtocol"/> [iOSVersion(2)] [Export("")] public class NSURLProtocol : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSObjectProtocol, Printable { public NSURLProtocol() { } /// <summary> /// Initializes an NSURLProtocol object. /// </summary> /// <param name="request">The URL request for the URL protocol object. This request is retained.</param> /// <param name="cachedResponse">A cached response for the request; may be nil if there is no existing cached response for the request.</param> /// <param name="client">An object that provides an implementation of the NSURLProtocolClient protocol that the receiver uses to communicate with the URL loading system. This client object is retained.</param> [iOSVersion(2)] public NSURLProtocol(NSURLRequest request, [Optional] NSCachedURLResponse cachedResponse, [Optional] NSURLProtocolClient client) { } /// <summary> /// Attempts to register a subclass of NSURLProtocol, making it visible to the URL loading system. /// </summary> /// <param name="protocolClass">The subclass of NSURLProtocol to register.</param> [iOSVersion(2)] [Export("registerClass")] public static bool RegisterClass(AnyClass protocolClass) { return default(bool); } /// <summary> /// Unregisters the specified subclass of NSURLProtocol. /// </summary> /// <param name="protocolClass">The subclass of NSURLProtocol to unregister.</param> [iOSVersion(2)] [Export("unregisterClass")] public static void UnregisterClass(AnyClass protocolClass) { } /// <summary> /// Returns the property associated with the specified key in the specified request. /// </summary> /// <param name="key">The key of the desired property.</param> /// <param name="inRequest">The request whose properties are to be queried.</param> [iOSVersion(2)] [Export("propertyForKey")] [return:Optional] public static AnyObject PropertyForKey(string key, NSURLRequest inRequest) { return default(AnyObject); } /// <summary> /// Sets the property associated with the specified key in the specified request. /// </summary> /// <param name="value">The value to set for the specified property.</param> /// <param name="forKey">The key for the specified property.</param> /// <param name="inRequest">The request for which to create the property.</param> [iOSVersion(2)] [Export("setProperty")] public static void SetProperty(AnyObject value, string forKey, NSMutableURLRequest inRequest) { } /// <summary> /// Removes the property associated with the specified key in the specified request. /// </summary> /// <param name="key">The key whose value should be removed.</param> /// <param name="inRequest">The request from which to remove the property value.</param> [iOSVersion(2)] [Export("removePropertyForKey")] public static void RemovePropertyForKey(string key, NSMutableURLRequest inRequest) { } /// <summary> /// Returns whether the protocol subclass can handle the specified request. /// </summary> /// <param name="request">The request to be handled.</param> [iOSVersion(2)] [Export("canInitWithRequest")] public static bool CanInitWithRequest(NSURLRequest request) { return default(bool); } /// <summary> /// Returns a canonical version of the specified request. /// </summary> /// <param name="request">The request whose canonical version is desired.</param> [iOSVersion(2)] [Export("canonicalRequestForRequest")] public static NSURLRequest CanonicalRequestForRequest(NSURLRequest request) { return default(NSURLRequest); } /// <summary> /// Returns whether two requests are equivalent for cache purposes. /// </summary> /// <param name="aRequest">The request to compare with bRequest.</param> /// <param name="toRequest">The request to compare with aRequest.</param> [iOSVersion(2)] [Export("requestIsCacheEquivalent")] public static bool RequestIsCacheEquivalent(NSURLRequest aRequest, NSURLRequest toRequest) { return default(bool); } /// <summary> /// Starts protocol-specific loading of the request. /// </summary> [iOSVersion(2)] [Export("startLoading")] public virtual void StartLoading() { } /// <summary> /// Stops protocol-specific loading of the request. /// </summary> [iOSVersion(2)] [Export("stopLoading")] public virtual void StopLoading() { } /// <summary> /// The receiver’s cached response. (read-only) /// </summary> [iOSVersion(2)] [Export("cachedResponse")] [Optional] public NSCachedURLResponse CachedResponse { get; private set; } /// <summary> /// The object the receiver uses to communicate with the URL loading system. (read-only) /// </summary> [iOSVersion(2)] [Export("client")] [Optional] public NSURLProtocolClient Client { get; private set; } /// <summary> /// The receiver’s request. (read-only) /// </summary> [iOSVersion(2)] [Export("request")] public NSURLRequest Request { get; private set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSURLQueryItem.cs b/CocoaSharp/Foundation/NSURLQueryItem.cs
new file mode 100644
index 00000000..d46b18fb
--- /dev/null
+++ b/CocoaSharp/Foundation/NSURLQueryItem.cs
@@ -0,0 +1 @@
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// An NSURLQueryItem object represents a single name/value pair for an item in the query portion of a URL. You use query items with the queryItems property of an NSURLComponents object. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSURLQueryItem_Class/index.html#//apple_ref/occ/cl/NSURLQueryItem"/> [iOSVersion(8)] [Export("")] public class NSURLQueryItem : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSObjectProtocol, NSSecureCoding, Printable { public NSURLQueryItem() { } /// <summary> /// Initializes a newly allocated query item with the specified name and value. /// </summary> /// <param name="name">The name of the query item. For example, in the URL http://www.apple.com/search/?q=iPad, the name parameter is q.</param> /// <param name="value">The value for the query item. For example, in the URL http://www.apple.com/search/?q=iPad, the value parameter is iPad.</param> [iOSVersion(8)] public NSURLQueryItem(string name, string value) { } /// <summary> /// The name of the query item. (read-only) /// </summary> [iOSVersion(8)] [Export("name")] public string Name { get; private set; } /// <summary> /// The value for the query item. (read-only) /// </summary> [iOSVersion(8)] [Export("value")] [Optional] public string Value { get; private set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSURLRequest.cs b/CocoaSharp/Foundation/NSURLRequest.cs
index 5f5d29d9..9f3c5886 100644
--- a/CocoaSharp/Foundation/NSURLRequest.cs
+++ b/CocoaSharp/Foundation/NSURLRequest.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSURLRequest objects represent a URL load request in a manner independent of protocol and URL scheme. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSURLRequest_Class/index.html#//apple_ref/occ/cl/NSURLRequest"/> [iOSVersion(2)] public class NSURLRequest : NSObject//, AnyObject, NSCoding, NSCopying, NSMutableCopying, NSObjectProtocol, NSSecureCoding { /// <summary> /// Returns a URL request for a specified URL with default cache policy and timeout value. /// </summary> /// <param name="URL">The URL for the request.</param> [iOSVersion(2)] [Export("convenience init")] public NSURLRequest(NSURL URL) { } /// <summary> /// Returns an initialized URL request with specified values. /// </summary> /// <param name="URL">The URL for the request.</param> /// <param name="cachePolicy">The cache policy for the request.</param> /// <param name="timeoutInterval">The timeout interval for the request, in seconds.</param> [iOSVersion(2)] public NSURLRequest(NSURL URL, NSURLRequestCachePolicy cachePolicy, NSTimeInterval timeoutInterval) { } /// <summary> /// Returns the value of the specified HTTP header field. /// </summary> /// <param name="field">The name of the header field whose value is to be returned. In keeping with the HTTP RFC, HTTP header field names are case-insensitive.</param> [iOSVersion(2)] [Export("valueForHTTPHeaderField")] public string ValueForHTTPHeaderField(string field) { return default(string); } /// <summary> /// The receiver’s cache policy. (read-only) /// </summary> [iOSVersion(2)] [Export("cachePolicy")] public NSURLRequestCachePolicy CachePolicy { get; private set; } /// <summary> /// A boolean value that indicates whether the request should continue transmitting data before receiving a response from an earlier transmission. /// </summary> [iOSVersion(4)] public bool HTTPShouldUsePipelining { get; private set; } /// <summary> /// The main document URL associated with the request. (read-only) /// </summary> [iOSVersion(2)] [Export("mainDocumentURL")] public NSURL MainDocumentURL { get; private set; } /// <summary> /// The receiver’s timeout interval, in seconds. (read-only) /// </summary> [iOSVersion(2)] [Export("timeoutInterval")] public NSTimeInterval TimeoutInterval { get; private set; } /// <summary> /// The network service type of the request. (read-only) /// </summary> [iOSVersion(4)] [Export("networkServiceType")] public NSURLRequestNetworkServiceType NetworkServiceType { get; private set; } /// <summary> /// The request's URL. (read-only) /// </summary> [iOSVersion(2)] public NSURL URL { get; private set; } /// <summary> /// All of the receiver’s HTTP header fields. (read-only) /// </summary> [iOSVersion(2)] [Export("allHTTPHeaderFields")] public Dictionary<NSObject, AnyObject> AllHTTPHeaderFields { get; private set; } /// <summary> /// The receiver’s HTTP body data. (read-only) /// </summary> [iOSVersion(2)] public NSData HTTPBody { get; private set; } /// <summary> /// The receiver’s HTTP body stream. (read-only) /// </summary> [iOSVersion(2)] public NSInputStream HTTPBodyStream { get; private set; } /// <summary> /// The receiver’s HTTP request method. (read-only) /// </summary> [iOSVersion(2)] public string HTTPMethod { get; private set; } /// <summary> /// A boolean value that indicates whether the default cookie handling will be used for this request. (read-only) /// </summary> [iOSVersion(2)] public bool HTTPShouldHandleCookies { get; private set; } /// <summary> /// A boolean value that indicates whether the request is allowed to use the cellular radio (if present). (read-only) /// </summary> [iOSVersion(6)] [Export("allowsCellularAccess")] public bool AllowsCellularAccess { get; private set; } } /// <summary> /// These constants are used to specify interaction with the cached responses. /// </summary> public enum NSURLRequestCachePolicy { /// <summary> /// Specifies that the caching logic defined in the protocol implementation, if any, is used for a particular URL load request. This is the default policy for URL load requests. This policy is described further in the discussion below. /// </summary> [iOSVersion(2)] UseProtocolCachePolicy, /// <summary> /// Specifies that the data for the URL load should be loaded from the originating source. No existing cache data should be used to satisfy a URL load request. /// </summary> [iOSVersion(2)] ReloadIgnoringLocalCacheData, /// <summary> /// /// </summary> ReloadIgnoringLocalAndRemoteCacheData, /// <summary> /// Specifies that the existing cached data should be used to satisfy the request, regardless of its age or expiration date. If there is no existing data in the cache corresponding the request, the data is loaded from the originating source. /// </summary> [iOSVersion(2)] ReturnCacheDataElseLoad, /// <summary> /// Specifies that the existing cache data should be used to satisfy a request, regardless of its age or expiration date. If there is no existing data in the cache corresponding to a URL load request, no attempt is made to load the data from the originating source, and the load is considered to have failed. This constant specifies a behavior that is similar to an “offline” mode. /// </summary> [iOSVersion(2)] ReturnCacheDataDontLoad, /// <summary> /// /// </summary> ReloadRevalidatingCacheData, } /// <summary> /// These constants are used to specify the network service type of a request. /// </summary> [iOSVersion(4)] public enum NSURLRequestNetworkServiceType { /// <summary> /// Specifies standard network traffic. Most connections should be made using this service type. /// </summary> [iOSVersion(4)] NetworkServiceTypeDefault, /// <summary> /// Specifies that the request is for VoIP traffic. /// With the VoIP service type, the kernel continues to listen for incoming traffic while your app is in the background, then wakes up your app whenever new data arrives. This should be used only for connections that are used to communicate with a VoIP service. /// </summary> [iOSVersion(4)] NetworkServiceTypeVoIP, /// <summary> /// Specifies that the request is for video traffic. /// </summary> [iOSVersion(5)] NetworkServiceTypeVideo, /// <summary> /// Specifies that the request is for background traffic. /// You should specify this type if your app is performing a download that was not requested by the user—for example, prefetching content so that it will be available when the user chooses to view it. /// </summary> [iOSVersion(5)] NetworkServiceTypeBackground, /// <summary> /// Specifies that the request is for voice traffic. /// </summary> [iOSVersion(5)] NetworkServiceTypeVoice, } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSURLRequest objects represent a URL load request in a manner independent of protocol and URL scheme. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSURLRequest_Class/index.html#//apple_ref/occ/cl/NSURLRequest"/> [iOSVersion(2)] [Export("")] public class NSURLRequest : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSMutableCopying, NSObjectProtocol, NSSecureCoding, Printable { public NSURLRequest() { } /// <summary> /// Returns a URL request for a specified URL with default cache policy and timeout value. /// </summary> /// <param name="URL">The URL for the request.</param> [iOSVersion(2)] [Export("convenience init")] public NSURLRequest(NSURL URL) { } /// <summary> /// Returns an initialized URL request with specified values. /// </summary> /// <param name="URL">The URL for the request.</param> /// <param name="cachePolicy">The cache policy for the request.</param> /// <param name="timeoutInterval">The timeout interval for the request, in seconds.</param> [iOSVersion(2)] public NSURLRequest(NSURL URL, NSURLRequestCachePolicy cachePolicy, NSTimeInterval timeoutInterval) { } /// <summary> /// Returns the value of the specified HTTP header field. /// </summary> /// <param name="field">The name of the header field whose value is to be returned. In keeping with the HTTP RFC, HTTP header field names are case-insensitive.</param> [iOSVersion(2)] [Export("valueForHTTPHeaderField")] [return:Optional] public virtual string ValueForHTTPHeaderField(string field) { return default(string); } /// <summary> /// The receiver’s cache policy. (read-only) /// </summary> [iOSVersion(2)] [Export("cachePolicy")] public NSURLRequestCachePolicy CachePolicy { get; private set; } /// <summary> /// A boolean value that indicates whether the request should continue transmitting data before receiving a response from an earlier transmission. /// </summary> [iOSVersion(4)] public bool HTTPShouldUsePipelining { get; private set; } /// <summary> /// The main document URL associated with the request. (read-only) /// </summary> [iOSVersion(2)] [Export("mainDocumentURL")] [Optional] public NSURL MainDocumentURL { get; private set; } /// <summary> /// The receiver’s timeout interval, in seconds. (read-only) /// </summary> [iOSVersion(2)] [Export("timeoutInterval")] public NSTimeInterval TimeoutInterval { get; private set; } /// <summary> /// The network service type of the request. (read-only) /// </summary> [iOSVersion(4)] [Export("networkServiceType")] public NSURLRequestNetworkServiceType NetworkServiceType { get; private set; } /// <summary> /// The request&#39;s URL. (read-only) /// </summary> [iOSVersion(2)] public NSURL URL { get; private set; } /// <summary> /// All of the receiver’s HTTP header fields. (read-only) /// </summary> [iOSVersion(2)] [Export("allHTTPHeaderFields")] public Dictionary<NSObject, AnyObject> AllHTTPHeaderFields { get; private set; } /// <summary> /// The receiver’s HTTP body data. (read-only) /// </summary> [iOSVersion(2)] [Optional] public NSData HTTPBody { get; private set; } /// <summary> /// The receiver’s HTTP body stream. (read-only) /// </summary> [iOSVersion(2)] [Optional] public NSInputStream HTTPBodyStream { get; private set; } /// <summary> /// The receiver’s HTTP request method. (read-only) /// </summary> [iOSVersion(2)] [Optional] public string HTTPMethod { get; private set; } /// <summary> /// A boolean value that indicates whether the default cookie handling will be used for this request. (read-only) /// </summary> [iOSVersion(2)] public bool HTTPShouldHandleCookies { get; private set; } /// <summary> /// A boolean value that indicates whether the request is allowed to use the cellular radio (if present). (read-only) /// </summary> [iOSVersion(6)] [Export("allowsCellularAccess")] public bool AllowsCellularAccess { get; private set; } } /// <summary> /// These constants are used to specify interaction with the cached responses. /// </summary> public enum NSURLRequestCachePolicy { /// <summary> /// Specifies that the caching logic defined in the protocol implementation, if any, is used for a particular URL load request. This is the default policy for URL load requests. This policy is described further in the discussion below. /// </summary> [iOSVersion(2)] UseProtocolCachePolicy, /// <summary> /// Specifies that the data for the URL load should be loaded from the originating source. No existing cache data should be used to satisfy a URL load request. /// </summary> [iOSVersion(2)] ReloadIgnoringLocalCacheData, /// <summary> /// /// </summary> ReloadIgnoringLocalAndRemoteCacheData, /// <summary> /// Specifies that the existing cached data should be used to satisfy the request, regardless of its age or expiration date. If there is no existing data in the cache corresponding the request, the data is loaded from the originating source. /// </summary> [iOSVersion(2)] ReturnCacheDataElseLoad, /// <summary> /// Specifies that the existing cache data should be used to satisfy a request, regardless of its age or expiration date. If there is no existing data in the cache corresponding to a URL load request, no attempt is made to load the data from the originating source, and the load is considered to have failed. This constant specifies a behavior that is similar to an “offline” mode. /// </summary> [iOSVersion(2)] ReturnCacheDataDontLoad, /// <summary> /// /// </summary> ReloadRevalidatingCacheData, } /// <summary> /// These constants are used to specify the network service type of a request. /// </summary> public enum NSURLRequestNetworkServiceType { /// <summary> /// Specifies standard network traffic. Most connections should be made using this service type. /// </summary> [iOSVersion(4)] NetworkServiceTypeDefault, /// <summary> /// Specifies that the request is for VoIP traffic. /// With the VoIP service type, the kernel continues to listen for incoming traffic while your app is in the background, then wakes up your app whenever new data arrives. This should be used only for connections that are used to communicate with a VoIP service. /// </summary> [iOSVersion(4)] NetworkServiceTypeVoIP, /// <summary> /// Specifies that the request is for video traffic. /// </summary> [iOSVersion(5)] NetworkServiceTypeVideo, /// <summary> /// Specifies that the request is for background traffic. /// You should specify this type if your app is performing a download that was not requested by the user—for example, prefetching content so that it will be available when the user chooses to view it. /// </summary> [iOSVersion(5)] NetworkServiceTypeBackground, /// <summary> /// Specifies that the request is for voice traffic. /// </summary> [iOSVersion(5)] NetworkServiceTypeVoice, } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSURLResponse.cs b/CocoaSharp/Foundation/NSURLResponse.cs
index c29a659a..2e1b0da3 100644
--- a/CocoaSharp/Foundation/NSURLResponse.cs
+++ b/CocoaSharp/Foundation/NSURLResponse.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSURLResponse class encapsulates the metadata associated with the response to a a URL load request in a manner independent of protocol and URL scheme. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSURLResponse_Class/index.html#//apple_ref/occ/cl/NSURLResponse"/> [iOSVersion(2)] public class NSURLResponse : NSObject//, AnyObject, NSCoding, NSCopying, NSObjectProtocol, NSSecureCoding { /// <summary> /// Returns an initialized NSURLResponse object with the URL, MIME type, length, and text encoding set to given values. /// </summary> /// <param name="URL">The URL for the new object.</param> /// <param name="MIMEType">The MIME type.</param> /// <param name="expectedContentLength">The expected content length.This value should be –1 if the expected length is undetermined</param> /// <param name="textEncodingName">The text encoding name. This value may be nil.</param> [iOSVersion(2)] public NSURLResponse(NSURL URL, string MIMEType, int expectedContentLength, string textEncodingName) { } /// <summary> /// The expected length of the response’s content. (read-only) /// </summary> [iOSVersion(2)] [Export("expectedContentLength")] public Int64 ExpectedContentLength { get; private set; } /// <summary> /// A suggested filename for the response data. (read-only) /// </summary> [iOSVersion(2)] [Export("suggestedFilename")] public string SuggestedFilename { get; private set; } /// <summary> /// The MIME type of the response. (read-only) /// </summary> [iOSVersion(2)] public string MIMEType { get; private set; } /// <summary> /// The name of the text encoding provided by the response’s originating source. (read-only) /// </summary> [iOSVersion(2)] [Export("textEncodingName")] public string TextEncodingName { get; private set; } /// <summary> /// The URL for the response. (read-only) /// </summary> [iOSVersion(2)] public NSURL URL { get; private set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSURLResponse class encapsulates the metadata associated with the response to a a URL load request in a manner independent of protocol and URL scheme. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSURLResponse_Class/index.html#//apple_ref/occ/cl/NSURLResponse"/> [iOSVersion(2)] [Export("")] public class NSURLResponse : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSObjectProtocol, NSSecureCoding, Printable { public NSURLResponse() { } /// <summary> /// Returns an initialized NSURLResponse object with the URL, MIME type, length, and text encoding set to given values. /// </summary> /// <param name="URL">The URL for the new object.</param> /// <param name="MIMEType">The MIME type.</param> /// <param name="expectedContentLength">The expected content length.This value should be –1 if the expected length is undetermined</param> /// <param name="textEncodingName">The text encoding name. This value may be nil.</param> [iOSVersion(2)] public NSURLResponse(NSURL URL, [Optional] string MIMEType, int expectedContentLength, [Optional] string textEncodingName) { } /// <summary> /// The expected length of the response’s content. (read-only) /// </summary> [iOSVersion(2)] [Export("expectedContentLength")] public Int64 ExpectedContentLength { get; private set; } /// <summary> /// A suggested filename for the response data. (read-only) /// </summary> [iOSVersion(2)] [Export("suggestedFilename")] [Optional] public string SuggestedFilename { get; private set; } /// <summary> /// The MIME type of the response. (read-only) /// </summary> [iOSVersion(2)] [Optional] public string MIMEType { get; private set; } /// <summary> /// The name of the text encoding provided by the response’s originating source. (read-only) /// </summary> [iOSVersion(2)] [Export("textEncodingName")] [Optional] public string TextEncodingName { get; private set; } /// <summary> /// The URL for the response. (read-only) /// </summary> [iOSVersion(2)] [Optional] public NSURL URL { get; private set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSURLSession.cs b/CocoaSharp/Foundation/NSURLSession.cs
index bc0eb966..40e9051d 100644
--- a/CocoaSharp/Foundation/NSURLSession.cs
+++ b/CocoaSharp/Foundation/NSURLSession.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSURLSession class and related classes provide an API for downloading content via HTTP. This API provides a rich set of delegate methods for supporting authentication and gives your app the ability to perform background downloads when your app is not running or, in iOS, while your app is suspended. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSURLSession_class/index.html#//apple_ref/occ/cl/NSURLSession"/> [iOSVersion(7)] public class NSURLSession : NSObject//, AnyObject, NSObjectProtocol { /// <summary> /// Creates a session with the specified session configuration. /// </summary> /// <param name="configuration">A configuration object that specifies certain behaviors, such as caching policies, timeouts, proxies, pipelining, TLS versions to support, cookie policies, credential storage, and so on. For more information, see NSURLSessionConfiguration Class Reference.</param> [iOSVersion(7)] public NSURLSession(NSURLSessionConfiguration configuration) { } /// <summary> /// Creates a session with the specified session configuration, delegate, and operation queue. /// </summary> /// <param name="configuration">A configuration object that specifies certain behaviors, such as caching policies, timeouts, proxies, pipelining, TLS versions to support, cookie policies, and credential storage. /// Because the session copies the configuration object, it is safe to modify the configuration object and use it to construct additional sessions. /// For more information, see NSURLSessionConfiguration Class Reference.</param> /// <param name="@delegate">A session delegate object that handles requests for authentication and other session-related events. /// This delegate object is responsible for handling authentication challenges, for making caching decisions, and for handling other session-related events. If nil, the class uses a system-provided delegate and should be used only with methods that take completion handlers. /// Important /// The session object keeps a strong reference to the delegate until your app explicitly invalidates the session. If you do not invalidate the session by calling the invalidateAndCancel or resetWithCompletionHandler: method, your app leaks memory.</param> /// <param name="delegateQueue">A queue for scheduling the delegate calls and completion handlers. If nil, the session creates a serial operation queue for performing all delegate method calls and completion handler calls.</param> [iOSVersion(7)] public NSURLSession(NSURLSessionConfiguration configuration, NSURLSessionDelegate @delegate, NSOperationQueue delegateQueue) { } /// <summary> /// Returns a shared singleton session object. /// </summary> [iOSVersion(7)] [Export("sharedSession")] public static NSURLSession SharedSession() { return default(NSURLSession); } /// <summary> /// Creates an HTTP GET request for the specified URL. /// </summary> /// <param name="url">The http or https URL to be retrieved.</param> [iOSVersion(7)] [Export("dataTaskWithURL")] public NSURLSessionDataTask DataTaskWithURL(NSURL url) { return default(NSURLSessionDataTask); } /// <summary> /// Creates an HTTP GET request for the specified URL, then calls a handler upon completion. /// </summary> /// <param name="url">The http or https URL to be retrieved.</param> /// <param name="completionHandler">The completion handler to call when the load request is complete. If sent to a session created by calling sessionWithConfiguration:delegate:delegateQueue: with a non-nil value for the delegateQueue parameter, this handler is executed on that delegate queue. /// Unless you have provided a custom delegate, this parameter must not be nil, because there is no other way to retrieve the response data.</param> [iOSVersion(7)] [Export("dataTaskWithURL")] public NSURLSessionDataTask DataTaskWithURL(NSURL url, Action<NSData, NSURLResponse, NSError> completionHandler) { return default(NSURLSessionDataTask); } /// <summary> /// Creates an HTTP request based on the specified URL request object. /// </summary> /// <param name="request">An object that provides request-specific information such as the URL, cache policy, request type, and body data or body stream.</param> [iOSVersion(7)] [Export("dataTaskWithRequest")] public NSURLSessionDataTask DataTaskWithRequest(NSURLRequest request) { return default(NSURLSessionDataTask); } /// <summary> /// Creates an HTTP request for the specified URL request object, and calls a handler upon completion. /// </summary> /// <param name="request">An NSURLRequest object that provides the URL, cache policy, request type, body data or body stream, and so on.</param> /// <param name="completionHandler">The completion handler to call when the load request is complete. This handler is executed on the delegate queue. /// Unless you have provided a custom delegate, this parameter must not be nil, because there is no other way to retrieve the response data.</param> [iOSVersion(7)] [Export("dataTaskWithRequest")] public NSURLSessionDataTask DataTaskWithRequest(NSURLRequest request, Action<NSData, NSURLResponse, NSError> completionHandler) { return default(NSURLSessionDataTask); } /// <summary> /// Creates a download task for the specified URL and saves the results to a file. /// </summary> /// <param name="url">An NSURL object that provides the URL to download.</param> [iOSVersion(7)] [Export("downloadTaskWithURL")] public NSURLSessionDownloadTask DownloadTaskWithURL(NSURL url) { return default(NSURLSessionDownloadTask); } /// <summary> /// Creates a download task for the specified URL, saves the results to a file, and calls a handler upon completion. /// </summary> /// <param name="url">An NSURL object that provides the URL to download.</param> /// <param name="completionHandler">The completion handler to call when the load request is complete. This handler is executed on the delegate queue. /// Unless you have provided a custom delegate, this parameter must not be nil, because there is no other way to retrieve the response data.</param> [iOSVersion(7)] [Export("downloadTaskWithURL")] public NSURLSessionDownloadTask DownloadTaskWithURL(NSURL url, Action<NSURL, NSURLResponse, NSError> completionHandler) { return default(NSURLSessionDownloadTask); } /// <summary> /// Creates a download task for the specified URL request and saves the results to a file. /// </summary> /// <param name="request">An NSURLRequest object that provides the URL, cache policy, request type, body data or body stream, and so on.</param> [iOSVersion(7)] [Export("downloadTaskWithRequest")] public NSURLSessionDownloadTask DownloadTaskWithRequest(NSURLRequest request) { return default(NSURLSessionDownloadTask); } /// <summary> /// Creates a download task for the specified URL request, saves the results to a file, and calls a handler upon completion. /// </summary> /// <param name="request">An NSURLRequest object that provides the URL, cache policy, request type, body data or body stream, and so on.</param> /// <param name="completionHandler">The completion handler to call when the load request is complete. This handler is executed on the delegate queue. /// Unless you have provided a custom delegate, this parameter must not be nil, because there is no other way to retrieve the response data.</param> [iOSVersion(7)] [Export("downloadTaskWithRequest")] public NSURLSessionDownloadTask DownloadTaskWithRequest(NSURLRequest request, Action<NSURL, NSURLResponse, NSError> completionHandler) { return default(NSURLSessionDownloadTask); } /// <summary> /// Creates a download task to resume a previously canceled or failed download. /// </summary> /// <param name="resumeData">A data object that provides the data necessary to resume a download.</param> [iOSVersion(7)] [Export("downloadTaskWithResumeData")] public NSURLSessionDownloadTask DownloadTaskWithResumeData(NSData resumeData) { return default(NSURLSessionDownloadTask); } /// <summary> /// Creates a download task to resume a previously canceled or failed download and calls a handler upon completion. /// </summary> /// <param name="resumeData">A data object that provides the data necessary to resume the download.</param> /// <param name="completionHandler">The completion handler to call when the load request is complete. This handler is executed on the delegate queue. /// Unless you have provided a custom delegate, this parameter must not be nil, because there is no other way to retrieve the response data.</param> [iOSVersion(7)] [Export("downloadTaskWithResumeData")] public NSURLSessionDownloadTask DownloadTaskWithResumeData(NSData resumeData, Action<NSURL, NSURLResponse, NSError> completionHandler) { return default(NSURLSessionDownloadTask); } /// <summary> /// Creates an HTTP request for the specified URL request object and uploads the provided data object. /// </summary> /// <param name="request">An NSURLRequest object that provides the URL, cache policy, request type, and so on. The body stream and body data in this request object are ignored.</param> /// <param name="fromData">The body data for the request.</param> [iOSVersion(7)] [Export("uploadTaskWithRequest")] public NSURLSessionUploadTask UploadTaskWithRequest(NSURLRequest request, NSData fromData) { return default(NSURLSessionUploadTask); } /// <summary> /// Creates an HTTP request for the specified URL request object, uploads the provided data object, and calls a handler upon completion. /// </summary> /// <param name="request">An NSURLRequest object that provides the URL, cache policy, request type, and so on. The body stream and body data in this request object are ignored.</param> /// <param name="fromData">The body data for the request.</param> /// <param name="completionHandler">The completion handler to call when the load request is complete. This handler is executed on the delegate queue. /// Unless you have provided a custom delegate, this parameter should not be nil, because there is no other way to retrieve the response data. If you do not need the response data, use key-value observing to watch for changes to the task’s status to determine when it completes.</param> [iOSVersion(7)] [Export("uploadTaskWithRequest")] public NSURLSessionUploadTask UploadTaskWithRequest(NSURLRequest request, NSData fromData, Action<NSData, NSURLResponse, NSError> completionHandler) { return default(NSURLSessionUploadTask); } /// <summary> /// Creates an HTTP request for uploading the specified file URL. /// </summary> /// <param name="request">An NSURLRequest object that provides the URL, cache policy, request type, and so on. The body stream and body data in this request object are ignored.</param> /// <param name="fromFile">The URL of the file to upload.</param> [iOSVersion(7)] [Export("uploadTaskWithRequest")] public NSURLSessionUploadTask UploadTaskWithRequest(NSURLRequest request, NSURL fromFile) { return default(NSURLSessionUploadTask); } /// <summary> /// Creates an HTTP request for uploading the specified file URL, then calls a handler upon completion. /// </summary> /// <param name="request">An NSURLRequest object that provides the URL, cache policy, request type, and so on. The body stream and body data in this request object are ignored.</param> /// <param name="fromFile">The URL of the file to upload.</param> /// <param name="completionHandler">The completion handler to call when the load request is complete. This handler is executed on the delegate queue. Unless you have provided a custom delegate, this parameter must not be nil, because there is no other way to retrieve the response data.</param> [iOSVersion(7)] [Export("uploadTaskWithRequest")] public NSURLSessionUploadTask UploadTaskWithRequest(NSURLRequest request, NSURL fromFile, Action<NSData, NSURLResponse, NSError> completionHandler) { return default(NSURLSessionUploadTask); } /// <summary> /// Creates an HTTP request for uploading data based on the specified URL request. /// </summary> /// <param name="request">An NSURLRequest object that provides the URL, cache policy, request type, and so on. The body stream and body data in this request object are ignored, and NSURLSession calls its delegate’s URLSession:task:needNewBodyStream: method to provide the body data.</param> [iOSVersion(7)] [Export("uploadTaskWithStreamedRequest")] public NSURLSessionUploadTask UploadTaskWithStreamedRequest(NSURLRequest request) { return default(NSURLSessionUploadTask); } /// <summary> /// Invalidates the object, allowing any outstanding tasks to finish. /// </summary> [iOSVersion(7)] [Export("finishTasksAndInvalidate")] public void FinishTasksAndInvalidate() { } /// <summary> /// Ensures that future requests occur on a new socket and that any in-transit download data is flushed to disk. /// </summary> /// <param name="completionHandler">The completion handler to call when the flush operation is complete. This handler is executed on the delegate queue.</param> [iOSVersion(7)] [Export("flushWithCompletionHandler")] public void FlushWithCompletionHandler(Action completionHandler) { } /// <summary> /// Asynchronously calls a completion callback with all outstanding data, upload, and download tasks in a session. /// </summary> /// <param name="completionHandler">The completion handler to call with the list of currently outstanding tasks. This handler is executed on the delegate queue.</param> [iOSVersion(7)] [Export("getTasksWithCompletionHandler")] public void GetTasksWithCompletionHandler(Action<AnyObject[], AnyObject[], AnyObject[]> completionHandler) { } /// <summary> /// Cancels all outstanding tasks and then invalidates the session object. /// </summary> [iOSVersion(7)] [Export("invalidateAndCancel")] public void InvalidateAndCancel() { } /// <summary> /// Resets the session asynchronously. /// </summary> /// <param name="completionHandler">The completion handler to call when the reset operation is complete. This handler is executed on the delegate queue.</param> [iOSVersion(7)] [Export("resetWithCompletionHandler")] public void ResetWithCompletionHandler(Action completionHandler) { } /// <summary> /// A copy of the configuration object for this session. (read-only) /// </summary> [iOSVersion(7)] [Export("configuration")] public NSURLSessionConfiguration Configuration { get; private set; } /// <summary> /// The delegate assigned when this object was created. (read-only) /// </summary> [iOSVersion(7)] [Export("delegate")] public NSURLSessionDelegate Delegate { get; private set; } /// <summary> /// The operation queue provided when this object was created. (read-only) /// </summary> [iOSVersion(7)] [Export("delegateQueue")] public NSOperationQueue DelegateQueue { get; private set; } /// <summary> /// An app-defined descriptive label for the session. /// </summary> [iOSVersion(7)] [Export("sessionDescription")] public string SessionDescription { get; set; } /// <summary> /// Constants that indicate why a background task was cancelled. /// </summary> public int NSURLErrorCancelledReasonUserForceQuitApplication { get; set; } } /// <summary> /// Constants for determining the current state of a task. /// </summary> [iOSVersion(7)] public enum NSURLSessionTaskState { /// <summary> /// The task is currently being serviced by the session. A task in this state is subject to the request and resource timeouts specified in the session configuration object. /// </summary> [iOSVersion(7)] Running, /// <summary> /// The task was suspended by the app. No further processing takes place until it is resumed. A task in this state is not subject to timeouts. /// </summary> [iOSVersion(7)] Suspended, /// <summary> /// The task has received a cancel message. The delegate may or may not have received a URLSession:task:didCompleteWithError: message yet. A task in this state is not subject to timeouts. /// </summary> [iOSVersion(7)] Canceling, /// <summary> /// The task has completed (without being canceled), and the task's delegate receives no further callbacks. If the task completed successfully, the task’s error property is nil. Otherwise, it provides an error object that tells what went wrong. A task in this state is not subject to timeouts. /// </summary> [iOSVersion(7)] Completed, } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSURLSession class and related classes provide an API for downloading content via HTTP. This API provides a rich set of delegate methods for supporting authentication and gives your app the ability to perform background downloads when your app is not running or, in iOS, while your app is suspended. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSURLSession_class/index.html#//apple_ref/occ/cl/NSURLSession"/> [iOSVersion(7)] [Export("")] public class NSURLSession : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSObjectProtocol, Printable { public NSURLSession() { } /// <summary> /// Creates a session with the specified session configuration. /// </summary> /// <param name="configuration">A configuration object that specifies certain behaviors, such as caching policies, timeouts, proxies, pipelining, TLS versions to support, cookie policies, credential storage, and so on. For more information, see NSURLSessionConfiguration Class Reference.</param> [iOSVersion(7)] public NSURLSession(NSURLSessionConfiguration configuration) { } /// <summary> /// Creates a session with the specified session configuration, delegate, and operation queue. /// </summary> /// <param name="configuration">A configuration object that specifies certain behaviors, such as caching policies, timeouts, proxies, pipelining, TLS versions to support, cookie policies, and credential storage. /// Because the session copies the configuration object, it is safe to modify the configuration object and use it to construct additional sessions. /// For more information, see NSURLSessionConfiguration Class Reference.</param> /// <param name="@delegate">A session delegate object that handles requests for authentication and other session-related events. /// This delegate object is responsible for handling authentication challenges, for making caching decisions, and for handling other session-related events. If nil, the class uses a system-provided delegate and should be used only with methods that take completion handlers. /// Important /// The session object keeps a strong reference to the delegate until your app explicitly invalidates the session. If you do not invalidate the session by calling the invalidateAndCancel or resetWithCompletionHandler: method, your app leaks memory.</param> /// <param name="delegateQueue">A queue for scheduling the delegate calls and completion handlers. If nil, the session creates a serial operation queue for performing all delegate method calls and completion handler calls.</param> [iOSVersion(7)] public NSURLSession([Optional] NSURLSessionConfiguration configuration, [Optional] NSURLSessionDelegate @delegate, [Optional] NSOperationQueue delegateQueue) { } /// <summary> /// Returns a shared singleton session object. /// </summary> [iOSVersion(7)] [Export("sharedSession")] public static NSURLSession SharedSession() { return default(NSURLSession); } /// <summary> /// Creates an HTTP GET request for the specified URL. /// </summary> /// <param name="url">The http or https URL to be retrieved.</param> [iOSVersion(7)] [Export("dataTaskWithURL")] public virtual NSURLSessionDataTask DataTaskWithURL(NSURL url) { return default(NSURLSessionDataTask); } /// <summary> /// Creates an HTTP GET request for the specified URL, then calls a handler upon completion. /// </summary> /// <param name="url">The http or https URL to be retrieved.</param> /// <param name="completionHandler">The completion handler to call when the load request is complete. If sent to a session created by calling sessionWithConfiguration:delegate:delegateQueue: with a non-nil value for the delegateQueue parameter, this handler is executed on that delegate queue. /// Unless you have provided a custom delegate, this parameter must not be nil, because there is no other way to retrieve the response data.</param> [iOSVersion(7)] [Export("dataTaskWithURL")] public virtual NSURLSessionDataTask DataTaskWithURL(NSURL url, Action<NSData, NSURLResponse, NSError> completionHandler) { return default(NSURLSessionDataTask); } /// <summary> /// Creates an HTTP request based on the specified URL request object. /// </summary> /// <param name="request">An object that provides request-specific information such as the URL, cache policy, request type, and body data or body stream.</param> [iOSVersion(7)] [Export("dataTaskWithRequest")] public virtual NSURLSessionDataTask DataTaskWithRequest(NSURLRequest request) { return default(NSURLSessionDataTask); } /// <summary> /// Creates an HTTP request for the specified URL request object, and calls a handler upon completion. /// </summary> /// <param name="request">An NSURLRequest object that provides the URL, cache policy, request type, body data or body stream, and so on.</param> /// <param name="completionHandler">The completion handler to call when the load request is complete. This handler is executed on the delegate queue. /// Unless you have provided a custom delegate, this parameter must not be nil, because there is no other way to retrieve the response data.</param> [iOSVersion(7)] [Export("dataTaskWithRequest")] public virtual NSURLSessionDataTask DataTaskWithRequest(NSURLRequest request, Action<NSData, NSURLResponse, NSError> completionHandler) { return default(NSURLSessionDataTask); } /// <summary> /// Creates a download task for the specified URL and saves the results to a file. /// </summary> /// <param name="url">An NSURL object that provides the URL to download.</param> [iOSVersion(7)] [Export("downloadTaskWithURL")] public virtual NSURLSessionDownloadTask DownloadTaskWithURL(NSURL url) { return default(NSURLSessionDownloadTask); } /// <summary> /// Creates a download task for the specified URL, saves the results to a file, and calls a handler upon completion. /// </summary> /// <param name="url">An NSURL object that provides the URL to download.</param> /// <param name="completionHandler">The completion handler to call when the load request is complete. This handler is executed on the delegate queue. /// Unless you have provided a custom delegate, this parameter must not be nil, because there is no other way to retrieve the response data.</param> [iOSVersion(7)] [Export("downloadTaskWithURL")] public virtual NSURLSessionDownloadTask DownloadTaskWithURL(NSURL url, Action<NSURL, NSURLResponse, NSError> completionHandler) { return default(NSURLSessionDownloadTask); } /// <summary> /// Creates a download task for the specified URL request and saves the results to a file. /// </summary> /// <param name="request">An NSURLRequest object that provides the URL, cache policy, request type, body data or body stream, and so on.</param> [iOSVersion(7)] [Export("downloadTaskWithRequest")] public virtual NSURLSessionDownloadTask DownloadTaskWithRequest(NSURLRequest request) { return default(NSURLSessionDownloadTask); } /// <summary> /// Creates a download task for the specified URL request, saves the results to a file, and calls a handler upon completion. /// </summary> /// <param name="request">An NSURLRequest object that provides the URL, cache policy, request type, body data or body stream, and so on.</param> /// <param name="completionHandler">The completion handler to call when the load request is complete. This handler is executed on the delegate queue. /// Unless you have provided a custom delegate, this parameter must not be nil, because there is no other way to retrieve the response data.</param> [iOSVersion(7)] [Export("downloadTaskWithRequest")] public virtual NSURLSessionDownloadTask DownloadTaskWithRequest(NSURLRequest request, Action<NSURL, NSURLResponse, NSError> completionHandler) { return default(NSURLSessionDownloadTask); } /// <summary> /// Creates a download task to resume a previously canceled or failed download. /// </summary> /// <param name="resumeData">A data object that provides the data necessary to resume a download.</param> [iOSVersion(7)] [Export("downloadTaskWithResumeData")] public virtual NSURLSessionDownloadTask DownloadTaskWithResumeData(NSData resumeData) { return default(NSURLSessionDownloadTask); } /// <summary> /// Creates a download task to resume a previously canceled or failed download and calls a handler upon completion. /// </summary> /// <param name="resumeData">A data object that provides the data necessary to resume the download.</param> /// <param name="completionHandler">The completion handler to call when the load request is complete. This handler is executed on the delegate queue. /// Unless you have provided a custom delegate, this parameter must not be nil, because there is no other way to retrieve the response data.</param> [iOSVersion(7)] [Export("downloadTaskWithResumeData")] public virtual NSURLSessionDownloadTask DownloadTaskWithResumeData(NSData resumeData, Action<NSURL, NSURLResponse, NSError> completionHandler) { return default(NSURLSessionDownloadTask); } /// <summary> /// Creates an HTTP request for the specified URL request object and uploads the provided data object. /// </summary> /// <param name="request">An NSURLRequest object that provides the URL, cache policy, request type, and so on. The body stream and body data in this request object are ignored.</param> /// <param name="fromData">The body data for the request.</param> [iOSVersion(7)] [Export("uploadTaskWithRequest")] public virtual NSURLSessionUploadTask UploadTaskWithRequest(NSURLRequest request, [Optional] NSData fromData) { return default(NSURLSessionUploadTask); } /// <summary> /// Creates an HTTP request for the specified URL request object, uploads the provided data object, and calls a handler upon completion. /// </summary> /// <param name="request">An NSURLRequest object that provides the URL, cache policy, request type, and so on. The body stream and body data in this request object are ignored.</param> /// <param name="fromData">The body data for the request.</param> /// <param name="completionHandler">The completion handler to call when the load request is complete. This handler is executed on the delegate queue. /// Unless you have provided a custom delegate, this parameter should not be nil, because there is no other way to retrieve the response data. If you do not need the response data, use key-value observing to watch for changes to the task’s status to determine when it completes.</param> [iOSVersion(7)] [Export("uploadTaskWithRequest")] public virtual NSURLSessionUploadTask UploadTaskWithRequest(NSURLRequest request, [Optional] NSData fromData, Action<NSData, NSURLResponse, NSError> completionHandler) { return default(NSURLSessionUploadTask); } /// <summary> /// Creates an HTTP request for uploading the specified file URL. /// </summary> /// <param name="request">An NSURLRequest object that provides the URL, cache policy, request type, and so on. The body stream and body data in this request object are ignored.</param> /// <param name="fromFile">The URL of the file to upload.</param> [iOSVersion(7)] [Export("uploadTaskWithRequest")] public virtual NSURLSessionUploadTask UploadTaskWithRequest(NSURLRequest request, NSURL fromFile) { return default(NSURLSessionUploadTask); } /// <summary> /// Creates an HTTP request for uploading the specified file URL, then calls a handler upon completion. /// </summary> /// <param name="request">An NSURLRequest object that provides the URL, cache policy, request type, and so on. The body stream and body data in this request object are ignored.</param> /// <param name="fromFile">The URL of the file to upload.</param> /// <param name="completionHandler">The completion handler to call when the load request is complete. This handler is executed on the delegate queue. Unless you have provided a custom delegate, this parameter must not be nil, because there is no other way to retrieve the response data.</param> [iOSVersion(7)] [Export("uploadTaskWithRequest")] public virtual NSURLSessionUploadTask UploadTaskWithRequest(NSURLRequest request, NSURL fromFile, Action<NSData, NSURLResponse, NSError> completionHandler) { return default(NSURLSessionUploadTask); } /// <summary> /// Creates an HTTP request for uploading data based on the specified URL request. /// </summary> /// <param name="request">An NSURLRequest object that provides the URL, cache policy, request type, and so on. The body stream and body data in this request object are ignored, and NSURLSession calls its delegate’s URLSession:task:needNewBodyStream: method to provide the body data.</param> [iOSVersion(7)] [Export("uploadTaskWithStreamedRequest")] public virtual NSURLSessionUploadTask UploadTaskWithStreamedRequest(NSURLRequest request) { return default(NSURLSessionUploadTask); } /// <summary> /// Invalidates the object, allowing any outstanding tasks to finish. /// </summary> [iOSVersion(7)] [Export("finishTasksAndInvalidate")] public virtual void FinishTasksAndInvalidate() { } /// <summary> /// Ensures that future requests occur on a new socket and that any in-transit download data is flushed to disk. /// </summary> /// <param name="completionHandler">The completion handler to call when the flush operation is complete. This handler is executed on the delegate queue.</param> [iOSVersion(7)] [Export("flushWithCompletionHandler")] public virtual void FlushWithCompletionHandler(Action completionHandler) { } /// <summary> /// Asynchronously calls a completion callback with all outstanding data, upload, and download tasks in a session. /// </summary> /// <param name="completionHandler">The completion handler to call with the list of currently outstanding tasks. This handler is executed on the delegate queue.</param> [iOSVersion(7)] [Export("getTasksWithCompletionHandler")] public virtual void GetTasksWithCompletionHandler(Action<AnyObject[], AnyObject[], AnyObject[]> completionHandler) { } /// <summary> /// Cancels all outstanding tasks and then invalidates the session object. /// </summary> [iOSVersion(7)] [Export("invalidateAndCancel")] public virtual void InvalidateAndCancel() { } /// <summary> /// Resets the session asynchronously. /// </summary> /// <param name="completionHandler">The completion handler to call when the reset operation is complete. This handler is executed on the delegate queue.</param> [iOSVersion(7)] [Export("resetWithCompletionHandler")] public virtual void ResetWithCompletionHandler(Action completionHandler) { } /// <summary> /// A copy of the configuration object for this session. (read-only) /// </summary> [iOSVersion(7)] [Export("configuration")] public NSURLSessionConfiguration Configuration { get; private set; } /// <summary> /// The delegate assigned when this object was created. (read-only) /// </summary> [iOSVersion(7)] [Export("delegate")] [Optional] public NSURLSessionDelegate Delegate { get; private set; } /// <summary> /// The operation queue provided when this object was created. (read-only) /// </summary> [iOSVersion(7)] [Export("delegateQueue")] public NSOperationQueue DelegateQueue { get; private set; } /// <summary> /// An app-defined descriptive label for the session. /// </summary> [iOSVersion(7)] [Export("sessionDescription")] [Optional] public string SessionDescription { get; set; } /// <summary> /// Constants that indicate why a background task was cancelled. /// </summary> public int NSURLErrorCancelledReasonUserForceQuitApplication { get; private set; } } /// <summary> /// Constants for determining the current state of a task. /// </summary> public enum NSURLSessionTaskState { /// <summary> /// The task is currently being serviced by the session. A task in this state is subject to the request and resource timeouts specified in the session configuration object. /// </summary> [iOSVersion(7)] Running, /// <summary> /// The task was suspended by the app. No further processing takes place until it is resumed. A task in this state is not subject to timeouts. /// </summary> [iOSVersion(7)] Suspended, /// <summary> /// The task has received a cancel message. The delegate may or may not have received a URLSession:task:didCompleteWithError: message yet. A task in this state is not subject to timeouts. /// </summary> [iOSVersion(7)] Canceling, /// <summary> /// The task has completed (without being canceled), and the task&#39;s delegate receives no further callbacks. If the task completed successfully, the task’s error property is nil. Otherwise, it provides an error object that tells what went wrong. A task in this state is not subject to timeouts. /// </summary> [iOSVersion(7)] Completed, } /// <summary> /// Constants passed by session or task delegates to the provided continuation block in response to an authentication challenge. /// </summary> public enum NSURLSessionAuthChallengeDisposition { /// <summary> /// Use the specified credential, which may be nil. /// </summary> [iOSVersion(7)] UseCredential, /// <summary> /// Use the default handling for the challenge as though this delegate method were not implemented. The provided credential parameter is ignored. /// </summary> [iOSVersion(7)] PerformDefaultHandling, /// <summary> /// Cancel the entire request. The provided credential parameter is ignored. /// </summary> [iOSVersion(7)] CancelAuthenticationChallenge, /// <summary> /// Reject this challenge and call the authentication delegate method again with the next authentication protection space. The provided credential parameter is ignored. /// </summary> [iOSVersion(7)] RejectProtectionSpace, } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSURLSessionConfiguration.cs b/CocoaSharp/Foundation/NSURLSessionConfiguration.cs
index c748b090..0a32cd61 100644
--- a/CocoaSharp/Foundation/NSURLSessionConfiguration.cs
+++ b/CocoaSharp/Foundation/NSURLSessionConfiguration.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// An NSURLSessionConfiguration object defines the behavior and policies to use when uploading and downloading data using an NSURLSession object. When uploading or downloading data, creating a configuration object is always the first step you must take. You use this object to configure the timeout values, caching policies, connection requirements, and other types of information that you intend to use with your NSURLSession object. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSURLSessionConfiguration_class/index.html#//apple_ref/occ/cl/NSURLSessionConfiguration"/> [iOSVersion(7)] public class NSURLSessionConfiguration : NSObject//, AnyObject, NSCopying, NSObjectProtocol { /// <summary> /// Returns a newly created default session configuration object. /// </summary> [iOSVersion(7)] [Export("defaultSessionConfiguration")] public static NSURLSessionConfiguration DefaultSessionConfiguration() { return default(NSURLSessionConfiguration); } /// <summary> /// Returns a session configuration that uses no persistent storage for caches, cookies, or credentials. /// </summary> [iOSVersion(7)] [Export("ephemeralSessionConfiguration")] public static NSURLSessionConfiguration EphemeralSessionConfiguration() { return default(NSURLSessionConfiguration); } /// <summary> /// Returns a session configuration object that allows HTTP and HTTPS uploads or downloads to be performed in the background. /// </summary> /// <param name="identifier">The unique identifier for the configuration object. This parameter must not be nil or an empty string.</param> [iOSVersion(8)] [Export("backgroundSessionConfigurationWithIdentifier")] public static NSURLSessionConfiguration BackgroundSessionConfigurationWithIdentifier(string identifier) { return default(NSURLSessionConfiguration); } /// <summary> /// The background session identifier of the configuration object. (read-only) /// </summary> [iOSVersion(7)] [Export("identifier")] public string Identifier { get; private set; } /// <summary> /// A dictionary of additional headers to send with requests. /// </summary> [iOSVersion(7)] public Dictionary<NSObject, AnyObject> HTTPAdditionalHeaders { get; set; } /// <summary> /// The type of network service. /// </summary> [iOSVersion(7)] [Export("networkServiceType")] public NSURLRequestNetworkServiceType NetworkServiceType { get; set; } /// <summary> /// A Boolean value that determines whether connections should be made over a cellular network. /// </summary> [iOSVersion(7)] [Export("allowsCellularAccess")] public bool AllowsCellularAccess { get; set; } /// <summary> /// The timeout interval to use when waiting for additional data. /// </summary> [iOSVersion(7)] [Export("timeoutIntervalForRequest")] public NSTimeInterval TimeoutIntervalForRequest { get; set; } /// <summary> /// The maximum amount of time that a resource request should be allowed to take. /// </summary> [iOSVersion(7)] [Export("timeoutIntervalForResource")] public NSTimeInterval TimeoutIntervalForResource { get; set; } /// <summary> /// A policy constant that determines when cookies should be accepted. /// </summary> [iOSVersion(7)] public NSHTTPCookieAcceptPolicy HTTPCookieAcceptPolicy { get; set; } /// <summary> /// The cookie store for storing cookies within this session. /// </summary> [iOSVersion(7)] public NSHTTPCookieStorage HTTPCookieStorage { get; set; } /// <summary> /// A Boolean value that determines whether requests should contain cookies from the cookie store. /// </summary> [iOSVersion(7)] public bool HTTPShouldSetCookies { get; set; } /// <summary> /// The maximum TLS protocol version that the client should request when making connections in this session. /// </summary> [iOSVersion(7)] public SSLProtocol TLSMaximumSupportedProtocol { get; set; } /// <summary> /// The minimum TLS protocol that should be accepted during protocol negotiation. /// </summary> [iOSVersion(7)] public SSLProtocol TLSMinimumSupportedProtocol { get; set; } /// <summary> /// A credential store that provides credentials for authentication. /// </summary> [iOSVersion(7)] public NSURLCredentialStorage URLCredentialStorage { get; set; } /// <summary> /// The URL cache for providing cached responses to requests within the session. /// </summary> [iOSVersion(7)] public NSURLCache URLCache { get; set; } /// <summary> /// A predefined constant that determines when to return a response from the cache. /// </summary> [iOSVersion(7)] [Export("requestCachePolicy")] public NSURLRequestCachePolicy RequestCachePolicy { get; set; } /// <summary> /// A Boolean value that indicates whether the app should be resumed or launched in the background when transfers finish. /// </summary> [iOSVersion(7)] [Export("sessionSendsLaunchEvents")] public bool SessionSendsLaunchEvents { get; set; } /// <summary> /// A Boolean value that determines whether background tasks can be scheduled at the discretion of the system for optimal performance. /// </summary> [iOSVersion(7)] [Export("discretionary")] public bool Discretionary { get; set; } /// <summary> /// An array of extra protocol subclasses that handle requests in a session. /// </summary> [iOSVersion(7)] [Export("protocolClasses")] public AnyObject[] ProtocolClasses { get; set; } /// <summary> /// The maximum number of simultaneous connections to make to a given host. /// </summary> [iOSVersion(7)] public int HTTPMaximumConnectionsPerHost { get; set; } /// <summary> /// A Boolean value that determines whether the session should use HTTP pipelining. /// </summary> [iOSVersion(7)] public bool HTTPShouldUsePipelining { get; set; } /// <summary> /// A dictionary containing information about the proxy to use within this session. /// </summary> [iOSVersion(7)] [Export("connectionProxyDictionary")] public Dictionary<NSObject, AnyObject> ConnectionProxyDictionary { get; set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// An NSURLSessionConfiguration object defines the behavior and policies to use when uploading and downloading data using an NSURLSession object. When uploading or downloading data, creating a configuration object is always the first step you must take. You use this object to configure the timeout values, caching policies, connection requirements, and other types of information that you intend to use with your NSURLSession object. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSURLSessionConfiguration_class/index.html#//apple_ref/occ/cl/NSURLSessionConfiguration"/> [iOSVersion(7)] [Export("")] public class NSURLSessionConfiguration : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSCopying, NSObjectProtocol, Printable { public NSURLSessionConfiguration() { } /// <summary> /// Returns a newly created default session configuration object. /// </summary> [iOSVersion(7)] [Export("defaultSessionConfiguration")] public static NSURLSessionConfiguration DefaultSessionConfiguration() { return default(NSURLSessionConfiguration); } /// <summary> /// Returns a session configuration that uses no persistent storage for caches, cookies, or credentials. /// </summary> [iOSVersion(7)] [Export("ephemeralSessionConfiguration")] public static NSURLSessionConfiguration EphemeralSessionConfiguration() { return default(NSURLSessionConfiguration); } /// <summary> /// Returns a session configuration object that allows HTTP and HTTPS uploads or downloads to be performed in the background. /// </summary> /// <param name="identifier">The unique identifier for the configuration object. This parameter must not be nil or an empty string.</param> [iOSVersion(8)] [Export("backgroundSessionConfigurationWithIdentifier")] public static NSURLSessionConfiguration BackgroundSessionConfigurationWithIdentifier(string identifier) { return default(NSURLSessionConfiguration); } /// <summary> /// Returns a session configuration object that allows HTTP and HTTPS uploads or downloads to be performed in the background. /// </summary> /// <param name="identifier">The unique identifier for the configuration object. This parameter must not be nil or an empty string.</param> [iOSVersion(7)] [Export("backgroundSessionConfiguration")] public static NSURLSessionConfiguration BackgroundSessionConfiguration(string identifier) { return default(NSURLSessionConfiguration); } /// <summary> /// The background session identifier of the configuration object. (read-only) /// </summary> [iOSVersion(7)] [Export("identifier")] public string Identifier { get; private set; } /// <summary> /// A dictionary of additional headers to send with requests. /// </summary> [iOSVersion(7)] public Dictionary<NSObject, AnyObject> HTTPAdditionalHeaders { get; set; } /// <summary> /// The type of network service. /// </summary> [iOSVersion(7)] [Export("networkServiceType")] public NSURLRequestNetworkServiceType NetworkServiceType { get; set; } /// <summary> /// A Boolean value that determines whether connections should be made over a cellular network. /// </summary> [iOSVersion(7)] [Export("allowsCellularAccess")] public bool AllowsCellularAccess { get; set; } /// <summary> /// The timeout interval to use when waiting for additional data. /// </summary> [iOSVersion(7)] [Export("timeoutIntervalForRequest")] public NSTimeInterval TimeoutIntervalForRequest { get; set; } /// <summary> /// The maximum amount of time that a resource request should be allowed to take. /// </summary> [iOSVersion(7)] [Export("timeoutIntervalForResource")] public NSTimeInterval TimeoutIntervalForResource { get; set; } /// <summary> /// The identifier for the shared container into which files in background URL sessions should be downloaded. /// </summary> [iOSVersion(8)] [Export("sharedContainerIdentifier")] [Optional] public string SharedContainerIdentifier { get; set; } /// <summary> /// A policy constant that determines when cookies should be accepted. /// </summary> [iOSVersion(7)] public NSHTTPCookieAcceptPolicy HTTPCookieAcceptPolicy { get; set; } /// <summary> /// The cookie store for storing cookies within this session. /// </summary> [iOSVersion(7)] [Optional] public NSHTTPCookieStorage HTTPCookieStorage { get; set; } /// <summary> /// A Boolean value that determines whether requests should contain cookies from the cookie store. /// </summary> [iOSVersion(7)] public bool HTTPShouldSetCookies { get; set; } /// <summary> /// The maximum TLS protocol version that the client should request when making connections in this session. /// </summary> [iOSVersion(7)] public SSLProtocol TLSMaximumSupportedProtocol { get; set; } /// <summary> /// The minimum TLS protocol that should be accepted during protocol negotiation. /// </summary> [iOSVersion(7)] public SSLProtocol TLSMinimumSupportedProtocol { get; set; } /// <summary> /// A credential store that provides credentials for authentication. /// </summary> [iOSVersion(7)] [Optional] public NSURLCredentialStorage URLCredentialStorage { get; set; } /// <summary> /// The URL cache for providing cached responses to requests within the session. /// </summary> [iOSVersion(7)] [Optional] public NSURLCache URLCache { get; set; } /// <summary> /// A predefined constant that determines when to return a response from the cache. /// </summary> [iOSVersion(7)] [Export("requestCachePolicy")] public NSURLRequestCachePolicy RequestCachePolicy { get; set; } /// <summary> /// A Boolean value that indicates whether the app should be resumed or launched in the background when transfers finish. /// </summary> [iOSVersion(7)] [Export("sessionSendsLaunchEvents")] public bool SessionSendsLaunchEvents { get; set; } /// <summary> /// A Boolean value that determines whether background tasks can be scheduled at the discretion of the system for optimal performance. /// </summary> [iOSVersion(7)] [Export("discretionary")] public bool Discretionary { get; set; } /// <summary> /// An array of extra protocol subclasses that handle requests in a session. /// </summary> [iOSVersion(7)] [Export("protocolClasses")] public AnyObject[] ProtocolClasses { get; set; } /// <summary> /// The maximum number of simultaneous connections to make to a given host. /// </summary> [iOSVersion(7)] public int HTTPMaximumConnectionsPerHost { get; set; } /// <summary> /// A Boolean value that determines whether the session should use HTTP pipelining. /// </summary> [iOSVersion(7)] public bool HTTPShouldUsePipelining { get; set; } /// <summary> /// A dictionary containing information about the proxy to use within this session. /// </summary> [iOSVersion(7)] [Export("connectionProxyDictionary")] public Dictionary<NSObject, AnyObject> ConnectionProxyDictionary { get; set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSURLSessionDataTask.cs b/CocoaSharp/Foundation/NSURLSessionDataTask.cs
index 0ed67f36..11b24566 100644
--- a/CocoaSharp/Foundation/NSURLSessionDataTask.cs
+++ b/CocoaSharp/Foundation/NSURLSessionDataTask.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// An NSURLSessionDataTask is a concrete subclass of NSURLSessionTask. The methods in the NSURLSessionDataTask class are documented in NSURLSessionTask Class Reference. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSURLSessionDataTask_class/index.html#//apple_ref/occ/cl/NSURLSessionDataTask"/> [iOSVersion(7)] public class NSURLSessionDataTask : NSURLSessionTask//, AnyObject, NSCopying, NSObjectProtocol { } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// An NSURLSessionDataTask is a concrete subclass of NSURLSessionTask. The methods in the NSURLSessionDataTask class are documented in NSURLSessionTask Class Reference. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSURLSessionDataTask_class/index.html#//apple_ref/occ/cl/NSURLSessionDataTask"/> [iOSVersion(7)] [Export("")] public class NSURLSessionDataTask : NSURLSessionTask//, AnyObject, CVarArgType, Equatable, Hashable, NSCopying, NSObjectProtocol, Printable { public NSURLSessionDataTask() { } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSURLSessionDownloadTask.cs b/CocoaSharp/Foundation/NSURLSessionDownloadTask.cs
index 85b94df9..027c193f 100644
--- a/CocoaSharp/Foundation/NSURLSessionDownloadTask.cs
+++ b/CocoaSharp/Foundation/NSURLSessionDownloadTask.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// An NSURLSessionDownloadTask is a concrete subclass of NSURLSessionTask. Most of the methods associated with this class are documented in NSURLSessionTask Class Reference. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSURLSessionDownloadTask_class/index.html#//apple_ref/occ/cl/NSURLSessionDownloadTask"/> [iOSVersion(7)] public class NSURLSessionDownloadTask : NSURLSessionTask//, AnyObject, NSCopying, NSObjectProtocol { /// <summary> /// Cancels a download and calls a callback with resume data for later use. /// </summary> /// <param name="completionHandler">A completion handler that is called when the download has been successfully canceled. /// If the download is resumable, the completion handler is provided with a resumeData object. Your app can later pass this object to a session’s downloadTaskWithResumeData: or downloadTaskWithResumeData:completionHandler: method to create a new task that resumes the download where it left off.</param> [iOSVersion(7)] [Export("cancelByProducingResumeData")] public void CancelByProducingResumeData(Action<NSData> completionHandler) { } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// An NSURLSessionDownloadTask is a concrete subclass of NSURLSessionTask. Most of the methods associated with this class are documented in NSURLSessionTask Class Reference. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSURLSessionDownloadTask_class/index.html#//apple_ref/occ/cl/NSURLSessionDownloadTask"/> [iOSVersion(7)] [Export("")] public class NSURLSessionDownloadTask : NSURLSessionTask//, AnyObject, CVarArgType, Equatable, Hashable, NSCopying, NSObjectProtocol, Printable { public NSURLSessionDownloadTask() { } /// <summary> /// Cancels a download and calls a callback with resume data for later use. /// </summary> /// <param name="completionHandler">A completion handler that is called when the download has been successfully canceled. /// If the download is resumable, the completion handler is provided with a resumeData object. Your app can later pass this object to a session’s downloadTaskWithResumeData: or downloadTaskWithResumeData:completionHandler: method to create a new task that resumes the download where it left off.</param> [iOSVersion(7)] [Export("cancelByProducingResumeData")] public virtual void CancelByProducingResumeData(Action<NSData> completionHandler) { } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSURLSessionTask.cs b/CocoaSharp/Foundation/NSURLSessionTask.cs
index 6fb4adf3..70cddc61 100644
--- a/CocoaSharp/Foundation/NSURLSessionTask.cs
+++ b/CocoaSharp/Foundation/NSURLSessionTask.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSURLSessionTask class is the base class for tasks in a URL session. Tasks are always part of a session; you create a task by calling one of the task creation methods on an NSURLSession object. The method you call determines the type of task. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSURLSessionTask_class/index.html#//apple_ref/occ/cl/NSURLSessionTask"/> [iOSVersion(7)] public class NSURLSessionTask : NSObject//, AnyObject, NSCopying, NSObjectProtocol { /// <summary> /// Cancels the task. /// </summary> [iOSVersion(7)] [Export("cancel")] public void Cancel() { } /// <summary> /// Resumes the task, if it is suspended. /// </summary> [iOSVersion(7)] [Export("resume")] public void Resume() { } /// <summary> /// Temporarily suspends a task. /// </summary> [iOSVersion(7)] [Export("suspend")] public void Suspend() { } /// <summary> /// The current state of the task—active, suspended, in the process of being canceled, or completed. (read-only) /// </summary> [iOSVersion(7)] [Export("state")] public NSURLSessionTaskState State { get; private set; } /// <summary> /// The number of bytes that the task expects to receive in the response body. (read-only) /// </summary> [iOSVersion(7)] [Export("countOfBytesExpectedToReceive")] public Int64 CountOfBytesExpectedToReceive { get; private set; } /// <summary> /// The number of bytes that the task has received from the server in the response body. (read-only) /// </summary> [iOSVersion(7)] [Export("countOfBytesReceived")] public Int64 CountOfBytesReceived { get; private set; } /// <summary> /// The number of bytes that the task expects to send in the request body. (read-only) /// </summary> [iOSVersion(7)] [Export("countOfBytesExpectedToSend")] public Int64 CountOfBytesExpectedToSend { get; private set; } /// <summary> /// The number of bytes that the task has sent to the server in the request body. (read-only) /// </summary> [iOSVersion(7)] [Export("countOfBytesSent")] public Int64 CountOfBytesSent { get; private set; } /// <summary> /// The URL request object currently being handled by the task. (read-only) /// </summary> [iOSVersion(7)] [Export("currentRequest")] public NSURLRequest CurrentRequest { get; private set; } /// <summary> /// The original request object passed when the task was created. (read-only) /// </summary> [iOSVersion(7)] [Export("originalRequest")] public NSURLRequest OriginalRequest { get; private set; } /// <summary> /// The server’s response to the currently active request. (read-only) /// </summary> [iOSVersion(7)] [Export("response")] public NSURLResponse Response { get; private set; } /// <summary> /// An app-provided description of the current task. /// </summary> [iOSVersion(7)] [Export("taskDescription")] public string TaskDescription { get; set; } /// <summary> /// An identifier uniquely identifies the task within a given session. (read-only) /// </summary> [iOSVersion(7)] [Export("taskIdentifier")] public int TaskIdentifier { get; private set; } /// <summary> /// An error object that indicates why the task failed. (read-only) /// </summary> [iOSVersion(7)] [Export("error")] public NSError Error { get; private set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSURLSessionTask class is the base class for tasks in a URL session. Tasks are always part of a session; you create a task by calling one of the task creation methods on an NSURLSession object. The method you call determines the type of task. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSURLSessionTask_class/index.html#//apple_ref/occ/cl/NSURLSessionTask"/> [iOSVersion(7)] [Export("")] public class NSURLSessionTask : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSCopying, NSObjectProtocol, Printable { public NSURLSessionTask() { } /// <summary> /// Cancels the task. /// </summary> [iOSVersion(7)] [Export("cancel")] public virtual void Cancel() { } /// <summary> /// Resumes the task, if it is suspended. /// </summary> [iOSVersion(7)] [Export("resume")] public virtual void Resume() { } /// <summary> /// Temporarily suspends a task. /// </summary> [iOSVersion(7)] [Export("suspend")] public virtual void Suspend() { } /// <summary> /// The current state of the task—active, suspended, in the process of being canceled, or completed. (read-only) /// </summary> [iOSVersion(7)] [Export("state")] public NSURLSessionTaskState State { get; private set; } /// <summary> /// The number of bytes that the task expects to receive in the response body. (read-only) /// </summary> [iOSVersion(7)] [Export("countOfBytesExpectedToReceive")] public Int64 CountOfBytesExpectedToReceive { get; private set; } /// <summary> /// The number of bytes that the task has received from the server in the response body. (read-only) /// </summary> [iOSVersion(7)] [Export("countOfBytesReceived")] public Int64 CountOfBytesReceived { get; private set; } /// <summary> /// The number of bytes that the task expects to send in the request body. (read-only) /// </summary> [iOSVersion(7)] [Export("countOfBytesExpectedToSend")] public Int64 CountOfBytesExpectedToSend { get; private set; } /// <summary> /// The number of bytes that the task has sent to the server in the request body. (read-only) /// </summary> [iOSVersion(7)] [Export("countOfBytesSent")] public Int64 CountOfBytesSent { get; private set; } /// <summary> /// The URL request object currently being handled by the task. (read-only) /// </summary> [iOSVersion(7)] [Export("currentRequest")] public NSURLRequest CurrentRequest { get; private set; } /// <summary> /// The original request object passed when the task was created. (read-only) /// </summary> [iOSVersion(7)] [Export("originalRequest")] public NSURLRequest OriginalRequest { get; private set; } /// <summary> /// The server’s response to the currently active request. (read-only) /// </summary> [iOSVersion(7)] [Export("response")] [Optional] public NSURLResponse Response { get; private set; } /// <summary> /// An app-provided description of the current task. /// </summary> [iOSVersion(7)] [Export("taskDescription")] public string TaskDescription { get; set; } /// <summary> /// An identifier uniquely identifies the task within a given session. (read-only) /// </summary> [iOSVersion(7)] [Export("taskIdentifier")] public int TaskIdentifier { get; private set; } /// <summary> /// An error object that indicates why the task failed. (read-only) /// </summary> [iOSVersion(7)] [Export("error")] [Optional] public NSError Error { get; private set; } } /// <summary> /// Constants for determining the current state of a task. /// </summary> //public enum NSURLSessionTaskState //{ // /// <summary> // /// The task is currently being serviced by the session. A task in this state is subject to the request and resource timeouts specified in the session configuration object. // /// </summary> // [iOSVersion(7)] // Running, // /// <summary> // /// The task was suspended by the app. No further processing takes place until it is resumed. A task in this state is not subject to timeouts. // /// </summary> // [iOSVersion(7)] // Suspended, // /// <summary> // /// The task has received a cancel message. The delegate may or may not have received a URLSession:task:didCompleteWithError: message yet. A task in this state is not subject to timeouts. // /// </summary> // [iOSVersion(7)] // Canceling, // /// <summary> // /// The task has completed (without being canceled), and the task&#39;s delegate receives no further callbacks. If the task completed successfully, the task’s error property is nil. Otherwise, it provides an error object that tells what went wrong. A task in this state is not subject to timeouts. // /// </summary> // [iOSVersion(7)] // Completed, //} } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSURLSessionUploadTask.cs b/CocoaSharp/Foundation/NSURLSessionUploadTask.cs
index 9d30a041..11f8766e 100644
--- a/CocoaSharp/Foundation/NSURLSessionUploadTask.cs
+++ b/CocoaSharp/Foundation/NSURLSessionUploadTask.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSURLSessionUploadTask class is a subclass of NSURLSessionDataTask, which in turn is a concrete subclass of NSURLSessionTask. The methods associated with the NSURLSessionUploadTask class are documented in NSURLSessionTask Class Reference. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSURLSessionUploadTask_class/index.html#//apple_ref/occ/cl/NSURLSessionUploadTask"/> [iOSVersion(7)] public class NSURLSessionUploadTask : NSURLSessionDataTask//, AnyObject, NSCopying, NSObjectProtocol { } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSURLSessionUploadTask class is a subclass of NSURLSessionDataTask, which in turn is a concrete subclass of NSURLSessionTask. The methods associated with the NSURLSessionUploadTask class are documented in NSURLSessionTask Class Reference. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSURLSessionUploadTask_class/index.html#//apple_ref/occ/cl/NSURLSessionUploadTask"/> [iOSVersion(7)] [Export("")] public class NSURLSessionUploadTask : NSURLSessionDataTask//, AnyObject, CVarArgType, Equatable, Hashable, NSCopying, NSObjectProtocol, Printable { public NSURLSessionUploadTask() { } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSUUID.cs b/CocoaSharp/Foundation/NSUUID.cs
index 4a7147b2..61e5d803 100644
--- a/CocoaSharp/Foundation/NSUUID.cs
+++ b/CocoaSharp/Foundation/NSUUID.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSUUID class creates UUID strings that are to uniquely identify types, interfaces, and other items. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSUUID_Class/index.html#//apple_ref/occ/cl/NSUUID"/> [iOSVersion(6)] public class NSUUID : NSObject//, AnyObject, NSCoding, NSCopying, NSObjectProtocol, NSSecureCoding { /// <summary> /// Create and returns a new UUID with RFC 4122 version 4 random bytes. /// </summary> [iOSVersion(6)] public static NSUUID UUID() { return default(NSUUID); } /// <summary> /// Create and returns a new UUID with RFC 4122 version 4 random bytes. /// </summary> [iOSVersion(6)] public NSUUID() { } /// <summary> /// Creates and returns a new UUID with the given bytes. /// </summary> /// <param name="UUIDBytes">Raw UUID bytes to use to create the UUID.</param> [iOSVersion(6)] [Export("convenience init")] public NSUUID(ConstUnsafePointer<UInt8> UUIDBytes) { } /// <summary> /// Creates and returns a new UUID from the formatted string. /// </summary> /// <param name="UUIDString">The source string containing the UUID. The standard format for UUIDs represented in ASCII is a string punctuated by hyphens, for example 68753A44-4D6F-1226-9C60-0050E4C00067.</param> [iOSVersion(6)] [Export("convenience init")] public NSUUID(string UUIDString) { } /// <summary> /// Returns the UUIDs bytes. /// </summary> /// <param name="uuid">The value of uuid represented as raw bytes.</param> [iOSVersion(6)] [Export("getUUIDBytes")] public void GetUUIDBytes(UnsafePointer<UInt8> uuid) { } /// <summary> /// The UUID as a string. (read-only) /// </summary> [iOSVersion(6)] public string UUIDString { get; private set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSUUID class creates UUID strings that are to uniquely identify types, interfaces, and other items. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSUUID_Class/index.html#//apple_ref/occ/cl/NSUUID"/> [iOSVersion(6)] [Export("")] public class NSUUID : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSObjectProtocol, NSSecureCoding, Printable { /// <summary> /// Create and returns a new UUID with RFC 4122 version 4 random bytes. /// </summary> [iOSVersion(6)] public NSUUID() { } /// <summary> /// Creates and returns a new UUID with the given bytes. /// </summary> /// <param name="UUIDBytes">Raw UUID bytes to use to create the UUID.</param> [iOSVersion(6)] [Export("convenience init")] public NSUUID(UnsafePointer<UInt8> UUIDBytes) { } /// <summary> /// Returns the UUIDs bytes. /// </summary> /// <param name="uuid">The value of uuid represented as raw bytes.</param> [iOSVersion(6)] [Export("getUUIDBytes")] public virtual void GetUUIDBytes(UnsafeMutablePointer<UInt8> uuid) { } /// <summary> /// The UUID as a string. (read-only) /// </summary> [iOSVersion(6)] public string UUIDString { get; private set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSUbiquitousKeyValueStore.cs b/CocoaSharp/Foundation/NSUbiquitousKeyValueStore.cs
index 18a17be4..b76f68a3 100644
--- a/CocoaSharp/Foundation/NSUbiquitousKeyValueStore.cs
+++ b/CocoaSharp/Foundation/NSUbiquitousKeyValueStore.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// Use the iCloud key-value store to make preference, configuration, and app-state data available to every instance of your app on every device connected to a user’s iCloud account. You can store scalar values such as BOOL, as well as values containing any of the property list object types: NSNumber, NSString, NSDate, NSData, NSArray, and NSDictionary. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSUbiquitousKeyValueStore_class/index.html#//apple_ref/occ/cl/NSUbiquitousKeyValueStore"/> [iOSVersion(5)] public class NSUbiquitousKeyValueStore : NSObject//, AnyObject, NSObjectProtocol { /// <summary> /// Returns the shared iCloud key-value store object. /// </summary> [iOSVersion(5)] [Export("defaultStore")] public static NSUbiquitousKeyValueStore DefaultStore() { return default(NSUbiquitousKeyValueStore); } /// <summary> /// Returns the array associated with the specified key. /// </summary> /// <param name="aKey">A key in the key-value store.</param> [iOSVersion(5)] [Export("arrayForKey")] public AnyObject[] ArrayForKey(string aKey) { return default(AnyObject[]); } /// <summary> /// Returns the Boolean value associated with the specified key. /// </summary> /// <param name="aKey">A key in the key-value store.</param> [iOSVersion(5)] [Export("boolForKey")] public bool BoolForKey(string aKey) { return default(bool); } /// <summary> /// Returns the data object associated with the specified key. /// </summary> /// <param name="aKey">A key in the key-value store.</param> [iOSVersion(5)] [Export("dataForKey")] public NSData DataForKey(string aKey) { return default(NSData); } /// <summary> /// Returns the dictionary object associated with the specified key. /// </summary> /// <param name="aKey">A key in the key-value store.</param> [iOSVersion(5)] [Export("dictionaryForKey")] public Dictionary<NSObject, AnyObject> DictionaryForKey(string aKey) { return default(Dictionary<NSObject, AnyObject>); } /// <summary> /// Returns the double value associated with the specified key. /// </summary> /// <param name="aKey">A key in the key-value store.</param> [iOSVersion(5)] [Export("doubleForKey")] public Double DoubleForKey(string aKey) { return default(Double); } /// <summary> /// Returns the long long value associated with the specified key. /// </summary> /// <param name="aKey">A key in the key-value store.</param> [iOSVersion(5)] [Export("longLongForKey")] public Int64 LongLongForKey(string aKey) { return default(Int64); } /// <summary> /// Returns the object associated with the specified key. /// </summary> /// <param name="aKey">A key in the key-value store.</param> [iOSVersion(5)] [Export("objectForKey")] public AnyObject ObjectForKey(string aKey) { return default(AnyObject); } /// <summary> /// Returns the string associated with the specified key. /// </summary> /// <param name="aKey">A key in the key-value store.</param> [iOSVersion(5)] [Export("stringForKey")] public string StringForKey(string aKey) { return default(string); } /// <summary> /// Sets an array object for the specified key in the key-value store. /// </summary> /// <param name="anArray">An array whose contents can be stored in a property list format. In other words, the objects in the array must be of the types NSNumber, NSString, NSDate, NSData, NSArray, or NSDictionary. The total size (in bytes) of the array and its contents must not exceed the per-key size limits.</param> /// <param name="forKey">The key under which to store the value. The length of this key must not exceed 64 bytes using UTF8 encoding.</param> [iOSVersion(5)] [Export("setArray")] public void SetArray(AnyObject[] anArray, string forKey) { } /// <summary> /// Sets a Boolean value for the specified key in the key-value store. /// </summary> /// <param name="value">The Boolean value to store.</param> /// <param name="forKey">The key under which to store the value. The length of this key must not exceed 64 bytes using UTF8 encoding.\</param> [iOSVersion(5)] [Export("setBool")] public void SetBool(bool value, string forKey) { } /// <summary> /// Sets a data object for the specified key in the key-value store. /// </summary> /// <param name="aData">The data object to store. The total size of this data object (including any object overhead) must not exceed 1 MB.</param> /// <param name="forKey">The key under which to store the value. The length of this key must not exceed 64 bytes using UTF8 encoding.</param> [iOSVersion(5)] [Export("setData")] public void SetData(NSData aData, string forKey) { } /// <summary> /// Sets a dictionary object for the specified key in the key-value store. /// </summary> /// <param name="aDictionary">A dictionary whose contents can be stored in a property list format. In other words, the objects in the dictionary must be of the types NSNumber, NSString, NSDate, NSData, NSArray, or NSDictionary. The total size (in bytes) of the dictionary and its contents must not exceed the per-key size limits.</param> /// <param name="forKey">The key under which to store the value. The length of this key must not exceed 64 bytes using UTF8 encoding.</param> [iOSVersion(5)] [Export("setDictionary")] public void SetDictionary(Dictionary<NSObject, AnyObject> aDictionary, string forKey) { } /// <summary> /// Sets a double value for the specified key in the key-value store. /// </summary> /// <param name="value">The double value to store.</param> /// <param name="forKey">The key under which to store the value. The length of this key must not exceed 64 bytes using UTF8 encoding.</param> [iOSVersion(5)] [Export("setDouble")] public void SetDouble(Double value, string forKey) { } /// <summary> /// Sets a long long value for the specified key in the key-value store. /// </summary> /// <param name="value">The long long value to store.</param> /// <param name="forKey">The key under which to store the value. The length of this key must not exceed 64 bytes using UTF8 encoding.</param> [iOSVersion(5)] [Export("setLongLong")] public void SetLongLong(Int64 value, string forKey) { } /// <summary> /// Sets an object for the specified key in the key-value store. /// </summary> /// <param name="anObject">The object you want to store. The type of the object must be one of the property list types: NSNumber, NSString, NSDate, NSData, NSArray, or NSDictionary. The total size (in bytes) of the object must not exceed the per-key size limits.</param> /// <param name="forKey">The key under which to store the value. The length of this key must not exceed 64 bytes using UTF8 encoding.</param> [iOSVersion(5)] [Export("setObject")] public void SetObject(AnyObject anObject, string forKey) { } /// <summary> /// Sets a string object for the specified key in the key-value store. /// </summary> /// <param name="aString">The string you want to store. The total size (in bytes) of the string must not exceed the per-key size limits.</param> /// <param name="forKey">The key under which to store the value. The length of this key must not exceed 64 bytes using UTF8 encoding.</param> [iOSVersion(5)] [Export("setString")] public void SetString(string aString, string forKey) { } /// <summary> /// Explicitly synchronizes in-memory keys and values with those stored on disk. /// </summary> [iOSVersion(5)] [Export("synchronize")] public bool Synchronize() { return default(bool); } /// <summary> /// Removes the value associated with the specified key from the key-value store. /// </summary> /// <param name="aKey">The key corresponding to the value you want to remove.</param> [iOSVersion(5)] [Export("removeObjectForKey")] public void RemoveObjectForKey(string aKey) { } /// <summary> /// A dictionary containing all of the key-value pairs in the key-value store. (read-only) /// </summary> [iOSVersion(5)] [Export("dictionaryRepresentation")] public Dictionary<NSObject, AnyObject> DictionaryRepresentation { get; private set; } /// <summary> /// Possible values associated with the NSUbiquitousKeyValueStoreChangeReasonKey key. /// </summary> public int NSUbiquitousKeyValueStoreServerChange { get; set; } } /// <summary> /// This notification is sent only upon a change received from iCloud; it is not sent when your app sets a value. /// </summary> [iOSVersion(5)] public class NSUbiquitousKeyValueStoreDidChangeExternallyNotification : NSNotification { public NSUbiquitousKeyValueStoreDidChangeExternallyNotification() : base("", null) { } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// Use the iCloud key-value store to make preference, configuration, and app-state data available to every instance of your app on every device connected to a user’s iCloud account. You can store scalar values such as BOOL, as well as values containing any of the property list object types: NSNumber, NSString, NSDate, NSData, NSArray, and NSDictionary. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSUbiquitousKeyValueStore_class/index.html#//apple_ref/occ/cl/NSUbiquitousKeyValueStore"/> [iOSVersion(5)] [Export("")] public class NSUbiquitousKeyValueStore : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSObjectProtocol, Printable { public NSUbiquitousKeyValueStore() { } /// <summary> /// Returns the shared iCloud key-value store object. /// </summary> [iOSVersion(5)] [Export("defaultStore")] public static NSUbiquitousKeyValueStore DefaultStore() { return default(NSUbiquitousKeyValueStore); } /// <summary> /// Returns the array associated with the specified key. /// </summary> /// <param name="aKey">A key in the key-value store.</param> [iOSVersion(5)] [Export("arrayForKey")] public virtual AnyObject[] ArrayForKey(string aKey) { return default(AnyObject[]); } /// <summary> /// Returns the Boolean value associated with the specified key. /// </summary> /// <param name="aKey">A key in the key-value store.</param> [iOSVersion(5)] [Export("boolForKey")] public virtual bool BoolForKey(string aKey) { return default(bool); } /// <summary> /// Returns the data object associated with the specified key. /// </summary> /// <param name="aKey">A key in the key-value store.</param> [iOSVersion(5)] [Export("dataForKey")] [return:Optional] public virtual NSData DataForKey(string aKey) { return default(NSData); } /// <summary> /// Returns the dictionary object associated with the specified key. /// </summary> /// <param name="aKey">A key in the key-value store.</param> [iOSVersion(5)] [Export("dictionaryForKey")] public virtual Dictionary<NSObject, AnyObject> DictionaryForKey(string aKey) { return default(Dictionary<NSObject, AnyObject>); } /// <summary> /// Returns the double value associated with the specified key. /// </summary> /// <param name="aKey">A key in the key-value store.</param> [iOSVersion(5)] [Export("doubleForKey")] public virtual Double DoubleForKey(string aKey) { return default(Double); } /// <summary> /// Returns the long long value associated with the specified key. /// </summary> /// <param name="aKey">A key in the key-value store.</param> [iOSVersion(5)] [Export("longLongForKey")] public virtual Int64 LongLongForKey(string aKey) { return default(Int64); } /// <summary> /// Returns the object associated with the specified key. /// </summary> /// <param name="aKey">A key in the key-value store.</param> [iOSVersion(5)] [Export("objectForKey")] [return:Optional] public virtual AnyObject ObjectForKey(string aKey) { return default(AnyObject); } /// <summary> /// Returns the string associated with the specified key. /// </summary> /// <param name="aKey">A key in the key-value store.</param> [iOSVersion(5)] [Export("stringForKey")] [return:Optional] public virtual string StringForKey(string aKey) { return default(string); } /// <summary> /// Sets an array object for the specified key in the key-value store. /// </summary> /// <param name="anArray">An array whose contents can be stored in a property list format. In other words, the objects in the array must be of the types NSNumber, NSString, NSDate, NSData, NSArray, or NSDictionary. The total size (in bytes) of the array and its contents must not exceed the per-key size limits.</param> /// <param name="forKey">The key under which to store the value. The length of this key must not exceed 64 bytes using UTF8 encoding.</param> [iOSVersion(5)] [Export("setArray")] public virtual void SetArray(AnyObject[] anArray, string forKey) { } /// <summary> /// Sets a Boolean value for the specified key in the key-value store. /// </summary> /// <param name="value">The Boolean value to store.</param> /// <param name="forKey">The key under which to store the value. The length of this key must not exceed 64 bytes using UTF8 encoding.\</param> [iOSVersion(5)] [Export("setBool")] public virtual void SetBool(bool value, string forKey) { } /// <summary> /// Sets a data object for the specified key in the key-value store. /// </summary> /// <param name="aData">The data object to store. The total size of this data object (including any object overhead) must not exceed 1 MB.</param> /// <param name="forKey">The key under which to store the value. The length of this key must not exceed 64 bytes using UTF8 encoding.</param> [iOSVersion(5)] [Export("setData")] public virtual void SetData([Optional] NSData aData, string forKey) { } /// <summary> /// Sets a dictionary object for the specified key in the key-value store. /// </summary> /// <param name="aDictionary">A dictionary whose contents can be stored in a property list format. In other words, the objects in the dictionary must be of the types NSNumber, NSString, NSDate, NSData, NSArray, or NSDictionary. The total size (in bytes) of the dictionary and its contents must not exceed the per-key size limits.</param> /// <param name="forKey">The key under which to store the value. The length of this key must not exceed 64 bytes using UTF8 encoding.</param> [iOSVersion(5)] [Export("setDictionary")] public virtual void SetDictionary(Dictionary<NSObject, AnyObject> aDictionary, string forKey) { } /// <summary> /// Sets a double value for the specified key in the key-value store. /// </summary> /// <param name="value">The double value to store.</param> /// <param name="forKey">The key under which to store the value. The length of this key must not exceed 64 bytes using UTF8 encoding.</param> [iOSVersion(5)] [Export("setDouble")] public virtual void SetDouble(Double value, string forKey) { } /// <summary> /// Sets a long long value for the specified key in the key-value store. /// </summary> /// <param name="value">The long long value to store.</param> /// <param name="forKey">The key under which to store the value. The length of this key must not exceed 64 bytes using UTF8 encoding.</param> [iOSVersion(5)] [Export("setLongLong")] public virtual void SetLongLong(Int64 value, string forKey) { } /// <summary> /// Sets an object for the specified key in the key-value store. /// </summary> /// <param name="anObject">The object you want to store. The type of the object must be one of the property list types: NSNumber, NSString, NSDate, NSData, NSArray, or NSDictionary. The total size (in bytes) of the object must not exceed the per-key size limits.</param> /// <param name="forKey">The key under which to store the value. The length of this key must not exceed 64 bytes using UTF8 encoding.</param> [iOSVersion(5)] [Export("setObject")] public virtual void SetObject([Optional] AnyObject anObject, string forKey) { } /// <summary> /// Sets a string object for the specified key in the key-value store. /// </summary> /// <param name="aString">The string you want to store. The total size (in bytes) of the string must not exceed the per-key size limits.</param> /// <param name="forKey">The key under which to store the value. The length of this key must not exceed 64 bytes using UTF8 encoding.</param> [iOSVersion(5)] [Export("setString")] public virtual void SetString([Optional] string aString, string forKey) { } /// <summary> /// Explicitly synchronizes in-memory keys and values with those stored on disk. /// </summary> [iOSVersion(5)] [Export("synchronize")] public virtual bool Synchronize() { return default(bool); } /// <summary> /// Removes the value associated with the specified key from the key-value store. /// </summary> /// <param name="aKey">The key corresponding to the value you want to remove.</param> [iOSVersion(5)] [Export("removeObjectForKey")] public virtual void RemoveObjectForKey(string aKey) { } /// <summary> /// A dictionary containing all of the key-value pairs in the key-value store. (read-only) /// </summary> [iOSVersion(5)] [Export("dictionaryRepresentation")] public Dictionary<NSObject, AnyObject> DictionaryRepresentation { get; private set; } /// <summary> /// Possible values associated with the NSUbiquitousKeyValueStoreChangeReasonKey key. /// </summary> public int NSUbiquitousKeyValueStoreServerChange { get; private set; } } /// <summary> /// Posted when the value of one or more keys in the local key-value store changed due to incoming data pushed from iCloud. /// This notification is sent only upon a change received from iCloud; it is not sent when your app sets a value. /// The user info dictionary can contain the reason for the notification as well as a list of which values changed, as follows: /// The value of the NSUbiquitousKeyValueStoreChangeReasonKey key, when present, indicates why the key-value store changed. Its value is one of the constants in Change Reason Values . /// The value of the NSUbiquitousKeyValueStoreChangedKeysKey, when present, is an array of strings, each the name of a key whose value changed. /// The notification object is the NSUbiquitousKeyValueStore object whose contents changed. /// Important /// Early in your app’s launch sequence, register for the NSUbiquitousKeyValueStoreDidChangeExternallyNotification notification using the NSNotificationCenter class. Specify the default key-value store object (obtained using the defaultStore class method) as the object whose notifications you want to receive. /// </summary> public class NSUbiquitousKeyValueStoreDidChangeExternallyNotification : NSNotification { public NSUbiquitousKeyValueStoreDidChangeExternallyNotification() : base("", null) { } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSUndoManager.cs b/CocoaSharp/Foundation/NSUndoManager.cs
index 5f82fb9e..55aae950 100644
--- a/CocoaSharp/Foundation/NSUndoManager.cs
+++ b/CocoaSharp/Foundation/NSUndoManager.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSUndoManager is a general-purpose recorder of operations for undo and redo. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSUndoManager_Class/index.html#//apple_ref/occ/cl/NSUndoManager"/> [iOSVersion(3)] public class NSUndoManager : NSObject//, AnyObject, NSObjectProtocol { /// <summary> /// Records a single undo operation for a given target, so that when an undo is performed it is sent a specified selector with a given object as the sole argument. /// </summary> /// <param name="target">The target of the undo operation.</param> /// <param name="selector">The selector for the undo operation.</param> /// <param name="@object">The argument sent with the selector.</param> [iOSVersion(3)] [Export("registerUndoWithTarget")] public void RegisterUndoWithTarget(AnyObject target, Selector selector, AnyObject @object) { } /// <summary> /// Prepares the receiver for invocation-based undo with the given target as the subject of the next undo operation and returns self. /// </summary> /// <param name="target">The target of the undo operation. The undo manager maintains a weak reference to the target.</param> [iOSVersion(3)] [Export("prepareWithInvocationTarget")] public AnyObject PrepareWithInvocationTarget(AnyObject target) { return default(AnyObject); } /// <summary> /// Closes the top-level undo group if necessary and invokes undoNestedGroup. /// </summary> [iOSVersion(3)] [Export("undo")] public void Undo() { } /// <summary> /// Performs the undo operations in the last undo group (whether top-level or nested), recording the operations on the redo stack as a single group. /// </summary> [iOSVersion(3)] [Export("undoNestedGroup")] public void UndoNestedGroup() { } /// <summary> /// Performs the operations in the last group on the redo stack, if there are any, recording them on the undo stack as a single group. /// </summary> [iOSVersion(3)] [Export("redo")] public void Redo() { } /// <summary> /// Marks the beginning of an undo group. /// </summary> [iOSVersion(3)] [Export("beginUndoGrouping")] public void BeginUndoGrouping() { } /// <summary> /// Marks the end of an undo group. /// </summary> [iOSVersion(3)] [Export("endUndoGrouping")] public void EndUndoGrouping() { } /// <summary> /// Disables the recording of undo operations, whether by registerUndoWithTarget:selector:object: or by invocation-based undo. /// </summary> [iOSVersion(3)] [Export("disableUndoRegistration")] public void DisableUndoRegistration() { } /// <summary> /// Enables the recording of undo operations. /// </summary> [iOSVersion(3)] [Export("enableUndoRegistration")] public void EnableUndoRegistration() { } /// <summary> /// Clears the undo and redo stacks and re-enables the receiver. /// </summary> [iOSVersion(3)] [Export("removeAllActions")] public void RemoveAllActions() { } /// <summary> /// Clears the undo and redo stacks of all operations involving the specified target as the recipient of the undo message. /// </summary> /// <param name="target">The recipient of the undo messages to be removed.</param> [iOSVersion(3)] [Export("removeAllActionsWithTarget")] public void RemoveAllActionsWithTarget(AnyObject target) { } /// <summary> /// Sets the name of the action associated with the Undo or Redo command. /// </summary> /// <param name="actionName">The name of the action.</param> [iOSVersion(3)] [Export("setActionName")] public void SetActionName(string actionName) { } /// <summary> /// Returns the complete, localized title of the Redo menu command for the action identified by the given name. /// </summary> /// <param name="actionName">The name of the undo action.</param> [iOSVersion(3)] [Export("redoMenuTitleForUndoActionName")] public string RedoMenuTitleForUndoActionName(string actionName) { return default(string); } /// <summary> /// Returns the complete, localized title of the Undo menu command for the action identified by the given name. /// </summary> /// <param name="actionName">The name of the undo action.</param> [iOSVersion(3)] [Export("undoMenuTitleForUndoActionName")] public string UndoMenuTitleForUndoActionName(string actionName) { return default(string); } /// <summary> /// Sets whether the next undo or redo action is discardable. /// </summary> /// <param name="discardable">Specifies if the action is discardable. true if the next undo or redo action can be discarded; false otherwise.</param> [iOSVersion(5)] [Export("setActionIsDiscardable")] public void SetActionIsDiscardable(bool discardable) { } /// <summary> /// Returns a Boolean value that indicates whether the receiver has any actions to undo. /// </summary> [iOSVersion(3)] [Export("canUndo")] public bool CanUndo { get; private set; } /// <summary> /// Returns a Boolean value that indicates whether the receiver has any actions to redo. /// </summary> [iOSVersion(3)] [Export("canRedo")] public bool CanRedo { get; private set; } /// <summary> /// Sets the maximum number of top-level undo groups the receiver holds. /// </summary> [iOSVersion(3)] [Export("levelsOfUndo")] public int LevelsOfUndo { get; set; } /// <summary> /// Returns a Boolean value that indicates whether the receiver automatically creates undo groups around each pass of the run loop. /// </summary> [iOSVersion(3)] [Export("groupsByEvent")] public bool GroupsByEvent { get; set; } /// <summary> /// Returns the number of nested undo groups (or redo groups, if Redo was invoked last) in the current event loop. /// </summary> [iOSVersion(3)] [Export("groupingLevel")] public int GroupingLevel { get; private set; } /// <summary> /// Returns the name identifying the redo action. /// </summary> [iOSVersion(3)] [Export("redoActionName")] public string RedoActionName { get; private set; } /// <summary> /// Returns the name identifying the undo action. /// </summary> [iOSVersion(3)] [Export("undoActionName")] public string UndoActionName { get; private set; } /// <summary> /// Returns the complete title of the Redo menu command, for example, “Redo Paste.” /// </summary> [iOSVersion(3)] [Export("redoMenuItemTitle")] public string RedoMenuItemTitle { get; private set; } /// <summary> /// Returns the complete title of the Undo menu command, for example, “Undo Paste.” /// </summary> [iOSVersion(3)] [Export("undoMenuItemTitle")] public string UndoMenuItemTitle { get; private set; } /// <summary> /// Returns the modes governing the types of input handled during a cycle of the run loop. /// </summary> [iOSVersion(3)] [Export("runLoopModes")] public AnyObject[] RunLoopModes { get; set; } /// <summary> /// Returns whether the next undo action is discardable. /// </summary> [iOSVersion(5)] [Export("undoActionIsDiscardable")] public bool UndoActionIsDiscardable { get; private set; } /// <summary> /// Returns whether the next redo action is discardable. /// </summary> [iOSVersion(5)] [Export("redoActionIsDiscardable")] public bool RedoActionIsDiscardable { get; private set; } /// <summary> /// NSUndoManager provides this constant as a convenience; you can use it to compare to values returned by some NSUndoManager methods. /// </summary> public int NSUndoCloseGroupingRunLoopOrdering { get; set; } } /// <summary> /// /// </summary> [iOSVersion(3)] public class NSUndoManagerCheckpointNotification : NSNotification { public NSUndoManagerCheckpointNotification() : base("", null) { } } /// <summary> /// /// </summary> [iOSVersion(3)] public class NSUndoManagerDidOpenUndoGroupNotification : NSNotification { public NSUndoManagerDidOpenUndoGroupNotification() : base("", null) { } } /// <summary> /// /// </summary> [iOSVersion(3)] public class NSUndoManagerDidRedoChangeNotification : NSNotification { public NSUndoManagerDidRedoChangeNotification() : base("", null) { } } /// <summary> /// /// </summary> [iOSVersion(3)] public class NSUndoManagerDidUndoChangeNotification : NSNotification { public NSUndoManagerDidUndoChangeNotification() : base("", null) { } } /// <summary> /// /// </summary> [iOSVersion(3)] public class NSUndoManagerWillCloseUndoGroupNotification : NSNotification { public NSUndoManagerWillCloseUndoGroupNotification() : base("", null) { } } /// <summary> /// /// </summary> [iOSVersion(5)] public class NSUndoManagerDidCloseUndoGroupNotification : NSNotification { public NSUndoManagerDidCloseUndoGroupNotification() : base("", null) { } } /// <summary> /// /// </summary> [iOSVersion(3)] public class NSUndoManagerWillRedoChangeNotification : NSNotification { public NSUndoManagerWillRedoChangeNotification() : base("", null) { } } /// <summary> /// /// </summary> [iOSVersion(3)] public class NSUndoManagerWillUndoChangeNotification : NSNotification { public NSUndoManagerWillUndoChangeNotification() : base("", null) { } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSUndoManager is a general-purpose recorder of operations for undo and redo. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSUndoManager_Class/index.html#//apple_ref/occ/cl/NSUndoManager"/> [iOSVersion(3)] [Export("")] public class NSUndoManager : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSObjectProtocol, Printable { public NSUndoManager() { } /// <summary> /// Records a single undo operation for a given target, so that when an undo is performed it is sent a specified selector with a given object as the sole argument. /// </summary> /// <param name="target">The target of the undo operation.</param> /// <param name="selector">The selector for the undo operation.</param> /// <param name="@object">The argument sent with the selector.</param> [iOSVersion(3)] [Export("registerUndoWithTarget")] public virtual void RegisterUndoWithTarget(AnyObject target, Selector selector, [Optional] AnyObject @object) { } /// <summary> /// Prepares the receiver for invocation-based undo with the given target as the subject of the next undo operation and returns self. /// </summary> /// <param name="target">The target of the undo operation. The undo manager maintains a weak reference to the target.</param> [iOSVersion(3)] [Export("prepareWithInvocationTarget")] public virtual AnyObject PrepareWithInvocationTarget(AnyObject target) { return default(AnyObject); } /// <summary> /// Closes the top-level undo group if necessary and invokes undoNestedGroup. /// </summary> [iOSVersion(3)] [Export("undo")] public virtual void Undo() { } /// <summary> /// Performs the undo operations in the last undo group (whether top-level or nested), recording the operations on the redo stack as a single group. /// </summary> [iOSVersion(3)] [Export("undoNestedGroup")] public virtual void UndoNestedGroup() { } /// <summary> /// Performs the operations in the last group on the redo stack, if there are any, recording them on the undo stack as a single group. /// </summary> [iOSVersion(3)] [Export("redo")] public virtual void Redo() { } /// <summary> /// Marks the beginning of an undo group. /// </summary> [iOSVersion(3)] [Export("beginUndoGrouping")] public virtual void BeginUndoGrouping() { } /// <summary> /// Marks the end of an undo group. /// </summary> [iOSVersion(3)] [Export("endUndoGrouping")] public virtual void EndUndoGrouping() { } /// <summary> /// Disables the recording of undo operations, whether by registerUndoWithTarget:selector:object: or by invocation-based undo. /// </summary> [iOSVersion(3)] [Export("disableUndoRegistration")] public virtual void DisableUndoRegistration() { } /// <summary> /// Enables the recording of undo operations. /// </summary> [iOSVersion(3)] [Export("enableUndoRegistration")] public virtual void EnableUndoRegistration() { } /// <summary> /// Clears the undo and redo stacks and re-enables the receiver. /// </summary> [iOSVersion(3)] [Export("removeAllActions")] public virtual void RemoveAllActions() { } /// <summary> /// Clears the undo and redo stacks of all operations involving the specified target as the recipient of the undo message. /// </summary> /// <param name="target">The recipient of the undo messages to be removed.</param> [iOSVersion(3)] [Export("removeAllActionsWithTarget")] public virtual void RemoveAllActionsWithTarget(AnyObject target) { } /// <summary> /// Sets the name of the action associated with the Undo or Redo command. /// </summary> /// <param name="actionName">The name of the action.</param> [iOSVersion(3)] [Export("setActionName")] public virtual void SetActionName(string actionName) { } /// <summary> /// Returns the complete, localized title of the Undo menu command for the action identified by the given name. /// </summary> /// <param name="actionName">The name of the undo action.</param> [iOSVersion(3)] [Export("undoMenuTitleForUndoActionName")] public virtual string UndoMenuTitleForUndoActionName(string actionName) { return default(string); } /// <summary> /// Returns the complete, localized title of the Redo menu command for the action identified by the given name. /// </summary> /// <param name="actionName">The name of the undo action.</param> [iOSVersion(3)] [Export("redoMenuTitleForUndoActionName")] public virtual string RedoMenuTitleForUndoActionName(string actionName) { return default(string); } /// <summary> /// Sets whether the next undo or redo action is discardable. /// </summary> /// <param name="discardable">Specifies if the action is discardable. true if the next undo or redo action can be discarded; false otherwise.</param> [iOSVersion(5)] [Export("setActionIsDiscardable")] public virtual void SetActionIsDiscardable(bool discardable) { } /// <summary> /// A Boolean value that indicates whether the receiver has any actions to undo. (read-only) /// </summary> [iOSVersion(3)] [Export("canUndo")] public bool CanUndo { get; private set; } /// <summary> /// A Boolean value that indicates whether the receiver has any actions to redo. (read-only) /// </summary> [iOSVersion(3)] [Export("canRedo")] public bool CanRedo { get; private set; } /// <summary> /// The maximum number of top-level undo groups the receiver holds. /// </summary> [iOSVersion(3)] [Export("levelsOfUndo")] public int LevelsOfUndo { get; set; } /// <summary> /// A Boolean value that indicates whether the receiver automatically creates undo groups around each pass of the run loop. /// </summary> [iOSVersion(3)] [Export("groupsByEvent")] public bool GroupsByEvent { get; set; } /// <summary> /// The number of nested undo groups (or redo groups, if Redo was invoked last) in the current event loop. (read-only) /// </summary> [iOSVersion(3)] [Export("groupingLevel")] public int GroupingLevel { get; private set; } /// <summary> /// A Boolean value that indicates whether the recording of undo operations is enabled. (read-only) /// </summary> [iOSVersion(8)] [Export("undoRegistrationEnabled")] public bool UndoRegistrationEnabled { get; private set; } /// <summary> /// Returns a Boolean value that indicates whether the receiver is in the process of performing its undo or undoNestedGroup method. (read-only) /// </summary> [iOSVersion(8)] [Export("undoing")] public bool Undoing { get; private set; } /// <summary> /// Returns a Boolean value that indicates whether the receiver is in the process of performing its redo method. (read-only) /// </summary> [iOSVersion(8)] [Export("redoing")] public bool Redoing { get; private set; } /// <summary> /// The name identifying the undo action. (read-only) /// </summary> [iOSVersion(3)] [Export("undoActionName")] public string UndoActionName { get; private set; } /// <summary> /// The name identifying the redo action. (read-only) /// </summary> [iOSVersion(3)] [Export("redoActionName")] public string RedoActionName { get; private set; } /// <summary> /// The complete title of the Undo menu command, for example, “Undo Paste.” (read-only) /// </summary> [iOSVersion(3)] [Export("undoMenuItemTitle")] public string UndoMenuItemTitle { get; private set; } /// <summary> /// The complete title of the Redo menu command, for example, “Redo Paste.” (read-only) /// </summary> [iOSVersion(3)] [Export("redoMenuItemTitle")] public string RedoMenuItemTitle { get; private set; } /// <summary> /// The modes governing the types of input handled during a cycle of the run loop. /// </summary> [iOSVersion(3)] [Export("runLoopModes")] public AnyObject[] RunLoopModes { get; set; } /// <summary> /// Boolean value that indicates whether the next undo action is discardable. (read-only) /// </summary> [iOSVersion(5)] [Export("undoActionIsDiscardable")] public bool UndoActionIsDiscardable { get; private set; } /// <summary> /// Boolean value that indicates whether the next redo action is discardable. (read-only) /// </summary> [iOSVersion(5)] [Export("redoActionIsDiscardable")] public bool RedoActionIsDiscardable { get; private set; } /// <summary> /// NSUndoManager provides this constant as a convenience; you can use it to compare to values returned by some NSUndoManager methods. /// </summary> public int NSUndoCloseGroupingRunLoopOrdering { get; private set; } } /// <summary> /// Posted whenever an NSUndoManager object opens or closes an undo group (except when it opens a top-level group) and when checking the redo stack in canRedo. The notification object is the NSUndoManager object. This notification does not contain a userInfo dictionary. /// </summary> public class NSUndoManagerCheckpointNotification : NSNotification { public NSUndoManagerCheckpointNotification() : base("", null) { } } /// <summary> /// Posted whenever an NSUndoManager object opens an undo group, which occurs in the implementation of the beginUndoGrouping method. The notification object is the NSUndoManager object. This notification does not contain a userInfo dictionary. /// </summary> public class NSUndoManagerDidOpenUndoGroupNotification : NSNotification { public NSUndoManagerDidOpenUndoGroupNotification() : base("", null) { } } /// <summary> /// Posted just after an NSUndoManager object performs a redo operation (redo). The notification object is the NSUndoManager object. This notification does not contain a userInfo dictionary. /// </summary> public class NSUndoManagerDidRedoChangeNotification : NSNotification { public NSUndoManagerDidRedoChangeNotification() : base("", null) { } } /// <summary> /// Posted just after an NSUndoManager object performs an undo operation. If you invoke undo or undoNestedGroup, this notification is posted. The notification object is the NSUndoManager object. This notification does not contain a userInfo dictionary. /// </summary> public class NSUndoManagerDidUndoChangeNotification : NSNotification { public NSUndoManagerDidUndoChangeNotification() : base("", null) { } } /// <summary> /// Posted before an NSUndoManager object closes an undo group, which occurs in the implementation of the endUndoGrouping method. The notification object is the NSUndoManager object. Prior to OS X v10.7 this notification did not contain a userInfo dictionary. In OS X v10.7 and later the userInfo dictionary may contain the NSUndoManagerWillCloseUndoGroupNotification key, with a NSNumber boolean value of YES, if the undo group as a whole is discardable. /// </summary> public class NSUndoManagerWillCloseUndoGroupNotification : NSNotification { public NSUndoManagerWillCloseUndoGroupNotification() : base("", null) { } } /// <summary> /// Posted after an NSUndoManager object closes an undo group, which occurs in the implementation of the endUndoGrouping method. The notification object is the NSUndoManager object. This notification does not contain a userInfo dictionary. /// </summary> public class NSUndoManagerDidCloseUndoGroupNotification : NSNotification { public NSUndoManagerDidCloseUndoGroupNotification() : base("", null) { } } /// <summary> /// Posted just before an NSUndoManager object performs a redo operation (redo). The notification object is the NSUndoManager object. This notification does not contain a userInfo dictionary. /// </summary> public class NSUndoManagerWillRedoChangeNotification : NSNotification { public NSUndoManagerWillRedoChangeNotification() : base("", null) { } } /// <summary> /// Posted just before an NSUndoManager object performs an undo operation. If you invoke undo or undoNestedGroup, this notification is posted. The notification object is the NSUndoManager object. This notification does not contain a userInfo dictionary. /// </summary> public class NSUndoManagerWillUndoChangeNotification : NSNotification { public NSUndoManagerWillUndoChangeNotification() : base("", null) { } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSUserActivity.cs b/CocoaSharp/Foundation/NSUserActivity.cs
index 39f9cd3d..3e479201 100644
--- a/CocoaSharp/Foundation/NSUserActivity.cs
+++ b/CocoaSharp/Foundation/NSUserActivity.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSUserActivity encapsulates the state of a user activity in an application on a particular device, in a way that allows the same activity to be continued on another device in a corresponding application from the same developer. User activities include actions such as editing a document, viewing a web page, or watching a video. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSUserActivity_Class/index.html#//apple_ref/occ/cl/NSUserActivity"/> [iOSVersion(8)] public class NSUserActivity : NSObject//, AnyObject, NSObjectProtocol { /// <summary> /// Initializes and returns a newly created NSUserActivity object with the given activity type. /// </summary> /// <param name="activityType">The type of activity to be continued.</param> [iOSVersion(8)] public NSUserActivity(string activityType) { } /// <summary> /// Initializes and returns a newly created NSUserActvity object with the first activity type from the NSUserActivityTypes key in the app’s Info.plist. /// </summary> [iOSVersion(8)] public NSUserActivity() { } /// <summary> /// Requests streams back to the originating app. /// </summary> /// <param name="completionHandler">The completion handler block that returns streams. /// The block takes three arguments: /// inputStream /// The stream from which the continuing app can read data written by the originating app. /// outputStream /// The stream to which the continuing app writes data to be read by the originating app. /// error /// If successful, nil; if not successful, an NSError object that encapsulates the reason why the streams could not be created.</param> [iOSVersion(8)] [Export("getContinuationStreamsWithCompletionHandler")] public void GetContinuationStreamsWithCompletionHandler(Action<NSInputStream, NSOutputStream, NSError> completionHandler) { } /// <summary> /// Adds to the userInfo dictionary the entries from the given dictionary. /// </summary> /// <param name="otherDictionary">The dictionary containing entries to be added.</param> [iOSVersion(8)] [Export("addUserInfoEntriesFromDictionary")] public void AddUserInfoEntriesFromDictionary(Dictionary<NSObject, AnyObject> otherDictionary) { } /// <summary> /// Marks the receiver as the activity currently in use by the user. /// </summary> [iOSVersion(8)] [Export("becomeCurrent")] public void BecomeCurrent() { } /// <summary> /// Invalidates an activity when it's no longer eligible for continuation. /// </summary> [iOSVersion(8)] [Export("invalidate")] public void Invalidate() { } /// <summary> /// A Boolean value that determines whether the continuing app can request streams to be opened back to the originating app. /// </summary> [iOSVersion(8)] [Export("supportsContinuationStreams")] public bool SupportsContinuationStreams { get; set; } /// <summary> /// Dictionary containing app-specific state information needed to continue an activity on another device. /// </summary> [iOSVersion(8)] [Export("userInfo")] public Dictionary<NSObject, AnyObject> UserInfo { get; set; } /// <summary> /// The user activity object’s delegate. /// </summary> [iOSVersion(8)] [Export("delegate")] public NSUserActivityDelegate Delegate { get; set; } /// <summary> /// Indicates that the state of the activity needs to be updated. /// </summary> [iOSVersion(8)] [Export("needsSave")] public bool NeedsSave { get; set; } /// <summary> /// The activity type with which the user activity object was created. (read-only) /// </summary> [iOSVersion(8)] [Export("activityType")] public string ActivityType { get; private set; } /// <summary> /// An optional, user-visible title for this activity, such as a document name or web page title. /// </summary> [iOSVersion(8)] [Export("title")] public string Title { get; set; } /// <summary> /// Web page to load in a browser to continue the activity. /// </summary> [iOSVersion(8)] [Export("webpageURL")] public NSURL WebpageURL { get; set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// An NSUserActivity object encapsulates the state of a user activity in an application on a particular device in a way that allows the same activity to be continued on another device in a corresponding application from the same developer. User activities include actions such as editing a document, viewing a web page, or watching a video. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSUserActivity_Class/index.html#//apple_ref/occ/cl/NSUserActivity"/> [iOSVersion(8)] [Export("")] public class NSUserActivity : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSObjectProtocol, Printable { /// <summary> /// Initializes and returns a newly created NSUserActivity object with the given activity type. /// </summary> /// <param name="activityType">The type of activity to be continued. The value is a developer-defined string in reverse-DNS format by convention, for example, com.myCompany.myEditor.editing.</param> [iOSVersion(8)] public NSUserActivity(string activityType) { } /// <summary> /// Initializes and returns a newly created NSUserActvity object with the first activity type from the NSUserActivity key in the app’s Info.plist. /// </summary> [iOSVersion(8)] public NSUserActivity() { } /// <summary> /// Requests streams back to the originating app. /// </summary> /// <param name="completionHandler">The completion handler block that returns streams. /// The block takes three arguments: /// inputStream /// The stream from which the continuing app can read data written by the originating app. /// outputStream /// The stream to which the continuing app writes data to be read by the originating app. /// error /// If successful, nil; if not successful, an NSError object that encapsulates the reason why the streams could not be created.</param> [iOSVersion(8)] [Export("getContinuationStreamsWithCompletionHandler")] public virtual void GetContinuationStreamsWithCompletionHandler(Action<NSInputStream, NSOutputStream, NSError> completionHandler) { } /// <summary> /// Adds to the userInfo dictionary the entries from the given dictionary. /// </summary> /// <param name="otherDictionary">The dictionary containing entries to be added.</param> [iOSVersion(8)] [Export("addUserInfoEntriesFromDictionary")] public virtual void AddUserInfoEntriesFromDictionary(Dictionary<NSObject, AnyObject> otherDictionary) { } /// <summary> /// Marks the receiver as the activity currently in use by the user. /// </summary> [iOSVersion(8)] [Export("becomeCurrent")] public virtual void BecomeCurrent() { } /// <summary> /// Invalidates an activity when it&#39;s no longer eligible for continuation. /// </summary> [iOSVersion(8)] [Export("invalidate")] public virtual void Invalidate() { } /// <summary> /// A Boolean value that determines whether the continuing app can request streams to be opened back to the originating app. /// </summary> [iOSVersion(8)] [Export("supportsContinuationStreams")] public bool SupportsContinuationStreams { get; set; } /// <summary> /// Dictionary containing app-specific state information needed to continue an activity on another device. /// </summary> [iOSVersion(8)] [Export("userInfo")] public Dictionary<NSObject, AnyObject> UserInfo { get; set; } /// <summary> /// The user activity object’s delegate. /// </summary> [iOSVersion(8)] [Export("delegate")] [Optional] public NSUserActivityDelegate Delegate { get; set; } /// <summary> /// Indicates that the state of the activity needs to be updated. /// </summary> [iOSVersion(8)] [Export("needsSave")] public bool NeedsSave { get; set; } /// <summary> /// The activity type with which the user activity object was created. (read-only) /// </summary> [iOSVersion(8)] [Export("activityType")] public string ActivityType { get; private set; } /// <summary> /// An optional, user-visible title for this activity, such as a document name or web page title. /// </summary> [iOSVersion(8)] [Export("title")] [Optional] public string Title { get; set; } /// <summary> /// Web page to load in a browser to continue the activity. /// </summary> [iOSVersion(8)] [Export("webpageURL")] [Optional] public NSURL WebpageURL { get; set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSUserDefaults.cs b/CocoaSharp/Foundation/NSUserDefaults.cs
index b8ffb4d5..7b7bd0cf 100644
--- a/CocoaSharp/Foundation/NSUserDefaults.cs
+++ b/CocoaSharp/Foundation/NSUserDefaults.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSUserDefaults class provides a programmatic interface for interacting with the defaults system. The defaults system allows an application to customize its behavior to match a user’s preferences. For example, you can allow users to determine what units of measurement your application displays or how often documents are automatically saved. Applications record such preferences by assigning values to a set of parameters in a user’s defaults database. The parameters are referred to as defaults since they’re commonly used to determine an application’s default state at startup or the way it acts by default. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSUserDefaults_Class/index.html#//apple_ref/occ/cl/NSUserDefaults"/> [iOSVersion(2)] public class NSUserDefaults : NSObject//, AnyObject, NSObjectProtocol { /// <summary> /// Returns the shared defaults object. /// </summary> [iOSVersion(2)] [Export("standardUserDefaults")] public static NSUserDefaults StandardUserDefaults() { return default(NSUserDefaults); } /// <summary> /// Synchronizes any changes made to the shared user defaults object and releases it from memory. /// </summary> [iOSVersion(2)] [Export("resetStandardUserDefaults")] public static void ResetStandardUserDefaults() { } /// <summary> /// Returns an NSUserDefaults object initialized with the defaults for the current user account. /// </summary> [iOSVersion(2)] [Export("convenience init")] public NSUserDefaults() { } /// <summary> /// Adds the contents of the specified dictionary to the registration domain. /// </summary> /// <param name="dictionary">The dictionary of keys and values you want to register.</param> [iOSVersion(2)] [Export("registerDefaults")] public void RegisterDefaults(Dictionary<NSObject, AnyObject> dictionary) { } /// <summary> /// Returns the array associated with the specified key. /// </summary> /// <param name="defaultName">A key in the current user's defaults database.</param> [iOSVersion(2)] [Export("arrayForKey")] public AnyObject[] ArrayForKey(string defaultName) { return default(AnyObject[]); } /// <summary> /// Returns the Boolean value associated with the specified key. /// </summary> /// <param name="defaultName">A key in the current user's defaults database.</param> [iOSVersion(2)] [Export("boolForKey")] public bool BoolForKey(string defaultName) { return default(bool); } /// <summary> /// Returns the data object associated with the specified key. /// </summary> /// <param name="defaultName">A key in the current user's defaults database.</param> [iOSVersion(2)] [Export("dataForKey")] public NSData DataForKey(string defaultName) { return default(NSData); } /// <summary> /// Returns the dictionary object associated with the specified key. /// </summary> /// <param name="defaultName">A key in the current user's defaults database.</param> [iOSVersion(2)] [Export("dictionaryForKey")] public Dictionary<NSObject, AnyObject> DictionaryForKey(string defaultName) { return default(Dictionary<NSObject, AnyObject>); } /// <summary> /// Returns the floating-point value associated with the specified key. /// </summary> /// <param name="defaultName">A key in the current user's defaults database.</param> [iOSVersion(2)] [Export("floatForKey")] public float FloatForKey(string defaultName) { return default(float); } /// <summary> /// Returns the integer value associated with the specified key.. /// </summary> /// <param name="defaultName">A key in the current user's defaults database.</param> [iOSVersion(2)] [Export("integerForKey")] public int IntegerForKey(string defaultName) { return default(int); } /// <summary> /// Returns the object associated with the first occurrence of the specified default. /// </summary> /// <param name="defaultName">A key in the current user's defaults database.</param> [iOSVersion(2)] [Export("objectForKey")] public AnyObject ObjectForKey(string defaultName) { return default(AnyObject); } /// <summary> /// Returns the array of strings associated with the specified key. /// </summary> /// <param name="defaultName">A key in the current user's defaults database.</param> [iOSVersion(2)] [Export("stringArrayForKey")] public AnyObject[] StringArrayForKey(string defaultName) { return default(AnyObject[]); } /// <summary> /// Returns the string associated with the specified key. /// </summary> /// <param name="defaultName">A key in the current user's defaults database.</param> [iOSVersion(2)] [Export("stringForKey")] public string StringForKey(string defaultName) { return default(string); } /// <summary> /// Returns the double value associated with the specified key. /// </summary> /// <param name="defaultName">A key in the current user's defaults database.</param> [iOSVersion(2)] [Export("doubleForKey")] public Double DoubleForKey(string defaultName) { return default(Double); } /// <summary> /// Returns the NSURL instance associated with the specified key. /// </summary> /// <param name="defaultName">A key in the current user's defaults database.</param> [iOSVersion(4)] public NSURL URLForKey(string defaultName) { return default(NSURL); } /// <summary> /// Sets the value of the specified default key to the specified Boolean value. /// </summary> /// <param name="value">The Boolean value to store in the defaults database.</param> /// <param name="forKey">The key with which to associate with the value.</param> [iOSVersion(2)] [Export("setBool")] public void SetBool(bool value, string forKey) { } /// <summary> /// Sets the value of the specified default key to the specified floating-point value. /// </summary> /// <param name="value">The floating-point value to store in the defaults database.</param> /// <param name="forKey">The key with which to associate with the value.</param> [iOSVersion(2)] [Export("setFloat")] public void SetFloat(float value, string forKey) { } /// <summary> /// Sets the value of the specified default key to the specified integer value. /// </summary> /// <param name="value">The integer value to store in the defaults database.</param> /// <param name="forKey">The key with which to associate with the value.</param> [iOSVersion(2)] [Export("setInteger")] public void SetInteger(int value, string forKey) { } /// <summary> /// Sets the value of the specified default key in the standard application domain. /// </summary> /// <param name="value">The object to store in the defaults database.</param> /// <param name="forKey">The key with which to associate with the value.</param> [iOSVersion(2)] [Export("setObject")] public void SetObject(AnyObject value, string forKey) { } /// <summary> /// Sets the value of the specified default key to the double value. /// </summary> /// <param name="value">The double value.</param> /// <param name="forKey">The key with which to associate with the value.</param> [iOSVersion(2)] [Export("setDouble")] public void SetDouble(Double value, string forKey) { } /// <summary> /// Sets the value of the specified default key to the specified URL. /// </summary> /// <param name="url">The NSURL to store in the defaults database.</param> /// <param name="forKey">The key with which to associate with the value.</param> [iOSVersion(4)] [Export("setURL")] public void SetURL(NSURL url, string forKey) { } /// <summary> /// Removes the value of the specified default key in the standard application domain. /// </summary> /// <param name="defaultName">The key whose value you want to remove.</param> [iOSVersion(2)] [Export("removeObjectForKey")] public void RemoveObjectForKey(string defaultName) { } /// <summary> /// Writes any modifications to the persistent domains to disk and updates all unmodified persistent domains to what is on disk. /// </summary> [iOSVersion(2)] [Export("synchronize")] public bool Synchronize() { return default(bool); } /// <summary> /// Returns a dictionary containing the keys and values in the specified persistent domain. /// </summary> /// <param name="domainName">The domain whose keys and values you want.</param> [iOSVersion(2)] [Export("persistentDomainForName")] public Dictionary<NSObject, AnyObject> PersistentDomainForName(string domainName) { return default(Dictionary<NSObject, AnyObject>); } /// <summary> /// Removes the contents of the specified persistent domain from the user’s defaults. /// </summary> /// <param name="domainName">The domain whose keys and values you want.</param> [iOSVersion(2)] [Export("removePersistentDomainForName")] public void RemovePersistentDomainForName(string domainName) { } /// <summary> /// Sets the dictionary for the specified persistent domain. /// </summary> /// <param name="domain">The dictionary of keys and values you want to assign to the domain.</param> /// <param name="forName">The domain whose keys and values you want to set. This value should be equal to your application's bundle identifier.</param> [iOSVersion(2)] [Export("setPersistentDomain")] public void SetPersistentDomain(Dictionary<NSObject, AnyObject> domain, string forName) { } /// <summary> /// Returns a Boolean value indicating whether the specified key is managed by an administrator. /// </summary> /// <param name="key">The key whose status you want to check.</param> [iOSVersion(2)] [Export("objectIsForcedForKey")] public bool ObjectIsForcedForKey(string key) { return default(bool); } /// <summary> /// Returns a Boolean value indicating whether the key in the specified domain is managed by an administrator. /// </summary> /// <param name="key">The key whose status you want to check.</param> /// <param name="inDomain">The domain of the key.</param> [iOSVersion(2)] [Export("objectIsForcedForKey")] public bool ObjectIsForcedForKey(string key, string inDomain) { return default(bool); } /// <summary> /// Returns a dictionary that contains a union of all key-value pairs in the domains in the search list. /// </summary> [iOSVersion(2)] [Export("dictionaryRepresentation")] public Dictionary<NSObject, AnyObject> DictionaryRepresentation() { return default(Dictionary<NSObject, AnyObject>); } /// <summary> /// Removes the specified volatile domain from the user’s defaults. /// </summary> /// <param name="domainName">The volatile domain you want to remove.</param> [iOSVersion(2)] [Export("removeVolatileDomainForName")] public void RemoveVolatileDomainForName(string domainName) { } /// <summary> /// Sets the dictionary for the specified volatile domain. /// </summary> /// <param name="domain">The dictionary of keys and values you want to assign to the domain.</param> /// <param name="forName">The domain whose keys and values you want to set.</param> [iOSVersion(2)] [Export("setVolatileDomain")] public void SetVolatileDomain(Dictionary<NSObject, AnyObject> domain, string forName) { } /// <summary> /// Returns the dictionary for the specified volatile domain. /// </summary> /// <param name="domainName">The domain whose keys and values you want.</param> [iOSVersion(2)] [Export("volatileDomainForName")] public Dictionary<NSObject, AnyObject> VolatileDomainForName(string domainName) { return default(Dictionary<NSObject, AnyObject>); } /// <summary> /// Inserts the specified domain name into the receiver’s search list. /// </summary> /// <param name="suiteName">The domain name to insert. This domain is inserted after the application domain.</param> [iOSVersion(2)] [Export("addSuiteNamed")] public void AddSuiteNamed(string suiteName) { } /// <summary> /// Removes the specified domain name from the receiver’s search list. /// </summary> /// <param name="suiteName">The domain name to remove.</param> [iOSVersion(2)] [Export("removeSuiteNamed")] public void RemoveSuiteNamed(string suiteName) { } /// <summary> /// The current volatile domain names. (read-only) /// </summary> [iOSVersion(2)] [Export("volatileDomainNames")] public AnyObject[] VolatileDomainNames { get; private set; } } /// <summary> /// The notification object is the NSUserDefaults object. This notification does not contain a userInfo dictionary. /// </summary> [iOSVersion(2)] public class NSUserDefaultsDidChangeNotification : NSNotification { public NSUserDefaultsDidChangeNotification() : base("", null) { } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSUserDefaults class provides a programmatic interface for interacting with the defaults system. The defaults system allows an application to customize its behavior to match a user’s preferences. For example, you can allow users to determine what units of measurement your application displays or how often documents are automatically saved. Applications record such preferences by assigning values to a set of parameters in a user’s defaults database. The parameters are referred to as defaults since they’re commonly used to determine an application’s default state at startup or the way it acts by default. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSUserDefaults_Class/index.html#//apple_ref/occ/cl/NSUserDefaults"/> [iOSVersion(2)] [Export("")] public class NSUserDefaults : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSObjectProtocol, Printable { /// <summary> /// Returns the shared defaults object. /// </summary> [iOSVersion(2)] [Export("standardUserDefaults")] public static NSUserDefaults StandardUserDefaults() { return default(NSUserDefaults); } /// <summary> /// Synchronizes any changes made to the shared user defaults object and releases it from memory. /// </summary> [iOSVersion(2)] [Export("resetStandardUserDefaults")] public static void ResetStandardUserDefaults() { } /// <summary> /// Returns an NSUserDefaults object initialized with the defaults for the current user account. /// </summary> [iOSVersion(2)] [Export("convenience init")] public NSUserDefaults() { } /// <summary> /// Adds the contents of the specified dictionary to the registration domain. /// </summary> /// <param name="dictionary">The dictionary of keys and values you want to register.</param> [iOSVersion(2)] [Export("registerDefaults")] public virtual void RegisterDefaults(Dictionary<NSObject, AnyObject> dictionary) { } /// <summary> /// Returns the array associated with the specified key. /// </summary> /// <param name="defaultName">A key in the current user&#39;s defaults database.</param> [iOSVersion(2)] [Export("arrayForKey")] public virtual AnyObject[] ArrayForKey(string defaultName) { return default(AnyObject[]); } /// <summary> /// Returns the Boolean value associated with the specified key. /// </summary> /// <param name="defaultName">A key in the current user&#39;s defaults database.</param> [iOSVersion(2)] [Export("boolForKey")] public virtual bool BoolForKey(string defaultName) { return default(bool); } /// <summary> /// Returns the data object associated with the specified key. /// </summary> /// <param name="defaultName">A key in the current user&#39;s defaults database.</param> [iOSVersion(2)] [Export("dataForKey")] [return:Optional] public virtual NSData DataForKey(string defaultName) { return default(NSData); } /// <summary> /// Returns the dictionary object associated with the specified key. /// </summary> /// <param name="defaultName">A key in the current user&#39;s defaults database.</param> [iOSVersion(2)] [Export("dictionaryForKey")] public virtual Dictionary<NSObject, AnyObject> DictionaryForKey(string defaultName) { return default(Dictionary<NSObject, AnyObject>); } /// <summary> /// Returns the floating-point value associated with the specified key. /// </summary> /// <param name="defaultName">A key in the current user&#39;s defaults database.</param> [iOSVersion(2)] [Export("floatForKey")] public virtual float FloatForKey(string defaultName) { return default(float); } /// <summary> /// Returns the integer value associated with the specified key.. /// </summary> /// <param name="defaultName">A key in the current user&#39;s defaults database.</param> [iOSVersion(2)] [Export("integerForKey")] public virtual int IntegerForKey(string defaultName) { return default(int); } /// <summary> /// Returns the object associated with the first occurrence of the specified default. /// </summary> /// <param name="defaultName">A key in the current user&#39;s defaults database.</param> [iOSVersion(2)] [Export("objectForKey")] [return:Optional] public virtual AnyObject ObjectForKey(string defaultName) { return default(AnyObject); } /// <summary> /// Returns the array of strings associated with the specified key. /// </summary> /// <param name="defaultName">A key in the current user&#39;s defaults database.</param> [iOSVersion(2)] [Export("stringArrayForKey")] public virtual AnyObject[] StringArrayForKey(string defaultName) { return default(AnyObject[]); } /// <summary> /// Returns the string associated with the specified key. /// </summary> /// <param name="defaultName">A key in the current user&#39;s defaults database.</param> [iOSVersion(2)] [Export("stringForKey")] [return:Optional] public virtual string StringForKey(string defaultName) { return default(string); } /// <summary> /// Returns the double value associated with the specified key. /// </summary> /// <param name="defaultName">A key in the current user&#39;s defaults database.</param> [iOSVersion(2)] [Export("doubleForKey")] public virtual Double DoubleForKey(string defaultName) { return default(Double); } /// <summary> /// Returns the NSURL instance associated with the specified key. /// </summary> /// <param name="defaultName">A key in the current user&#39;s defaults database.</param> [iOSVersion(4)] [return:Optional] public virtual NSURL URLForKey(string defaultName) { return default(NSURL); } /// <summary> /// Sets the value of the specified default key to the specified Boolean value. /// </summary> /// <param name="value">The Boolean value to store in the defaults database.</param> /// <param name="forKey">The key with which to associate with the value.</param> [iOSVersion(2)] [Export("setBool")] public virtual void SetBool(bool value, string forKey) { } /// <summary> /// Sets the value of the specified default key to the specified floating-point value. /// </summary> /// <param name="value">The floating-point value to store in the defaults database.</param> /// <param name="forKey">The key with which to associate with the value.</param> [iOSVersion(2)] [Export("setFloat")] public virtual void SetFloat(float value, string forKey) { } /// <summary> /// Sets the value of the specified default key to the specified integer value. /// </summary> /// <param name="value">The integer value to store in the defaults database.</param> /// <param name="forKey">The key with which to associate with the value.</param> [iOSVersion(2)] [Export("setInteger")] public virtual void SetInteger(int value, string forKey) { } /// <summary> /// Sets the value of the specified default key in the standard application domain. /// </summary> /// <param name="value">The object to store in the defaults database.</param> /// <param name="forKey">The key with which to associate with the value.</param> [iOSVersion(2)] [Export("setObject")] public virtual void SetObject([Optional] AnyObject value, string forKey) { } /// <summary> /// Sets the value of the specified default key to the double value. /// </summary> /// <param name="value">The double value.</param> /// <param name="forKey">The key with which to associate with the value.</param> [iOSVersion(2)] [Export("setDouble")] public virtual void SetDouble(Double value, string forKey) { } /// <summary> /// Sets the value of the specified default key to the specified URL. /// </summary> /// <param name="url">The NSURL to store in the defaults database.</param> /// <param name="forKey">The key with which to associate with the value.</param> [iOSVersion(4)] [Export("setURL")] public virtual void SetURL(NSURL url, string forKey) { } /// <summary> /// Removes the value of the specified default key in the standard application domain. /// </summary> /// <param name="defaultName">The key whose value you want to remove.</param> [iOSVersion(2)] [Export("removeObjectForKey")] public virtual void RemoveObjectForKey(string defaultName) { } /// <summary> /// Writes any modifications to the persistent domains to disk and updates all unmodified persistent domains to what is on disk. /// </summary> [iOSVersion(2)] [Export("synchronize")] public virtual bool Synchronize() { return default(bool); } /// <summary> /// Returns a dictionary containing the keys and values in the specified persistent domain. /// </summary> /// <param name="domainName">The domain whose keys and values you want.</param> [iOSVersion(2)] [Export("persistentDomainForName")] public virtual Dictionary<NSObject, AnyObject> PersistentDomainForName(string domainName) { return default(Dictionary<NSObject, AnyObject>); } /// <summary> /// Removes the contents of the specified persistent domain from the user’s defaults. /// </summary> /// <param name="domainName">The domain whose keys and values you want.</param> [iOSVersion(2)] [Export("removePersistentDomainForName")] public virtual void RemovePersistentDomainForName(string domainName) { } /// <summary> /// Sets the dictionary for the specified persistent domain. /// </summary> /// <param name="domain">The dictionary of keys and values you want to assign to the domain.</param> /// <param name="forName">The domain whose keys and values you want to set. This value should be equal to your application&#39;s bundle identifier.</param> [iOSVersion(2)] [Export("setPersistentDomain")] public virtual void SetPersistentDomain(Dictionary<NSObject, AnyObject> domain, string forName) { } /// <summary> /// Returns a Boolean value indicating whether the specified key is managed by an administrator. /// </summary> /// <param name="key">The key whose status you want to check.</param> [iOSVersion(2)] [Export("objectIsForcedForKey")] public virtual bool ObjectIsForcedForKey(string key) { return default(bool); } /// <summary> /// Returns a Boolean value indicating whether the key in the specified domain is managed by an administrator. /// </summary> /// <param name="key">The key whose status you want to check.</param> /// <param name="inDomain">The domain of the key.</param> [iOSVersion(2)] [Export("objectIsForcedForKey")] public virtual bool ObjectIsForcedForKey(string key, string inDomain) { return default(bool); } /// <summary> /// Returns a dictionary that contains a union of all key-value pairs in the domains in the search list. /// </summary> [iOSVersion(2)] [Export("dictionaryRepresentation")] public virtual Dictionary<NSObject, AnyObject> DictionaryRepresentation() { return default(Dictionary<NSObject, AnyObject>); } /// <summary> /// Removes the specified volatile domain from the user’s defaults. /// </summary> /// <param name="domainName">The volatile domain you want to remove.</param> [iOSVersion(2)] [Export("removeVolatileDomainForName")] public virtual void RemoveVolatileDomainForName(string domainName) { } /// <summary> /// Sets the dictionary for the specified volatile domain. /// </summary> /// <param name="domain">The dictionary of keys and values you want to assign to the domain.</param> /// <param name="forName">The domain whose keys and values you want to set.</param> [iOSVersion(2)] [Export("setVolatileDomain")] public virtual void SetVolatileDomain(Dictionary<NSObject, AnyObject> domain, string forName) { } /// <summary> /// Returns the dictionary for the specified volatile domain. /// </summary> /// <param name="domainName">The domain whose keys and values you want.</param> [iOSVersion(2)] [Export("volatileDomainForName")] public virtual Dictionary<NSObject, AnyObject> VolatileDomainForName(string domainName) { return default(Dictionary<NSObject, AnyObject>); } /// <summary> /// Inserts the specified domain name into the receiver’s search list. /// </summary> /// <param name="suiteName">The domain name to insert. This domain is inserted after the application domain.</param> [iOSVersion(2)] [Export("addSuiteNamed")] public virtual void AddSuiteNamed(string suiteName) { } /// <summary> /// Removes the specified domain name from the receiver’s search list. /// </summary> /// <param name="suiteName">The domain name to remove.</param> [iOSVersion(2)] [Export("removeSuiteNamed")] public virtual void RemoveSuiteNamed(string suiteName) { } /// <summary> /// The current volatile domain names. (read-only) /// </summary> [iOSVersion(2)] [Export("volatileDomainNames")] public AnyObject[] VolatileDomainNames { get; private set; } } /// <summary> /// This notification is posted when a change is made to defaults in a persistent domain. /// The notification object is the NSUserDefaults object. This notification does not contain a userInfo dictionary. /// </summary> public class NSUserDefaultsDidChangeNotification : NSNotification { public NSUserDefaultsDidChangeNotification() : base("", null) { } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSValue.cs b/CocoaSharp/Foundation/NSValue.cs
index 0e15c767..27eb0751 100644
--- a/CocoaSharp/Foundation/NSValue.cs
+++ b/CocoaSharp/Foundation/NSValue.cs
@@ -1 +1,199 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// An NSValue object is a simple container for a single C or Objective-C data item. It can hold any of the scalar types such as int, float, and char, as well as pointers, structures, and object id references. Use this class to work with such data types in collections (such as NSArray and NSSet), key-value coding, and other APIs that require Objective-C objects. NSValue objects are always immutable. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSValue_Class/index.html#//apple_ref/occ/cl/NSValue"/> [iOSVersion(2)] public class NSValue : NSObject//, AnyObject, NSCoding, NSCopying, NSObjectProtocol, NSSecureCoding { /// <summary> /// Initializes a value object to contain the specified value, interpreted with the specified Objective-C type. /// </summary> /// <param name="bytes">A pointer to data to be stored in the new value object.</param> /// <param name="objCType">The Objective-C type of value, as provided by the @encode() compiler directive. Do not hard-code this parameter as a C string.</param> [iOSVersion(2)] public NSValue(ConstUnsafePointer<Action> bytes, ConstUnsafePointer<Int8> objCType) { } /// <summary> /// Creates a value object containing the specified value, interpreted with the specified Objective-C type. /// </summary> /// <param name="value">A pointer to data to be stored in the new value object.</param> /// <param name="objCType">The Objective-C type of value, as provided by the @encode() compiler directive. Do not hard-code this parameter as a C string.</param> [iOSVersion(2)] [Export("valueWithBytes")] public static NSValue ValueWithBytes(ConstUnsafePointer<Action> value, ConstUnsafePointer<Int8> objCType) { return default(NSValue); } /// <summary> /// Creates a value object containing the specified value, interpreted with the specified Objective-C type. /// </summary> /// <param name="value">A pointer to data to be stored in the new value object.</param> /// <param name="withObjCType">The Objective-C type of value, as provided by the @encode() compiler directive. Do not hard-code this parameter as a C string.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [IgnoreParameter("NAME_YOUR_PARAMS")] public NSValue(ConstUnsafePointer<Action> value, ConstUnsafePointer<Int8> withObjCType, bool NAME_YOUR_PARAMS = false) { } /// <summary> /// Copies the value into the specified buffer. /// </summary> /// <param name="buffer">A buffer into which to copy the value. The buffer must be large enough to hold the value.</param> [iOSVersion(2)] [Export("getValue")] public void GetValue(UnsafePointer<Action> buffer) { } /// <summary> /// Creates a value object containing the specified pointer. /// </summary> /// <param name="pointer">The value for the new object.</param> [iOSVersion(2)] public NSValue(ConstUnsafePointer<Action> pointer) { } /// <summary> /// Creates a value object containing the specified object. /// </summary> /// <param name="nonretainedObject">The value for the new object.</param> [iOSVersion(2)] public NSValue(AnyObject nonretainedObject) { } /// <summary> /// Returns the value as an untyped pointer. /// </summary> /// <param name=")"></param> [iOSVersion(2)] [Export("pointerValue")] public UnsafePointer<Action> PointerValue() { return default(UnsafePointer<Action>); } /// <summary> /// Creates a new value object containing the specified Foundation range structure. /// </summary> /// <param name="range">The value for the new object.</param> [iOSVersion(2)] public NSValue(NSRange range) { } /// <summary> /// Returns a Boolean value that indicates whether the value object and another value object are equal. /// </summary> /// <param name="aValue">The other value object with which to compare the value object.</param> [iOSVersion(2)] [Export("isEqualToValue")] public bool IsEqualToValue(NSValue aValue) { return default(bool); } /// <summary> /// A C string containing the Objective-C type of the data contained in the value object. /// </summary> [iOSVersion(2)] [Export("objCType")] public ConstUnsafePointer<Int8> ObjCType { get; private set; } /// <summary> /// The value as a non-retained pointer to an object. (read-only) /// </summary> [iOSVersion(2)] [Export("nonretainedObjectValue")] public AnyObject NonretainedObjectValue { get; private set; } /// <summary> /// The Foundation range structure representation of the value. (read-only) /// </summary> [iOSVersion(2)] [Export("rangeValue")] public NSRange RangeValue { get; private set; } } } \ No newline at end of file
+using ObjectiveC;
+using System;
+using SharpSwift.Attributes;
+using System.Collections.Generic;
+using CoreGraphics;
+using Foundation;
+
+namespace UIKit
+{
+ /// <summary>
+ /// An NSValue object is a simple container for a single C or Objective-C data item. It can hold any of the scalar types such as int, float, and char, as well as pointers, structures, and object id references. Use this class to work with such data types in collections (such as NSArray and NSSet), key-value coding, and other APIs that require Objective-C objects. NSValue objects are always immutable.
+ /// </summary>
+ /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSValue_Class/index.html#//apple_ref/occ/cl/NSValue"/>
+ [iOSVersion(2)]
+ [Export("")]
+ public class NSValue : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSCoding, NSCopying, NSObjectProtocol, NSSecureCoding, Printable
+ {
+ public NSValue() { }
+ /// <summary>
+ /// Initializes a value object to contain the specified value, interpreted with the specified Objective-C type.
+ /// </summary>
+ /// <param name="bytes">A pointer to data to be stored in the new value object.</param>
+ /// <param name="objCType">The Objective-C type of value, as provided by the @encode() compiler directive. Do not hard-code this parameter as a C string.</param>
+ [iOSVersion(2)]
+ public NSValue(UnsafePointer bytes, UnsafePointer<Int8> objCType) { }
+
+ /// <summary>
+ /// Creates a value object containing the specified value, interpreted with the specified Objective-C type.
+ /// </summary>
+ /// <param name="value">A pointer to data to be stored in the new value object.</param>
+ /// <param name="withObjCType">The Objective-C type of value, as provided by the @encode() compiler directive. Do not hard-code this parameter as a C string.</param>
+ /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param>
+ [iOSVersion(2)]
+ [IgnoreParameter("NAME_YOUR_PARAMS")]
+ public NSValue(UnsafePointer value, UnsafePointer<Int8> withObjCType, bool NAME_YOUR_PARAMS = false) { }
+
+ /// <summary>
+ /// Copies the value into the specified buffer.
+ /// </summary>
+ /// <param name="buffer">A buffer into which to copy the value. The buffer must be large enough to hold the value.</param>
+ [iOSVersion(2)]
+ [Export("getValue")]
+ public virtual void GetValue(UnsafeMutablePointer buffer) { }
+
+ /// <summary>
+ /// Creates a value object containing the specified pointer.
+ /// </summary>
+ /// <param name="pointer">The value for the new object.</param>
+ [iOSVersion(2)]
+ public NSValue(UnsafePointer pointer) { }
+
+ /// <summary>
+ /// Creates a value object containing the specified object.
+ /// </summary>
+ /// <param name="nonretainedObject">The value for the new object.</param>
+ [iOSVersion(2)]
+ public NSValue([Optional] AnyObject nonretainedObject) { }
+
+ /// <summary>
+ /// Returns the value as an untyped pointer.
+ /// </summary>
+ [iOSVersion(2)]
+ [Export("pointerValue")]
+ public virtual UnsafeMutablePointer PointerValue() { return default(UnsafeMutablePointer); }
+
+ /// <summary>
+ /// Creates a new value object containing the specified Foundation range structure.
+ /// </summary>
+ /// <param name="range">The value for the new object.</param>
+ [iOSVersion(2)]
+ public NSValue(NSRange range) { }
+
+ /// <summary>
+ /// Returns the CoreGraphics point structure representation of the value.
+ /// </summary>
+ [iOSVersion(2)]
+ public virtual CGPoint CGPointValue() { return default(CGPoint); }
+
+ /// <summary>
+ /// Returns the CoreGraphics vector structure representation of the value.
+ /// </summary>
+ [iOSVersion(8)]
+ public virtual CGVector CGVectorValue() { return default(CGVector); }
+
+ /// <summary>
+ /// Returns the CoreGraphics size structure representation of the value.
+ /// </summary>
+ [iOSVersion(2)]
+ public virtual CGSize CGSizeValue() { return default(CGSize); }
+
+ /// <summary>
+ /// Returns the CoreGraphics rectangle structure representation of the value.
+ /// </summary>
+ [iOSVersion(2)]
+ public virtual CGRect CGRectValue() { return default(CGRect); }
+
+ /// <summary>
+ /// Returns the CoreGraphics affine transform representation of the value.
+ /// </summary>
+ [iOSVersion(2)]
+ public virtual CGAffineTransform CGAffineTransformValue() { return default(CGAffineTransform); }
+
+ /// <summary>
+ /// Returns the UIKit edge insets structure representation of the value.
+ /// </summary>
+ [iOSVersion(2)]
+ public virtual UIEdgeInsets UIEdgeInsetsValue() { return default(UIEdgeInsets); }
+
+ /// <summary>
+ /// Returns the UIKit offset structure representation of the value.
+ /// </summary>
+ [iOSVersion(5)]
+ public virtual UIOffset UIOffsetValue() { return default(UIOffset); }
+
+ /// <summary>
+ /// Returns a Boolean value that indicates whether the value object and another value object are equal.
+ /// </summary>
+ /// <param name="aValue">The other value object with which to compare the value object.</param>
+ [iOSVersion(2)]
+ [Export("isEqualToValue")]
+ public virtual bool IsEqualToValue(NSValue aValue) { return default(bool); }
+
+ /// <summary>
+ /// A C string containing the Objective-C type of the data contained in the value object.
+ /// </summary>
+ [iOSVersion(2)]
+ [Export("objCType")]
+ public UnsafePointer<Int8> ObjCType { get; private set; }
+
+ /// <summary>
+ /// The value as a non-retained pointer to an object. (read-only)
+ /// </summary>
+ [iOSVersion(2)]
+ [Export("nonretainedObjectValue")]
+ [Optional]
+ public AnyObject NonretainedObjectValue { get; private set; }
+
+ /// <summary>
+ /// The Foundation range structure representation of the value. (read-only)
+ /// </summary>
+ [iOSVersion(2)]
+ [Export("rangeValue")]
+ public NSRange RangeValue { get; private set; }
+
+ /// <summary>
+ /// The CoreAnimation transform structure representation of the value. (read-only)
+ /// </summary>
+ [iOSVersion(2)]
+ public CATransform3D CATransform3DValue { get; private set; }
+
+ /// <summary>
+ /// The CoreMedia time structure representation of the value. (read-only)
+ /// </summary>
+ [iOSVersion(4)]
+ public CMTime CMTimeValue { get; private set; }
+
+ /// <summary>
+ /// The CoreMedia time range structure representation of the value. (read-only)
+ /// </summary>
+ [iOSVersion(4)]
+ public CMTimeRange CMTimeRangeValue { get; private set; }
+
+ /// <summary>
+ /// The CoreMedia time mapping structure representation of the value. (read-only)
+ /// </summary>
+ [iOSVersion(4)]
+ public CMTimeMapping CMTimeMappingValue { get; private set; }
+
+ /// <summary>
+ /// The CoreLocation geographic coordinate structure representation of the value. (read-only)
+ /// </summary>
+ [iOSVersion(6)]
+ public CLLocationCoordinate2D MKCoordinateValue { get; private set; }
+
+ /// <summary>
+ /// The MapKit coordinate span structure representation of the value. (read-only)
+ /// </summary>
+ [iOSVersion(6)]
+ public MKCoordinateSpan MKCoordinateSpanValue { get; private set; }
+
+ /// <summary>
+ /// The three-element Scene Kit vector representation of the value. (read-only)
+ /// </summary>
+ [iOSVersion(8)]
+ public SCNVector3 SCNVector3Value { get; private set; }
+
+ /// <summary>
+ /// The four-element Scene Kit vector representation of the value. (read-only)
+ /// </summary>
+ [iOSVersion(8)]
+ public SCNVector4 SCNVector4Value { get; private set; }
+
+ /// <summary>
+ /// The Scene Kit 4 x 4 matrix representation of the value. (read-only)
+ /// </summary>
+ [iOSVersion(8)]
+ public SCNMatrix4 SCNMatrix4Value { get; private set; }
+ }
+}
diff --git a/CocoaSharp/Foundation/NSValueTransformer.cs b/CocoaSharp/Foundation/NSValueTransformer.cs
index 7ae95002..9a3d204a 100644
--- a/CocoaSharp/Foundation/NSValueTransformer.cs
+++ b/CocoaSharp/Foundation/NSValueTransformer.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSValueTransformer is an abstract class that is used by the Cocoa Bindings technology to transform values from one representation to another. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSValueTransformer_Class/index.html#//apple_ref/occ/cl/NSValueTransformer"/> [iOSVersion(3)] public class NSValueTransformer : NSObject//, AnyObject, NSObjectProtocol { /// <summary> /// Registers the provided value transformer with a given identifier. /// </summary> /// <param name="transformer">The transformer to register.</param> /// <param name="forName">The name for transformer.</param> [iOSVersion(3)] [Export("setValueTransformer")] public static void SetValueTransformer(NSValueTransformer transformer, string forName) { } /// <summary> /// Returns the value transformer identified by a given identifier. /// </summary> /// <param name="forName">The transformer identifier.</param> [iOSVersion(3)] public NSValueTransformer(string forName) { } /// <summary> /// Returns an array of all the registered value transformers. /// </summary> [iOSVersion(3)] [Export("valueTransformerNames")] public static AnyObject[] ValueTransformerNames() { return default(AnyObject[]); } /// <summary> /// Returns a Boolean value that indicates whether the receiver can reverse a transformation. /// </summary> [iOSVersion(3)] [Export("allowsReverseTransformation")] public static bool AllowsReverseTransformation() { return default(bool); } /// <summary> /// Returns the class of the value returned by the receiver for a forward transformation. /// </summary> [iOSVersion(3)] [Export("transformedValueClass")] public static AnyClass TransformedValueClass() { return default(AnyClass); } /// <summary> /// Returns the result of transforming a given value. /// </summary> /// <param name="value">The value to transform.</param> [iOSVersion(3)] [Export("transformedValue")] public AnyObject TransformedValue(AnyObject value) { return default(AnyObject); } /// <summary> /// Returns the result of the reverse transformation of a given value. /// </summary> /// <param name="value">The value to reverse transform.</param> [iOSVersion(3)] [Export("reverseTransformedValue")] public AnyObject ReverseTransformedValue(AnyObject value) { return default(AnyObject); } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// NSValueTransformer is an abstract class that is used by the Cocoa Bindings technology to transform values from one representation to another. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSValueTransformer_Class/index.html#//apple_ref/occ/cl/NSValueTransformer"/> [iOSVersion(3)] [Export("")] public class NSValueTransformer : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSObjectProtocol, Printable { public NSValueTransformer() { } /// <summary> /// Registers the provided value transformer with a given identifier. /// </summary> /// <param name="transformer">The transformer to register.</param> /// <param name="forName">The name for transformer.</param> [iOSVersion(3)] [Export("setValueTransformer")] public static void SetValueTransformer(NSValueTransformer transformer, string forName) { } /// <summary> /// Returns an array of all the registered value transformers. /// </summary> [iOSVersion(3)] [Export("valueTransformerNames")] public static AnyObject[] ValueTransformerNames() { return default(AnyObject[]); } /// <summary> /// Returns a Boolean value that indicates whether the receiver can reverse a transformation. /// </summary> [iOSVersion(3)] [Export("allowsReverseTransformation")] public static bool AllowsReverseTransformation() { return default(bool); } /// <summary> /// Returns the class of the value returned by the receiver for a forward transformation. /// </summary> [iOSVersion(3)] [Export("transformedValueClass")] public static AnyClass TransformedValueClass() { return default(AnyClass); } /// <summary> /// Returns the result of transforming a given value. /// </summary> /// <param name="value">The value to transform.</param> [iOSVersion(3)] [Export("transformedValue")] [return:Optional] public virtual AnyObject TransformedValue([Optional] AnyObject value) { return default(AnyObject); } /// <summary> /// Returns the result of the reverse transformation of a given value. /// </summary> /// <param name="value">The value to reverse transform.</param> [iOSVersion(3)] [Export("reverseTransformedValue")] [return:Optional] public virtual AnyObject ReverseTransformedValue([Optional] AnyObject value) { return default(AnyObject); } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/NSXMLParser.cs b/CocoaSharp/Foundation/NSXMLParser.cs
index aac0b5bd..3eae7bea 100644
--- a/CocoaSharp/Foundation/NSXMLParser.cs
+++ b/CocoaSharp/Foundation/NSXMLParser.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// Instances of this class parse XML documents (including DTD declarations) in an event-driven manner. An NSXMLParser notifies its delegate about the items (elements, attributes, CDATA blocks, comments, and so on) that it encounters as it processes an XML document. It does not itself do anything with those parsed items except report them. It also reports parsing errors. For convenience, an NSXMLParser object in the following descriptions is sometimes referred to as a parser object. Unless used in a callback, the NSXMLParser is a thread-safe class as long as any given instance is only used in one thread. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSXMLParser_Class/index.html#//apple_ref/occ/cl/NSXMLParser"/> [iOSVersion(2)] public class NSXMLParser : NSObject//, AnyObject, NSObjectProtocol { /// <summary> /// Initializes a parser with the XML content referenced by the given URL. /// </summary> /// <param name="contentsOfURL">An NSURL object specifying a URL. The URL must be fully qualified and refer to a scheme that is supported by the NSURL class.</param> [iOSVersion(2)] [Export("convenience init")] public NSXMLParser(NSURL contentsOfURL) { } /// <summary> /// Initializes a parser with the XML contents encapsulated in a given data object. /// </summary> /// <param name="data">An NSData object containing XML markup.</param> [iOSVersion(2)] public NSXMLParser(NSData data) { } /// <summary> /// Initializes a parser with the XML contents from the specified stream and parses it.. /// </summary> /// <param name="stream">The input stream. The content is incrementally loaded from the specified stream and parsed. The NSXMLParser will open the stream, and synchronously read from it without scheduling it.</param> [iOSVersion(5)] [Export("convenience init")] public NSXMLParser(NSInputStream stream) { } /// <summary> /// Starts the event-driven parsing operation. /// </summary> [iOSVersion(2)] [Export("parse")] public bool Parse() { return default(bool); } /// <summary> /// Stops the parser object. /// </summary> [iOSVersion(2)] [Export("abortParsing")] public void AbortParsing() { } /// <summary> /// A delegate object that receives messages about the parsing process. /// </summary> [iOSVersion(2)] [Export("delegate")] public NSXMLParserDelegate Delegate { get; set; } /// <summary> /// A Boolean value that determines whether the parser reports the namespaces and qualified names of elements. /// </summary> [iOSVersion(2)] [Export("shouldProcessNamespaces")] public bool ShouldProcessNamespaces { get; set; } /// <summary> /// A Boolean value that determines whether the parser reports the prefixes indicating the scope of namespace declarations. /// </summary> [iOSVersion(2)] [Export("shouldReportNamespacePrefixes")] public bool ShouldReportNamespacePrefixes { get; set; } /// <summary> /// A Boolean value that determines whether the parser reports declarations of external entities. /// </summary> [iOSVersion(2)] [Export("shouldResolveExternalEntities")] public bool ShouldResolveExternalEntities { get; set; } /// <summary> /// An NSError object from which you can obtain information about a parsing error. (read-only) /// </summary> [iOSVersion(2)] [Export("parserError")] public NSError ParserError { get; private set; } /// <summary> /// The column number of the XML document being processed by the parser. (read-only) /// </summary> [iOSVersion(2)] [Export("columnNumber")] public int ColumnNumber { get; private set; } /// <summary> /// The line number of the XML document being processed by the parser. (read-only) /// </summary> [iOSVersion(2)] [Export("lineNumber")] public int LineNumber { get; private set; } /// <summary> /// The public identifier of the external entity referenced in the XML document. (read-only) /// </summary> [iOSVersion(2)] [Export("publicID")] public string PublicID { get; private set; } /// <summary> /// The system identifier of the external entity referenced in the XML document. (read-only) /// </summary> [iOSVersion(2)] [Export("systemID")] public string SystemID { get; private set; } } /// <summary> /// The following error codes are defined by NSXMLParser. For error codes not listed here, see the <libxml/xmlerror.h> header file. /// </summary> [iOSVersion(2)] public enum NSXMLParserError { /// <summary> /// The parser object encountered an internal error. /// </summary> [iOSVersion(2)] InternalError, /// <summary> /// The parser object ran out of memory. /// </summary> [iOSVersion(2)] OutOfMemoryError, /// <summary> /// The parser object is unable to start parsing. /// </summary> [iOSVersion(2)] DocumentStartError, /// <summary> /// The document is empty. /// </summary> [iOSVersion(2)] EmptyDocumentError, /// <summary> /// The document ended unexpectedly. /// </summary> [iOSVersion(2)] PrematureDocumentEndError, /// <summary> /// Invalid hexadecimal character reference encountered. /// </summary> [iOSVersion(2)] InvalidHexCharacterRefError, /// <summary> /// Invalid decimal character reference encountered. /// </summary> [iOSVersion(2)] InvalidDecimalCharacterRefError, /// <summary> /// Invalid character reference encountered. /// </summary> [iOSVersion(2)] InvalidCharacterRefError, /// <summary> /// Invalid character encountered. /// </summary> [iOSVersion(2)] InvalidCharacterError, /// <summary> /// Target of character reference cannot be found. /// </summary> [iOSVersion(2)] CharacterRefAtEOFError, /// <summary> /// Invalid character found in the prolog. /// </summary> [iOSVersion(2)] CharacterRefInPrologError, /// <summary> /// Invalid character found in the epilog. /// </summary> [iOSVersion(2)] CharacterRefInEpilogError, /// <summary> /// Invalid character encountered in the DTD. /// </summary> [iOSVersion(2)] CharacterRefInDTDError, /// <summary> /// Target of entity reference is not found. /// </summary> [iOSVersion(2)] EntityRefAtEOFError, /// <summary> /// Invalid entity reference found in the prolog. /// </summary> [iOSVersion(2)] EntityRefInPrologError, /// <summary> /// Invalid entity reference found in the epilog. /// </summary> [iOSVersion(2)] EntityRefInEpilogError, /// <summary> /// Invalid entity reference found in the DTD. /// </summary> [iOSVersion(2)] EntityRefInDTDError, /// <summary> /// Target of parsed entity reference is not found. /// </summary> [iOSVersion(2)] ParsedEntityRefAtEOFError, /// <summary> /// Target of parsed entity reference is not found in prolog. /// </summary> [iOSVersion(2)] ParsedEntityRefInPrologError, /// <summary> /// Target of parsed entity reference is not found in epilog. /// </summary> [iOSVersion(2)] ParsedEntityRefInEpilogError, /// <summary> /// Target of parsed entity reference is not found in internal subset. /// </summary> [iOSVersion(2)] ParsedEntityRefInInternalSubsetError, /// <summary> /// Entity reference is without name. /// </summary> [iOSVersion(2)] EntityReferenceWithoutNameError, /// <summary> /// Entity reference is missing semicolon. /// </summary> [iOSVersion(2)] EntityReferenceMissingSemiError, /// <summary> /// Parsed entity reference is without an entity name. /// </summary> [iOSVersion(2)] ParsedEntityRefNoNameError, /// <summary> /// Parsed entity reference is missing semicolon. /// </summary> [iOSVersion(2)] ParsedEntityRefMissingSemiError, /// <summary> /// Entity is not declared. /// </summary> [iOSVersion(2)] UndeclaredEntityError, /// <summary> /// Cannot parse entity. /// </summary> [iOSVersion(2)] UnparsedEntityError, /// <summary> /// Cannot parse external entity. /// </summary> [iOSVersion(2)] EntityIsExternalError, /// <summary> /// Entity is a parameter. /// </summary> [iOSVersion(2)] EntityIsParameterError, /// <summary> /// Document encoding is unknown. /// </summary> [iOSVersion(2)] UnknownEncodingError, /// <summary> /// Document encoding is not supported. /// </summary> [iOSVersion(2)] EncodingNotSupportedError, /// <summary> /// String is not started. /// </summary> [iOSVersion(2)] StringNotStartedError, /// <summary> /// String is not closed. /// </summary> [iOSVersion(2)] StringNotClosedError, /// <summary> /// Invalid namespace declaration encountered. /// </summary> [iOSVersion(2)] NamespaceDeclarationError, /// <summary> /// Entity is not started. /// </summary> [iOSVersion(2)] EntityNotStartedError, /// <summary> /// Entity is not finished. /// </summary> [iOSVersion(2)] EntityNotFinishedError, /// <summary> /// Angle bracket is used in attribute. /// </summary> [iOSVersion(2)] LessThanSymbolInAttributeError, /// <summary> /// Attribute is not started. /// </summary> [iOSVersion(2)] AttributeNotStartedError, /// <summary> /// Attribute is not finished. /// </summary> [iOSVersion(2)] AttributeNotFinishedError, /// <summary> /// Attribute doesn’t contain a value. /// </summary> [iOSVersion(2)] AttributeHasNoValueError, /// <summary> /// Attribute is redefined. /// </summary> [iOSVersion(2)] AttributeRedefinedError, /// <summary> /// Literal is not started. /// </summary> [iOSVersion(2)] LiteralNotStartedError, /// <summary> /// Literal is not finished. /// </summary> [iOSVersion(2)] LiteralNotFinishedError, /// <summary> /// Comment is not finished. /// </summary> [iOSVersion(2)] CommentNotFinishedError, /// <summary> /// Processing instruction is not started. /// </summary> [iOSVersion(2)] ProcessingInstructionNotStartedError, /// <summary> /// Processing instruction is not finished. /// </summary> [iOSVersion(2)] ProcessingInstructionNotFinishedError, /// <summary> /// Notation is not started. /// </summary> [iOSVersion(2)] NotationNotStartedError, /// <summary> /// Notation is not finished. /// </summary> [iOSVersion(2)] NotationNotFinishedError, /// <summary> /// Attribute list is not started. /// </summary> [iOSVersion(2)] AttributeListNotStartedError, /// <summary> /// Attribute list is not finished. /// </summary> [iOSVersion(2)] AttributeListNotFinishedError, /// <summary> /// Mixed content declaration is not started. /// </summary> [iOSVersion(2)] MixedContentDeclNotStartedError, /// <summary> /// Mixed content declaration is not finished. /// </summary> [iOSVersion(2)] MixedContentDeclNotFinishedError, /// <summary> /// Element content declaration is not started. /// </summary> [iOSVersion(2)] ElementContentDeclNotStartedError, /// <summary> /// Element content declaration is not finished. /// </summary> [iOSVersion(2)] ElementContentDeclNotFinishedError, /// <summary> /// XML declaration is not started. /// </summary> [iOSVersion(2)] XMLDeclNotStartedError, /// <summary> /// XML declaration is not finished. /// </summary> [iOSVersion(2)] XMLDeclNotFinishedError, /// <summary> /// Conditional section is not started. /// </summary> [iOSVersion(2)] ConditionalSectionNotStartedError, /// <summary> /// Conditional section is not finished. /// </summary> [iOSVersion(2)] ConditionalSectionNotFinishedError, /// <summary> /// External subset is not finished. /// </summary> [iOSVersion(2)] ExternalSubsetNotFinishedError, /// <summary> /// Document type declaration is not finished. /// </summary> [iOSVersion(2)] DOCTYPEDeclNotFinishedError, /// <summary> /// Misplaced CDATA end string. /// </summary> [iOSVersion(2)] MisplacedCDATAEndStringError, /// <summary> /// CDATA block is not finished. /// </summary> [iOSVersion(2)] CDATANotFinishedError, /// <summary> /// Misplaced XML declaration. /// </summary> [iOSVersion(2)] MisplacedXMLDeclarationError, /// <summary> /// Space is required. /// </summary> [iOSVersion(2)] SpaceRequiredError, /// <summary> /// Separator is required. /// </summary> [iOSVersion(2)] SeparatorRequiredError, /// <summary> /// Name token is required. /// </summary> [iOSVersion(2)] NMTOKENRequiredError, /// <summary> /// Name is required. /// </summary> [iOSVersion(2)] NAMERequiredError, /// <summary> /// CDATA is required. /// </summary> [iOSVersion(2)] PCDATARequiredError, /// <summary> /// URI is required. /// </summary> [iOSVersion(2)] URIRequiredError, /// <summary> /// Public identifier is required. /// </summary> [iOSVersion(2)] PublicIdentifierRequiredError, /// <summary> /// Left angle bracket is required. /// </summary> [iOSVersion(2)] LTRequiredError, /// <summary> /// Right angle bracket is required. /// </summary> [iOSVersion(2)] GTRequiredError, /// <summary> /// Left angle bracket slash is required. /// </summary> [iOSVersion(2)] LTSlashRequiredError, /// <summary> /// Equal sign expected. /// </summary> [iOSVersion(2)] EqualExpectedError, /// <summary> /// Tag name mismatch. /// </summary> [iOSVersion(2)] TagNameMismatchError, /// <summary> /// Unfinished tag found. /// </summary> [iOSVersion(2)] UnfinishedTagError, /// <summary> /// Standalone value found. /// </summary> [iOSVersion(2)] StandaloneValueError, /// <summary> /// Invalid encoding name found. /// </summary> [iOSVersion(2)] InvalidEncodingNameError, /// <summary> /// Comment contains double hyphen. /// </summary> [iOSVersion(2)] CommentContainsDoubleHyphenError, /// <summary> /// Invalid encoding. /// </summary> [iOSVersion(2)] InvalidEncodingError, /// <summary> /// External standalone entity. /// </summary> [iOSVersion(2)] ExternalStandaloneEntityError, /// <summary> /// Invalid conditional section. /// </summary> [iOSVersion(2)] InvalidConditionalSectionError, /// <summary> /// Entity value is required. /// </summary> [iOSVersion(2)] EntityValueRequiredError, /// <summary> /// Document is not well balanced. /// </summary> [iOSVersion(2)] NotWellBalancedError, /// <summary> /// Error in content found. /// </summary> [iOSVersion(2)] ExtraContentError, /// <summary> /// Invalid character in entity found. /// </summary> [iOSVersion(2)] InvalidCharacterInEntityError, /// <summary> /// Internal error in parsed entity reference found. /// </summary> [iOSVersion(2)] ParsedEntityRefInInternalError, /// <summary> /// Entity reference loop encountered. /// </summary> [iOSVersion(2)] EntityRefLoopError, /// <summary> /// Entity boundary error. /// </summary> [iOSVersion(2)] EntityBoundaryError, /// <summary> /// Invalid URI specified. /// </summary> [iOSVersion(2)] InvalidURIError, /// <summary> /// URI fragment. /// </summary> [iOSVersion(2)] URIFragmentError, /// <summary> /// Missing DTD. /// </summary> [iOSVersion(2)] NoDTDError, /// <summary> /// Delegate aborted parse. /// </summary> [iOSVersion(2)] DelegateAbortedParseError, } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// Instances of this class parse XML documents (including DTD declarations) in an event-driven manner. An NSXMLParser notifies its delegate about the items (elements, attributes, CDATA blocks, comments, and so on) that it encounters as it processes an XML document. It does not itself do anything with those parsed items except report them. It also reports parsing errors. For convenience, an NSXMLParser object in the following descriptions is sometimes referred to as a parser object. Unless used in a callback, the NSXMLParser is a thread-safe class as long as any given instance is only used in one thread. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSXMLParser_Class/index.html#//apple_ref/occ/cl/NSXMLParser"/> [iOSVersion(2)] [Export("")] public class NSXMLParser : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSObjectProtocol, Printable { public NSXMLParser() { } /// <summary> /// Initializes a parser with the XML contents encapsulated in a given data object. /// </summary> /// <param name="data">An NSData object containing XML markup.</param> [iOSVersion(2)] public NSXMLParser([Unwrapped] NSData data) { } /// <summary> /// Initializes a parser with the XML contents from the specified stream and parses it.. /// </summary> /// <param name="stream">The input stream. The content is incrementally loaded from the specified stream and parsed. The NSXMLParser will open the stream, and synchronously read from it without scheduling it.</param> [iOSVersion(5)] [Export("convenience init")] public NSXMLParser(NSInputStream stream) { } /// <summary> /// Starts the event-driven parsing operation. /// </summary> [iOSVersion(2)] [Export("parse")] public virtual bool Parse() { return default(bool); } /// <summary> /// Stops the parser object. /// </summary> [iOSVersion(2)] [Export("abortParsing")] public virtual void AbortParsing() { } /// <summary> /// A delegate object that receives messages about the parsing process. /// </summary> [iOSVersion(2)] [Export("delegate")] [Optional] public NSXMLParserDelegate Delegate { get; set; } /// <summary> /// A Boolean value that determines whether the parser reports the namespaces and qualified names of elements. /// </summary> [iOSVersion(2)] [Export("shouldProcessNamespaces")] public bool ShouldProcessNamespaces { get; set; } /// <summary> /// A Boolean value that determines whether the parser reports the prefixes indicating the scope of namespace declarations. /// </summary> [iOSVersion(2)] [Export("shouldReportNamespacePrefixes")] public bool ShouldReportNamespacePrefixes { get; set; } /// <summary> /// A Boolean value that determines whether the parser reports declarations of external entities. /// </summary> [iOSVersion(2)] [Export("shouldResolveExternalEntities")] public bool ShouldResolveExternalEntities { get; set; } /// <summary> /// An NSError object from which you can obtain information about a parsing error. (read-only) /// </summary> [iOSVersion(2)] [Export("parserError")] [Optional] public NSError ParserError { get; private set; } /// <summary> /// The column number of the XML document being processed by the parser. (read-only) /// </summary> [iOSVersion(2)] [Export("columnNumber")] public int ColumnNumber { get; private set; } /// <summary> /// The line number of the XML document being processed by the parser. (read-only) /// </summary> [iOSVersion(2)] [Export("lineNumber")] public int LineNumber { get; private set; } /// <summary> /// The public identifier of the external entity referenced in the XML document. (read-only) /// </summary> [iOSVersion(2)] [Export("publicID")] [Optional] public string PublicID { get; private set; } /// <summary> /// The system identifier of the external entity referenced in the XML document. (read-only) /// </summary> [iOSVersion(2)] [Export("systemID")] [Optional] public string SystemID { get; private set; } } /// <summary> /// The following error codes are defined by NSXMLParser. For error codes not listed here, see the <libxml/xmlerror.h> header file. /// </summary> public enum NSXMLParserError { /// <summary> /// The parser object encountered an internal error. /// </summary> [iOSVersion(2)] InternalError, /// <summary> /// The parser object ran out of memory. /// </summary> [iOSVersion(2)] OutOfMemoryError, /// <summary> /// The parser object is unable to start parsing. /// </summary> [iOSVersion(2)] DocumentStartError, /// <summary> /// The document is empty. /// </summary> [iOSVersion(2)] EmptyDocumentError, /// <summary> /// The document ended unexpectedly. /// </summary> [iOSVersion(2)] PrematureDocumentEndError, /// <summary> /// Invalid hexadecimal character reference encountered. /// </summary> [iOSVersion(2)] InvalidHexCharacterRefError, /// <summary> /// Invalid decimal character reference encountered. /// </summary> [iOSVersion(2)] InvalidDecimalCharacterRefError, /// <summary> /// Invalid character reference encountered. /// </summary> [iOSVersion(2)] InvalidCharacterRefError, /// <summary> /// Invalid character encountered. /// </summary> [iOSVersion(2)] InvalidCharacterError, /// <summary> /// Target of character reference cannot be found. /// </summary> [iOSVersion(2)] CharacterRefAtEOFError, /// <summary> /// Invalid character found in the prolog. /// </summary> [iOSVersion(2)] CharacterRefInPrologError, /// <summary> /// Invalid character found in the epilog. /// </summary> [iOSVersion(2)] CharacterRefInEpilogError, /// <summary> /// Invalid character encountered in the DTD. /// </summary> [iOSVersion(2)] CharacterRefInDTDError, /// <summary> /// Target of entity reference is not found. /// </summary> [iOSVersion(2)] EntityRefAtEOFError, /// <summary> /// Invalid entity reference found in the prolog. /// </summary> [iOSVersion(2)] EntityRefInPrologError, /// <summary> /// Invalid entity reference found in the epilog. /// </summary> [iOSVersion(2)] EntityRefInEpilogError, /// <summary> /// Invalid entity reference found in the DTD. /// </summary> [iOSVersion(2)] EntityRefInDTDError, /// <summary> /// Target of parsed entity reference is not found. /// </summary> [iOSVersion(2)] ParsedEntityRefAtEOFError, /// <summary> /// Target of parsed entity reference is not found in prolog. /// </summary> [iOSVersion(2)] ParsedEntityRefInPrologError, /// <summary> /// Target of parsed entity reference is not found in epilog. /// </summary> [iOSVersion(2)] ParsedEntityRefInEpilogError, /// <summary> /// Target of parsed entity reference is not found in internal subset. /// </summary> [iOSVersion(2)] ParsedEntityRefInInternalSubsetError, /// <summary> /// Entity reference is without name. /// </summary> [iOSVersion(2)] EntityReferenceWithoutNameError, /// <summary> /// Entity reference is missing semicolon. /// </summary> [iOSVersion(2)] EntityReferenceMissingSemiError, /// <summary> /// Parsed entity reference is without an entity name. /// </summary> [iOSVersion(2)] ParsedEntityRefNoNameError, /// <summary> /// Parsed entity reference is missing semicolon. /// </summary> [iOSVersion(2)] ParsedEntityRefMissingSemiError, /// <summary> /// Entity is not declared. /// </summary> [iOSVersion(2)] UndeclaredEntityError, /// <summary> /// Cannot parse entity. /// </summary> [iOSVersion(2)] UnparsedEntityError, /// <summary> /// Cannot parse external entity. /// </summary> [iOSVersion(2)] EntityIsExternalError, /// <summary> /// Entity is a parameter. /// </summary> [iOSVersion(2)] EntityIsParameterError, /// <summary> /// Document encoding is unknown. /// </summary> [iOSVersion(2)] UnknownEncodingError, /// <summary> /// Document encoding is not supported. /// </summary> [iOSVersion(2)] EncodingNotSupportedError, /// <summary> /// String is not started. /// </summary> [iOSVersion(2)] StringNotStartedError, /// <summary> /// String is not closed. /// </summary> [iOSVersion(2)] StringNotClosedError, /// <summary> /// Invalid namespace declaration encountered. /// </summary> [iOSVersion(2)] NamespaceDeclarationError, /// <summary> /// Entity is not started. /// </summary> [iOSVersion(2)] EntityNotStartedError, /// <summary> /// Entity is not finished. /// </summary> [iOSVersion(2)] EntityNotFinishedError, /// <summary> /// Angle bracket is used in attribute. /// </summary> [iOSVersion(2)] LessThanSymbolInAttributeError, /// <summary> /// Attribute is not started. /// </summary> [iOSVersion(2)] AttributeNotStartedError, /// <summary> /// Attribute is not finished. /// </summary> [iOSVersion(2)] AttributeNotFinishedError, /// <summary> /// Attribute doesn’t contain a value. /// </summary> [iOSVersion(2)] AttributeHasNoValueError, /// <summary> /// Attribute is redefined. /// </summary> [iOSVersion(2)] AttributeRedefinedError, /// <summary> /// Literal is not started. /// </summary> [iOSVersion(2)] LiteralNotStartedError, /// <summary> /// Literal is not finished. /// </summary> [iOSVersion(2)] LiteralNotFinishedError, /// <summary> /// Comment is not finished. /// </summary> [iOSVersion(2)] CommentNotFinishedError, /// <summary> /// Processing instruction is not started. /// </summary> [iOSVersion(2)] ProcessingInstructionNotStartedError, /// <summary> /// Processing instruction is not finished. /// </summary> [iOSVersion(2)] ProcessingInstructionNotFinishedError, /// <summary> /// Notation is not started. /// </summary> [iOSVersion(2)] NotationNotStartedError, /// <summary> /// Notation is not finished. /// </summary> [iOSVersion(2)] NotationNotFinishedError, /// <summary> /// Attribute list is not started. /// </summary> [iOSVersion(2)] AttributeListNotStartedError, /// <summary> /// Attribute list is not finished. /// </summary> [iOSVersion(2)] AttributeListNotFinishedError, /// <summary> /// Mixed content declaration is not started. /// </summary> [iOSVersion(2)] MixedContentDeclNotStartedError, /// <summary> /// Mixed content declaration is not finished. /// </summary> [iOSVersion(2)] MixedContentDeclNotFinishedError, /// <summary> /// Element content declaration is not started. /// </summary> [iOSVersion(2)] ElementContentDeclNotStartedError, /// <summary> /// Element content declaration is not finished. /// </summary> [iOSVersion(2)] ElementContentDeclNotFinishedError, /// <summary> /// XML declaration is not started. /// </summary> [iOSVersion(2)] XMLDeclNotStartedError, /// <summary> /// XML declaration is not finished. /// </summary> [iOSVersion(2)] XMLDeclNotFinishedError, /// <summary> /// Conditional section is not started. /// </summary> [iOSVersion(2)] ConditionalSectionNotStartedError, /// <summary> /// Conditional section is not finished. /// </summary> [iOSVersion(2)] ConditionalSectionNotFinishedError, /// <summary> /// External subset is not finished. /// </summary> [iOSVersion(2)] ExternalSubsetNotFinishedError, /// <summary> /// Document type declaration is not finished. /// </summary> [iOSVersion(2)] DOCTYPEDeclNotFinishedError, /// <summary> /// Misplaced CDATA end string. /// </summary> [iOSVersion(2)] MisplacedCDATAEndStringError, /// <summary> /// CDATA block is not finished. /// </summary> [iOSVersion(2)] CDATANotFinishedError, /// <summary> /// Misplaced XML declaration. /// </summary> [iOSVersion(2)] MisplacedXMLDeclarationError, /// <summary> /// Space is required. /// </summary> [iOSVersion(2)] SpaceRequiredError, /// <summary> /// Separator is required. /// </summary> [iOSVersion(2)] SeparatorRequiredError, /// <summary> /// Name token is required. /// </summary> [iOSVersion(2)] NMTOKENRequiredError, /// <summary> /// Name is required. /// </summary> [iOSVersion(2)] NAMERequiredError, /// <summary> /// CDATA is required. /// </summary> [iOSVersion(2)] PCDATARequiredError, /// <summary> /// URI is required. /// </summary> [iOSVersion(2)] URIRequiredError, /// <summary> /// Public identifier is required. /// </summary> [iOSVersion(2)] PublicIdentifierRequiredError, /// <summary> /// Left angle bracket is required. /// </summary> [iOSVersion(2)] LTRequiredError, /// <summary> /// Right angle bracket is required. /// </summary> [iOSVersion(2)] GTRequiredError, /// <summary> /// Left angle bracket slash is required. /// </summary> [iOSVersion(2)] LTSlashRequiredError, /// <summary> /// Equal sign expected. /// </summary> [iOSVersion(2)] EqualExpectedError, /// <summary> /// Tag name mismatch. /// </summary> [iOSVersion(2)] TagNameMismatchError, /// <summary> /// Unfinished tag found. /// </summary> [iOSVersion(2)] UnfinishedTagError, /// <summary> /// Standalone value found. /// </summary> [iOSVersion(2)] StandaloneValueError, /// <summary> /// Invalid encoding name found. /// </summary> [iOSVersion(2)] InvalidEncodingNameError, /// <summary> /// Comment contains double hyphen. /// </summary> [iOSVersion(2)] CommentContainsDoubleHyphenError, /// <summary> /// Invalid encoding. /// </summary> [iOSVersion(2)] InvalidEncodingError, /// <summary> /// External standalone entity. /// </summary> [iOSVersion(2)] ExternalStandaloneEntityError, /// <summary> /// Invalid conditional section. /// </summary> [iOSVersion(2)] InvalidConditionalSectionError, /// <summary> /// Entity value is required. /// </summary> [iOSVersion(2)] EntityValueRequiredError, /// <summary> /// Document is not well balanced. /// </summary> [iOSVersion(2)] NotWellBalancedError, /// <summary> /// Error in content found. /// </summary> [iOSVersion(2)] ExtraContentError, /// <summary> /// Invalid character in entity found. /// </summary> [iOSVersion(2)] InvalidCharacterInEntityError, /// <summary> /// Internal error in parsed entity reference found. /// </summary> [iOSVersion(2)] ParsedEntityRefInInternalError, /// <summary> /// Entity reference loop encountered. /// </summary> [iOSVersion(2)] EntityRefLoopError, /// <summary> /// Entity boundary error. /// </summary> [iOSVersion(2)] EntityBoundaryError, /// <summary> /// Invalid URI specified. /// </summary> [iOSVersion(2)] InvalidURIError, /// <summary> /// URI fragment. /// </summary> [iOSVersion(2)] URIFragmentError, /// <summary> /// Missing DTD. /// </summary> [iOSVersion(2)] NoDTDError, /// <summary> /// Delegate aborted parse. /// </summary> [iOSVersion(2)] DelegateAbortedParseError, } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/ObjectiveC/NSObject.cs b/CocoaSharp/Foundation/ObjectiveC/NSObject.cs
deleted file mode 100644
index 5d5e5e3b..00000000
--- a/CocoaSharp/Foundation/ObjectiveC/NSObject.cs
+++ /dev/null
@@ -1,293 +0,0 @@
-using System;
-using Foundation;
-using SharpSwift.Attributes;
-
-namespace ObjectiveC
-{
- public interface NSObjectProtocol //TODO: NSObjectProtocol
- {
-
- }
-
- //https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSObject_Class/index.html#//apple_ref/occ/clm/NSObject/load
- /// <summary>
- /// The NSCoder abstract class declares the interface used by concrete subclasses to transfer objects and other Objective-C data items between memory and some other format. This capability provides the basis for archiving (where objects and data items are stored on disk) and distribution (where objects and data items are copied between different processes or threads). The concrete subclasses provided by Foundation for these purposes are NSArchiver, NSUnarchiver, NSKeyedArchiver, NSKeyedUnarchiver, and NSPortCoder. Concrete subclasses of NSCoder are referred to in general as coder classes, and instances of these classes as coder objects (or simply coders). A coder object that can only encode values is referred to as an encoder object, and one that can only decode values as a decoder object.
- /// </summary>
- public class NSObject
- {
- /// <summary>
- /// Initializes the class before it receives its first message.
- /// </summary>
- [iOSVersion(2)]
- [Export("initialize")]
- public static void Initialize() { }
-
- /// <summary>
- /// Invoked whenever a class or category is added to the Objective-C runtime; implement this method to perform class-specific behavior upon loading.
- /// </summary>
- [iOSVersion(2)]
- [Export("load")]
- public static void Load() { }
-
- /// <summary>
- /// Returns a new instance of the receiving class.
- /// </summary>
- /// <returns>A new instance of the receiver.</returns>
- [iOSVersion(2)]
- [Export("alloc")]
- public static NSObject Allocate() { return null; }
-
- /// <summary>
- /// Returns a new instance of the receiving class.
- /// </summary>
- /// <param name="zone">This parameter is ignored.</param>
- /// <returns>A new instance of the receiver.</returns>
- [iOSVersion(2)]
- [Export("allocWithZone")]
- public static NSObject AllocateWithZone(COpaquePointer zone) { return null; }
-
- /// <summary>
- /// Implemented by subclasses to initialize a new object (the receiver) immediately after memory for it has been allocated.
- /// </summary>
- /// <returns>An initialized object, or nil if an object could not be created for some reason that would not result in an exception.</returns>
- [iOSVersion(2)]
- public NSObject() { }
-
- /// <summary>
- /// Returns the object returned by copyWithZone:.
- /// </summary>
- /// <returns>The object returned by the NSCopying protocol method copyWithZone:,.</returns>
- [iOSVersion(2)]
- [Export("copy")]
- public AnyObject Copy() { return null; }
-
- /// <summary>
- /// Returns the object returned by mutableCopyWithZone: where the zone is nil.
- /// </summary>
- /// <returns>The object returned by the NSMutableCopying protocol method mutableCopyWithZone:, where the zone is nil.</returns>
- [iOSVersion(2)]
- [Export("mutableCopy")]
- public AnyObject MutableCopy() { return null; }
-
- /// <summary>
- /// Allocates a new instance of the receiving class, sends it an init message, and returns the initialized object.
- /// </summary>
- /// <returns>A new instance of the receiver.</returns>
- [iOSVersion(2)]
- [Export("new")]
- public static NSObject New() { return null; }
-
- /// <summary>
- /// Returns the class object for the receiver’s superclass.
- /// </summary>
- /// <returns>The class object for the receiver’s superclass.</returns>
- [iOSVersion(2)]
- [Export("superclass")]
- public static AnyClass Superclass() { return null; }
-
- /// <summary>
- /// Returns a Boolean value that indicates whether the receiving class is a subclass of, or identical to, a given class.
- /// </summary>
- /// <param name="aClass">A class object.</param>
- /// <returns>true if the receiving class is a subclass of—or identical to—aClass, otherwise false.</returns>
- [iOSVersion(2)]
- [Export("isSubclassOfClass")]
- public static bool IsSubclassOfClass(AnyClass aClass) { return false; }
-
- /// <summary>
- /// Returns a Boolean value that indicates whether instances of the receiver are capable of responding to a given selector.
- /// </summary>
- /// <param name="aSelector">A selector.</param>
- /// <returns>true if instances of the receiver are capable of responding to aSelector messages, otherwise false.</returns>
- [iOSVersion(2)]
- [Export("instancesRespondToSelector")]
- public static bool InstancesRespondToSelector(Selector aSelector) { return false; }
-
- /// <summary>
- /// Returns a Boolean value that indicates whether the receiver conforms to a given protocol.
- /// </summary>
- /// <param name="aProtocol">A protocol.</param>
- /// <returns>true if the receiver conforms to aProtocol, otherwise false.</returns>
- [iOSVersion(2)]
- [Export("conformsToProtocol")]
- public static bool ConformsToProtocol(Protocol aProtocol) { return false; }
-
- /// <summary>
- /// Returns an NSMethodSignature object that contains a description of the instance method identified by a given selector.
- /// </summary>
- /// <param name="aSelector">A selector that identifies the method for which to return the implementation address.</param>
- /// <returns>An NSMethodSignature object that contains a description of the instance method identified by aSelector, or nil if the method can’t be found.</returns>
- [iOSVersion(2)]
- [Export("instanceMethodSignatureForSelector")]
- public static NSMethodSignature InstanceMethodSignatureForSelector(Selector aSelector) { return null; }
-
- /// <summary>
- /// Returns an NSMethodSignature object that contains a description of the method identified by a given selector.
- /// </summary>
- /// <param name="aSelector">A selector that identifies the method for which to return the implementation address. When the receiver is an instance, aSelector should identify an instance method; when the receiver is a class, it should identify a class method.</param>
- /// <returns>An NSMethodSignature object that contains a description of the method identified by aSelector, or nil if the method can’t be found.</returns>
- [iOSVersion(2)]
- [Export("methodSignatureForSelector")]
- public NSMethodSignature MethodSignatureForSelector(Selector aSelector) { return null; }
-
- /// <summary>
- /// Returns a string that represents the contents of the receiving class.
- /// </summary>
- /// <returns>A string that represents the contents of the receiving class.</returns>
- [iOSVersion(2)]
- [Export("description")]
- public static string Description() { return ""; }
-
- /// <summary>
- /// Creates and returns a proxy for the receiving object
- /// </summary>
- /// <returns>A proxy of the receiver.</returns>
- [iOSVersion(4)]
- [Export("autoContentAccessingProxy")]
- public AnyObject AutoContentAccessingProxy { get; private set; }
-
- /// <summary>
- /// Cancels perform requests previously registered with the performSelector:withObject:afterDelay: instance method.
- /// </summary>
- /// <param name="aTarget">The target for requests previously registered with the performSelector:withObject:afterDelay: instance method.</param>
- [iOSVersion(2)]
- [Export("cancelPreviousPerformRequestsWithTarget")]
- public static void CancelPreviousPerformRequestsWithTarget(AnyObject aTarget) { }
-
- /// <summary>
- /// Cancels perform requests previously registered with performSelector:withObject:afterDelay:.
- /// </summary>
- /// <param name="aTarget">The target for requests previously registered with the performSelector:withObject:afterDelay: instance method</param>
- /// <param name="selector">The selector for requests previously registered with the performSelector:withObject:afterDelay: instance method.</param>
- /// <param name="object">The argument for requests previously registered with the performSelector:withObject:afterDelay: instance method. Argument equality is determined using isEqual:, so the value need not be the same object that was passed originally. Pass nil to match a request for nil that was originally passed as the argument.</param>
- [iOSVersion(2)]
- [Export("cancelPreviousPerformRequestsWithTarget")]
- public static void CancelPreviousPerformRequestsWithTarget(AnyObject aTarget, Selector selector, AnyObject @object) { }
-
- /// <summary>
- /// Returns the object to which unrecognized messages should first be directed.
- /// </summary>
- /// <param name="aSelector">A selector for a method that the receiver does not implement.</param>
- /// <returns>The object to which unrecognized messages should first be directed.</returns>
- [iOSVersion(2)]
- [Export("forwardingTargetForSelector")]
- public AnyObject ForwardingTargetForSelector(Selector aSelector) { return null; }
-
- /// <summary>
- /// Overridden by subclasses to forward messages to other objects.
- /// </summary>
- /// <param name="anInvocation">The invocation to forward.</param>
- [iOSVersion(2)]
- [Export("forwardInvocation")]
- public void ForwardInvocation(NSInvocation anInvocation) { }
-
- /// <summary>
- /// Dynamically provides an implementation for a given selector for a class method.
- /// </summary>
- /// <param name="name">The name of a selector to resolve.</param>
- /// <returns>true if the method was found and added to the receiver, otherwise false.</returns>
- [iOSVersion(2)]
- [Export("resolveClassMethod")]
- public static bool ResolveClassMethod(Selector name) { return false; }
-
- /// <summary>
- /// Dynamically provides an implementation for a given selector for an instance method.
- /// </summary>
- /// <param name="name">The name of a selector to resolve.</param>
- /// <returns>true if the method was found and added to the receiver, otherwise false.</returns>
- [iOSVersion(2)]
- [Export("resolveInstanceMethod")]
- public static bool ResolveInstanceMethod(Selector name) { return false; }
-
- /// <summary>
- /// Handles messages the receiver doesn’t recognize.
- /// </summary>
- /// <param name="aSelector">A selector that identifies a method not implemented or recognized by the receiver.</param>
- [iOSVersion(2)]
- [Export("doesNotRecognizeSelector")]
- public void DoesNotRecognizeSelector(Selector aSelector) { }
-
- /// <summary>
- /// Overridden by subclasses to substitute another object in place of the object that was decoded and subsequently received this message.
- /// </summary>
- /// <param name="aDecoder">The decoder used to decode the receiver.</param>
- /// <returns>The receiver, or another object to take the place of the object that was decoded and subsequently received this message.</returns>
- [iOSVersion(2)]
- [Export("awakeAfterUsingCoder")]
- public AnyObject AwakeAfterUsingCoder(NSCoder aDecoder) { return null; }
-
- /// <summary>
- /// Overridden by subclasses to substitute a class other than its own during coding.
- /// </summary>
- /// <returns>The class to substitute for the receiver's own class during coding.</returns>
- [iOSVersion(2)]
- [Export("classForCoder")]
- public AnyClass ClassForCoder { get; private set; }
-
- /// <summary>
- /// Overridden by subclasses to substitute a new class for instances during keyed archiving.
- /// </summary>
- [iOSVersion(2)]
- [Export("classForKeyedArchiver")]
- public AnyClass ClassForKeyedArchiver { get; private set; }
-
- /// <summary>
- /// Overridden to return the names of classes that can be used to decode objects if their class is unavailable.
- /// </summary>
- /// <returns>An array of NSString objects that specify the names of classes in preferred order for unarchiving</returns>
- [iOSVersion(2)]
- [Export("classFallbacksForKeyedArchiver")]
- public static AnyObject[] ClassFallbacksForKeyedArchiver() { return null; }
-
- /// <summary>
- /// Overridden by subclasses to substitute a new class during keyed unarchiving.
- /// </summary>
- /// <returns>The class to substitute for the receiver during keyed unarchiving.</returns>
- [iOSVersion(2)]
- [Export("classForKeyedUnarchiver")]
- public static AnyClass ClassForKeyedUnarchiver() { return null; }
-
- /// <summary>
- /// Overridden by subclasses to substitute another object for itself during encoding.
- /// </summary>
- /// <param name="aCoder">The coder encoding the receiver.</param>
- /// <returns>The object encode instead of the receiver (if different).</returns>
- [iOSVersion(2)]
- [Export("replacementObjectForCoder")]
- public AnyObject ReplacementObjectForCoder(NSCoder aCoder) { return null; }
-
- /// <summary>
- /// Overridden by subclasses to substitute another object for itself during keyed archiving.
- /// </summary>
- /// <param name="archiver">A keyed archiver creating an archive.</param>
- /// <returns>The object encode instead of the receiver (if different).</returns>
- [iOSVersion(2)]
- [Export("replacementObjectForKeyedArchiver")]
- public AnyObject ReplacementObjectForKeyedArchiver(NSKeyedArchiver archiver) { return null; }
-
- /// <summary>
- /// Sets the receiver's version number.
- /// </summary>
- /// <param name="aVersion">The version number for the receiver.</param>
- [iOSVersion(2)]
- [Export("setVersion")]
- public static void SetVersion(int aVersion) { }
-
- /// <summary>
- /// Returns the version number assigned to the class.
- /// </summary>
- /// <returns>The version number assigned to the class.</returns>
- [iOSVersion(2)]
- [Export("version")]
- public static int Version() { return 0; }
-
- /// <summary>
- /// The garbage collector invokes this method on the receiver before disposing of the memory it uses.
- /// Garbage collection is deprecated in OS X v10.8; instead, you should use Automatic Reference Counting—see Transitioning to ARC Release Notes.
- /// </summary>
- [iOSVersion(2)]
- [Obsolete]
- [Export("finalize")]
- public void Finalize() { }
- }
-} \ No newline at end of file
diff --git a/CocoaSharp/Foundation/Protocols/Delegates/NSCacheDelegate.cs b/CocoaSharp/Foundation/Protocols/Delegates/NSCacheDelegate.cs
index f8d14d3c..fc634b08 100644
--- a/CocoaSharp/Foundation/Protocols/Delegates/NSCacheDelegate.cs
+++ b/CocoaSharp/Foundation/Protocols/Delegates/NSCacheDelegate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The delegate of an NSCache object implements this protocol to perform specialized actions when an object is about to be evicted or removed from the cache. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/NSCacheDelegate_Protocol/index.html#//apple_ref/occ/intf/NSCacheDelegate"/> [iOSVersion(4)] public interface NSCacheDelegate//: NSObjectProtocol { /// <summary> /// Called when an object is about to be evicted or removed from the cache. /// </summary> /// <param name="cache">The cache with which the object of interest is associated.</param> /// <param name="willEvictObject">The object of interest in the cache.</param> [iOSVersion(4)] [Export("cache")] void Cache(NSCache cache, AnyObject willEvictObject); } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The delegate of an NSCache object implements this protocol to perform specialized actions when an object is about to be evicted or removed from the cache. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/NSCacheDelegate_Protocol/index.html#//apple_ref/occ/intf/NSCacheDelegate"/> [iOSVersion(4)] [Export("")] public interface NSCacheDelegate//: NSObjectProtocol { /// <summary> /// Called when an object is about to be evicted or removed from the cache. /// </summary> /// <param name="cache">The cache with which the object of interest is associated.</param> /// <param name="willEvictObject">The object of interest in the cache.</param> //[iOSVersion(4)] //[Export("cache")] //[InheritOptional] //void Cache(NSCache cache, AnyObject willEvictObject); } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/Protocols/Delegates/NSFileManagerDelegate.cs b/CocoaSharp/Foundation/Protocols/Delegates/NSFileManagerDelegate.cs
index f230b72a..fff8375b 100644
--- a/CocoaSharp/Foundation/Protocols/Delegates/NSFileManagerDelegate.cs
+++ b/CocoaSharp/Foundation/Protocols/Delegates/NSFileManagerDelegate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSFileManagerDelegate protocol defines optional methods for managing operations involving the copying, moving, linking, or removal of files and directories. When you use an NSFileManager object to initiate a copy, move, link, or remove operation, the file manager asks its delegate whether the operation should begin at all and whether it should proceed when an error occurs. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/NSFileManagerDelegate_Protocol/index.html#//apple_ref/occ/intf/NSFileManagerDelegate"/> [iOSVersion(5)] public interface NSFileManagerDelegate//: NSObjectProtocol { /// <summary> /// Asks the delegate if the file manager should move the specified item to the new URL. /// </summary> /// <param name="fileManager">The file manager object that is attempting to move the file or directory.</param> /// <param name="shouldMoveItemAtURL">The URL of the file or directory that the file manager wants to move.</param> /// <param name="toURL">The URL specifying the new location for the file or directory.</param> [iOSVersion(4)] [Export("fileManager")] bool FileManager(NSFileManager fileManager, NSURL shouldMoveItemAtURL, NSURL toURL); /// <summary> /// Asks the delegate if the file manager should move the specified item to the new path. /// </summary> /// <param name="fileManager">The file manager object that is attempting to move the file or directory.</param> /// <param name="shouldMoveItemAtPath">The path to the file or directory that the file manager wants to move.</param> /// <param name="toPath">The new path for the file or directory.</param> [iOSVersion(2)] [Export("fileManager")] bool FileManager(NSFileManager fileManager, string shouldMoveItemAtPath, string toPath); /// <summary> /// Asks the delegate if the move operation should continue after an error occurs while moving the item at the specified URL. /// </summary> /// <param name="fileManager">The file manager object that attempted to move the item.</param> /// <param name="shouldProceedAfterError">The error that occurred while trying to move the item in srcURL.</param> /// <param name="movingItemAtURL">The URL of the file or directory that the file manager tried to move.</param> /// <param name="toURL">The URL of the intended destination for the item in srcURL.</param> [iOSVersion(4)] [Export("fileManager")] bool FileManager(NSFileManager fileManager, NSError shouldProceedAfterError, NSURL movingItemAtURL, NSURL toURL); /// <summary> /// Asks the delegate if the move operation should continue after an error occurs while moving the item at the specified path. /// </summary> /// <param name="fileManager">The file manager object that attempted to move the item.</param> /// <param name="shouldProceedAfterError">The error that occurred while trying to move the item in srcPath.</param> /// <param name="movingItemAtPath">The path of the file or directory that the file manager tried to move.</param> /// <param name="toPath">The path of the intended destination for the item in srcPath.</param> [iOSVersion(2)] [Export("fileManager")] bool FileManager(NSFileManager fileManager, NSError shouldProceedAfterError, string movingItemAtPath, string toPath); /// <summary> /// Asks the delegate if the file manager should copy the specified item to the new URL. /// </summary> /// <param name="fileManager">The file manager object that is attempting to copy the file or directory.</param> /// <param name="shouldCopyItemAtURL">The URL of the file or directory that the file manager wants to copy.</param> /// <param name="toURL">The URL specifying the location for the copied file or directory.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(4)] [Export("fileManager")] [IgnoreParameter("NAME_YOUR_PARAMS")] bool FileManager(NSFileManager fileManager, NSURL shouldCopyItemAtURL, NSURL toURL, bool NAME_YOUR_PARAMS = false); /// <summary> /// Asks the delegate if the file manager should copy the specified item to the new path. /// </summary> /// <param name="fileManager">The file manager object that is attempting to copy the file or directory.</param> /// <param name="shouldCopyItemAtPath">The path to the file or directory that the file manager wants to copy.</param> /// <param name="toPath">The new path for the copied file or directory.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [Export("fileManager")] [IgnoreParameter("NAME_YOUR_PARAMS")] bool FileManager(NSFileManager fileManager, string shouldCopyItemAtPath, string toPath, bool NAME_YOUR_PARAMS = false); /// <summary> /// Asks the delegate if the move operation should continue after an error occurs while copying the item at the specified URL. /// </summary> /// <param name="fileManager">The file manager object that attempted to copy the item.</param> /// <param name="shouldProceedAfterError">The error that occurred during the attempt to copy.</param> /// <param name="copyingItemAtURL">The URL or a file or directory that fileManager is attempting to copy.</param> /// <param name="toURL">The URL or a file or directory to which fileManager is attempting to copy.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(4)] [Export("fileManager")] [IgnoreParameter("NAME_YOUR_PARAMS")] bool FileManager(NSFileManager fileManager, NSError shouldProceedAfterError, NSURL copyingItemAtURL, NSURL toURL, bool NAME_YOUR_PARAMS = false); /// <summary> /// Asks the delegate if the move operation should continue after an error occurs while copying the item at the specified path. /// </summary> /// <param name="fileManager">The NSFileManager object that sent this message.</param> /// <param name="shouldProceedAfterError">The error that occurred during the attempt to copy.</param> /// <param name="copyingItemAtPath">The path or a file or directory that fileManager is attempting to copy.</param> /// <param name="toPath">The path or a file or directory to which fileManager is attempting to copy.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [Export("fileManager")] [IgnoreParameter("NAME_YOUR_PARAMS")] bool FileManager(NSFileManager fileManager, NSError shouldProceedAfterError, string copyingItemAtPath, string toPath, bool NAME_YOUR_PARAMS = false); /// <summary> /// Asks the delegate whether the item at the specified URL should be deleted. /// </summary> /// <param name="fileManager">The file manager object that is attempting to remove the file or directory.</param> /// <param name="shouldRemoveItemAtURL">The URL indicating the file or directory that the file manager is attempting to delete.</param> [iOSVersion(4)] [Export("fileManager")] bool FileManager(NSFileManager fileManager, NSURL shouldRemoveItemAtURL); /// <summary> /// Asks the delegate whether the item at the specified path should be deleted. /// </summary> /// <param name="fileManager">The file manager object that is attempting to remove the file or directory.</param> /// <param name="shouldRemoveItemAtPath">The path to the file or directory that the file manager is attempting to delete.</param> [iOSVersion(2)] [Export("fileManager")] bool FileManager(NSFileManager fileManager, string shouldRemoveItemAtPath); /// <summary> /// Asks the delegate if the operation should continue after an error occurs while removing the item at the specified URL. /// </summary> /// <param name="fileManager">The file manager object that attempted to remove the item.</param> /// <param name="shouldProceedAfterError">The error that occurred while attempting to remove the item at URL.</param> /// <param name="removingItemAtURL">The URL for the file or directory that the file manager tried to delete.</param> [iOSVersion(4)] [Export("fileManager")] bool FileManager(NSFileManager fileManager, NSError shouldProceedAfterError, NSURL removingItemAtURL); /// <summary> /// Asks the delegate if the operation should continue after an error occurs while removing the item at the specified path. /// </summary> /// <param name="fileManager">The file manager object that attempted to remove the item.</param> /// <param name="shouldProceedAfterError">The error that occurred during the attempt to copy.</param> /// <param name="removingItemAtPath">The path for the file or directory that the file manager tried to delete.</param> [iOSVersion(2)] [Export("fileManager")] bool FileManager(NSFileManager fileManager, NSError shouldProceedAfterError, string removingItemAtPath); /// <summary> /// Asks the delegate if a hard link should be created between the items at the two URLs. /// </summary> /// <param name="fileManager">The file manager object that is attempting to create the link.</param> /// <param name="shouldLinkItemAtURL">The URL identifying the new hard link to be created.</param> /// <param name="toURL">The URL identifying the destination of the link.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(4)] [Export("fileManager")] [IgnoreParameter("NAME_YOUR_PARAMS")] bool FileManager(NSFileManager fileManager, NSURL shouldLinkItemAtURL, NSURL toURL, int NAME_YOUR_PARAMS = 0); /// <summary> /// Asks the delegate if a hard link should be created between the items at the two paths. /// </summary> /// <param name="fileManager">The file manager object that is attempting to create the link.</param> /// <param name="shouldLinkItemAtPath">The path or a file or directory that fileManager is about to attempt to link.</param> /// <param name="toPath">The path or a file or directory to which fileManager is about to attempt to link.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [Export("fileManager")] [IgnoreParameter("NAME_YOUR_PARAMS")] bool FileManager(NSFileManager fileManager, string shouldLinkItemAtPath, string toPath, int NAME_YOUR_PARAMS = 0); /// <summary> /// Asks the delegate if the operation should continue after an error occurs while linking to the item at the specified URL. /// </summary> /// <param name="fileManager">The file manager object that attempted to create the link.</param> /// <param name="shouldProceedAfterError">The error that occurred during the link attempt.</param> /// <param name="linkingItemAtURL">The URL of the attempted link location.</param> /// <param name="toURL">The URL of the file or directory that was the destination of the hard link.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(4)] [Export("fileManager")] [IgnoreParameter("NAME_YOUR_PARAMS")] bool FileManager(NSFileManager fileManager, NSError shouldProceedAfterError, NSURL linkingItemAtURL, NSURL toURL, int NAME_YOUR_PARAMS = 0); /// <summary> /// Asks the delegate if the operation should continue after an error occurs while linking to the item at the specified path. /// </summary> /// <param name="fileManager">The file manager object that attempted to create the link.</param> /// <param name="shouldProceedAfterError">The error that occurred during the link attempt.</param> /// <param name="linkingItemAtPath">The path to the attempted link location.</param> /// <param name="toPath">The path to the file or directory that was the destination of the hard link.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [Export("fileManager")] [IgnoreParameter("NAME_YOUR_PARAMS")] bool FileManager(NSFileManager fileManager, NSError shouldProceedAfterError, string linkingItemAtPath, string toPath, int NAME_YOUR_PARAMS = 0); } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSFileManagerDelegate protocol defines optional methods for managing operations involving the copying, moving, linking, or removal of files and directories. When you use an NSFileManager object to initiate a copy, move, link, or remove operation, the file manager asks its delegate whether the operation should begin at all and whether it should proceed when an error occurs. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/NSFileManagerDelegate_Protocol/index.html#//apple_ref/occ/intf/NSFileManagerDelegate"/> [iOSVersion(5)] [Export("")] public interface NSFileManagerDelegate//: NSObjectProtocol { /// <summary> /// Asks the delegate if the file manager should move the specified item to the new URL. /// </summary> /// <param name="fileManager">The file manager object that is attempting to move the file or directory.</param> /// <param name="shouldMoveItemAtURL">The URL of the file or directory that the file manager wants to move.</param> /// <param name="toURL">The URL specifying the new location for the file or directory.</param> //[iOSVersion(4)] //[Export("fileManager")] //[InheritOptional] //bool FileManager(NSFileManager fileManager, NSURL shouldMoveItemAtURL, NSURL toURL); /// <summary> /// Asks the delegate if the file manager should move the specified item to the new path. /// </summary> /// <param name="fileManager">The file manager object that is attempting to move the file or directory.</param> /// <param name="shouldMoveItemAtPath">The path to the file or directory that the file manager wants to move.</param> /// <param name="toPath">The new path for the file or directory.</param> //[iOSVersion(2)] //[Export("fileManager")] //[InheritOptional] //bool FileManager(NSFileManager fileManager, string shouldMoveItemAtPath, string toPath); /// <summary> /// Asks the delegate if the move operation should continue after an error occurs while moving the item at the specified URL. /// </summary> /// <param name="fileManager">The file manager object that attempted to move the item.</param> /// <param name="shouldProceedAfterError">The error that occurred while trying to move the item in srcURL.</param> /// <param name="movingItemAtURL">The URL of the file or directory that the file manager tried to move.</param> /// <param name="toURL">The URL of the intended destination for the item in srcURL.</param> //[iOSVersion(4)] //[Export("fileManager")] //[InheritOptional] //bool FileManager(NSFileManager fileManager, NSError shouldProceedAfterError, NSURL movingItemAtURL, NSURL toURL); /// <summary> /// Asks the delegate if the move operation should continue after an error occurs while moving the item at the specified path. /// </summary> /// <param name="fileManager">The file manager object that attempted to move the item.</param> /// <param name="shouldProceedAfterError">The error that occurred while trying to move the item in srcPath.</param> /// <param name="movingItemAtPath">The path of the file or directory that the file manager tried to move.</param> /// <param name="toPath">The path of the intended destination for the item in srcPath.</param> //[iOSVersion(2)] //[Export("fileManager")] //[InheritOptional] //bool FileManager(NSFileManager fileManager, NSError shouldProceedAfterError, string movingItemAtPath, string toPath); /// <summary> /// Asks the delegate if the file manager should copy the specified item to the new URL. /// </summary> /// <param name="fileManager">The file manager object that is attempting to copy the file or directory.</param> /// <param name="shouldCopyItemAtURL">The URL of the file or directory that the file manager wants to copy.</param> /// <param name="toURL">The URL specifying the location for the copied file or directory.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(4)] //[Export("fileManager")] //[InheritOptional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //bool FileManager(NSFileManager fileManager, NSURL shouldCopyItemAtURL, NSURL toURL, bool NAME_YOUR_PARAMS = false); /// <summary> /// Asks the delegate if the file manager should copy the specified item to the new path. /// </summary> /// <param name="fileManager">The file manager object that is attempting to copy the file or directory.</param> /// <param name="shouldCopyItemAtPath">The path to the file or directory that the file manager wants to copy.</param> /// <param name="toPath">The new path for the copied file or directory.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("fileManager")] //[InheritOptional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //bool FileManager(NSFileManager fileManager, string shouldCopyItemAtPath, string toPath, bool NAME_YOUR_PARAMS = false); /// <summary> /// Asks the delegate if the move operation should continue after an error occurs while copying the item at the specified URL. /// </summary> /// <param name="fileManager">The file manager object that attempted to copy the item.</param> /// <param name="shouldProceedAfterError">The error that occurred during the attempt to copy.</param> /// <param name="copyingItemAtURL">The URL or a file or directory that fileManager is attempting to copy.</param> /// <param name="toURL">The URL or a file or directory to which fileManager is attempting to copy.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(4)] //[Export("fileManager")] //[InheritOptional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //bool FileManager(NSFileManager fileManager, NSError shouldProceedAfterError, NSURL copyingItemAtURL, NSURL toURL, bool NAME_YOUR_PARAMS = false); /// <summary> /// Asks the delegate if the move operation should continue after an error occurs while copying the item at the specified path. /// </summary> /// <param name="fileManager">The NSFileManager object that sent this message.</param> /// <param name="shouldProceedAfterError">The error that occurred during the attempt to copy.</param> /// <param name="copyingItemAtPath">The path or a file or directory that fileManager is attempting to copy.</param> /// <param name="toPath">The path or a file or directory to which fileManager is attempting to copy.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("fileManager")] //[InheritOptional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //bool FileManager(NSFileManager fileManager, NSError shouldProceedAfterError, string copyingItemAtPath, string toPath, bool NAME_YOUR_PARAMS = false); /// <summary> /// Asks the delegate whether the item at the specified URL should be deleted. /// </summary> /// <param name="fileManager">The file manager object that is attempting to remove the file or directory.</param> /// <param name="shouldRemoveItemAtURL">The URL indicating the file or directory that the file manager is attempting to delete.</param> //[iOSVersion(4)] //[Export("fileManager")] //[InheritOptional] //bool FileManager(NSFileManager fileManager, NSURL shouldRemoveItemAtURL); /// <summary> /// Asks the delegate whether the item at the specified path should be deleted. /// </summary> /// <param name="fileManager">The file manager object that is attempting to remove the file or directory.</param> /// <param name="shouldRemoveItemAtPath">The path to the file or directory that the file manager is attempting to delete.</param> //[iOSVersion(2)] //[Export("fileManager")] //[InheritOptional] //bool FileManager(NSFileManager fileManager, string shouldRemoveItemAtPath); /// <summary> /// Asks the delegate if the operation should continue after an error occurs while removing the item at the specified URL. /// </summary> /// <param name="fileManager">The file manager object that attempted to remove the item.</param> /// <param name="shouldProceedAfterError">The error that occurred while attempting to remove the item at URL.</param> /// <param name="removingItemAtURL">The URL for the file or directory that the file manager tried to delete.</param> //[iOSVersion(4)] //[Export("fileManager")] //[InheritOptional] //bool FileManager(NSFileManager fileManager, NSError shouldProceedAfterError, NSURL removingItemAtURL); /// <summary> /// Asks the delegate if the operation should continue after an error occurs while removing the item at the specified path. /// </summary> /// <param name="fileManager">The file manager object that attempted to remove the item.</param> /// <param name="shouldProceedAfterError">The error that occurred during the attempt to copy.</param> /// <param name="removingItemAtPath">The path for the file or directory that the file manager tried to delete.</param> //[iOSVersion(2)] //[Export("fileManager")] //[InheritOptional] //bool FileManager(NSFileManager fileManager, NSError shouldProceedAfterError, string removingItemAtPath); /// <summary> /// Asks the delegate if a hard link should be created between the items at the two URLs. /// </summary> /// <param name="fileManager">The file manager object that is attempting to create the link.</param> /// <param name="shouldLinkItemAtURL">The URL identifying the new hard link to be created.</param> /// <param name="toURL">The URL identifying the destination of the link.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(4)] //[Export("fileManager")] //[InheritOptional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //bool FileManager(NSFileManager fileManager, NSURL shouldLinkItemAtURL, NSURL toURL, int NAME_YOUR_PARAMS = 0); /// <summary> /// Asks the delegate if a hard link should be created between the items at the two paths. /// </summary> /// <param name="fileManager">The file manager object that is attempting to create the link.</param> /// <param name="shouldLinkItemAtPath">The path or a file or directory that fileManager is about to attempt to link.</param> /// <param name="toPath">The path or a file or directory to which fileManager is about to attempt to link.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("fileManager")] //[InheritOptional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //bool FileManager(NSFileManager fileManager, string shouldLinkItemAtPath, string toPath, int NAME_YOUR_PARAMS = 0); /// <summary> /// Asks the delegate if the operation should continue after an error occurs while linking to the item at the specified URL. /// </summary> /// <param name="fileManager">The file manager object that attempted to create the link.</param> /// <param name="shouldProceedAfterError">The error that occurred during the link attempt.</param> /// <param name="linkingItemAtURL">The URL of the attempted link location.</param> /// <param name="toURL">The URL of the file or directory that was the destination of the hard link.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(4)] //[Export("fileManager")] //[InheritOptional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //bool FileManager(NSFileManager fileManager, NSError shouldProceedAfterError, NSURL linkingItemAtURL, NSURL toURL, int NAME_YOUR_PARAMS = 0); /// <summary> /// Asks the delegate if the operation should continue after an error occurs while linking to the item at the specified path. /// </summary> /// <param name="fileManager">The file manager object that attempted to create the link.</param> /// <param name="shouldProceedAfterError">The error that occurred during the link attempt.</param> /// <param name="linkingItemAtPath">The path to the attempted link location.</param> /// <param name="toPath">The path to the file or directory that was the destination of the hard link.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("fileManager")] //[InheritOptional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //bool FileManager(NSFileManager fileManager, NSError shouldProceedAfterError, string linkingItemAtPath, string toPath, int NAME_YOUR_PARAMS = 0); } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/Protocols/Delegates/NSKeyedArchiverDelegate.cs b/CocoaSharp/Foundation/Protocols/Delegates/NSKeyedArchiverDelegate.cs
index acc0d7ed..176e94ad 100644
--- a/CocoaSharp/Foundation/Protocols/Delegates/NSKeyedArchiverDelegate.cs
+++ b/CocoaSharp/Foundation/Protocols/Delegates/NSKeyedArchiverDelegate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSKeyedArchiverDelegate protocol defines the optional methods implemented by delegates of NSKeyedArchiver objects. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/NSKeyedArchiverDelegate_Protocol/index.html#//apple_ref/occ/intf/NSKeyedArchiverDelegate"/> [iOSVersion(4)] public interface NSKeyedArchiverDelegate//: NSObjectProtocol { /// <summary> /// Informs the delegate that a given object has been encoded. /// </summary> /// <param name="archiver">The archiver that sent the message.</param> /// <param name="didEncodeObject">The object that has been encoded. object may be nil.</param> [iOSVersion(2)] [Export("archiver")] void Archiver(NSKeyedArchiver archiver, AnyObject didEncodeObject); /// <summary> /// Notifies the delegate that encoding has finished. /// </summary> /// <param name="archiver">The archiver that sent the message.</param> [iOSVersion(2)] [Export("archiverDidFinish")] void ArchiverDidFinish(NSKeyedArchiver archiver); /// <summary> /// Informs the delegate that object is about to be encoded. /// </summary> /// <param name="archiver">The archiver that sent the message.</param> /// <param name="willEncodeObject">The object that is about to be encoded. This value is never nil.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [Export("archiver")] [IgnoreParameter("NAME_YOUR_PARAMS")] AnyObject Archiver(NSKeyedArchiver archiver, AnyObject willEncodeObject, bool NAME_YOUR_PARAMS = false); /// <summary> /// Notifies the delegate that encoding is about to finish. /// </summary> /// <param name="archiver">The archiver that sent the message.</param> [iOSVersion(2)] [Export("archiverWillFinish")] void ArchiverWillFinish(NSKeyedArchiver archiver); /// <summary> /// Informs the delegate that one given object is being substituted for another given object. /// </summary> /// <param name="archiver">The archiver that sent the message.</param> /// <param name="willReplaceObject">The object being replaced in the archive.</param> /// <param name="withObject">The object replacing object in the archive.</param> [iOSVersion(2)] [Export("archiver")] void Archiver(NSKeyedArchiver archiver, AnyObject willReplaceObject, AnyObject withObject); } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSKeyedArchiverDelegate protocol defines the optional methods implemented by delegates of NSKeyedArchiver objects. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/NSKeyedArchiverDelegate_Protocol/index.html#//apple_ref/occ/intf/NSKeyedArchiverDelegate"/> [iOSVersion(4)] [Export("")] public interface NSKeyedArchiverDelegate//: NSObjectProtocol { /// <summary> /// Informs the delegate that a given object has been encoded. /// </summary> /// <param name="archiver">The archiver that sent the message.</param> /// <param name="didEncodeObject">The object that has been encoded. object may be nil.</param> //[iOSVersion(2)] //[Export("archiver")] //[InheritOptional] //void Archiver(NSKeyedArchiver archiver, [Optional] AnyObject didEncodeObject); /// <summary> /// Notifies the delegate that encoding has finished. /// </summary> /// <param name="archiver">The archiver that sent the message.</param> //[iOSVersion(2)] //[Export("archiverDidFinish")] //[InheritOptional] //void ArchiverDidFinish(NSKeyedArchiver archiver); /// <summary> /// Informs the delegate that object is about to be encoded. /// </summary> /// <param name="archiver">The archiver that sent the message.</param> /// <param name="willEncodeObject">The object that is about to be encoded. This value is never nil.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("archiver")] //[InheritOptional] //[return:Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //AnyObject Archiver(NSKeyedArchiver archiver, AnyObject willEncodeObject, bool NAME_YOUR_PARAMS = false); /// <summary> /// Notifies the delegate that encoding is about to finish. /// </summary> /// <param name="archiver">The archiver that sent the message.</param> //[iOSVersion(2)] //[Export("archiverWillFinish")] //[InheritOptional] //void ArchiverWillFinish(NSKeyedArchiver archiver); /// <summary> /// Informs the delegate that one given object is being substituted for another given object. /// </summary> /// <param name="archiver">The archiver that sent the message.</param> /// <param name="willReplaceObject">The object being replaced in the archive.</param> /// <param name="withObject">The object replacing object in the archive.</param> //[iOSVersion(2)] //[Export("archiver")] //[InheritOptional] //void Archiver(NSKeyedArchiver archiver, AnyObject willReplaceObject, AnyObject withObject); } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/Protocols/Delegates/NSKeyedUnarchiverDelegate.cs b/CocoaSharp/Foundation/Protocols/Delegates/NSKeyedUnarchiverDelegate.cs
index a9af5410..20c5f561 100644
--- a/CocoaSharp/Foundation/Protocols/Delegates/NSKeyedUnarchiverDelegate.cs
+++ b/CocoaSharp/Foundation/Protocols/Delegates/NSKeyedUnarchiverDelegate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSKeyedUnarchiverDelegate protocol defines the optional methods implemented by delegates of NSKeyedUnarchiver objects. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/NSKeyedUnarchiverDelegate_Protocol/index.html#//apple_ref/occ/intf/NSKeyedUnarchiverDelegate"/> [iOSVersion(4)] public interface NSKeyedUnarchiverDelegate//: NSObjectProtocol { /// <summary> /// Informs the delegate that the class with a given name is not available during decoding. /// </summary> /// <param name="unarchiver">An unarchiver for which the receiver is the delegate.</param> /// <param name="cannotDecodeObjectOfClassName">The name of the class of an object unarchiver is trying to decode.</param> /// <param name="originalClasses">An array describing the class hierarchy of the encoded object, where the first element is the class name string of the encoded object, the second element is the class name of its immediate superclass, and so on.</param> [iOSVersion(2)] [Export("unarchiver")] AnyClass Unarchiver(NSKeyedUnarchiver unarchiver, string cannotDecodeObjectOfClassName, AnyObject[] originalClasses); /// <summary> /// Informs the delegate that a given object has been decoded. /// </summary> /// <param name="unarchiver">An unarchiver for which the receiver is the delegate.</param> /// <param name="didDecodeObject">The object that has been decoded. object may be nil.</param> [iOSVersion(2)] [Export("unarchiver")] AnyObject Unarchiver(NSKeyedUnarchiver unarchiver, AnyObject didDecodeObject); /// <summary> /// Informs the delegate that one object is being substituted for another. /// </summary> /// <param name="unarchiver">An unarchiver for which the receiver is the delegate.</param> /// <param name="willReplaceObject">An object in the archive.</param> /// <param name="withObject">The object with which unarchiver will replace object.</param> [iOSVersion(2)] [Export("unarchiver")] void Unarchiver(NSKeyedUnarchiver unarchiver, AnyObject willReplaceObject, AnyObject withObject); /// <summary> /// Notifies the delegate that decoding has finished. /// </summary> /// <param name="unarchiver">An unarchiver for which the receiver is the delegate.</param> [iOSVersion(2)] [Export("unarchiverDidFinish")] void UnarchiverDidFinish(NSKeyedUnarchiver unarchiver); /// <summary> /// Notifies the delegate that decoding is about to finish. /// </summary> /// <param name="unarchiver">An unarchiver for which the receiver is the delegate.</param> [iOSVersion(2)] [Export("unarchiverWillFinish")] void UnarchiverWillFinish(NSKeyedUnarchiver unarchiver); } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSKeyedUnarchiverDelegate protocol defines the optional methods implemented by delegates of NSKeyedUnarchiver objects. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/NSKeyedUnarchiverDelegate_Protocol/index.html#//apple_ref/occ/intf/NSKeyedUnarchiverDelegate"/> [iOSVersion(4)] [Export("")] public interface NSKeyedUnarchiverDelegate//: NSObjectProtocol { /// <summary> /// Informs the delegate that the class with a given name is not available during decoding. /// </summary> /// <param name="unarchiver">An unarchiver for which the receiver is the delegate.</param> /// <param name="cannotDecodeObjectOfClassName">The name of the class of an object unarchiver is trying to decode.</param> /// <param name="originalClasses">An array describing the class hierarchy of the encoded object, where the first element is the class name string of the encoded object, the second element is the class name of its immediate superclass, and so on.</param> //[iOSVersion(2)] //[Export("unarchiver")] //[InheritOptional] //AnyClass Unarchiver(NSKeyedUnarchiver unarchiver, string cannotDecodeObjectOfClassName, AnyObject[] originalClasses); /// <summary> /// Informs the delegate that a given object has been decoded. /// </summary> /// <param name="unarchiver">An unarchiver for which the receiver is the delegate.</param> /// <param name="didDecodeObject">The object that has been decoded. object may be nil.</param> //[iOSVersion(2)] //[Export("unarchiver")] //[InheritOptional] //[return:Optional] //AnyObject Unarchiver(NSKeyedUnarchiver unarchiver, [Optional] AnyObject didDecodeObject); /// <summary> /// Informs the delegate that one object is being substituted for another. /// </summary> /// <param name="unarchiver">An unarchiver for which the receiver is the delegate.</param> /// <param name="willReplaceObject">An object in the archive.</param> /// <param name="withObject">The object with which unarchiver will replace object.</param> //[iOSVersion(2)] //[Export("unarchiver")] //[InheritOptional] //void Unarchiver(NSKeyedUnarchiver unarchiver, AnyObject willReplaceObject, AnyObject withObject); /// <summary> /// Notifies the delegate that decoding has finished. /// </summary> /// <param name="unarchiver">An unarchiver for which the receiver is the delegate.</param> //[iOSVersion(2)] //[Export("unarchiverDidFinish")] //[InheritOptional] //void UnarchiverDidFinish(NSKeyedUnarchiver unarchiver); /// <summary> /// Notifies the delegate that decoding is about to finish. /// </summary> /// <param name="unarchiver">An unarchiver for which the receiver is the delegate.</param> //[iOSVersion(2)] //[Export("unarchiverWillFinish")] //[InheritOptional] //void UnarchiverWillFinish(NSKeyedUnarchiver unarchiver); } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/Protocols/Delegates/NSMachPortDelegate.cs b/CocoaSharp/Foundation/Protocols/Delegates/NSMachPortDelegate.cs
index e70491f6..b71e61a4 100644
--- a/CocoaSharp/Foundation/Protocols/Delegates/NSMachPortDelegate.cs
+++ b/CocoaSharp/Foundation/Protocols/Delegates/NSMachPortDelegate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSMachPortDelegate protocol defines the optional methods implemented by delegates of NSMachPort objects. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/NSMachPortDelegate_Protocol/index.html#//apple_ref/occ/intf/NSMachPortDelegate"/> [iOSVersion(4)] public interface NSMachPortDelegate//: NSObjectProtocol, NSPortDelegate { /// <summary> /// Process an incoming Mach message. /// </summary> /// <param name="machMessage">A pointer to a Mach message, cast as a pointer to void.</param> [iOSVersion(2)] [Export("handleMachMessage")] void HandleMachMessage(UnsafePointer<Action> machMessage); } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSMachPortDelegate protocol defines the optional methods implemented by delegates of NSMachPort objects. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/NSMachPortDelegate_Protocol/index.html#//apple_ref/occ/intf/NSMachPortDelegate"/> [iOSVersion(4)] [Export("")] public interface NSMachPortDelegate//: NSObjectProtocol, NSPortDelegate { /// <summary> /// Process an incoming Mach message. /// </summary> /// <param name="machMessage">A pointer to a Mach message, cast as a pointer to void.</param> //[iOSVersion(2)] //[Export("handleMachMessage")] //[InheritOptional] //void HandleMachMessage(UnsafeMutablePointer machMessage); } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/Protocols/Delegates/NSMetadataQueryDelegate.cs b/CocoaSharp/Foundation/Protocols/Delegates/NSMetadataQueryDelegate.cs
index dafd87b4..e7cab231 100644
--- a/CocoaSharp/Foundation/Protocols/Delegates/NSMetadataQueryDelegate.cs
+++ b/CocoaSharp/Foundation/Protocols/Delegates/NSMetadataQueryDelegate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSMetadataQueryDelegate protocol defines the optional methods implemented by delegates of NSMetadataQuery objects. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/NSMetadataQueryDelegate_Protocol/index.html#//apple_ref/occ/intf/NSMetadataQueryDelegate"/> [iOSVersion(5)] public interface NSMetadataQueryDelegate//: NSObjectProtocol { /// <summary> /// Implemented by the delegate to return a different object for a specific query result object. /// </summary> /// <param name="query">The query that produced the result object to replace.</param> /// <param name="replacementObjectForResultObject">The query result object to replace.</param> [iOSVersion(5)] [Export("metadataQuery")] AnyObject MetadataQuery(NSMetadataQuery query, NSMetadataItem replacementObjectForResultObject); /// <summary> /// Implemented by the delegate to return a different value for a specific attribute. /// </summary> /// <param name="query">The query that produced the result object with attribute.</param> /// <param name="replacementValueForAttribute">The attribute in question.</param> /// <param name="value">The attribute value to replace.</param> [iOSVersion(5)] [Export("metadataQuery")] AnyObject MetadataQuery(NSMetadataQuery query, string replacementValueForAttribute, AnyObject value); } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSMetadataQueryDelegate protocol defines the optional methods implemented by delegates of NSMetadataQuery objects. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/NSMetadataQueryDelegate_Protocol/index.html#//apple_ref/occ/intf/NSMetadataQueryDelegate"/> [iOSVersion(5)] [Export("")] public interface NSMetadataQueryDelegate//: NSObjectProtocol { /// <summary> /// Implemented by the delegate to return a different object for a specific query result object. /// </summary> /// <param name="query">The query that produced the result object to replace.</param> /// <param name="replacementObjectForResultObject">The query result object to replace.</param> //[iOSVersion(5)] //[Export("metadataQuery")] //[InheritOptional] //AnyObject MetadataQuery(NSMetadataQuery query, NSMetadataItem replacementObjectForResultObject); /// <summary> /// Implemented by the delegate to return a different value for a specific attribute. /// </summary> /// <param name="query">The query that produced the result object with attribute.</param> /// <param name="replacementValueForAttribute">The attribute in question.</param> /// <param name="value">The attribute value to replace.</param> //[iOSVersion(5)] //[Export("metadataQuery")] //[InheritOptional] //AnyObject MetadataQuery(NSMetadataQuery query, string replacementValueForAttribute, AnyObject value); } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/Protocols/Delegates/NSNetServiceBrowserDelegate.cs b/CocoaSharp/Foundation/Protocols/Delegates/NSNetServiceBrowserDelegate.cs
index e54bff30..a5c757d0 100644
--- a/CocoaSharp/Foundation/Protocols/Delegates/NSNetServiceBrowserDelegate.cs
+++ b/CocoaSharp/Foundation/Protocols/Delegates/NSNetServiceBrowserDelegate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSNetServiceBrowserDelegate protocol defines the optional methods implemented by delegates of NSNetServiceBrowser objects. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/NSNetServiceBrowserDelegate_Protocol/index.html#//apple_ref/occ/intf/NSNetServiceBrowserDelegate"/> [iOSVersion(4)] public interface NSNetServiceBrowserDelegate//: NSObjectProtocol { /// <summary> /// Tells the delegate the sender found a domain. /// </summary> /// <param name="netServiceBrowser">Sender of this delegate message.</param> /// <param name="didFindDomain">Name of the domain found by netServiceBrowser.</param> /// <param name="moreComing">true when netServiceBrowser is waiting for additional domains. false when there are no additional domains.</param> [iOSVersion(2)] [Export("netServiceBrowser")] void NetServiceBrowser(NSNetServiceBrowser netServiceBrowser, string didFindDomain, bool moreComing); /// <summary> /// Tells the delegate the a domain has disappeared or has become unavailable. /// </summary> /// <param name="netServiceBrowser">Sender of this delegate message.</param> /// <param name="didRemoveDomain">Name of the domain that became unavailable.</param> /// <param name="moreComing">true when netServiceBrowser is waiting for additional domains. false when there are no additional domains.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [Export("netServiceBrowser")] [IgnoreParameter("NAME_YOUR_PARAMS")] void NetServiceBrowser(NSNetServiceBrowser netServiceBrowser, string didRemoveDomain, bool moreComing, bool NAME_YOUR_PARAMS = false); /// <summary> /// Tells the delegate the sender found a service. /// </summary> /// <param name="netServiceBrowser">Sender of this delegate message.</param> /// <param name="didFindService">Network service found by netServiceBrowser. The delegate can use this object to connect to and use the service.</param> /// <param name="moreComing">true when netServiceBrowser is waiting for additional services. false when there are no additional services.</param> [iOSVersion(2)] [Export("netServiceBrowser")] void NetServiceBrowser(NSNetServiceBrowser netServiceBrowser, NSNetService didFindService, bool moreComing); /// <summary> /// Tells the delegate a service has disappeared or has become unavailable. /// </summary> /// <param name="netServiceBrowser">Sender of this delegate message.</param> /// <param name="didRemoveService">Network service that has become unavailable.</param> /// <param name="moreComing">true when netServiceBrowser is waiting for additional services. false when there are no additional services.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [Export("netServiceBrowser")] [IgnoreParameter("NAME_YOUR_PARAMS")] void NetServiceBrowser(NSNetServiceBrowser netServiceBrowser, NSNetService didRemoveService, bool moreComing, bool NAME_YOUR_PARAMS = false); /// <summary> /// Tells the delegate that a search is commencing. /// </summary> /// <param name="netServiceBrowser">Sender of this delegate message.</param> [iOSVersion(2)] [Export("netServiceBrowserWillSearch")] void NetServiceBrowserWillSearch(NSNetServiceBrowser netServiceBrowser); /// <summary> /// Tells the delegate that a search was not successful. /// </summary> /// <param name="netServiceBrowser">Sender of this delegate message.</param> /// <param name="didNotSearch">Dictionary with the reasons the search was unsuccessful. Use the dictionary keys NSNetServicesErrorCode and NSNetServicesErrorDomain to retrieve the error information from the dictionary.</param> [iOSVersion(2)] [Export("netServiceBrowser")] void NetServiceBrowser(NSNetServiceBrowser netServiceBrowser, Dictionary<NSObject, AnyObject> didNotSearch); /// <summary> /// Tells the delegate that a search was stopped. /// </summary> /// <param name="netServiceBrowser">Sender of this delegate message.</param> [iOSVersion(2)] [Export("netServiceBrowserDidStopSearch")] void NetServiceBrowserDidStopSearch(NSNetServiceBrowser netServiceBrowser); } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSNetServiceBrowserDelegate protocol defines the optional methods implemented by delegates of NSNetServiceBrowser objects. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/NSNetServiceBrowserDelegate_Protocol/index.html#//apple_ref/occ/intf/NSNetServiceBrowserDelegate"/> [iOSVersion(4)] [Export("")] public interface NSNetServiceBrowserDelegate//: NSObjectProtocol { /// <summary> /// Tells the delegate the sender found a domain. /// </summary> /// <param name="netServiceBrowser">Sender of this delegate message.</param> /// <param name="didFindDomain">Name of the domain found by netServiceBrowser.</param> /// <param name="moreComing">true when netServiceBrowser is waiting for additional domains. false when there are no additional domains.</param> //[iOSVersion(2)] //[Export("netServiceBrowser")] //[InheritOptional] //void NetServiceBrowser(NSNetServiceBrowser netServiceBrowser, string didFindDomain, bool moreComing); /// <summary> /// Tells the delegate the a domain has disappeared or has become unavailable. /// </summary> /// <param name="netServiceBrowser">Sender of this delegate message.</param> /// <param name="didRemoveDomain">Name of the domain that became unavailable.</param> /// <param name="moreComing">true when netServiceBrowser is waiting for additional domains. false when there are no additional domains.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("netServiceBrowser")] //[InheritOptional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void NetServiceBrowser(NSNetServiceBrowser netServiceBrowser, string didRemoveDomain, bool moreComing, bool NAME_YOUR_PARAMS = false); /// <summary> /// Tells the delegate the sender found a service. /// </summary> /// <param name="netServiceBrowser">Sender of this delegate message.</param> /// <param name="didFindService">Network service found by netServiceBrowser. The delegate can use this object to connect to and use the service.</param> /// <param name="moreComing">true when netServiceBrowser is waiting for additional services. false when there are no additional services.</param> //[iOSVersion(2)] //[Export("netServiceBrowser")] //[InheritOptional] //void NetServiceBrowser(NSNetServiceBrowser netServiceBrowser, NSNetService didFindService, bool moreComing); /// <summary> /// Tells the delegate a service has disappeared or has become unavailable. /// </summary> /// <param name="netServiceBrowser">Sender of this delegate message.</param> /// <param name="didRemoveService">Network service that has become unavailable.</param> /// <param name="moreComing">true when netServiceBrowser is waiting for additional services. false when there are no additional services.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("netServiceBrowser")] //[InheritOptional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void NetServiceBrowser(NSNetServiceBrowser netServiceBrowser, NSNetService didRemoveService, bool moreComing, bool NAME_YOUR_PARAMS = false); /// <summary> /// Tells the delegate that a search is commencing. /// </summary> /// <param name="netServiceBrowser">Sender of this delegate message.</param> //[iOSVersion(2)] //[Export("netServiceBrowserWillSearch")] //[InheritOptional] //void NetServiceBrowserWillSearch(NSNetServiceBrowser netServiceBrowser); /// <summary> /// Tells the delegate that a search was not successful. /// </summary> /// <param name="netServiceBrowser">Sender of this delegate message.</param> /// <param name="didNotSearch">Dictionary with the reasons the search was unsuccessful. Use the dictionary keys NSNetServicesErrorCode and NSNetServicesErrorDomain to retrieve the error information from the dictionary.</param> //[iOSVersion(2)] //[Export("netServiceBrowser")] //[InheritOptional] //void NetServiceBrowser(NSNetServiceBrowser netServiceBrowser, Dictionary<NSObject, AnyObject> didNotSearch); /// <summary> /// Tells the delegate that a search was stopped. /// </summary> /// <param name="netServiceBrowser">Sender of this delegate message.</param> //[iOSVersion(2)] //[Export("netServiceBrowserDidStopSearch")] //[InheritOptional] //void NetServiceBrowserDidStopSearch(NSNetServiceBrowser netServiceBrowser); } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/Protocols/Delegates/NSNetServiceDelegate.cs b/CocoaSharp/Foundation/Protocols/Delegates/NSNetServiceDelegate.cs
index 30fd92ef..1eda7766 100644
--- a/CocoaSharp/Foundation/Protocols/Delegates/NSNetServiceDelegate.cs
+++ b/CocoaSharp/Foundation/Protocols/Delegates/NSNetServiceDelegate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSNetServiceDelegate protocol defines the optional methods implemented by delegates of NSNetService objects. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/NSNetServiceDelegate_Protocol/index.html#//apple_ref/occ/intf/NSNetServiceDelegate"/> [iOSVersion(4)] public interface NSNetServiceDelegate//: NSObjectProtocol { /// <summary> /// Notifies the delegate that the network is ready to publish the service. /// </summary> /// <param name="sender">The service that is ready to publish.</param> [iOSVersion(2)] [Export("netServiceWillPublish")] void NetServiceWillPublish(NSNetService sender); /// <summary> /// Notifies the delegate that a service could not be published. /// </summary> /// <param name="sender">The service that could not be published.</param> /// <param name="didNotPublish">A dictionary containing information about the problem. The dictionary contains the keys NSNetServicesErrorCode and NSNetServicesErrorDomain.</param> [iOSVersion(2)] [Export("netService")] void NetService(NSNetService sender, Dictionary<NSObject, AnyObject> didNotPublish); /// <summary> /// Notifies the delegate that a service was successfully published. /// </summary> /// <param name="sender">The service that was published.</param> [iOSVersion(2)] [Export("netServiceDidPublish")] void NetServiceDidPublish(NSNetService sender); /// <summary> /// Notifies the delegate that the network is ready to resolve the service. /// </summary> /// <param name="sender">The service that the network is ready to resolve.</param> [iOSVersion(2)] [Export("netServiceWillResolve")] void NetServiceWillResolve(NSNetService sender); /// <summary> /// Informs the delegate that an error occurred during resolution of a given service. /// </summary> /// <param name="sender">The service that did not resolve.</param> /// <param name="didNotResolve">A dictionary containing information about the problem. The dictionary contains the keys NSNetServicesErrorCode and NSNetServicesErrorDomain.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [Export("netService")] [IgnoreParameter("NAME_YOUR_PARAMS")] void NetService(NSNetService sender, Dictionary<NSObject, AnyObject> didNotResolve, bool NAME_YOUR_PARAMS = false); /// <summary> /// Informs the delegate that the address for a given service was resolved. /// </summary> /// <param name="sender">The service that was resolved.</param> [iOSVersion(2)] [Export("netServiceDidResolveAddress")] void NetServiceDidResolveAddress(NSNetService sender); /// <summary> /// Notifies the delegate that the TXT record for a given service has been updated. /// </summary> /// <param name="sender">The service whose TXT record was updated.</param> /// <param name="didUpdateTXTRecordData">The new TXT record.</param> [iOSVersion(2)] [Export("netService")] void NetService(NSNetService sender, NSData didUpdateTXTRecordData); /// <summary> /// Informs the delegate that a publish or resolveWithTimeout: request was stopped. /// </summary> /// <param name="sender">The service that stopped.</param> [iOSVersion(2)] [Export("netServiceDidStop")] void NetServiceDidStop(NSNetService sender); /// <summary> /// Called when a client connects to a service managed by Bonjour. /// </summary> /// <param name="sender">The net service object that the client connected to.</param> /// <param name="didAcceptConnectionWithInputStream">A stream object for receiving data from the client.</param> /// <param name="outputStream">A stream object for sending data to the client.</param> [iOSVersion(7)] [Export("netService")] void NetService(NSNetService sender, NSInputStream didAcceptConnectionWithInputStream, NSOutputStream outputStream); } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSNetServiceDelegate protocol defines the optional methods implemented by delegates of NSNetService objects. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/NSNetServiceDelegate_Protocol/index.html#//apple_ref/occ/intf/NSNetServiceDelegate"/> [iOSVersion(4)] [Export("")] public interface NSNetServiceDelegate//: NSObjectProtocol { /// <summary> /// Notifies the delegate that the network is ready to publish the service. /// </summary> /// <param name="sender">The service that is ready to publish.</param> //[iOSVersion(2)] //[Export("netServiceWillPublish")] //[InheritOptional] //void NetServiceWillPublish(NSNetService sender); /// <summary> /// Notifies the delegate that a service could not be published. /// </summary> /// <param name="sender">The service that could not be published.</param> /// <param name="didNotPublish">A dictionary containing information about the problem. The dictionary contains the keys NSNetServicesErrorCode and NSNetServicesErrorDomain.</param> //[iOSVersion(2)] //[Export("netService")] //[InheritOptional] //void NetService(NSNetService sender, Dictionary<NSObject, AnyObject> didNotPublish); /// <summary> /// Notifies the delegate that a service was successfully published. /// </summary> /// <param name="sender">The service that was published.</param> //[iOSVersion(2)] //[Export("netServiceDidPublish")] //[InheritOptional] //void NetServiceDidPublish(NSNetService sender); /// <summary> /// Notifies the delegate that the network is ready to resolve the service. /// </summary> /// <param name="sender">The service that the network is ready to resolve.</param> //[iOSVersion(2)] //[Export("netServiceWillResolve")] //[InheritOptional] //void NetServiceWillResolve(NSNetService sender); /// <summary> /// Informs the delegate that an error occurred during resolution of a given service. /// </summary> /// <param name="sender">The service that did not resolve.</param> /// <param name="didNotResolve">A dictionary containing information about the problem. The dictionary contains the keys NSNetServicesErrorCode and NSNetServicesErrorDomain.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("netService")] //[InheritOptional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void NetService(NSNetService sender, Dictionary<NSObject, AnyObject> didNotResolve, bool NAME_YOUR_PARAMS = false); /// <summary> /// Informs the delegate that the address for a given service was resolved. /// </summary> /// <param name="sender">The service that was resolved.</param> //[iOSVersion(2)] //[Export("netServiceDidResolveAddress")] //[InheritOptional] //void NetServiceDidResolveAddress(NSNetService sender); /// <summary> /// Notifies the delegate that the TXT record for a given service has been updated. /// </summary> /// <param name="sender">The service whose TXT record was updated.</param> /// <param name="didUpdateTXTRecordData">The new TXT record.</param> //[iOSVersion(2)] //[Export("netService")] //[InheritOptional] //void NetService(NSNetService sender, NSData didUpdateTXTRecordData); /// <summary> /// Informs the delegate that a publish or resolveWithTimeout: request was stopped. /// </summary> /// <param name="sender">The service that stopped.</param> //[iOSVersion(2)] //[Export("netServiceDidStop")] //[InheritOptional] //void NetServiceDidStop(NSNetService sender); /// <summary> /// Called when a client connects to a service managed by Bonjour. /// </summary> /// <param name="sender">The net service object that the client connected to.</param> /// <param name="didAcceptConnectionWithInputStream">A stream object for receiving data from the client.</param> /// <param name="outputStream">A stream object for sending data to the client.</param> //[iOSVersion(7)] //[Export("netService")] //[InheritOptional] //void NetService(NSNetService sender, NSInputStream didAcceptConnectionWithInputStream, NSOutputStream outputStream); } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/Protocols/Delegates/NSPortDelegate.cs b/CocoaSharp/Foundation/Protocols/Delegates/NSPortDelegate.cs
index 85346fba..0c0278cf 100644
--- a/CocoaSharp/Foundation/Protocols/Delegates/NSPortDelegate.cs
+++ b/CocoaSharp/Foundation/Protocols/Delegates/NSPortDelegate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSPortDelegate protocol defines the optional methods implemented by delegates of NSPort objects. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/NSPortDelegate_Protocol/index.html#//apple_ref/occ/intf/NSPortDelegate"/> [iOSVersion(4)] public interface NSPortDelegate//: NSObjectProtocol { } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSPortDelegate protocol defines the optional methods implemented by delegates of NSPort objects. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/NSPortDelegate_Protocol/index.html#//apple_ref/occ/intf/NSPortDelegate"/> [iOSVersion(4)] [Export("")] public interface NSPortDelegate//: NSObjectProtocol { /// <summary> /// Processes a given incoming message on the port. /// </summary> /// <param name="portMessage">An incoming port message.</param> //[iOSVersion(2)] //[Export("handlePortMessage")] //[InheritOptional] //void HandlePortMessage([Unwrapped] NSPortMessage portMessage); } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/Protocols/Delegates/NSStreamDelegate.cs b/CocoaSharp/Foundation/Protocols/Delegates/NSStreamDelegate.cs
index 08bf1aae..a316a969 100644
--- a/CocoaSharp/Foundation/Protocols/Delegates/NSStreamDelegate.cs
+++ b/CocoaSharp/Foundation/Protocols/Delegates/NSStreamDelegate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSStreamDelegate protocol defines the optional methods implemented by delegates of NSStream objects. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/NSStreamDelegate_Protocol/index.html#//apple_ref/occ/intf/NSStreamDelegate"/> [iOSVersion(4)] public interface NSStreamDelegate//: NSObjectProtocol { /// <summary> /// The delegate receives this message when a given event has occurred on a given stream. /// </summary> /// <param name="theStream">The stream on which streamEvent occurred.</param> /// <param name="handleEvent">The stream event that occurred.</param> [iOSVersion(2)] [Export("stream")] void Stream(NSStream theStream, NSStreamEvent handleEvent); } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSStreamDelegate protocol defines the optional methods implemented by delegates of NSStream objects. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/NSStreamDelegate_Protocol/index.html#//apple_ref/occ/intf/NSStreamDelegate"/> [iOSVersion(4)] [Export("")] public interface NSStreamDelegate//: NSObjectProtocol { /// <summary> /// The delegate receives this message when a given event has occurred on a given stream. /// </summary> /// <param name="theStream">The stream on which streamEvent occurred.</param> /// <param name="handleEvent">The stream event that occurred.</param> //[iOSVersion(2)] //[Export("stream")] //[InheritOptional] //void Stream(NSStream theStream, NSStreamEvent handleEvent); } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/Protocols/Delegates/NSURLConnectionDataDelegate.cs b/CocoaSharp/Foundation/Protocols/Delegates/NSURLConnectionDataDelegate.cs
index 04208cec..ece0f400 100644
--- a/CocoaSharp/Foundation/Protocols/Delegates/NSURLConnectionDataDelegate.cs
+++ b/CocoaSharp/Foundation/Protocols/Delegates/NSURLConnectionDataDelegate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSURLConnectionDataDelegate protocol describes methods that should be implemented by the delegate for an instance of the NSURLConnection class. Many methods in this protocol existed as part of an informal protocol in previous versions of OS X and iOS. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSURLConnectionDataDelegate_protocol/index.html#//apple_ref/occ/intf/NSURLConnectionDataDelegate"/> [iOSVersion(5)] public interface NSURLConnectionDataDelegate//: NSObjectProtocol, NSURLConnectionDelegate { /// <summary> /// Sent when the connection has received sufficient data to construct the URL response for its request. /// </summary> /// <param name="connection">The connection sending the message.</param> /// <param name="didReceiveResponse">The URL response for the connection's request. This object is immutable and will not be modified by the URL loading system once it is presented to the delegate.</param> [iOSVersion(2)] [Export("connection")] void Connection(NSURLConnection connection, NSURLResponse didReceiveResponse); /// <summary> /// Sent as a connection loads data incrementally. /// </summary> /// <param name="connection">The connection sending the message.</param> /// <param name="didReceiveData">The newly available data. The delegate should concatenate the contents of each data object delivered to build up the complete data for a URL load.</param> [iOSVersion(2)] [Export("connection")] void Connection(NSURLConnection connection, NSData didReceiveData); /// <summary> /// Sent as the body (message data) of a request is transmitted (such as in an http POST request). /// </summary> /// <param name="connection">The connection sending the message.</param> /// <param name="didSendBodyData">The number of bytes written in the latest write.</param> /// <param name="totalBytesWritten">The total number of bytes written for this connection.</param> /// <param name="totalBytesExpectedToWrite">The number of bytes the connection expects to write.</param> [iOSVersion(3)] [Export("connection")] void Connection(NSURLConnection connection, int didSendBodyData, int totalBytesWritten, int totalBytesExpectedToWrite); /// <summary> /// Sent when a connection has finished loading successfully. /// </summary> /// <param name="connection">The connection sending the message.</param> [iOSVersion(2)] [Export("connectionDidFinishLoading")] void ConnectionDidFinishLoading(NSURLConnection connection); /// <summary> /// Sent when the connection determines that it must change URLs in order to continue loading a request. /// </summary> /// <param name="connection">The connection sending the message.</param> /// <param name="willSendRequest">The proposed redirected request. The delegate should inspect the redirected request to verify that it meets its needs, and create a copy with new attributes to return to the connection if necessary.</param> /// <param name="redirectResponse">The URL response that caused the redirect. May be nil in cases where this method is called because of URL canonicalization.</param> [iOSVersion(2)] [Export("connection")] NSURLRequest Connection(NSURLConnection connection, NSURLRequest willSendRequest, NSURLResponse redirectResponse); /// <summary> /// Called when an NSURLConnection needs to retransmit a request that has a body stream to provide a new, unopened stream. /// </summary> /// <param name="connection">The NSURLConnection that is requesting a new body stream.</param> /// <param name="needNewBodyStream"></param> [iOSVersion(3)] [Export("connection")] NSInputStream Connection(NSURLConnection connection, NSURLRequest needNewBodyStream); /// <summary> /// Sent before the connection stores a cached response in the cache, to give the delegate an opportunity to alter it. /// </summary> /// <param name="connection">The connection sending the message.</param> /// <param name="willCacheResponse">The proposed cached response to store in the cache.</param> [iOSVersion(2)] [Export("connection")] NSCachedURLResponse Connection(NSURLConnection connection, NSCachedURLResponse willCacheResponse); } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSURLConnectionDataDelegate protocol describes methods that should be implemented by the delegate for an instance of the NSURLConnection class. Many methods in this protocol existed as part of an informal protocol in previous versions of OS X and iOS. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSURLConnectionDataDelegate_protocol/index.html#//apple_ref/occ/intf/NSURLConnectionDataDelegate"/> [iOSVersion(5)] [Export("")] public interface NSURLConnectionDataDelegate//: NSObjectProtocol, NSURLConnectionDelegate { /// <summary> /// Sent when the connection has received sufficient data to construct the URL response for its request. /// </summary> /// <param name="connection">The connection sending the message.</param> /// <param name="didReceiveResponse">The URL response for the connection&#39;s request. This object is immutable and will not be modified by the URL loading system once it is presented to the delegate.</param> //[iOSVersion(2)] //[Export("connection")] //[InheritOptional] //void Connection(NSURLConnection connection, NSURLResponse didReceiveResponse); /// <summary> /// Sent as a connection loads data incrementally. /// </summary> /// <param name="connection">The connection sending the message.</param> /// <param name="didReceiveData">The newly available data. The delegate should concatenate the contents of each data object delivered to build up the complete data for a URL load.</param> //[iOSVersion(2)] //[Export("connection")] //[InheritOptional] //void Connection(NSURLConnection connection, NSData didReceiveData); /// <summary> /// Sent as the body (message data) of a request is transmitted (such as in an http POST request). /// </summary> /// <param name="connection">The connection sending the message.</param> /// <param name="didSendBodyData">The number of bytes written in the latest write.</param> /// <param name="totalBytesWritten">The total number of bytes written for this connection.</param> /// <param name="totalBytesExpectedToWrite">The number of bytes the connection expects to write.</param> //[iOSVersion(3)] //[Export("connection")] //[InheritOptional] //void Connection(NSURLConnection connection, int didSendBodyData, int totalBytesWritten, int totalBytesExpectedToWrite); /// <summary> /// Sent when a connection has finished loading successfully. /// </summary> /// <param name="connection">The connection sending the message.</param> //[iOSVersion(2)] //[Export("connectionDidFinishLoading")] //[InheritOptional] //void ConnectionDidFinishLoading(NSURLConnection connection); /// <summary> /// Sent when the connection determines that it must change URLs in order to continue loading a request. /// </summary> /// <param name="connection">The connection sending the message.</param> /// <param name="willSendRequest">The proposed redirected request. The delegate should inspect the redirected request to verify that it meets its needs, and create a copy with new attributes to return to the connection if necessary.</param> /// <param name="redirectResponse">The URL response that caused the redirect. May be nil in cases where this method is called because of URL canonicalization.</param> //[iOSVersion(2)] //[Export("connection")] //[InheritOptional] //[return:Optional] //NSURLRequest Connection(NSURLConnection connection, NSURLRequest willSendRequest, [Optional] NSURLResponse redirectResponse); /// <summary> /// Called when an NSURLConnection needs to retransmit a request that has a body stream to provide a new, unopened stream. /// </summary> /// <param name="connection">The NSURLConnection that is requesting a new body stream.</param> /// <param name="needNewBodyStream"></param> //[iOSVersion(3)] //[Export("connection")] //[InheritOptional] //[return:Optional] //NSInputStream Connection(NSURLConnection connection, NSURLRequest needNewBodyStream); /// <summary> /// Sent before the connection stores a cached response in the cache, to give the delegate an opportunity to alter it. /// </summary> /// <param name="connection">The connection sending the message.</param> /// <param name="willCacheResponse">The proposed cached response to store in the cache.</param> //[iOSVersion(2)] //[Export("connection")] //[InheritOptional] //[return:Optional] //NSCachedURLResponse Connection(NSURLConnection connection, NSCachedURLResponse willCacheResponse); } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/Protocols/Delegates/NSURLConnectionDelegate.cs b/CocoaSharp/Foundation/Protocols/Delegates/NSURLConnectionDelegate.cs
index 596efa88..26331bd5 100644
--- a/CocoaSharp/Foundation/Protocols/Delegates/NSURLConnectionDelegate.cs
+++ b/CocoaSharp/Foundation/Protocols/Delegates/NSURLConnectionDelegate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSURLConnectionDelegate protocol defines methods common to the NSURLConnectionDataDelegate and NSURLConnectionDownloadDelegate protocols. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSURLConnectionDelegate_Protocol/index.html#//apple_ref/occ/intf/NSURLConnectionDelegate"/> [iOSVersion(5)] public interface NSURLConnectionDelegate//: NSObjectProtocol { /// <summary> /// Tells the delegate that the connection will send a request for an authentication challenge. /// </summary> /// <param name="connection">The connection sending the message.</param> /// <param name="willSendRequestForAuthenticationChallenge">The authentication challenge for which a request is being sent.</param> [iOSVersion(5)] [Export("connection")] void Connection(NSURLConnection connection, NSURLAuthenticationChallenge willSendRequestForAuthenticationChallenge); /// <summary> /// Sent to determine whether the delegate is able to respond to a protection space’s form of authentication. /// </summary> /// <param name="connection">The connection sending the message.</param> /// <param name="canAuthenticateAgainstProtectionSpace">The protection space that generates an authentication challenge.</param> [iOSVersion(3)] [Export("connection")] bool Connection(NSURLConnection connection, NSURLProtectionSpace canAuthenticateAgainstProtectionSpace); /// <summary> /// Sent when a connection cancels an authentication challenge. /// </summary> /// <param name="connection">The connection sending the message.</param> /// <param name="didCancelAuthenticationChallenge">The challenge that was canceled.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [Export("connection")] [IgnoreParameter("NAME_YOUR_PARAMS")] void Connection(NSURLConnection connection, NSURLAuthenticationChallenge didCancelAuthenticationChallenge, bool NAME_YOUR_PARAMS = false); /// <summary> /// Sent when a connection must authenticate a challenge in order to download its request. /// </summary> /// <param name="connection">The connection sending the message.</param> /// <param name="didReceiveAuthenticationChallenge">The challenge that connection must authenticate in order to download its request.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [Export("connection")] [IgnoreParameter("NAME_YOUR_PARAMS")] void Connection(NSURLConnection connection, NSURLAuthenticationChallenge didReceiveAuthenticationChallenge, int NAME_YOUR_PARAMS = 0); /// <summary> /// Sent to determine whether the URL loader should use the credential storage for authenticating the connection. /// </summary> /// <param name="connection">The connection sending the message.</param> [iOSVersion(3)] [Export("connectionShouldUseCredentialStorage")] bool ConnectionShouldUseCredentialStorage(NSURLConnection connection); /// <summary> /// Sent when a connection fails to load its request successfully. /// </summary> /// <param name="connection">The connection sending the message.</param> /// <param name="didFailWithError">An error object containing details of why the connection failed to load the request successfully.</param> [iOSVersion(2)] [Export("connection")] void Connection(NSURLConnection connection, NSError didFailWithError); } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSURLConnectionDelegate protocol defines methods common to the NSURLConnectionDataDelegate and NSURLConnectionDownloadDelegate protocols. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSURLConnectionDelegate_Protocol/index.html#//apple_ref/occ/intf/NSURLConnectionDelegate"/> [iOSVersion(5)] [Export("")] public interface NSURLConnectionDelegate//: NSObjectProtocol { /// <summary> /// Tells the delegate that the connection will send a request for an authentication challenge. /// </summary> /// <param name="connection">The connection sending the message.</param> /// <param name="willSendRequestForAuthenticationChallenge">The authentication challenge for which a request is being sent.</param> //[iOSVersion(5)] //[Export("connection")] //[InheritOptional] //void Connection(NSURLConnection connection, NSURLAuthenticationChallenge willSendRequestForAuthenticationChallenge); /// <summary> /// Sent to determine whether the delegate is able to respond to a protection space’s form of authentication. /// </summary> /// <param name="connection">The connection sending the message.</param> /// <param name="canAuthenticateAgainstProtectionSpace">The protection space that generates an authentication challenge.</param> //[iOSVersion(3)] //[Export("connection")] //[InheritOptional] //bool Connection(NSURLConnection connection, NSURLProtectionSpace canAuthenticateAgainstProtectionSpace); /// <summary> /// Sent when a connection cancels an authentication challenge. /// </summary> /// <param name="connection">The connection sending the message.</param> /// <param name="didCancelAuthenticationChallenge">The challenge that was canceled.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("connection")] //[InheritOptional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void Connection(NSURLConnection connection, NSURLAuthenticationChallenge didCancelAuthenticationChallenge, bool NAME_YOUR_PARAMS = false); /// <summary> /// Sent when a connection must authenticate a challenge in order to download its request. /// </summary> /// <param name="connection">The connection sending the message.</param> /// <param name="didReceiveAuthenticationChallenge">The challenge that connection must authenticate in order to download its request.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("connection")] //[InheritOptional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void Connection(NSURLConnection connection, NSURLAuthenticationChallenge didReceiveAuthenticationChallenge, int NAME_YOUR_PARAMS = 0); /// <summary> /// Sent to determine whether the URL loader should use the credential storage for authenticating the connection. /// </summary> /// <param name="connection">The connection sending the message.</param> //[iOSVersion(3)] //[Export("connectionShouldUseCredentialStorage")] //[InheritOptional] //bool ConnectionShouldUseCredentialStorage(NSURLConnection connection); /// <summary> /// Sent when a connection fails to load its request successfully. /// </summary> /// <param name="connection">The connection sending the message.</param> /// <param name="didFailWithError">An error object containing details of why the connection failed to load the request successfully.</param> //[iOSVersion(2)] //[Export("connection")] //[InheritOptional] //void Connection(NSURLConnection connection, NSError didFailWithError); } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/Protocols/Delegates/NSURLConnectionDownloadDelegate.cs b/CocoaSharp/Foundation/Protocols/Delegates/NSURLConnectionDownloadDelegate.cs
index 2075cf26..c84cce15 100644
--- a/CocoaSharp/Foundation/Protocols/Delegates/NSURLConnectionDownloadDelegate.cs
+++ b/CocoaSharp/Foundation/Protocols/Delegates/NSURLConnectionDownloadDelegate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSURLConnectionDownloadDelegate protocol describes methods that should be implemented by the delegate of instances of NSURLConnection created using Newsstand Kit’s downloadWithDelegate: method. The methods in this protocol provide progress information about the download of a URL asset and, when downloading concludes, provide a file URL where the downloaded file can be accessed. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSURLConnectionDownloadDelegate_Protocol/index.html#//apple_ref/occ/intf/NSURLConnectionDownloadDelegate"/> [iOSVersion(5)] public interface NSURLConnectionDownloadDelegate//: NSObjectProtocol, NSURLConnectionDelegate { /// <summary> /// Sent to the delegate to deliver progress information for a download of a URL asset to a destination file. /// </summary> /// <param name="connection">The URL connection object downloading the asset.</param> /// <param name="didWriteData">The number of bytes written since the last call of this method.</param> /// <param name="totalBytesWritten">The total number of bytes of the downloading asset that have been written to the file.</param> /// <param name="expectedTotalBytes">The total number of bytes of the URL asset once it is completely downloaded and written to a file. This parameter can be zero if the total number of bytes is not known.</param> [iOSVersion(5)] [Export("connection")] void Connection(NSURLConnection connection, Int64 didWriteData, Int64 totalBytesWritten, Int64 expectedTotalBytes); /// <summary> /// Sent to the delegate when an URL connection resumes downloading a URL asset that was earlier suspended. /// </summary> /// <param name="connection">The URL connection object downloading the asset.</param> /// <param name="totalBytesWritten">The total number of bytes of the downloading asset that have been written to the destination file.</param> /// <param name="expectedTotalBytes">The total number of bytes of the URL asset once it is completely downloaded and written to a file.</param> [iOSVersion(5)] [Export("connectionDidResumeDownloading")] void ConnectionDidResumeDownloading(NSURLConnection connection, Int64 totalBytesWritten, Int64 expectedTotalBytes); /// <summary> /// Sent to the delegate when the URL connection has successfully downloaded the URL asset to a destination file. /// </summary> /// <param name="connection">The URL connection object that downloaded the asset.</param> /// <param name="destinationURL">A file URL specifying a destination in the file system. For iOS applications, this is a location in the application sandbox.</param> [iOSVersion(5)] [Export("connectionDidFinishDownloading")] void ConnectionDidFinishDownloading(NSURLConnection connection, NSURL destinationURL); } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSURLConnectionDownloadDelegate protocol describes methods that should be implemented by the delegate of instances of NSURLConnection created using Newsstand Kit’s downloadWithDelegate: method. The methods in this protocol provide progress information about the download of a URL asset and, when downloading concludes, provide a file URL where the downloaded file can be accessed. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSURLConnectionDownloadDelegate_Protocol/index.html#//apple_ref/occ/intf/NSURLConnectionDownloadDelegate"/> [iOSVersion(5)] [Export("")] public interface NSURLConnectionDownloadDelegate//: NSObjectProtocol, NSURLConnectionDelegate { /// <summary> /// Sent to the delegate to deliver progress information for a download of a URL asset to a destination file. /// </summary> /// <param name="connection">The URL connection object downloading the asset.</param> /// <param name="didWriteData">The number of bytes written since the last call of this method.</param> /// <param name="totalBytesWritten">The total number of bytes of the downloading asset that have been written to the file.</param> /// <param name="expectedTotalBytes">The total number of bytes of the URL asset once it is completely downloaded and written to a file. This parameter can be zero if the total number of bytes is not known.</param> //[iOSVersion(5)] //[Export("connection")] //[InheritOptional] //void Connection(NSURLConnection connection, Int64 didWriteData, Int64 totalBytesWritten, Int64 expectedTotalBytes); /// <summary> /// Sent to the delegate when an URL connection resumes downloading a URL asset that was earlier suspended. /// </summary> /// <param name="connection">The URL connection object downloading the asset.</param> /// <param name="totalBytesWritten">The total number of bytes of the downloading asset that have been written to the destination file.</param> /// <param name="expectedTotalBytes">The total number of bytes of the URL asset once it is completely downloaded and written to a file.</param> //[iOSVersion(5)] //[Export("connectionDidResumeDownloading")] //[InheritOptional] //void ConnectionDidResumeDownloading(NSURLConnection connection, Int64 totalBytesWritten, Int64 expectedTotalBytes); /// <summary> /// Sent to the delegate when the URL connection has successfully downloaded the URL asset to a destination file. /// </summary> /// <param name="connection">The URL connection object that downloaded the asset.</param> /// <param name="destinationURL">A file URL specifying a destination in the file system. For iOS applications, this is a location in the application sandbox.</param> [iOSVersion(5)] [Export("connectionDidFinishDownloading")] void ConnectionDidFinishDownloading(NSURLConnection connection, NSURL destinationURL); } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/Protocols/Delegates/NSURLSessionDataDelegate.cs b/CocoaSharp/Foundation/Protocols/Delegates/NSURLSessionDataDelegate.cs
index fa707827..7c61f342 100644
--- a/CocoaSharp/Foundation/Protocols/Delegates/NSURLSessionDataDelegate.cs
+++ b/CocoaSharp/Foundation/Protocols/Delegates/NSURLSessionDataDelegate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSURLSessionDataDelegate protocol defines the methods that a delegate of an NSURLSession object can implement to handle task-level events specific to data tasks and upload tasks. Your session delegate should also implement the methods in the NSURLSessionTaskDelegate protocol to handle task-level events that are common to all task types, and methods in the NSURLSessionDelegate protocol to handle session-level events. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSURLSessionDataDelegate_protocol/index.html#//apple_ref/occ/intf/NSURLSessionDataDelegate"/> [iOSVersion(7)] public interface NSURLSessionDataDelegate//: NSObjectProtocol, NSURLSessionDelegate, NSURLSessionTaskDelegate { /// <summary> /// Tells the delegate that the data task received the initial reply (headers) from the server. /// </summary> /// <param name="session">The session containing the data task that received an initial reply.</param> /// <param name="dataTask">The data task that received an initial reply.</param> /// <param name="didReceiveResponse">A URL response object populated with headers.</param> /// <param name="completionHandler">A completion handler that your code calls to continue the transfer, passing a constant to indicate whether the transfer should continue as a data task or should become a download task. /// If you pass NSURLSessionResponseAllow, the task continues normally. /// If you pass NSURLSessionResponseCancel, the task is canceled. /// If you pass NSURLSessionResponseBecomeDownload as the disposition, your delegate’s URLSession:dataTask:didBecomeDownloadTask: method is called to provide you with the new download task that supersedes the current task.</param> [iOSVersion(7)] void URLSession(NSURLSession session, NSURLSessionDataTask dataTask, NSURLResponse didReceiveResponse, Action<NSURLSessionResponseDisposition> completionHandler); /// <summary> /// Tells the delegate that the data task was changed to a download task. /// </summary> /// <param name="session">The session containing the task that was replaced by a download task.</param> /// <param name="dataTask">The data task that was replaced by a download task.</param> /// <param name="didBecomeDownloadTask">The new download task that replaced the data task.</param> [iOSVersion(7)] void URLSession(NSURLSession session, NSURLSessionDataTask dataTask, NSURLSessionDownloadTask didBecomeDownloadTask); /// <summary> /// Tells the delegate that the data task has received some of the expected data. /// </summary> /// <param name="session">The session containing the data task that provided data.</param> /// <param name="dataTask">The data task that provided data.</param> /// <param name="didReceiveData">A data object containing the transferred data.</param> [iOSVersion(7)] void URLSession(NSURLSession session, NSURLSessionDataTask dataTask, NSData didReceiveData); /// <summary> /// Asks the delegate whether the data (or upload) task should store the response in the cache. /// </summary> /// <param name="session">The session containing the data (or upload) task.</param> /// <param name="dataTask">The data (or upload) task.</param> /// <param name="willCacheResponse">The default caching behavior. This behavior is determined based on the current caching policy and the values of certain received headers, such as the Pragma and Cache-Control headers.</param> /// <param name="completionHandler">A block that your handler must call, providing either the original proposed response, a modified version of that response, or NULL to prevent caching the response. If your delegate implements this method, it must call this completion handler; otherwise, your app leaks memory.</param> [iOSVersion(7)] void URLSession(NSURLSession session, NSURLSessionDataTask dataTask, NSCachedURLResponse willCacheResponse, Action<NSCachedURLResponse> completionHandler); } /// <summary> /// Constants indicating how a data or upload session should proceed after receiving the initial headers. /// </summary> [iOSVersion(7)] public enum NSURLSessionResponseDisposition { /// <summary> /// Cancel the load. Equivalent to calling cancel on the task. /// </summary> [iOSVersion(7)] Cancel, /// <summary> /// Allow the load operation to continue. /// </summary> [iOSVersion(7)] Allow, /// <summary> /// Convert this request into a download task. /// </summary> [iOSVersion(7)] BecomeDownload, } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSURLSessionDataDelegate protocol defines the methods that a delegate of an NSURLSession object can implement to handle task-level events specific to data tasks and upload tasks. Your session delegate should also implement the methods in the NSURLSessionTaskDelegate protocol to handle task-level events that are common to all task types, and methods in the NSURLSessionDelegate protocol to handle session-level events. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSURLSessionDataDelegate_protocol/index.html#//apple_ref/occ/intf/NSURLSessionDataDelegate"/> [iOSVersion(7)] [Export("")] public interface NSURLSessionDataDelegate//: NSObjectProtocol, NSURLSessionDelegate, NSURLSessionTaskDelegate { /// <summary> /// Tells the delegate that the data task received the initial reply (headers) from the server. /// </summary> /// <param name="session">The session containing the data task that received an initial reply.</param> /// <param name="dataTask">The data task that received an initial reply.</param> /// <param name="didReceiveResponse">A URL response object populated with headers.</param> /// <param name="completionHandler">A completion handler that your code calls to continue the transfer, passing a constant to indicate whether the transfer should continue as a data task or should become a download task. /// If you pass NSURLSessionResponseAllow, the task continues normally. /// If you pass NSURLSessionResponseCancel, the task is canceled. /// If you pass NSURLSessionResponseBecomeDownload as the disposition, your delegate’s URLSession:dataTask:didBecomeDownloadTask: method is called to provide you with the new download task that supersedes the current task.</param> //[iOSVersion(7)] //[InheritOptional] //void URLSession(NSURLSession session, NSURLSessionDataTask dataTask, NSURLResponse didReceiveResponse, Action<NSURLSessionResponseDisposition> completionHandler); /// <summary> /// Tells the delegate that the data task was changed to a download task. /// </summary> /// <param name="session">The session containing the task that was replaced by a download task.</param> /// <param name="dataTask">The data task that was replaced by a download task.</param> /// <param name="didBecomeDownloadTask">The new download task that replaced the data task.</param> //[iOSVersion(7)] //[InheritOptional] //void URLSession(NSURLSession session, NSURLSessionDataTask dataTask, NSURLSessionDownloadTask didBecomeDownloadTask); /// <summary> /// Tells the delegate that the data task has received some of the expected data. /// </summary> /// <param name="session">The session containing the data task that provided data.</param> /// <param name="dataTask">The data task that provided data.</param> /// <param name="didReceiveData">A data object containing the transferred data.</param> //[iOSVersion(7)] //[InheritOptional] //void URLSession(NSURLSession session, NSURLSessionDataTask dataTask, NSData didReceiveData); /// <summary> /// Asks the delegate whether the data (or upload) task should store the response in the cache. /// </summary> /// <param name="session">The session containing the data (or upload) task.</param> /// <param name="dataTask">The data (or upload) task.</param> /// <param name="willCacheResponse">The default caching behavior. This behavior is determined based on the current caching policy and the values of certain received headers, such as the Pragma and Cache-Control headers.</param> /// <param name="completionHandler">A block that your handler must call, providing either the original proposed response, a modified version of that response, or NULL to prevent caching the response. If your delegate implements this method, it must call this completion handler; otherwise, your app leaks memory.</param> //[iOSVersion(7)] //[InheritOptional] //void URLSession(NSURLSession session, NSURLSessionDataTask dataTask, NSCachedURLResponse willCacheResponse, Action<NSCachedURLResponse> completionHandler); } /// <summary> /// Constants indicating how a data or upload session should proceed after receiving the initial headers. /// </summary> public enum NSURLSessionResponseDisposition { /// <summary> /// Cancel the load. Equivalent to calling cancel on the task. /// </summary> [iOSVersion(7)] Cancel, /// <summary> /// Allow the load operation to continue. /// </summary> [iOSVersion(7)] Allow, /// <summary> /// Convert this request into a download task. /// </summary> [iOSVersion(7)] BecomeDownload, } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/Protocols/Delegates/NSURLSessionDelegate.cs b/CocoaSharp/Foundation/Protocols/Delegates/NSURLSessionDelegate.cs
index d5c79e57..7a940c6c 100644
--- a/CocoaSharp/Foundation/Protocols/Delegates/NSURLSessionDelegate.cs
+++ b/CocoaSharp/Foundation/Protocols/Delegates/NSURLSessionDelegate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSURLSessionDelegate protocol describes the methods that NSURLSession objects call on their delegates to handle session-level events. In addition to the methods defined in this protocol, most delegates should also implement some or all of the methods in the NSURLSessionTaskDelegate, NSURLSessionDataDelegate, and NSURLSessionDownloadDelegate protocols to handle task-level events. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSURLSessionDelegate_protocol/index.html#//apple_ref/occ/intf/NSURLSessionDelegate"/> [iOSVersion(7)] public interface NSURLSessionDelegate//: NSObjectProtocol { /// <summary> /// Tells the URL session that the session has been invalidated. /// </summary> /// <param name="session">The session object that was invalidated.</param> /// <param name="didBecomeInvalidWithError">The error that caused invalidation, or nil if the invalidation was explicit.</param> [iOSVersion(7)] void URLSession(NSURLSession session, NSError didBecomeInvalidWithError); /// <summary> /// Requests credentials from the delegate in response to a session-level authentication request from the remote server. /// </summary> /// <param name="session">The session containing the task that requested authentication.</param> /// <param name="didReceiveChallenge">An object that contains the request for authentication.</param> /// <param name="completionHandler">A handler that your delegate method must call. Its parameters are: /// disposition—One of several constants that describes how the challenge should be handled. /// credential—The credential that should be used for authentication if disposition is NSURLSessionAuthChallengeUseCredential, otherwise NULL.</param> [iOSVersion(7)] void URLSession(NSURLSession session, NSURLAuthenticationChallenge didReceiveChallenge, Action<NSURLSessionAuthChallengeDisposition, NSURLCredential> completionHandler); /// <summary> /// Tells the delegate that all messages enqueued for a session have been delivered. /// </summary> /// <param name="session">The session that no longer has any outstanding requests.</param> [iOSVersion(7)] void URLSessionDidFinishEventsForBackgroundURLSession(NSURLSession session); } /// <summary> /// Constants passed by session or task delegates to the provided continuation block in response to an authentication challenge. /// </summary> [iOSVersion(7)] public enum NSURLSessionAuthChallengeDisposition { /// <summary> /// Use the specified credential, which may be nil. /// </summary> [iOSVersion(7)] UseCredential, /// <summary> /// Use the default handling for the challenge as though this delegate method were not implemented. The provided credential parameter is ignored. /// </summary> [iOSVersion(7)] PerformDefaultHandling, /// <summary> /// Cancel the entire request. The provided credential parameter is ignored. /// </summary> [iOSVersion(7)] CancelAuthenticationChallenge, /// <summary> /// Reject this challenge, and call the authentication delegate method again with the next authentication protection space. The provided credential parameter is ignored. /// </summary> [iOSVersion(7)] RejectProtectionSpace, } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSURLSessionDelegate protocol describes the methods that NSURLSession objects call on their delegates to handle session-level events. In addition to the methods defined in this protocol, most delegates should also implement some or all of the methods in the NSURLSessionTaskDelegate, NSURLSessionDataDelegate, and NSURLSessionDownloadDelegate protocols to handle task-level events. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSURLSessionDelegate_protocol/index.html#//apple_ref/occ/intf/NSURLSessionDelegate"/> [iOSVersion(7)] [Export("")] public interface NSURLSessionDelegate//: NSObjectProtocol { /// <summary> /// Tells the URL session that the session has been invalidated. /// </summary> /// <param name="session">The session object that was invalidated.</param> /// <param name="didBecomeInvalidWithError">The error that caused invalidation, or nil if the invalidation was explicit.</param> //[iOSVersion(7)] //[InheritOptional] //void URLSession(NSURLSession session, [Optional] NSError didBecomeInvalidWithError); /// <summary> /// Requests credentials from the delegate in response to a session-level authentication request from the remote server. /// </summary> /// <param name="session">The session containing the task that requested authentication.</param> /// <param name="didReceiveChallenge">An object that contains the request for authentication.</param> /// <param name="completionHandler">A handler that your delegate method must call. Its parameters are: /// disposition—One of several constants that describes how the challenge should be handled. /// credential—The credential that should be used for authentication if disposition is NSURLSessionAuthChallengeUseCredential, otherwise NULL.</param> //[iOSVersion(7)] //[InheritOptional] //void URLSession(NSURLSession session, NSURLAuthenticationChallenge didReceiveChallenge, Action<NSURLSessionAuthChallengeDisposition, NSURLCredential> completionHandler); /// <summary> /// Tells the delegate that all messages enqueued for a session have been delivered. /// </summary> /// <param name="session">The session that no longer has any outstanding requests.</param> //[iOSVersion(7)] //[InheritOptional] //void URLSessionDidFinishEventsForBackgroundURLSession(NSURLSession session); } /// <summary> /// Constants passed by session or task delegates to the provided continuation block in response to an authentication challenge. /// </summary> //public enum NSURLSessionAuthChallengeDisposition //{ // /// <summary> // /// Use the specified credential, which may be nil. // /// </summary> // [iOSVersion(7)] // UseCredential, // /// <summary> // /// Use the default handling for the challenge as though this delegate method were not implemented. The provided credential parameter is ignored. // /// </summary> // [iOSVersion(7)] // PerformDefaultHandling, // /// <summary> // /// Cancel the entire request. The provided credential parameter is ignored. // /// </summary> // [iOSVersion(7)] // CancelAuthenticationChallenge, // /// <summary> // /// Reject this challenge, and call the authentication delegate method again with the next authentication protection space. The provided credential parameter is ignored. // /// </summary> // [iOSVersion(7)] // RejectProtectionSpace, //} } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/Protocols/Delegates/NSURLSessionDownloadDelegate.cs b/CocoaSharp/Foundation/Protocols/Delegates/NSURLSessionDownloadDelegate.cs
index 776df30d..f87450aa 100644
--- a/CocoaSharp/Foundation/Protocols/Delegates/NSURLSessionDownloadDelegate.cs
+++ b/CocoaSharp/Foundation/Protocols/Delegates/NSURLSessionDownloadDelegate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSURLSessionDownloadDelegate protocol defines delegate methods that you should implement when using NSURLSession download tasks. In addition to these methods, be sure to implement the methods in the NSURLSessionTaskDelegate and NSURLSessionDelegate protocols to handle events common to all task types and session-level events, respectively. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSURLSessionDownloadDelegate_protocol/index.html#//apple_ref/occ/intf/NSURLSessionDownloadDelegate"/> [iOSVersion(7)] public interface NSURLSessionDownloadDelegate//: NSObjectProtocol, NSURLSessionDelegate, NSURLSessionTaskDelegate { /// <summary> /// Tells the delegate that the download task has resumed downloading. (required) /// </summary> /// <param name="session">The session containing the download task that finished.</param> /// <param name="downloadTask">The download task that resumed. See explanation in the discussion.</param> /// <param name="didResumeAtOffset">If the file's cache policy or last modified date prevents reuse of the existing content, then this value is zero. Otherwise, this value is an integer representing the number of bytes on disk that do not need to be retrieved again. /// Note /// In some situations, it may be possible for the transfer to resume earlier in the file than where the previous transfer ended.</param> /// <param name="expectedTotalBytes">The expected length of the file, as provided by the Content-Length header. If this header was not provided, the value is NSURLSessionTransferSizeUnknown.</param> [iOSVersion(7)] void URLSession(NSURLSession session, NSURLSessionDownloadTask downloadTask, Int64 didResumeAtOffset, Int64 expectedTotalBytes); /// <summary> /// Periodically informs the delegate about the download’s progress. (required) /// </summary> /// <param name="session">The session containing the download task.</param> /// <param name="downloadTask">The download task.</param> /// <param name="didWriteData">The number of bytes transferred since the last time this delegate method was called.</param> /// <param name="totalBytesWritten">The total number of bytes transferred so far.</param> /// <param name="totalBytesExpectedToWrite">The expected length of the file, as provided by the Content-Length header. If this header was not provided, the value is NSURLSessionTransferSizeUnknown.</param> [iOSVersion(7)] void URLSession(NSURLSession session, NSURLSessionDownloadTask downloadTask, Int64 didWriteData, Int64 totalBytesWritten, Int64 totalBytesExpectedToWrite); /// <summary> /// Tells the delegate that a download task has finished downloading. (required) /// </summary> /// <param name="session">The session containing the download task that finished.</param> /// <param name="downloadTask">The download task that finished.</param> /// <param name="didFinishDownloadingToURL">A file URL for the temporary file. Because the file is temporary, you must either open the file for reading or move it to a permanent location in your app’s sandbox container directory before returning from this delegate method. /// If you choose to open the file for reading, you should do the actual reading in another thread to avoid blocking the delegate queue.</param> [iOSVersion(7)] void URLSession(NSURLSession session, NSURLSessionDownloadTask downloadTask, NSURL didFinishDownloadingToURL); } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSURLSessionDownloadDelegate protocol defines delegate methods that you should implement when using NSURLSession download tasks. In addition to these methods, be sure to implement the methods in the NSURLSessionTaskDelegate and NSURLSessionDelegate protocols to handle events common to all task types and session-level events, respectively. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSURLSessionDownloadDelegate_protocol/index.html#//apple_ref/occ/intf/NSURLSessionDownloadDelegate"/> [iOSVersion(7)] [Export("")] public interface NSURLSessionDownloadDelegate//: NSObjectProtocol, NSURLSessionDelegate, NSURLSessionTaskDelegate { /// <summary> /// Tells the delegate that the download task has resumed downloading. (required) /// </summary> /// <param name="session">The session containing the download task that finished.</param> /// <param name="downloadTask">The download task that resumed. See explanation in the discussion.</param> /// <param name="didResumeAtOffset">If the file&#39;s cache policy or last modified date prevents reuse of the existing content, then this value is zero. Otherwise, this value is an integer representing the number of bytes on disk that do not need to be retrieved again. /// Note /// In some situations, it may be possible for the transfer to resume earlier in the file than where the previous transfer ended.</param> /// <param name="expectedTotalBytes">The expected length of the file, as provided by the Content-Length header. If this header was not provided, the value is NSURLSessionTransferSizeUnknown.</param> //[iOSVersion(7)] //[InheritOptional] //void URLSession(NSURLSession session, NSURLSessionDownloadTask downloadTask, Int64 didResumeAtOffset, Int64 expectedTotalBytes); /// <summary> /// Periodically informs the delegate about the download’s progress. (required) /// </summary> /// <param name="session">The session containing the download task.</param> /// <param name="downloadTask">The download task.</param> /// <param name="didWriteData">The number of bytes transferred since the last time this delegate method was called.</param> /// <param name="totalBytesWritten">The total number of bytes transferred so far.</param> /// <param name="totalBytesExpectedToWrite">The expected length of the file, as provided by the Content-Length header. If this header was not provided, the value is NSURLSessionTransferSizeUnknown.</param> //[iOSVersion(7)] //[InheritOptional] //void URLSession(NSURLSession session, NSURLSessionDownloadTask downloadTask, Int64 didWriteData, Int64 totalBytesWritten, Int64 totalBytesExpectedToWrite); /// <summary> /// Tells the delegate that a download task has finished downloading. (required) /// </summary> /// <param name="session">The session containing the download task that finished.</param> /// <param name="downloadTask">The download task that finished.</param> /// <param name="didFinishDownloadingToURL">A file URL for the temporary file. Because the file is temporary, you must either open the file for reading or move it to a permanent location in your app’s sandbox container directory before returning from this delegate method. /// If you choose to open the file for reading, you should do the actual reading in another thread to avoid blocking the delegate queue.</param> [iOSVersion(7)] void URLSession(NSURLSession session, NSURLSessionDownloadTask downloadTask, NSURL didFinishDownloadingToURL); } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/Protocols/Delegates/NSURLSessionTaskDelegate.cs b/CocoaSharp/Foundation/Protocols/Delegates/NSURLSessionTaskDelegate.cs
index 34fea09e..1bff60c4 100644
--- a/CocoaSharp/Foundation/Protocols/Delegates/NSURLSessionTaskDelegate.cs
+++ b/CocoaSharp/Foundation/Protocols/Delegates/NSURLSessionTaskDelegate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSURLSessionTaskDelegate protocol defines the task-specific delegate methods that you should implement when working with any type of NSURLSession task. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSURLSessionTaskDelegate_protocol/index.html#//apple_ref/occ/intf/NSURLSessionTaskDelegate"/> [iOSVersion(7)] public interface NSURLSessionTaskDelegate//: NSObjectProtocol, NSURLSessionDelegate { /// <summary> /// Tells the delegate that the task finished transferring data. /// </summary> /// <param name="session">The session containing the task whose request finished transferring data.</param> /// <param name="task">The task whose request finished transferring data.</param> /// <param name="didCompleteWithError">If an error occurred, an error object indicating how the transfer failed, otherwise NULL.</param> [iOSVersion(7)] void URLSession(NSURLSession session, NSURLSessionTask task, NSError didCompleteWithError); /// <summary> /// Requests credentials from the delegate in response to an authentication request from the remote server. /// </summary> /// <param name="session">The session containing the task whose request requires authentication.</param> /// <param name="task">The task whose request requires authentication.</param> /// <param name="didReceiveChallenge">An object that contains the request for authentication.</param> /// <param name="completionHandler">A handler that your delegate method must call. Its parameters are: /// disposition—One of several constants that describes how the challenge should be handled. /// credential—The credential that should be used for authentication if disposition is NSURLSessionAuthChallengeUseCredential; otherwise, NULL.</param> [iOSVersion(7)] void URLSession(NSURLSession session, NSURLSessionTask task, NSURLAuthenticationChallenge didReceiveChallenge, Action<NSURLSessionAuthChallengeDisposition, NSURLCredential> completionHandler); /// <summary> /// Periodically informs the delegate of the progress of sending body content to the server. /// </summary> /// <param name="session">The session containing the data task.</param> /// <param name="task">The data task.</param> /// <param name="didSendBodyData">The number of bytes sent since the last time this delegate method was called.</param> /// <param name="totalBytesSent">The total number of bytes sent so far.</param> /// <param name="totalBytesExpectedToSend">The expected length of the body data. The URL loading system can determine the length of the upload data in three ways: /// From the length of the NSData object provided as the upload body. /// From the length of the file on disk provided as the upload body of an upload task (not a download task). /// From the Content-Length in the request object, if you explicitly set it. /// Otherwise, the value is NSURLSessionTransferSizeUnknown (-1) if you provided a stream or body data object, or zero (0) if you did not.</param> [iOSVersion(7)] void URLSession(NSURLSession session, NSURLSessionTask task, Int64 didSendBodyData, Int64 totalBytesSent, Int64 totalBytesExpectedToSend); /// <summary> /// Tells the delegate when a task requires a new request body stream to send to the remote server. /// </summary> /// <param name="session">The session containing the task that needs a new body stream.</param> /// <param name="task">The task that needs a new body stream.</param> /// <param name="needNewBodyStream">A completion handler that your delegate method should call with the new body stream.</param> [iOSVersion(7)] void URLSession(NSURLSession session, NSURLSessionTask task, Action<NSInputStream> needNewBodyStream); /// <summary> /// Tells the delegate that the remote server requested an HTTP redirect. /// </summary> /// <param name="session">The session containing the task whose request resulted in a redirect.</param> /// <param name="task">The task whose request resulted in a redirect.</param> /// <param name="willPerformHTTPRedirection">An object containing the server’s response to the original request.</param> /// <param name="newRequest">A URL request object filled out with the new location.</param> /// <param name="completionHandler">A block that your handler should call with either the value of the request parameter, a modified URL request object, or NULL to refuse the redirect and return the body of the redirect response.</param> [iOSVersion(7)] void URLSession(NSURLSession session, NSURLSessionTask task, NSHTTPURLResponse willPerformHTTPRedirection, NSURLRequest newRequest, Action<NSURLRequest> completionHandler); } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSURLSessionTaskDelegate protocol defines the task-specific delegate methods that you should implement when working with any type of NSURLSession task. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSURLSessionTaskDelegate_protocol/index.html#//apple_ref/occ/intf/NSURLSessionTaskDelegate"/> [iOSVersion(7)] [Export("")] public interface NSURLSessionTaskDelegate//: NSObjectProtocol, NSURLSessionDelegate { /// <summary> /// Tells the delegate that the task finished transferring data. /// </summary> /// <param name="session">The session containing the task whose request finished transferring data.</param> /// <param name="task">The task whose request finished transferring data.</param> /// <param name="didCompleteWithError">If an error occurred, an error object indicating how the transfer failed, otherwise NULL.</param> //[iOSVersion(7)] //[InheritOptional] //void URLSession(NSURLSession session, NSURLSessionTask task, [Optional] NSError didCompleteWithError); /// <summary> /// Requests credentials from the delegate in response to an authentication request from the remote server. /// </summary> /// <param name="session">The session containing the task whose request requires authentication.</param> /// <param name="task">The task whose request requires authentication.</param> /// <param name="didReceiveChallenge">An object that contains the request for authentication.</param> /// <param name="completionHandler">A handler that your delegate method must call. Its parameters are: /// disposition—One of several constants that describes how the challenge should be handled. /// credential—The credential that should be used for authentication if disposition is NSURLSessionAuthChallengeUseCredential; otherwise, NULL.</param> //[iOSVersion(7)] //[InheritOptional] //void URLSession(NSURLSession session, NSURLSessionTask task, NSURLAuthenticationChallenge didReceiveChallenge, Action<NSURLSessionAuthChallengeDisposition, NSURLCredential> completionHandler); /// <summary> /// Periodically informs the delegate of the progress of sending body content to the server. /// </summary> /// <param name="session">The session containing the data task.</param> /// <param name="task">The data task.</param> /// <param name="didSendBodyData">The number of bytes sent since the last time this delegate method was called.</param> /// <param name="totalBytesSent">The total number of bytes sent so far.</param> /// <param name="totalBytesExpectedToSend">The expected length of the body data. The URL loading system can determine the length of the upload data in three ways: /// From the length of the NSData object provided as the upload body. /// From the length of the file on disk provided as the upload body of an upload task (not a download task). /// From the Content-Length in the request object, if you explicitly set it. /// Otherwise, the value is NSURLSessionTransferSizeUnknown (-1) if you provided a stream or body data object, or zero (0) if you did not.</param> //[iOSVersion(7)] //[InheritOptional] //void URLSession(NSURLSession session, NSURLSessionTask task, Int64 didSendBodyData, Int64 totalBytesSent, Int64 totalBytesExpectedToSend); /// <summary> /// Tells the delegate when a task requires a new request body stream to send to the remote server. /// </summary> /// <param name="session">The session containing the task that needs a new body stream.</param> /// <param name="task">The task that needs a new body stream.</param> /// <param name="needNewBodyStream">A completion handler that your delegate method should call with the new body stream.</param> //[iOSVersion(7)] //[InheritOptional] //void URLSession(NSURLSession session, NSURLSessionTask task, Action<NSInputStream> needNewBodyStream); /// <summary> /// Tells the delegate that the remote server requested an HTTP redirect. /// </summary> /// <param name="session">The session containing the task whose request resulted in a redirect.</param> /// <param name="task">The task whose request resulted in a redirect.</param> /// <param name="willPerformHTTPRedirection">An object containing the server’s response to the original request.</param> /// <param name="newRequest">A URL request object filled out with the new location.</param> /// <param name="completionHandler">A block that your handler should call with either the value of the request parameter, a modified URL request object, or NULL to refuse the redirect and return the body of the redirect response.</param> //[iOSVersion(7)] //[InheritOptional] //void URLSession(NSURLSession session, NSURLSessionTask task, NSHTTPURLResponse willPerformHTTPRedirection, NSURLRequest newRequest, Action<NSURLRequest> completionHandler); } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/Protocols/Delegates/NSUserActivityDelegate.cs b/CocoaSharp/Foundation/Protocols/Delegates/NSUserActivityDelegate.cs
index 0b930288..f9330271 100644
--- a/CocoaSharp/Foundation/Protocols/Delegates/NSUserActivityDelegate.cs
+++ b/CocoaSharp/Foundation/Protocols/Delegates/NSUserActivityDelegate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The user activity delegate works with an NSUserActivity object, which encapsulates the state of a user activity in an application on a particular device and enables the same activity to be continued on another device. For example, a user browsing an article in Safari on a Mac can move to an iOS device and have the same webpage automatically open in Safari on iOS with the same scroll position. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/AppKit/Reference/NSUserActivityDelegate_Protocol/index.html#//apple_ref/occ/intf/NSUserActivityDelegate"/> [iOSVersion(8)] public interface NSUserActivityDelegate//: NSObjectProtocol { /// <summary> /// Notifies the delegate that an input and output streams are available to open. /// </summary> /// <param name="userActivity">The user activity that is continuing on another device. This user activity must have originally set supportsContinuationStreams to true.</param> /// <param name="didReceiveInputStream">The stream from which the originating app can read data written from the continuing app.</param> /// <param name="outputStream">The stream to which the originating app writes data to be read by the continuing app.</param> [iOSVersion(8)] [Export("userActivity")] void UserActivity(NSUserActivity userActivity, NSInputStream didReceiveInputStream, NSOutputStream outputStream); /// <summary> /// Notifies the delegate that the user activity was continued on another device. /// </summary> /// <param name="userActivity">The user activity that was continued.</param> [iOSVersion(8)] [Export("userActivityWasContinued")] void UserActivityWasContinued(NSUserActivity userActivity); /// <summary> /// Notifies the delegate that the user activity will be saved to be continued or persisted. /// </summary> /// <param name="userActivity">The user activity to update.</param> [iOSVersion(8)] [Export("userActivityWillSave")] void UserActivityWillSave(NSUserActivity userActivity); } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// An object conforming to the NSUserActivityDelegate protocol works with an NSUserActivity object, which encapsulates the state of a user activity in an application on a particular device and enables the same activity to be continued on another device. For example, a user browsing an article in Safari on a Mac can move to an iOS device where the same webpage automatically opens in Safari with the same scroll position. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/AppKit/Reference/NSUserActivityDelegate_Protocol/index.html#//apple_ref/occ/intf/NSUserActivityDelegate"/> [iOSVersion(8)] [Export("")] public interface NSUserActivityDelegate//: NSObjectProtocol { /// <summary> /// Notifies the user activity delegate that an input and output streams are available to open. /// </summary> /// <param name="userActivity">The user activity that is continuing on another device. This user activity&#39;s supportsContinuationStreams property must be true.</param> /// <param name="didReceiveInputStream">The stream from which the originating app can read data written from the continuing app.</param> /// <param name="outputStream">The stream to which the originating app writes data to be read by the continuing app.</param> //[iOSVersion(8)] //[Export("userActivity")] //[InheritOptional] //void UserActivity(NSUserActivity userActivity, NSInputStream didReceiveInputStream, NSOutputStream outputStream); /// <summary> /// Notifies the delegate that the user activity was continued on another device. /// </summary> /// <param name="userActivity">The user activity that was continued.</param> //[iOSVersion(8)] //[Export("userActivityWasContinued")] //[InheritOptional] //void UserActivityWasContinued(NSUserActivity userActivity); /// <summary> /// Notifies the delegate that the user activity will be saved to be continued or persisted. /// </summary> /// <param name="userActivity">The user activity to update.</param> //[iOSVersion(8)] //[Export("userActivityWillSave")] //[InheritOptional] //void UserActivityWillSave(NSUserActivity userActivity); } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/Protocols/Delegates/NSXMLParserDelegate.cs b/CocoaSharp/Foundation/Protocols/Delegates/NSXMLParserDelegate.cs
index a2edd2c4..56b40cb6 100644
--- a/CocoaSharp/Foundation/Protocols/Delegates/NSXMLParserDelegate.cs
+++ b/CocoaSharp/Foundation/Protocols/Delegates/NSXMLParserDelegate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSXMLParserDelegate protocol defines the optional methods implemented by delegates of NSXMLParser objects. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/NSXMLParserDelegate_Protocol/index.html#//apple_ref/occ/intf/NSXMLParserDelegate"/> [iOSVersion(4)] public interface NSXMLParserDelegate//: NSObjectProtocol { /// <summary> /// Sent by the parser object to the delegate when it begins parsing a document. /// </summary> /// <param name="parser">A parser object.</param> [iOSVersion(2)] [Export("parserDidStartDocument")] void ParserDidStartDocument(NSXMLParser parser); /// <summary> /// Sent by the parser object to the delegate when it has successfully completed parsing. /// </summary> /// <param name="parser">A parser object.</param> [iOSVersion(2)] [Export("parserDidEndDocument")] void ParserDidEndDocument(NSXMLParser parser); /// <summary> /// Sent by a parser object to its delegate when it encounters a start tag for a given element. /// </summary> /// <param name="parser">A parser object.</param> /// <param name="didStartElement">A string that is the name of an element (in its start tag).</param> /// <param name="namespaceURI">If namespace processing is turned on, contains the URI for the current namespace as a string object.</param> /// <param name="qualifiedName">If namespace processing is turned on, contains the qualified name for the current namespace as a string object.</param> /// <param name="attributes">A dictionary that contains any attributes associated with the element. Keys are the names of attributes, and values are attribute values.</param> [iOSVersion(2)] [Export("parser")] void Parser(NSXMLParser parser, string didStartElement, string namespaceURI, string qualifiedName, Dictionary<NSObject, AnyObject> attributes); /// <summary> /// Sent by a parser object to its delegate when it encounters an end tag for a specific element. /// </summary> /// <param name="parser">A parser object.</param> /// <param name="didEndElement">A string that is the name of an element (in its end tag).</param> /// <param name="namespaceURI">If namespace processing is turned on, contains the URI for the current namespace as a string object.</param> /// <param name="qualifiedName">If namespace processing is turned on, contains the qualified name for the current namespace as a string object.</param> [iOSVersion(2)] [Export("parser")] void Parser(NSXMLParser parser, string didEndElement, string namespaceURI, string qualifiedName); /// <summary> /// Sent by a parser object to its delegate the first time it encounters a given namespace prefix, which is mapped to a URI. /// </summary> /// <param name="parser">A parser object.</param> /// <param name="didStartMappingPrefix">A string that is a namespace prefix.</param> /// <param name="toURI">A string that specifies a namespace URI.</param> [iOSVersion(2)] [Export("parser")] void Parser(NSXMLParser parser, string didStartMappingPrefix, string toURI); /// <summary> /// Sent by a parser object to its delegate when a given namespace prefix goes out of scope. /// </summary> /// <param name="parser">A parser object.</param> /// <param name="didEndMappingPrefix">A string that is a namespace prefix.</param> [iOSVersion(2)] [Export("parser")] void Parser(NSXMLParser parser, string didEndMappingPrefix); /// <summary> /// Sent by a parser object to its delegate when it encounters a given external entity with a specific system ID. /// </summary> /// <param name="parser">A parser object.</param> /// <param name="resolveExternalEntityName">A string that specifies the external name of an entity.</param> /// <param name="systemID">A string that specifies the system ID for the external entity.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [Export("parser")] [IgnoreParameter("NAME_YOUR_PARAMS")] NSData Parser(NSXMLParser parser, string resolveExternalEntityName, string systemID, bool NAME_YOUR_PARAMS = false); /// <summary> /// Sent by a parser object to its delegate when it encounters a fatal error. /// </summary> /// <param name="parser">A parser object.</param> /// <param name="parseErrorOccurred">An NSError object describing the parsing error that occurred.</param> [iOSVersion(2)] [Export("parser")] void Parser(NSXMLParser parser, NSError parseErrorOccurred); /// <summary> /// Sent by a parser object to its delegate when it encounters a fatal validation error. NSXMLParser currently does not invoke this method and does not perform validation. /// </summary> /// <param name="parser">A parser object.</param> /// <param name="validationErrorOccurred">An NSError object describing the validation error that occurred.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [Export("parser")] [IgnoreParameter("NAME_YOUR_PARAMS")] void Parser(NSXMLParser parser, NSError validationErrorOccurred, bool NAME_YOUR_PARAMS = false); /// <summary> /// Sent by a parser object to provide its delegate with a string representing all or part of the characters of the current element. /// </summary> /// <param name="parser">A parser object.</param> /// <param name="foundCharacters">A string representing the complete or partial textual content of the current element.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [Export("parser")] [IgnoreParameter("NAME_YOUR_PARAMS")] void Parser(NSXMLParser parser, string foundCharacters, bool NAME_YOUR_PARAMS = false); /// <summary> /// Reported by a parser object to provide its delegate with a string representing all or part of the ignorable whitespace characters of the current element. /// </summary> /// <param name="parser">A parser object.</param> /// <param name="foundIgnorableWhitespace">A string representing all or part of the ignorable whitespace characters of the current element.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [Export("parser")] [IgnoreParameter("NAME_YOUR_PARAMS")] void Parser(NSXMLParser parser, string foundIgnorableWhitespace, int NAME_YOUR_PARAMS = 0); /// <summary> /// Sent by a parser object to its delegate when it encounters a processing instruction. /// </summary> /// <param name="parser">A parser object.</param> /// <param name="foundProcessingInstructionWithTarget">A string representing the target of a processing instruction.</param> /// <param name="data">A string representing the data for a processing instruction.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [Export("parser")] [IgnoreParameter("NAME_YOUR_PARAMS")] void Parser(NSXMLParser parser, string foundProcessingInstructionWithTarget, string data, int NAME_YOUR_PARAMS = 0); /// <summary> /// Sent by a parser object to its delegate when it encounters a comment in the XML. /// </summary> /// <param name="parser">An NSXMLParser object parsing XML.</param> /// <param name="foundComment">A string that is a the content of a comment in the XML.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [Export("parser")] [IgnoreParameter("NAME_YOUR_PARAMS")] void Parser(NSXMLParser parser, string foundComment, uint NAME_YOUR_PARAMS = 0); /// <summary> /// Sent by a parser object to its delegate when it encounters a CDATA block. /// </summary> /// <param name="parser">An NSXMLParser object parsing XML.</param> /// <param name="foundCDATA">A data object containing a block of CDATA.</param> [iOSVersion(2)] [Export("parser")] void Parser(NSXMLParser parser, NSData foundCDATA); /// <summary> /// Sent by a parser object to its delegate when it encounters a declaration of an attribute that is associated with a specific element. /// </summary> /// <param name="parser">An NSXMLParser object parsing XML.</param> /// <param name="foundAttributeDeclarationWithName">A string that is the name of an attribute.</param> /// <param name="forElement">A string that is the name of an element that has the attribute attributeName.</param> /// <param name="type">A string, such as &quot;ENTITY&quot;, &quot;NOTATION&quot;, or &quot;ID&quot;, that indicates the type of the attribute.</param> /// <param name="defaultValue">A string that specifies the default value of the attribute.</param> [iOSVersion(2)] [Export("parser")] void Parser(NSXMLParser parser, string foundAttributeDeclarationWithName, string forElement, string type, string defaultValue); /// <summary> /// Sent by a parser object to its delegate when it encounters a declaration of an element with a given model. /// </summary> /// <param name="parser">An NSXMLParser object parsing XML.</param> /// <param name="foundElementDeclarationWithName">A string that is the name of an element.</param> /// <param name="model">A string that specifies a model for elementName.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [Export("parser")] [IgnoreParameter("NAME_YOUR_PARAMS")] void Parser(NSXMLParser parser, string foundElementDeclarationWithName, string model, UInt16 NAME_YOUR_PARAMS = 2); /// <summary> /// Sent by a parser object to its delegate when it encounters an external entity declaration. /// </summary> /// <param name="parser">An NSXMLParser object parsing XML.</param> /// <param name="foundExternalEntityDeclarationWithName">A string that is the name of an entity.</param> /// <param name="publicID">A string that specifies the public ID associated with entityName.</param> /// <param name="systemID">A string that specifies the system ID associated with entityName.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [Export("parser")] [IgnoreParameter("NAME_YOUR_PARAMS")] void Parser(NSXMLParser parser, string foundExternalEntityDeclarationWithName, string publicID, string systemID, bool NAME_YOUR_PARAMS = false); /// <summary> /// Sent by a parser object to the delegate when it encounters an internal entity declaration. /// </summary> /// <param name="parser">An NSXMLParser object parsing XML.</param> /// <param name="foundInternalEntityDeclarationWithName">A string that is the declared name of an internal entity.</param> /// <param name="value">A string that is the value of entity name.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [Export("parser")] [IgnoreParameter("NAME_YOUR_PARAMS")] void Parser(NSXMLParser parser, string foundInternalEntityDeclarationWithName, string value, double NAME_YOUR_PARAMS = 4.2); /// <summary> /// Sent by a parser object to its delegate when it encounters an unparsed entity declaration. /// </summary> /// <param name="parser">An NSXMLParser object parsing XML.</param> /// <param name="foundUnparsedEntityDeclarationWithName">A string that is the name of the unparsed entity in the declaration.</param> /// <param name="publicID">A string specifying the public ID associated with the entity name.</param> /// <param name="systemID">A string specifying the system ID associated with the entity name.</param> /// <param name="notationName">A string specifying a notation of the declaration of entity name.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [Export("parser")] [IgnoreParameter("NAME_YOUR_PARAMS")] void Parser(NSXMLParser parser, string foundUnparsedEntityDeclarationWithName, string publicID, string systemID, string notationName, bool NAME_YOUR_PARAMS = false); /// <summary> /// Sent by a parser object to its delegate when it encounters a notation declaration. /// </summary> /// <param name="parser">An NSXMLParser object parsing XML.</param> /// <param name="foundNotationDeclarationWithName">A string that is the name of the notation.</param> /// <param name="publicID">A string specifying the public ID associated with the notation name.</param> /// <param name="systemID">A string specifying the system ID associated with the notation name.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [Export("parser")] [IgnoreParameter("NAME_YOUR_PARAMS")] void Parser(NSXMLParser parser, string foundNotationDeclarationWithName, string publicID, string systemID, int NAME_YOUR_PARAMS = 0); } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSXMLParserDelegate protocol defines the optional methods implemented by delegates of NSXMLParser objects. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/NSXMLParserDelegate_Protocol/index.html#//apple_ref/occ/intf/NSXMLParserDelegate"/> [iOSVersion(4)] [Export("")] public interface NSXMLParserDelegate//: NSObjectProtocol { /// <summary> /// Sent by the parser object to the delegate when it begins parsing a document. /// </summary> /// <param name="parser">A parser object.</param> //[iOSVersion(2)] //[Export("parserDidStartDocument")] //[InheritOptional] //void ParserDidStartDocument([Unwrapped] NSXMLParser parser); /// <summary> /// Sent by the parser object to the delegate when it has successfully completed parsing. /// </summary> /// <param name="parser">A parser object.</param> //[iOSVersion(2)] //[Export("parserDidEndDocument")] //[InheritOptional] //void ParserDidEndDocument([Unwrapped] NSXMLParser parser); /// <summary> /// Sent by a parser object to its delegate when it encounters a start tag for a given element. /// </summary> /// <param name="parser">A parser object.</param> /// <param name="didStartElement">A string that is the name of an element (in its start tag).</param> /// <param name="namespaceURI">If namespace processing is turned on, contains the URI for the current namespace as a string object.</param> /// <param name="qualifiedName">If namespace processing is turned on, contains the qualified name for the current namespace as a string object.</param> /// <param name="attributes">A dictionary that contains any attributes associated with the element. Keys are the names of attributes, and values are attribute values.</param> //[iOSVersion(2)] //[Export("parser")] //[InheritOptional] //void Parser([Unwrapped] NSXMLParser parser, [Unwrapped] string didStartElement, [Unwrapped] string namespaceURI, [Unwrapped] string qualifiedName, Dictionary<NSObject, AnyObject> attributes); /// <summary> /// Sent by a parser object to its delegate when it encounters an end tag for a specific element. /// </summary> /// <param name="parser">A parser object.</param> /// <param name="didEndElement">A string that is the name of an element (in its end tag).</param> /// <param name="namespaceURI">If namespace processing is turned on, contains the URI for the current namespace as a string object.</param> /// <param name="qualifiedName">If namespace processing is turned on, contains the qualified name for the current namespace as a string object.</param> //[iOSVersion(2)] //[Export("parser")] //[InheritOptional] //void Parser([Unwrapped] NSXMLParser parser, [Unwrapped] string didEndElement, [Unwrapped] string namespaceURI, [Unwrapped] string qualifiedName); /// <summary> /// Sent by a parser object to its delegate the first time it encounters a given namespace prefix, which is mapped to a URI. /// </summary> /// <param name="parser">A parser object.</param> /// <param name="didStartMappingPrefix">A string that is a namespace prefix.</param> /// <param name="toURI">A string that specifies a namespace URI.</param> //[iOSVersion(2)] //[Export("parser")] //[InheritOptional] //void Parser([Unwrapped] NSXMLParser parser, [Unwrapped] string didStartMappingPrefix, [Unwrapped] string toURI); /// <summary> /// Sent by a parser object to its delegate when a given namespace prefix goes out of scope. /// </summary> /// <param name="parser">A parser object.</param> /// <param name="didEndMappingPrefix">A string that is a namespace prefix.</param> //[iOSVersion(2)] //[Export("parser")] //[InheritOptional] //void Parser([Unwrapped] NSXMLParser parser, [Unwrapped] string didEndMappingPrefix); /// <summary> /// Sent by a parser object to its delegate when it encounters a given external entity with a specific system ID. /// </summary> /// <param name="parser">A parser object.</param> /// <param name="resolveExternalEntityName">A string that specifies the external name of an entity.</param> /// <param name="systemID">A string that specifies the system ID for the external entity.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("parser")] //[InheritOptional] //[return:Unwrapped] //[IgnoreParameter("NAME_YOUR_PARAMS")] //NSData Parser([Unwrapped] NSXMLParser parser, [Unwrapped] string resolveExternalEntityName, [Unwrapped] string systemID, bool NAME_YOUR_PARAMS = false); /// <summary> /// Sent by a parser object to its delegate when it encounters a fatal error. /// </summary> /// <param name="parser">A parser object.</param> /// <param name="parseErrorOccurred">An NSError object describing the parsing error that occurred.</param> //[iOSVersion(2)] //[Export("parser")] //[InheritOptional] //void Parser([Unwrapped] NSXMLParser parser, [Unwrapped] NSError parseErrorOccurred); /// <summary> /// Sent by a parser object to its delegate when it encounters a fatal validation error. NSXMLParser currently does not invoke this method and does not perform validation. /// </summary> /// <param name="parser">A parser object.</param> /// <param name="validationErrorOccurred">An NSError object describing the validation error that occurred.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("parser")] //[InheritOptional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void Parser([Unwrapped] NSXMLParser parser, [Unwrapped] NSError validationErrorOccurred, bool NAME_YOUR_PARAMS = false); /// <summary> /// Sent by a parser object to provide its delegate with a string representing all or part of the characters of the current element. /// </summary> /// <param name="parser">A parser object.</param> /// <param name="foundCharacters">A string representing the complete or partial textual content of the current element.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("parser")] //[InheritOptional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void Parser([Unwrapped] NSXMLParser parser, [Unwrapped] string foundCharacters, bool NAME_YOUR_PARAMS = false); /// <summary> /// Reported by a parser object to provide its delegate with a string representing all or part of the ignorable whitespace characters of the current element. /// </summary> /// <param name="parser">A parser object.</param> /// <param name="foundIgnorableWhitespace">A string representing all or part of the ignorable whitespace characters of the current element.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("parser")] //[InheritOptional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void Parser([Unwrapped] NSXMLParser parser, [Unwrapped] string foundIgnorableWhitespace, int NAME_YOUR_PARAMS = 0); /// <summary> /// Sent by a parser object to its delegate when it encounters a processing instruction. /// </summary> /// <param name="parser">A parser object.</param> /// <param name="foundProcessingInstructionWithTarget">A string representing the target of a processing instruction.</param> /// <param name="data">A string representing the data for a processing instruction.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("parser")] //[InheritOptional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void Parser([Unwrapped] NSXMLParser parser, [Unwrapped] string foundProcessingInstructionWithTarget, [Unwrapped] string data, int NAME_YOUR_PARAMS = 0); /// <summary> /// Sent by a parser object to its delegate when it encounters a comment in the XML. /// </summary> /// <param name="parser">An NSXMLParser object parsing XML.</param> /// <param name="foundComment">A string that is a the content of a comment in the XML.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("parser")] //[InheritOptional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void Parser([Unwrapped] NSXMLParser parser, [Unwrapped] string foundComment, string NAME_YOUR_PARAMS = ""); /// <summary> /// Sent by a parser object to its delegate when it encounters a CDATA block. /// </summary> /// <param name="parser">An NSXMLParser object parsing XML.</param> /// <param name="foundCDATA">A data object containing a block of CDATA.</param> //[iOSVersion(2)] //[Export("parser")] //[InheritOptional] //void Parser([Unwrapped] NSXMLParser parser, [Unwrapped] NSData foundCDATA); /// <summary> /// Sent by a parser object to its delegate when it encounters a declaration of an attribute that is associated with a specific element. /// </summary> /// <param name="parser">An NSXMLParser object parsing XML.</param> /// <param name="foundAttributeDeclarationWithName">A string that is the name of an attribute.</param> /// <param name="forElement">A string that is the name of an element that has the attribute attributeName.</param> /// <param name="type">A string, such as &quot;ENTITY&quot;, &quot;NOTATION&quot;, or &quot;ID&quot;, that indicates the type of the attribute.</param> /// <param name="defaultValue">A string that specifies the default value of the attribute.</param> //[iOSVersion(2)] //[Export("parser")] //[InheritOptional] //void Parser([Unwrapped] NSXMLParser parser, [Unwrapped] string foundAttributeDeclarationWithName, [Unwrapped] string forElement, [Unwrapped] string type, [Unwrapped] string defaultValue); /// <summary> /// Sent by a parser object to its delegate when it encounters a declaration of an element with a given model. /// </summary> /// <param name="parser">An NSXMLParser object parsing XML.</param> /// <param name="foundElementDeclarationWithName">A string that is the name of an element.</param> /// <param name="model">A string that specifies a model for elementName.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("parser")] //[InheritOptional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void Parser([Unwrapped] NSXMLParser parser, [Unwrapped] string foundElementDeclarationWithName, [Unwrapped] string model, string NAME_YOUR_PARAMS = ""); /// <summary> /// Sent by a parser object to its delegate when it encounters an external entity declaration. /// </summary> /// <param name="parser">An NSXMLParser object parsing XML.</param> /// <param name="foundExternalEntityDeclarationWithName">A string that is the name of an entity.</param> /// <param name="publicID">A string that specifies the public ID associated with entityName.</param> /// <param name="systemID">A string that specifies the system ID associated with entityName.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("parser")] //[InheritOptional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void Parser([Unwrapped] NSXMLParser parser, [Unwrapped] string foundExternalEntityDeclarationWithName, [Unwrapped] string publicID, [Unwrapped] string systemID, bool NAME_YOUR_PARAMS = false); /// <summary> /// Sent by a parser object to the delegate when it encounters an internal entity declaration. /// </summary> /// <param name="parser">An NSXMLParser object parsing XML.</param> /// <param name="foundInternalEntityDeclarationWithName">A string that is the declared name of an internal entity.</param> /// <param name="value">A string that is the value of entity name.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("parser")] //[InheritOptional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void Parser([Unwrapped] NSXMLParser parser, [Unwrapped] string foundInternalEntityDeclarationWithName, [Unwrapped] string value, double NAME_YOUR_PARAMS = 4.2); /// <summary> /// Sent by a parser object to its delegate when it encounters an unparsed entity declaration. /// </summary> /// <param name="parser">An NSXMLParser object parsing XML.</param> /// <param name="foundUnparsedEntityDeclarationWithName">A string that is the name of the unparsed entity in the declaration.</param> /// <param name="publicID">A string specifying the public ID associated with the entity name.</param> /// <param name="systemID">A string specifying the system ID associated with the entity name.</param> /// <param name="notationName">A string specifying a notation of the declaration of entity name.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("parser")] //[InheritOptional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void Parser([Unwrapped] NSXMLParser parser, [Unwrapped] string foundUnparsedEntityDeclarationWithName, [Unwrapped] string publicID, [Unwrapped] string systemID, [Unwrapped] string notationName, bool NAME_YOUR_PARAMS = false); /// <summary> /// Sent by a parser object to its delegate when it encounters a notation declaration. /// </summary> /// <param name="parser">An NSXMLParser object parsing XML.</param> /// <param name="foundNotationDeclarationWithName">A string that is the name of the notation.</param> /// <param name="publicID">A string specifying the public ID associated with the notation name.</param> /// <param name="systemID">A string specifying the system ID associated with the notation name.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("parser")] //[InheritOptional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void Parser([Unwrapped] NSXMLParser parser, [Unwrapped] string foundNotationDeclarationWithName, [Unwrapped] string publicID, [Unwrapped] string systemID, int NAME_YOUR_PARAMS = 0); } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/Protocols/NSCoding.cs b/CocoaSharp/Foundation/Protocols/NSCoding.cs
index 1c034249..d6333b1f 100644
--- a/CocoaSharp/Foundation/Protocols/NSCoding.cs
+++ b/CocoaSharp/Foundation/Protocols/NSCoding.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSCoding protocol declares the two methods that a class must implement so that instances of that class can be encoded and decoded. This capability provides the basis for archiving (where objects and other structures are stored on disk) and distribution (where objects are copied to different address spaces). /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Protocols/NSCoding_Protocol/index.html#//apple_ref/occ/intf/NSCoding"/> [iOSVersion(2)] public interface NSCoding//: { /// <summary> /// Returns an object initialized from data in a given unarchiver. (required) /// </summary> /// <param name="coder">An unarchiver object.</param> //[iOSVersion(2)] //public NSCoding(NSCoder coder) { } /// <summary> /// Encodes the receiver using a given archiver. (required) /// </summary> /// <param name="encoder">An archiver object.</param> [iOSVersion(2)] [Export("encodeWithCoder")] void EncodeWithCoder(NSCoder encoder); } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSCoding protocol declares the two methods that a class must implement so that instances of that class can be encoded and decoded. This capability provides the basis for archiving (where objects and other structures are stored on disk) and distribution (where objects are copied to different address spaces). /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Protocols/NSCoding_Protocol/index.html#//apple_ref/occ/intf/NSCoding"/> [iOSVersion(2)] [Export("")] public interface NSCoding//: { /// <summary> /// Returns an object initialized from data in a given unarchiver. (required) /// </summary> /// <param name="coder">An unarchiver object.</param> //[iOSVersion(2)] //public NSCoding(NSCoder coder) { } /// <summary> /// Encodes the receiver using a given archiver. (required) /// </summary> /// <param name="encoder">An archiver object.</param> [iOSVersion(2)] [Export("encodeWithCoder")] void EncodeWithCoder(NSCoder encoder); } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/Protocols/NSCopying.cs b/CocoaSharp/Foundation/Protocols/NSCopying.cs
index e99abf13..28197be1 100644
--- a/CocoaSharp/Foundation/Protocols/NSCopying.cs
+++ b/CocoaSharp/Foundation/Protocols/NSCopying.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSCopying protocol declares a method for providing functional copies of an object. The exact meaning of “copy” can vary from class to class, but a copy must be a functionally independent object with values identical to the original at the time the copy was made. A copy produced with NSCopying is implicitly retained by the sender, who is responsible for releasing it. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Protocols/NSCopying_Protocol/index.html#//apple_ref/occ/intf/NSCopying"/> [iOSVersion(2)] public interface NSCopying//: { /// <summary> /// Returns a new instance that’s a copy of the receiver. (required) /// </summary> /// <param name="zone">The zone identifies an area of memory from which to allocate for the new instance. If zone is NULL, the new instance is allocated from the default zone, which is returned from the function NSDefaultMallocZone.</param> [iOSVersion(2)] [Export("copyWithZone")] AnyObject CopyWithZone(NSZone zone); } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSCopying protocol declares a method for providing functional copies of an object. The exact meaning of “copy” can vary from class to class, but a copy must be a functionally independent object with values identical to the original at the time the copy was made. A copy produced with NSCopying is implicitly retained by the sender, who is responsible for releasing it. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Protocols/NSCopying_Protocol/index.html#//apple_ref/occ/intf/NSCopying"/> [iOSVersion(2)] [Export("")] public interface NSCopying//: { /// <summary> /// Returns a new instance that’s a copy of the receiver. (required) /// </summary> /// <param name="zone">The zone identifies an area of memory from which to allocate for the new instance. If zone is NULL, the new instance is allocated from the default zone, which is returned from the function NSDefaultMallocZone.</param> [iOSVersion(2)] [Export("copyWithZone")] AnyObject CopyWithZone(NSZone zone); } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/Protocols/NSDecimalNumberBehaviors.cs b/CocoaSharp/Foundation/Protocols/NSDecimalNumberBehaviors.cs
index 4f94c413..4a57d957 100644
--- a/CocoaSharp/Foundation/Protocols/NSDecimalNumberBehaviors.cs
+++ b/CocoaSharp/Foundation/Protocols/NSDecimalNumberBehaviors.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSDecimalBehaviors protocol declares three methods that control the discretionary aspects of working with NSDecimalNumber objects. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Protocols/NSDecimalNumberBehaviors_Protocol/index.html#//apple_ref/occ/intf/NSDecimalNumberBehaviors"/> [iOSVersion(2)] public interface NSDecimalNumberBehaviors//: { /// <summary> /// Returns the way that NSDecimalNumber's decimalNumberBy... methods round their return values. (required) /// </summary> [iOSVersion(2)] [Export("roundingMode")] NSRoundingMode RoundingMode(); /// <summary> /// Returns the number of digits allowed after the decimal separator. (required) /// </summary> [iOSVersion(2)] [Export("scale")] Int16 Scale(); /// <summary> /// Specifies what an NSDecimalNumber object will do when it encounters an error. (required) /// </summary> /// <param name="method">The method that was being executed when the error occurred.</param> /// <param name="error">The type of error that was generated.</param> /// <param name="leftOperand">The left operand.</param> /// <param name="rightOperand">The right operand.</param> [iOSVersion(2)] [Export("exceptionDuringOperation")] NSDecimalNumber ExceptionDuringOperation(Selector method, NSCalculationError error, NSDecimalNumber leftOperand, NSDecimalNumber rightOperand); } /// <summary> /// These constants specify rounding behaviors. /// </summary> [iOSVersion(2)] public enum NSRoundingMode { /// <summary> /// Round to the closest possible return value; when caught halfway between two positive numbers, round up; when caught between two negative numbers, round down. /// </summary> [iOSVersion(2)] RoundPlain, /// <summary> /// Round return values down. /// </summary> [iOSVersion(2)] RoundDown, /// <summary> /// Round return values up. /// </summary> [iOSVersion(2)] RoundUp, /// <summary> /// Round to the closest possible return value; when halfway between two possibilities, return the possibility whose last digit is even. /// In practice, this means that, over the long run, numbers will be rounded up as often as they are rounded down; there will be no systematic bias. /// </summary> [iOSVersion(2)] RoundBankers, } /// <summary> /// Calculation error constants used to describe an error in exceptionDuringOperation:error:leftOperand:rightOperand:. /// </summary> [iOSVersion(2)] public enum NSCalculationError { /// <summary> /// No error occurred. /// </summary> [iOSVersion(2)] NoError, /// <summary> /// The number can’t be represented in 38 significant digits. /// </summary> [iOSVersion(2)] LossOfPrecision, /// <summary> /// The number is too small to represent. /// </summary> [iOSVersion(2)] Underflow, /// <summary> /// The number is too large to represent. /// </summary> [iOSVersion(2)] Overflow, /// <summary> /// The caller tried to divide by 0. /// </summary> [iOSVersion(2)] DivideByZero, } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSDecimalBehaviors protocol declares three methods that control the discretionary aspects of working with NSDecimalNumber objects. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Protocols/NSDecimalNumberBehaviors_Protocol/index.html#//apple_ref/occ/intf/NSDecimalNumberBehaviors"/> [iOSVersion(2)] [Export("")] public interface NSDecimalNumberBehaviors//: { /// <summary> /// Returns the way that NSDecimalNumber&#39;s decimalNumberBy... methods round their return values. (required) /// </summary> [iOSVersion(2)] [Export("roundingMode")] NSRoundingMode RoundingMode(); /// <summary> /// Returns the number of digits allowed after the decimal separator. (required) /// </summary> [iOSVersion(2)] [Export("scale")] Int16 Scale(); /// <summary> /// Specifies what an NSDecimalNumber object will do when it encounters an error. (required) /// </summary> /// <param name="method">The method that was being executed when the error occurred.</param> /// <param name="error">The type of error that was generated.</param> /// <param name="leftOperand">The left operand.</param> /// <param name="rightOperand">The right operand.</param> [iOSVersion(2)] [Export("exceptionDuringOperation")] [return:Optional] NSDecimalNumber ExceptionDuringOperation(Selector method, NSCalculationError error, NSDecimalNumber leftOperand, NSDecimalNumber rightOperand); } /// <summary> /// These constants specify rounding behaviors. /// </summary> public enum NSRoundingMode { /// <summary> /// Round to the closest possible return value; when caught halfway between two positive numbers, round up; when caught between two negative numbers, round down. /// </summary> [iOSVersion(2)] RoundPlain, /// <summary> /// Round return values down. /// </summary> [iOSVersion(2)] RoundDown, /// <summary> /// Round return values up. /// </summary> [iOSVersion(2)] RoundUp, /// <summary> /// Round to the closest possible return value; when halfway between two possibilities, return the possibility whose last digit is even. /// In practice, this means that, over the long run, numbers will be rounded up as often as they are rounded down; there will be no systematic bias. /// </summary> [iOSVersion(2)] RoundBankers, } /// <summary> /// Calculation error constants used to describe an error in exceptionDuringOperation:error:leftOperand:rightOperand:. /// </summary> public enum NSCalculationError { /// <summary> /// No error occurred. /// </summary> [iOSVersion(2)] NoError, /// <summary> /// The number can’t be represented in 38 significant digits. /// </summary> [iOSVersion(2)] LossOfPrecision, /// <summary> /// The number is too small to represent. /// </summary> [iOSVersion(2)] Underflow, /// <summary> /// The number is too large to represent. /// </summary> [iOSVersion(2)] Overflow, /// <summary> /// The caller tried to divide by 0. /// </summary> [iOSVersion(2)] DivideByZero, } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/Protocols/NSDiscardableContent.cs b/CocoaSharp/Foundation/Protocols/NSDiscardableContent.cs
index 2a67171d..cd7c5236 100644
--- a/CocoaSharp/Foundation/Protocols/NSDiscardableContent.cs
+++ b/CocoaSharp/Foundation/Protocols/NSDiscardableContent.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// You implement this protocol when a class’s objects have subcomponents that can be discarded when not being used, thereby giving an application a smaller memory footprint. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/NSDiscardableContent_Protocol/index.html#//apple_ref/occ/intf/NSDiscardableContent"/> [iOSVersion(4)] public interface NSDiscardableContent//: { /// <summary> /// Returns a Boolean value indicating whether the discardable contents are still available and have been successfully accessed. (required) /// </summary> [iOSVersion(4)] [Export("beginContentAccess")] bool BeginContentAccess(); /// <summary> /// Called if the discardable contents are no longer being accessed. (required) /// </summary> [iOSVersion(4)] [Export("endContentAccess")] void EndContentAccess(); /// <summary> /// Called to discard the contents of the receiver if the value of the accessed counter is 0. (required) /// </summary> [iOSVersion(4)] [Export("discardContentIfPossible")] void DiscardContentIfPossible(); /// <summary> /// Returns a Boolean value indicating whether the content has been discarded. (required) /// </summary> [iOSVersion(4)] [Export("isContentDiscarded")] bool IsContentDiscarded(); } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// You implement this protocol when a class’s objects have subcomponents that can be discarded when not being used, thereby giving an application a smaller memory footprint. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/NSDiscardableContent_Protocol/index.html#//apple_ref/occ/intf/NSDiscardableContent"/> [iOSVersion(4)] [Export("")] public interface NSDiscardableContent//: { /// <summary> /// Returns a Boolean value indicating whether the discardable contents are still available and have been successfully accessed. (required) /// </summary> [iOSVersion(4)] [Export("beginContentAccess")] bool BeginContentAccess(); /// <summary> /// Called if the discardable contents are no longer being accessed. (required) /// </summary> [iOSVersion(4)] [Export("endContentAccess")] void EndContentAccess(); /// <summary> /// Called to discard the contents of the receiver if the value of the accessed counter is 0. (required) /// </summary> [iOSVersion(4)] [Export("discardContentIfPossible")] void DiscardContentIfPossible(); /// <summary> /// Returns a Boolean value indicating whether the content has been discarded. (required) /// </summary> [iOSVersion(4)] [Export("isContentDiscarded")] bool IsContentDiscarded(); } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/Protocols/NSErrorRecoveryAttempting.cs b/CocoaSharp/Foundation/Protocols/NSErrorRecoveryAttempting.cs
index d40ca525..dc45d1e4 100644
--- a/CocoaSharp/Foundation/Protocols/NSErrorRecoveryAttempting.cs
+++ b/CocoaSharp/Foundation/Protocols/NSErrorRecoveryAttempting.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSErrorRecoveryAttempting informal protocol provides methods that allow your application to attempt to recover from an error. These methods are invoked when an NSError object is returned that specifies the implementing object as the error recoveryAttempter and the user has selected one of the error’s localized recovery options. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Protocols/NSErrorRecoveryAttempting_Protocol/index.html#//apple_ref/doc/uid/TP40003779"/> [iOSVersion(2)] public interface NSErrorRecoveryAttempting//: { } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSErrorRecoveryAttempting informal protocol provides methods that allow your application to attempt to recover from an error. These methods are invoked when an NSError object is returned that specifies the implementing object as the error recoveryAttempter and the user has selected one of the error’s localized recovery options. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Protocols/NSErrorRecoveryAttempting_Protocol/index.html#//apple_ref/doc/uid/TP40003779"/> [iOSVersion(2)] [Export("")] public interface NSErrorRecoveryAttempting//: { /// <summary> /// Implemented to attempt a recovery from an error noted in an document-modal sheet. /// </summary> /// <param name="error">An NSError object that describes the error, including error recovery options.</param> /// <param name="optionIndex">The index of the user selected recovery option in error’s localized recovery array.</param> /// <param name="@delegate">An object that is the modal delegate.</param> /// <param name="didRecoverSelector">A selector identifying the method implemented by the modal delegate.</param> /// <param name="contextInfo">Arbitrary data associated with the attempt at error recovery, to be passed to delegate in didRecoverSelector.</param> [iOSVersion(2)] [Export("attemptRecoveryFromError")] void AttemptRecoveryFromError([Unwrapped] NSError error, int optionIndex, [Unwrapped] AnyObject @delegate, Selector didRecoverSelector, UnsafeMutablePointer contextInfo); /// <summary> /// Implemented to attempt a recovery from an error noted in an application-modal dialog. /// </summary> /// <param name="error">An NSError object that describes the error, including error recovery options.</param> /// <param name="optionIndex">The index of the user selected recovery option in error&#39;s localized recovery array.</param> [iOSVersion(2)] [Export("attemptRecoveryFromError")] bool AttemptRecoveryFromError([Unwrapped] NSError error, int optionIndex); } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/Protocols/NSExtensionRequestHandling.cs b/CocoaSharp/Foundation/Protocols/NSExtensionRequestHandling.cs
index 9193bf00..d13908c2 100644
--- a/CocoaSharp/Foundation/Protocols/NSExtensionRequestHandling.cs
+++ b/CocoaSharp/Foundation/Protocols/NSExtensionRequestHandling.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSExtensionRequestHandling protocol provides a life cycle hook into an app extension. An extension’s principal object can implement this protocol and use beginRequestWithExtensionContext: to keep track of the request from a host app. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSExtensionRequestHandling_Protocol/index.html#//apple_ref/occ/intf/NSExtensionRequestHandling"/> [iOSVersion(8)] public interface NSExtensionRequestHandling//: NSObjectProtocol { /// <summary> /// Tells the extension to prepare for a host app’s request. (required) /// </summary> /// <param name="context">An NSExtensionContext object that represents the context in which the host app makes the request. Typically, the context contains data that the extension can work on.</param> [iOSVersion(8)] [Export("beginRequestWithExtensionContext")] void BeginRequestWithExtensionContext(NSExtensionContext context); } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSExtensionRequestHandling protocol provides a life cycle hook into an app extension. An extension’s principal object can implement this protocol and use beginRequestWithExtensionContext: to keep track of the request from a host app. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSExtensionRequestHandling_Protocol/index.html#//apple_ref/occ/intf/NSExtensionRequestHandling"/> [iOSVersion(8)] [Export("")] public interface NSExtensionRequestHandling//: NSObjectProtocol { /// <summary> /// Tells the extension to prepare for a host app’s request. (required) /// </summary> /// <param name="context">An NSExtensionContext object that represents the context in which the host app makes the request. Typically, the context contains data that the extension can work on.</param> [iOSVersion(8)] [Export("beginRequestWithExtensionContext")] void BeginRequestWithExtensionContext(NSExtensionContext context); } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/Protocols/NSFastEnumeration.cs b/CocoaSharp/Foundation/Protocols/NSFastEnumeration.cs
index a495998c..01e01819 100644
--- a/CocoaSharp/Foundation/Protocols/NSFastEnumeration.cs
+++ b/CocoaSharp/Foundation/Protocols/NSFastEnumeration.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The fast enumeration protocol NSFastEnumeration must be adopted and implemented by objects used in conjunction with the for language construct used in conjunction with Cocoa objects. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/NSFastEnumeration_protocol/index.html#//apple_ref/occ/intf/NSFastEnumeration"/> [iOSVersion(2)] public interface NSFastEnumeration//: { /// <summary> /// Returns by reference a C array of objects over which the sender should iterate, and as the return value the number of objects in the array. (required) /// </summary> /// <param name="state">Context information that is used in the enumeration to, in addition to other possibilities, ensure that the collection has not been mutated.</param> /// <param name="objects">A C array of objects over which the sender is to iterate.</param> /// <param name="count">The maximum number of objects to return in stackbuf.</param> [iOSVersion(2)] [Export("countByEnumeratingWithState")] int CountByEnumeratingWithState(UnsafePointer<NSFastEnumerationState> state, AutoreleasingUnsafePointer<AnyObject> objects, int count); } /// <summary> /// This defines the structure used as contextual information in the NSFastEnumeration protocol /// </summary> [iOSVersion(2)] public struct NSFastEnumerationState { [Export("state")] uint State { get; set; } [Export("itemsPtr")] AutoreleasingUnsafePointer<AnyObject> ItemsPtr { get; set; } [Export("mutationsPtr")] UnsafePointer<uint> MutationsPtr { get; set; } [Export("extra")] Tuple<uint, uint, uint, uint, uint> Extra { get; set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The fast enumeration protocol NSFastEnumeration must be adopted and implemented by objects used in conjunction with the for language construct used in conjunction with Cocoa objects. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/NSFastEnumeration_protocol/index.html#//apple_ref/occ/intf/NSFastEnumeration"/> [iOSVersion(2)] [Export("")] public interface NSFastEnumeration//: { /// <summary> /// Returns by reference a C array of objects over which the sender should iterate, and as the return value the number of objects in the array. (required) /// </summary> /// <param name="state">Context information that is used in the enumeration to, in addition to other possibilities, ensure that the collection has not been mutated.</param> /// <param name="objects">A C array of objects over which the sender is to iterate.</param> /// <param name="count">The maximum number of objects to return in stackbuf.</param> [iOSVersion(2)] [Export("countByEnumeratingWithState")] int CountByEnumeratingWithState(UnsafeMutablePointer<NSFastEnumerationState> state, AutoreleasingUnsafeMutablePointer<AnyObject> objects, int count); } /// <summary> /// This defines the structure used as contextual information in the NSFastEnumeration protocol. /// </summary> public struct NSFastEnumerationState { /// <summary> /// /// </summary> [Export("state")] uint State { get; set; } /// <summary> /// /// </summary> [Export("itemsPtr")] AutoreleasingUnsafeMutablePointer<AnyObject> ItemsPtr { get; set; } /// <summary> /// /// </summary> [Export("mutationsPtr")] UnsafeMutablePointer<uint> MutationsPtr { get; set; } /// <summary> /// /// </summary> [Export("extra")] Action<uint, uint, uint, uint, uint> Extra { get; set; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/Protocols/NSFilePresenter.cs b/CocoaSharp/Foundation/Protocols/NSFilePresenter.cs
index 16a5160a..99a52e94 100644
--- a/CocoaSharp/Foundation/Protocols/NSFilePresenter.cs
+++ b/CocoaSharp/Foundation/Protocols/NSFilePresenter.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSFilePresenter protocol should be implemented by objects that allow the user to view or edit the content of files or directories. You use file presenters in conjunction with an NSFileCoordinator object to coordinate access to a file or directory among the objects of your application and between your application and other processes. When changes to an item occur, the system notifies objects that adopt this protocol and gives them a chance to respond appropriately. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSFilePresenter_protocol/index.html#//apple_ref/occ/intf/NSFilePresenter"/> [iOSVersion(5)] public interface NSFilePresenter//: NSObjectProtocol { /// <summary> /// Notifies your object that another object or process wants to read the presented file or directory. /// </summary> /// <param name="reader">A Block object that takes another block as a parameter and returns no value. The reacquirer block is one you pass to the reader block so that your object can be notified when the reader is done. If your object does not need to be notified, it can pass nil for the reacquirer block.</param> [iOSVersion(5)] [Export("relinquishPresentedItemToReader")] void RelinquishPresentedItemToReader(Action reader); /// <summary> /// Notifies your object that another object or process wants to write to the presented file or directory. /// </summary> /// <param name="writer">A Block object that takes another block as a parameter and returns no value. The reacquirer block is one you pass to the writer block so that your object can be notified when the writer is done. If your object does not need to be notified, it can pass nil for the reacquirer block.</param> [iOSVersion(5)] [Export("relinquishPresentedItemToWriter")] void RelinquishPresentedItemToWriter(Action writer); /// <summary> /// Tells your object to save any unsaved changes for the presented item. /// </summary> /// <param name="completionHandler">The Block object to call after you save your changes. If you saved your changes successfully, pass nil for the block’s errorOrNil parameter; otherwise, pass an error object indicating why the changes could not be saved.</param> [iOSVersion(5)] [Export("savePresentedItemChangesWithCompletionHandler")] void SavePresentedItemChangesWithCompletionHandler(Action<NSError> completionHandler); /// <summary> /// Tells your object that its presented item is about to be deleted. /// </summary> /// <param name="completionHandler">The Block object to call after updating your data structures. Pass nil to the block’s errorOrNil parameter if you were able to successfully prepare for the deletion of the item. Pass an error object if your object could not prepare itself properly.</param> [iOSVersion(5)] [Export("accommodatePresentedItemDeletionWithCompletionHandler")] void AccommodatePresentedItemDeletionWithCompletionHandler(Action<NSError> completionHandler); /// <summary> /// Tells your object that the presented item moved or was renamed. /// </summary> /// <param name="newURL">The URL containing the new path to the presented item.</param> [iOSVersion(5)] [Export("presentedItemDidMoveToURL")] void PresentedItemDidMoveToURL(NSURL newURL); /// <summary> /// Tells your object that the presented item’s contents or attributes changed. /// </summary> [iOSVersion(5)] [Export("presentedItemDidChange")] void PresentedItemDidChange(); /// <summary> /// Tells the delegate that a new version of the file or file package was added. (required) /// </summary> /// <param name="version">The file version object containing information about the new file version.</param> [iOSVersion(5)] [Export("presentedItemDidGainVersion")] void PresentedItemDidGainVersion(NSFileVersion version); /// <summary> /// Tells the delegate that a version of the file or file package was removed. (required) /// </summary> /// <param name="version">The file version object containing information about the version that was removed.</param> [iOSVersion(5)] [Export("presentedItemDidLoseVersion")] void PresentedItemDidLoseVersion(NSFileVersion version); /// <summary> /// Tells the delegate that some other entity resolved a version conflict for the presenter’s file or file package. (required) /// </summary> /// <param name="version">The version object containing the conflicting change.</param> [iOSVersion(5)] [Export("presentedItemDidResolveConflictVersion")] void PresentedItemDidResolveConflictVersion(NSFileVersion version); /// <summary> /// Tells the delegate that the item inside the presented directory gained a new version. (required) /// </summary> /// <param name="url">The URL of the item inside the presented directory that gained a new version. The item need not be at the top level of the presented directory but may itself be inside a nested subdirectory.</param> /// <param name="didGainVersion">The file version object containing information about the new file version.</param> [iOSVersion(5)] [Export("presentedSubitemAtURL")] void PresentedSubitemAtURL(NSURL url, NSFileVersion didGainVersion); /// <summary> /// Tells the delegate that the item inside the presented directory lost an existing version. (required) /// </summary> /// <param name="url">The URL of the item inside the presented directory that lost a version. The item need not be at the top level of the presented directory but may itself be inside a nested subdirectory.</param> /// <param name="didLoseVersion">The file version object containing information about the version that was removed.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(5)] [Export("presentedSubitemAtURL")] [IgnoreParameter("NAME_YOUR_PARAMS")] void PresentedSubitemAtURL(NSURL url, NSFileVersion didLoseVersion, bool NAME_YOUR_PARAMS = false); /// <summary> /// Tells the delegate that the item inside the presented directory had a version conflict resolved by an outside entity. (required) /// </summary> /// <param name="url">The URL of the item inside the presented directory that was in conflict. The item need not be at the top level of the presented directory but may itself be inside a nested subdirectory.</param> /// <param name="didResolveConflictVersion">The version object containing the conflicting change.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(5)] [Export("presentedSubitemAtURL")] [IgnoreParameter("NAME_YOUR_PARAMS")] void PresentedSubitemAtURL(NSURL url, NSFileVersion didResolveConflictVersion, int NAME_YOUR_PARAMS = 0); /// <summary> /// Tells the delegate that some entity wants to delete an item that is inside of a presented directory. (required) /// </summary> /// <param name="url">The URL of the item being deleted from the presented directory. The item need not be at the top level of the presented directory but may itself be inside a nested subdirectory.</param> /// <param name="completionHandler">The Block object to call after updating your data structures. Pass nil to the block’s errorOrNil parameter if you were able to successfully prepare for the deletion of the item. Pass an error object if your object could not prepare itself properly.</param> [iOSVersion(5)] [Export("accommodatePresentedSubitemDeletionAtURL")] void AccommodatePresentedSubitemDeletionAtURL(NSURL url, Action<NSError> completionHandler); /// <summary> /// Tells the delegate that an item was added to the presented directory. (required) /// </summary> /// <param name="url">The URL of the item being added to the presented directory. The item need not be at the top level of the presented directory but may itself be inside a nested subdirectory.</param> [iOSVersion(5)] [Export("presentedSubitemDidAppearAtURL")] void PresentedSubitemDidAppearAtURL(NSURL url); /// <summary> /// Tells the delegate that an item in the presented directory moved to a new location. (required) /// </summary> /// <param name="oldURL">The original URL of the item inside the presented directory. The item need not be at the top level of the presented directory but may itself be inside a nested subdirectory.</param> /// <param name="didMoveToURL">The new URL for the item. This URL may or may not be located inside the presented directory.</param> [iOSVersion(5)] [Export("presentedSubitemAtURL")] void PresentedSubitemAtURL(NSURL oldURL, NSURL didMoveToURL); /// <summary> /// Tells the delegate that the contents or attributes of the specified item changed. (required) /// </summary> /// <param name="url">The URL of the item in the presented directory that changed. The item need not be at the top level of the presented directory but may itself be inside a nested subdirectory.</param> [iOSVersion(5)] [Export("presentedSubitemDidChangeAtURL")] void PresentedSubitemDidChangeAtURL(NSURL url); /// <summary> /// The URL of the presented file or directory. (required) (read-only) /// </summary> [iOSVersion(5)] [Export("presentedItemURL")] NSURL PresentedItemURL { get; /*private set;*/ } /// <summary> /// The operation queue in which to execute presenter-related messages. (required) (read-only) /// </summary> [iOSVersion(5)] [Export("presentedItemOperationQueue")] NSOperationQueue PresentedItemOperationQueue { get; /*private set;*/ } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSFilePresenter protocol should be implemented by objects that allow the user to view or edit the content of files or directories. You use file presenters in conjunction with an NSFileCoordinator object to coordinate access to a file or directory among the objects of your application and between your application and other processes. When changes to an item occur, the system notifies objects that adopt this protocol and gives them a chance to respond appropriately. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSFilePresenter_protocol/index.html#//apple_ref/occ/intf/NSFilePresenter"/> [iOSVersion(5)] [Export("")] public interface NSFilePresenter//: NSObjectProtocol { /// <summary> /// Notifies your object that another object or process wants to read the presented file or directory. /// </summary> /// <param name="reader">A Block object that takes another block as a parameter and returns no value. The reacquirer block is one you pass to the reader block so that your object can be notified when the reader is done. If your object does not need to be notified, it can pass nil for the reacquirer block.</param> //[iOSVersion(5)] //[Export("relinquishPresentedItemToReader")] //[InheritOptional] //void RelinquishPresentedItemToReader(Action reader); /// <summary> /// Notifies your object that another object or process wants to write to the presented file or directory. /// </summary> /// <param name="writer">A Block object that takes another block as a parameter and returns no value. The reacquirer block is one you pass to the writer block so that your object can be notified when the writer is done. If your object does not need to be notified, it can pass nil for the reacquirer block.</param> //[iOSVersion(5)] //[Export("relinquishPresentedItemToWriter")] //[InheritOptional] //void RelinquishPresentedItemToWriter(Action writer); /// <summary> /// Tells your object to save any unsaved changes for the presented item. /// </summary> /// <param name="completionHandler">The Block object to call after you save your changes. If you saved your changes successfully, pass nil for the block’s errorOrNil parameter; otherwise, pass an error object indicating why the changes could not be saved.</param> //[iOSVersion(5)] //[Export("savePresentedItemChangesWithCompletionHandler")] //[InheritOptional] //void SavePresentedItemChangesWithCompletionHandler(Action<NSError> completionHandler); /// <summary> /// Tells your object that its presented item is about to be deleted. /// </summary> /// <param name="completionHandler">The Block object to call after updating your data structures. Pass nil to the block’s errorOrNil parameter if you were able to successfully prepare for the deletion of the item. Pass an error object if your object could not prepare itself properly.</param> //[iOSVersion(5)] //[Export("accommodatePresentedItemDeletionWithCompletionHandler")] //[InheritOptional] //void AccommodatePresentedItemDeletionWithCompletionHandler(Action<NSError> completionHandler); /// <summary> /// Tells your object that the presented item moved or was renamed. /// </summary> /// <param name="newURL">The URL containing the new path to the presented item.</param> //[iOSVersion(5)] //[Export("presentedItemDidMoveToURL")] //[InheritOptional] //void PresentedItemDidMoveToURL(NSURL newURL); /// <summary> /// Tells your object that the presented item’s contents or attributes changed. /// </summary> //[iOSVersion(5)] //[Export("presentedItemDidChange")] //[InheritOptional] //void PresentedItemDidChange(); /// <summary> /// Tells the delegate that a new version of the file or file package was added. (required) /// </summary> /// <param name="version">The file version object containing information about the new file version.</param> //[iOSVersion(5)] //[Export("presentedItemDidGainVersion")] //[InheritOptional] //void PresentedItemDidGainVersion(NSFileVersion version); /// <summary> /// Tells the delegate that a version of the file or file package was removed. (required) /// </summary> /// <param name="version">The file version object containing information about the version that was removed.</param> //[iOSVersion(5)] //[Export("presentedItemDidLoseVersion")] //[InheritOptional] //void PresentedItemDidLoseVersion(NSFileVersion version); /// <summary> /// Tells the delegate that some other entity resolved a version conflict for the presenter’s file or file package. (required) /// </summary> /// <param name="version">The version object containing the conflicting change.</param> //[iOSVersion(5)] //[Export("presentedItemDidResolveConflictVersion")] //[InheritOptional] //void PresentedItemDidResolveConflictVersion(NSFileVersion version); /// <summary> /// Tells the delegate that the item inside the presented directory gained a new version. (required) /// </summary> /// <param name="url">The URL of the item inside the presented directory that gained a new version. The item need not be at the top level of the presented directory but may itself be inside a nested subdirectory.</param> /// <param name="didGainVersion">The file version object containing information about the new file version.</param> //[iOSVersion(5)] //[Export("presentedSubitemAtURL")] //[InheritOptional] //void PresentedSubitemAtURL(NSURL url, NSFileVersion didGainVersion); /// <summary> /// Tells the delegate that the item inside the presented directory lost an existing version. (required) /// </summary> /// <param name="url">The URL of the item inside the presented directory that lost a version. The item need not be at the top level of the presented directory but may itself be inside a nested subdirectory.</param> /// <param name="didLoseVersion">The file version object containing information about the version that was removed.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(5)] //[Export("presentedSubitemAtURL")] //[InheritOptional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void PresentedSubitemAtURL(NSURL url, NSFileVersion didLoseVersion, bool NAME_YOUR_PARAMS = false); /// <summary> /// Tells the delegate that the item inside the presented directory had a version conflict resolved by an outside entity. (required) /// </summary> /// <param name="url">The URL of the item inside the presented directory that was in conflict. The item need not be at the top level of the presented directory but may itself be inside a nested subdirectory.</param> /// <param name="didResolveConflictVersion">The version object containing the conflicting change.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(5)] //[Export("presentedSubitemAtURL")] //[InheritOptional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void PresentedSubitemAtURL(NSURL url, NSFileVersion didResolveConflictVersion, int NAME_YOUR_PARAMS = 0); /// <summary> /// Tells the delegate that some entity wants to delete an item that is inside of a presented directory. (required) /// </summary> /// <param name="url">The URL of the item being deleted from the presented directory. The item need not be at the top level of the presented directory but may itself be inside a nested subdirectory.</param> /// <param name="completionHandler">The Block object to call after updating your data structures. Pass nil to the block’s errorOrNil parameter if you were able to successfully prepare for the deletion of the item. Pass an error object if your object could not prepare itself properly.</param> //[iOSVersion(5)] //[Export("accommodatePresentedSubitemDeletionAtURL")] //[InheritOptional] //void AccommodatePresentedSubitemDeletionAtURL(NSURL url, Action<NSError> completionHandler); /// <summary> /// Tells the delegate that an item was added to the presented directory. (required) /// </summary> /// <param name="url">The URL of the item being added to the presented directory. The item need not be at the top level of the presented directory but may itself be inside a nested subdirectory.</param> //[iOSVersion(5)] //[Export("presentedSubitemDidAppearAtURL")] //[InheritOptional] //void PresentedSubitemDidAppearAtURL(NSURL url); /// <summary> /// Tells the delegate that an item in the presented directory moved to a new location. (required) /// </summary> /// <param name="oldURL">The original URL of the item inside the presented directory. The item need not be at the top level of the presented directory but may itself be inside a nested subdirectory.</param> /// <param name="didMoveToURL">The new URL for the item. This URL may or may not be located inside the presented directory.</param> //[iOSVersion(5)] //[Export("presentedSubitemAtURL")] //[InheritOptional] //void PresentedSubitemAtURL(NSURL oldURL, NSURL didMoveToURL); /// <summary> /// Tells the delegate that the contents or attributes of the specified item changed. (required) /// </summary> /// <param name="url">The URL of the item in the presented directory that changed. The item need not be at the top level of the presented directory but may itself be inside a nested subdirectory.</param> //[iOSVersion(5)] //[Export("presentedSubitemDidChangeAtURL")] //[InheritOptional] //void PresentedSubitemDidChangeAtURL(NSURL url); /// <summary> /// The URL of the presented file or directory. (required) (read-only) /// </summary> [iOSVersion(5)] [Export("presentedItemURL")] [Optional] NSURL PresentedItemURL { get; } /// <summary> /// The operation queue in which to execute presenter-related messages. (required) (read-only) /// </summary> [iOSVersion(5)] [Export("presentedItemOperationQueue")] NSOperationQueue PresentedItemOperationQueue { get; } } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/Protocols/NSKeyValueCoding.cs b/CocoaSharp/Foundation/Protocols/NSKeyValueCoding.cs
index aa8c6352..42689469 100644
--- a/CocoaSharp/Foundation/Protocols/NSKeyValueCoding.cs
+++ b/CocoaSharp/Foundation/Protocols/NSKeyValueCoding.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSKeyValueCoding informal protocol defines a mechanism by which you can access the properties of an object indirectly by name (or key), rather than directly through invocation of an accessor method or as instance variables. Thus, all of an object’s properties can be accessed in a consistent manner. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Protocols/NSKeyValueCoding_Protocol/index.html#//apple_ref/doc/uid/TP40003780"/> [iOSVersion(2)] public interface NSKeyValueCoding//: { } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSKeyValueCoding informal protocol defines a mechanism by which you can access the properties of an object indirectly by name (or key), rather than directly through invocation of an accessor method or as instance variables. Thus, all of an object’s properties can be accessed in a consistent manner. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Protocols/NSKeyValueCoding_Protocol/index.html#//apple_ref/doc/uid/TP40003780"/> [iOSVersion(2)] [Export("")] public interface NSKeyValueCoding//: { /// <summary> /// Returns the value for the property identified by a given key. /// </summary> /// <param name="key">The name of one of the receiver&#39;s properties.</param> [iOSVersion(2)] [Export("valueForKey")] [return:Optional] AnyObject ValueForKey(string key); /// <summary> /// Returns the value for the derived property identified by a given key path. /// </summary> /// <param name="keyPath">A key path of the form relationship.property (with one or more relationships); for example “department.name” or “department.manager.lastName”.</param> [iOSVersion(2)] [Export("valueForKeyPath")] [return:Optional] AnyObject ValueForKeyPath(string keyPath); /// <summary> /// Returns a dictionary containing the property values identified by each of the keys in a given array. /// </summary> /// <param name="keys">An array containing NSString objects that identify properties of the receiver.</param> [iOSVersion(2)] [Export("dictionaryWithValuesForKeys")] Dictionary<NSObject, AnyObject> DictionaryWithValuesForKeys(AnyObject[] keys); /// <summary> /// Invoked by valueForKey: when it finds no property corresponding to a given key. /// </summary> /// <param name="key">A string that is not equal to the name of any of the receiver&#39;s properties.</param> [iOSVersion(2)] [Export("valueForUndefinedKey")] [return:Optional] AnyObject ValueForUndefinedKey(string key); /// <summary> /// Returns a mutable array proxy that provides read-write access to an ordered to-many relationship specified by a given key. /// </summary> /// <param name="key">The name of an ordered to-many relationship.</param> [iOSVersion(2)] [Export("mutableArrayValueForKey")] NSMutableArray MutableArrayValueForKey(string key); /// <summary> /// Returns a mutable array that provides read-write access to the ordered to-many relationship specified by a given key path. /// </summary> /// <param name="keyPath">A key path, relative to the receiver, to an ordered to-many relationship.</param> [iOSVersion(2)] [Export("mutableArrayValueForKeyPath")] NSMutableArray MutableArrayValueForKeyPath(string keyPath); /// <summary> /// Returns a mutable set proxy that provides read-write access to the unordered to-many relationship specified by a given key. /// </summary> /// <param name="key">The name of an unordered to-many relationship.</param> [iOSVersion(2)] [Export("mutableSetValueForKey")] NSMutableSet MutableSetValueForKey(string key); /// <summary> /// Returns a mutable set that provides read-write access to the unordered to-many relationship specified by a given key path. /// </summary> /// <param name="keyPath">A key path, relative to the receiver, to an unordered to-many relationship.</param> [iOSVersion(2)] [Export("mutableSetValueForKeyPath")] NSMutableSet MutableSetValueForKeyPath(string keyPath); /// <summary> /// Returns a mutable ordered set that provides read-write access to the uniquing ordered to-many relationship specified by a given key. /// </summary> /// <param name="key">The name of a uniquing ordered to-many relationship.</param> [iOSVersion(5)] [Export("mutableOrderedSetValueForKey")] NSMutableOrderedSet MutableOrderedSetValueForKey(string key); /// <summary> /// Returns a mutable ordered set that provides read-write access to the uniquing ordered to-many relationship specified by a given key path. /// </summary> /// <param name="keyPath">A key path, relative to the receiver, to a uniquing ordered to-many relationship represented by a set.</param> [iOSVersion(5)] [Export("mutableOrderedSetValueForKeyPath")] NSMutableOrderedSet MutableOrderedSetValueForKeyPath(string keyPath); /// <summary> /// Sets the value for the property identified by a given key path to a given value. /// </summary> /// <param name="value">The value for the property identified by keyPath.</param> /// <param name="forKeyPath">A key path of the form relationship.property (with one or more relationships): for example “department.name” or “department.manager.lastName.”</param> [iOSVersion(2)] [Export("setValue")] void SetValue([Optional] AnyObject value, string forKeyPath); /// <summary> /// Sets properties of the receiver with values from a given dictionary, using its keys to identify the properties. /// </summary> /// <param name="keyedValues">A dictionary whose keys identify properties in the receiver. The values of the properties in the receiver are set to the corresponding values in the dictionary.</param> [iOSVersion(2)] [Export("setValuesForKeysWithDictionary")] void SetValuesForKeysWithDictionary(Dictionary<NSObject, AnyObject> keyedValues); /// <summary> /// Invoked by setValue:forKey: when it’s given a nil value for a scalar value (such as an int or float). /// </summary> /// <param name="key">The name of one of the receiver&#39;s properties.</param> [iOSVersion(2)] [Export("setNilValueForKey")] void SetNilValueForKey(string key); /// <summary> /// Sets the property of the receiver specified by a given key to a given value. /// </summary> /// <param name="value">The value for the property identified by key.</param> /// <param name="forKey">The name of one of the receiver&#39;s properties.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [Export("setValue")] [IgnoreParameter("NAME_YOUR_PARAMS")] void SetValue([Optional] AnyObject value, string forKey, bool NAME_YOUR_PARAMS = false); /// <summary> /// Invoked by setValue:forKey: when it finds no property for a given key. /// </summary> /// <param name="value">The value for the key identified by key.</param> /// <param name="forUndefinedKey">A string that is not equal to the name of any of the receiver&#39;s properties.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [Export("setValue")] [IgnoreParameter("NAME_YOUR_PARAMS")] void SetValue([Optional] AnyObject value, string forUndefinedKey, int NAME_YOUR_PARAMS = 0); /// <summary> /// Returns a Boolean value that indicates whether the key-value coding methods should access the corresponding instance variable directly on finding no accessor method for a property. /// </summary> //[iOSVersion(2)] //[Export("accessInstanceVariablesDirectly")] //bool AccessInstanceVariablesDirectly(); /// <summary> /// Returns a Boolean value that indicates whether the value specified by a given pointer is valid for the property identified by a given key. /// </summary> /// <param name="ioValue">A pointer to a new value for the property identified by key. This method may modify or replace the value in order to make it valid.</param> /// <param name="forKey">The name of one of the receiver&#39;s properties. The key must specify an attribute or a to-one relationship.</param> /// <param name="error">If validation is necessary and ioValue is not transformed into a valid value, upon return contains an NSError object that describes the reason that ioValue is not a valid value.</param> [iOSVersion(2)] [Export("validateValue")] bool ValidateValue(AutoreleasingUnsafeMutablePointer<AnyObject> ioValue, string forKey, NSErrorPointer error); /// <summary> /// Returns a Boolean value that indicates whether the value specified by a given pointer is valid for a given key path relative to the receiver. /// </summary> /// <param name="ioValue">A pointer to a new value for the property identified by keyPath. This method may modify or replace the value in order to make it valid.</param> /// <param name="forKeyPath">The name of one of the receiver&#39;s properties. The key path must specify an attribute or a to-one relationship. The key path has the form relationship.property (with one or more relationships); for example “department.name” or “department.manager.lastName”.</param> /// <param name="error">If validation is necessary and ioValue is not transformed into a valid value, upon return contains an NSError object that describes the reason that ioValue is not a valid value.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [Export("validateValue")] [IgnoreParameter("NAME_YOUR_PARAMS")] bool ValidateValue(AutoreleasingUnsafeMutablePointer<AnyObject> ioValue, string forKeyPath, NSErrorPointer error, bool NAME_YOUR_PARAMS = false); } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/Protocols/NSKeyValueObserving.cs b/CocoaSharp/Foundation/Protocols/NSKeyValueObserving.cs
index ebf12976..b4e843e3 100644
--- a/CocoaSharp/Foundation/Protocols/NSKeyValueObserving.cs
+++ b/CocoaSharp/Foundation/Protocols/NSKeyValueObserving.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSKeyValueObserving (KVO) informal protocol defines a mechanism that allows objects to be notified of changes to the specified properties of other objects. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Protocols/NSKeyValueObserving_Protocol/index.html#//apple_ref/doc/uid/TP40003781"/> [iOSVersion(2)] public interface NSKeyValueObserving//: { } /// <summary> /// These constants are returned as the value for a NSKeyValueChangeKindKey key in the change dictionary passed to observeValueForKeyPath:ofObject:change:context: indicating the type of change made: /// </summary> [iOSVersion(2)] public enum NSKeyValueChange { /// <summary> /// Indicates that the value of the observed key path was set to a new value. This change can occur when observing an attribute of an object, as well as properties that specify to-one and to-many relationships. /// </summary> [iOSVersion(2)] Setting, /// <summary> /// Indicates that an object has been inserted into the to-many relationship that is being observed. /// </summary> [iOSVersion(2)] Insertion, /// <summary> /// Indicates that an object has been removed from the to-many relationship that is being observed. /// </summary> [iOSVersion(2)] Removal, /// <summary> /// Indicates that an object has been replaced in the to-many relationship that is being observed. /// </summary> [iOSVersion(2)] Replacement, } /// <summary> /// These constants are passed to addObserver:forKeyPath:options:context: and determine the values that are returned as part of the change dictionary passed to an observeValueForKeyPath:ofObject:change:context:. You can pass 0 if you require no change dictionary values. /// </summary> [iOSVersion(2)] public enum NSKeyValueObservingOptions { /// <summary> /// Indicates that the change dictionary should provide the new attribute value, if applicable. /// </summary> [iOSVersion(2)] New, /// <summary> /// Indicates that the change dictionary should contain the old attribute value, if applicable. /// </summary> [iOSVersion(2)] Old, /// <summary> /// If specified, a notification should be sent to the observer immediately, before the observer registration method even returns. /// The change dictionary in the notification will always contain an NSKeyValueChangeNewKey entry if NSKeyValueObservingOptionNew is also specified but will never contain an NSKeyValueChangeOldKey entry. (In an initial notification the current value of the observed property may be old, but it's new to the observer.) You can use this option instead of explicitly invoking, at the same time, code that is also invoked by the observer's observeValueForKeyPath:ofObject:change:context: method. When this option is used withaddObserver:forKeyPath:options:context: a notification will be sent for each indexed object to which the observer is being added. /// </summary> [iOSVersion(2)] Initial, /// <summary> /// Whether separate notifications should be sent to the observer before and after each change, instead of a single notification after the change. /// The change dictionary in a notification sent before a change always contains an NSKeyValueChangeNotificationIsPriorKey entry whose value is [NSNumber numberWithBool:YES], but never contains an NSKeyValueChangeNewKey entry. When this option is specified the change dictionary in a notification sent after a change contains the same entries that it would contain if this option were not specified. You can use this option when the observer's own key-value observing-compliance requires it to invoke one of the -willChange... methods for one of its own properties, and the value of that property depends on the value of the observed object's property. (In that situation it's too late to easily invoke -willChange... properly in response to receiving an observeValueForKeyPath:ofObject:change:context: message after the change.) /// </summary> [iOSVersion(2)] Prior, } /// <summary> /// These constants are specified as the parameter to the methods willChangeValueForKey:withSetMutation:usingObjects: and didChangeValueForKey:withSetMutation:usingObjects:. Their semantics correspond exactly to the NSMutableSet class methods unionSet:, minusSet:, intersectSet:, and setSet: method, respectively. /// </summary> [iOSVersion(2)] public enum NSKeyValueSetMutationKind { /// <summary> /// Indicates that objects in the specified set are being added to the receiver. /// This mutation kind results in a NSkeyValueChangeKindKey value of NSKeyValueChangeInsertion. /// </summary> [iOSVersion(2)] UnionSetMutation, /// <summary> /// Indicates that the objects in the specified set are being removed from the receiver. /// This mutation kind results in a NSkeyValueChangeKindKey value of NSKeyValueChangeRemoval. /// </summary> [iOSVersion(2)] MinusSetMutation, /// <summary> /// Indicates that the objects not in the specified set are being removed from the receiver. /// This mutation kind results in a NSkeyValueChangeKindKey value of NSKeyValueChangeRemoval. /// </summary> [iOSVersion(2)] IntersectSetMutation, /// <summary> /// Indicates that set of objects are replacing the existing objects in the receiver. /// This mutation kind results in a NSKeyValueChangeKindKey value of NSKeyValueChangeReplacement. /// </summary> [iOSVersion(2)] SetSetMutation, } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSKeyValueObserving (KVO) informal protocol defines a mechanism that allows objects to be notified of changes to the specified properties of other objects. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Protocols/NSKeyValueObserving_Protocol/index.html#//apple_ref/doc/uid/TP40003781"/> [iOSVersion(2)] [Export("")] public interface NSKeyValueObserving//: { /// <summary> /// This message is sent to the receiver when the value at the specified key path relative to the given object has changed. /// </summary> /// <param name="keyPath">The key path, relative to object, to the value that has changed.</param> /// <param name="ofObject">The source object of the key path keyPath.</param> /// <param name="change">A dictionary that describes the changes that have been made to the value of the property at the key path keyPath relative to object. Entries are described in Change Dictionary Keys.</param> /// <param name="context">The value that was provided when the receiver was registered to receive key-value observation notifications.</param> [iOSVersion(2)] [Export("observeValueForKeyPath")] void ObserveValueForKeyPath(string keyPath, AnyObject ofObject, Dictionary<NSObject, AnyObject> change, UnsafeMutablePointer context); /// <summary> /// Registers anObserver to receive KVO notifications for the specified key-path relative to the receiver. /// </summary> /// <param name="anObserver">The object to register for KVO notifications. The observer must implement the key-value observing method observeValueForKeyPath:ofObject:change:context:.</param> /// <param name="forKeyPath">The key path, relative to the receiver, of the property to observe. This value must not be nil.</param> /// <param name="options">A combination of the NSKeyValueObservingOptions values that specifies what is included in observation notifications. For possible values, see NSKeyValueObservingOptions.</param> /// <param name="context">Arbitrary data that is passed to anObserver in observeValueForKeyPath:ofObject:change:context:.</param> [iOSVersion(2)] [Export("addObserver")] void AddObserver(NSObject anObserver, string forKeyPath, NSKeyValueObservingOptions options, UnsafeMutablePointer context); /// <summary> /// Stops a given object from receiving change notifications for the property specified by a given key-path relative to the receiver. /// </summary> /// <param name="anObserver">The object to remove as an observer.</param> /// <param name="forKeyPath">A key-path, relative to the receiver, for which anObserver is registered to receive KVO change notifications.</param> [iOSVersion(2)] [Export("removeObserver")] void RemoveObserver(NSObject anObserver, string forKeyPath); /// <summary> /// Stops a given object from receiving change notifications for the property specified by a given key-path relative to the receiver and a context. /// </summary> /// <param name="observer">The object to remove as an observer.</param> /// <param name="forKeyPath">A key-path, relative to the receiver, for which anObserver is registered to receive KVO change notifications.</param> /// <param name="context">Arbitrary data that more specifically identifies the observer to be removed.</param> [iOSVersion(5)] [Export("removeObserver")] void RemoveObserver(NSObject observer, string forKeyPath, UnsafeMutablePointer context); /// <summary> /// Invoked to inform the receiver that the value of a given property is about to change. /// </summary> /// <param name="key">The name of the property that will change.</param> [iOSVersion(2)] [Export("willChangeValueForKey")] void WillChangeValueForKey(string key); /// <summary> /// Invoked to inform the receiver that the value of a given property has changed. /// </summary> /// <param name="key">The name of the property that changed.</param> [iOSVersion(2)] [Export("didChangeValueForKey")] void DidChangeValueForKey(string key); /// <summary> /// Invoked to inform the receiver that the specified change is about to be executed at given indexes for a specified ordered to-many relationship. /// </summary> /// <param name="change">The type of change that is about to be made.</param> /// <param name="valuesAtIndexes">The indexes of the to-many relationship that will be affected by the change.</param> /// <param name="forKey">The name of a property that is an ordered to-many relationship.</param> [iOSVersion(2)] [Export("willChange")] void WillChange(NSKeyValueChange change, NSIndexSet valuesAtIndexes, string forKey); /// <summary> /// Invoked to inform the receiver that the specified change has occurred on the indexes for a specified ordered to-many relationship. /// </summary> /// <param name="change">The type of change that was made.</param> /// <param name="valuesAtIndexes">The indexes of the to-many relationship that were affected by the change.</param> /// <param name="forKey">The name of a property that is an ordered to-many relationship.</param> [iOSVersion(2)] [Export("didChange")] void DidChange(NSKeyValueChange change, NSIndexSet valuesAtIndexes, string forKey); /// <summary> /// Invoked to inform the receiver that the specified change is about to be made to a specified unordered to-many relationship. /// </summary> /// <param name="key">The name of a property that is an unordered to-many relationship</param> /// <param name="withSetMutation">The type of change that will be made.</param> /// <param name="usingObjects">The objects that are involved in the change (see NSKeyValueSetMutationKind).</param> [iOSVersion(2)] [Export("willChangeValueForKey")] void WillChangeValueForKey(string key, NSKeyValueSetMutationKind withSetMutation, NSSet usingObjects); /// <summary> /// Invoked to inform the receiver that the specified change was made to a specified unordered to-many relationship. /// </summary> /// <param name="key">The name of a property that is an unordered to-many relationship</param> /// <param name="withSetMutation">The type of change that was made.</param> /// <param name="usingObjects">The objects that were involved in the change (see NSKeyValueSetMutationKind).</param> [iOSVersion(2)] [Export("didChangeValueForKey")] void DidChangeValueForKey(string key, NSKeyValueSetMutationKind withSetMutation, NSSet usingObjects); /// <summary> /// Returns a Boolean value that indicates whether the receiver supports automatic key-value observation for the given key. /// </summary> /// <param name="key"></param> //[iOSVersion(2)] //[Export("automaticallyNotifiesObserversForKey")] //bool AutomaticallyNotifiesObserversForKey(string key); /// <summary> /// Returns a set of key paths for properties whose values affect the value of the specified key. /// </summary> /// <param name="key">The key whose value is affected by the key paths.</param> //[iOSVersion(2)] //[Export("keyPathsForValuesAffectingValueForKey")] //NSSet KeyPathsForValuesAffectingValueForKey(string key); /// <summary> /// Sets the observation info for the receiver. /// </summary> [iOSVersion(2)] [Export("observationInfo")] UnsafeMutablePointer ObservationInfo { get; set; } } /// <summary> /// These constants are returned as the value for a NSKeyValueChangeKindKey key in the change dictionary passed to observeValueForKeyPath:ofObject:change:context: indicating the type of change made: /// </summary> public enum NSKeyValueChange { /// <summary> /// Indicates that the value of the observed key path was set to a new value. This change can occur when observing an attribute of an object, as well as properties that specify to-one and to-many relationships. /// </summary> [iOSVersion(2)] Setting, /// <summary> /// Indicates that an object has been inserted into the to-many relationship that is being observed. /// </summary> [iOSVersion(2)] Insertion, /// <summary> /// Indicates that an object has been removed from the to-many relationship that is being observed. /// </summary> [iOSVersion(2)] Removal, /// <summary> /// Indicates that an object has been replaced in the to-many relationship that is being observed. /// </summary> [iOSVersion(2)] Replacement, } /// <summary> /// These constants are passed to addObserver:forKeyPath:options:context: and determine the values that are returned as part of the change dictionary passed to an observeValueForKeyPath:ofObject:change:context:. You can pass 0 if you require no change dictionary values. /// </summary> public enum NSKeyValueObservingOptions { /// <summary> /// Indicates that the change dictionary should provide the new attribute value, if applicable. /// </summary> [iOSVersion(2)] New, /// <summary> /// Indicates that the change dictionary should contain the old attribute value, if applicable. /// </summary> [iOSVersion(2)] Old, /// <summary> /// If specified, a notification should be sent to the observer immediately, before the observer registration method even returns. /// The change dictionary in the notification will always contain an NSKeyValueChangeNewKey entry if NSKeyValueObservingOptionNew is also specified but will never contain an NSKeyValueChangeOldKey entry. (In an initial notification the current value of the observed property may be old, but it&#39;s new to the observer.) You can use this option instead of explicitly invoking, at the same time, code that is also invoked by the observer&#39;s observeValueForKeyPath:ofObject:change:context: method. When this option is used withaddObserver:forKeyPath:options:context: a notification will be sent for each indexed object to which the observer is being added. /// </summary> [iOSVersion(2)] Initial, /// <summary> /// Whether separate notifications should be sent to the observer before and after each change, instead of a single notification after the change. /// The change dictionary in a notification sent before a change always contains an NSKeyValueChangeNotificationIsPriorKey entry whose value is [NSNumber numberWithBool:YES], but never contains an NSKeyValueChangeNewKey entry. When this option is specified the change dictionary in a notification sent after a change contains the same entries that it would contain if this option were not specified. You can use this option when the observer&#39;s own key-value observing-compliance requires it to invoke one of the -willChange... methods for one of its own properties, and the value of that property depends on the value of the observed object&#39;s property. (In that situation it&#39;s too late to easily invoke -willChange... properly in response to receiving an observeValueForKeyPath:ofObject:change:context: message after the change.) /// </summary> [iOSVersion(2)] Prior, } /// <summary> /// These constants are specified as the parameter to the methods willChangeValueForKey:withSetMutation:usingObjects: and didChangeValueForKey:withSetMutation:usingObjects:. Their semantics correspond exactly to the NSMutableSet class methods unionSet:, minusSet:, intersectSet:, and setSet: method, respectively. /// </summary> public enum NSKeyValueSetMutationKind { /// <summary> /// Indicates that objects in the specified set are being added to the receiver. /// This mutation kind results in a NSkeyValueChangeKindKey value of NSKeyValueChangeInsertion. /// </summary> [iOSVersion(2)] UnionSetMutation, /// <summary> /// Indicates that the objects in the specified set are being removed from the receiver. /// This mutation kind results in a NSkeyValueChangeKindKey value of NSKeyValueChangeRemoval. /// </summary> [iOSVersion(2)] MinusSetMutation, /// <summary> /// Indicates that the objects not in the specified set are being removed from the receiver. /// This mutation kind results in a NSkeyValueChangeKindKey value of NSKeyValueChangeRemoval. /// </summary> [iOSVersion(2)] IntersectSetMutation, /// <summary> /// Indicates that set of objects are replacing the existing objects in the receiver. /// This mutation kind results in a NSKeyValueChangeKindKey value of NSKeyValueChangeReplacement. /// </summary> [iOSVersion(2)] SetSetMutation, } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/Protocols/NSLocking.cs b/CocoaSharp/Foundation/Protocols/NSLocking.cs
index 0d7e80e3..935c3757 100644
--- a/CocoaSharp/Foundation/Protocols/NSLocking.cs
+++ b/CocoaSharp/Foundation/Protocols/NSLocking.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSLocking protocol declares the elementary methods adopted by classes that define lock objects. A lock object is used to coordinate the actions of multiple threads of execution within a single application. By using a lock object, an application can protect critical sections of code from being executed simultaneously by separate threads, thus protecting shared data and other shared resources from corruption. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Protocols/NSLocking_Protocol/index.html#//apple_ref/occ/intf/NSLocking"/> [iOSVersion(2)] public interface NSLocking//: { /// <summary> /// Attempts to acquire a lock, blocking a thread’s execution until the lock can be acquired. (required) /// </summary> [iOSVersion(2)] [Export("lock")] void Lock(); /// <summary> /// Relinquishes a previously acquired lock. (required) /// </summary> [iOSVersion(2)] [Export("unlock")] void Unlock(); } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSLocking protocol declares the elementary methods adopted by classes that define lock objects. A lock object is used to coordinate the actions of multiple threads of execution within a single application. By using a lock object, an application can protect critical sections of code from being executed simultaneously by separate threads, thus protecting shared data and other shared resources from corruption. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Protocols/NSLocking_Protocol/index.html#//apple_ref/occ/intf/NSLocking"/> [iOSVersion(2)] [Export("")] public interface NSLocking//: { /// <summary> /// Attempts to acquire a lock, blocking a thread’s execution until the lock can be acquired. (required) /// </summary> [iOSVersion(2)] [Export("lock")] void Lock(); /// <summary> /// Relinquishes a previously acquired lock. (required) /// </summary> [iOSVersion(2)] [Export("unlock")] void Unlock(); } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/Protocols/NSMutableCopying.cs b/CocoaSharp/Foundation/Protocols/NSMutableCopying.cs
index bb8419c3..3d5fcd80 100644
--- a/CocoaSharp/Foundation/Protocols/NSMutableCopying.cs
+++ b/CocoaSharp/Foundation/Protocols/NSMutableCopying.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSMutableCopying protocol declares a method for providing mutable copies of an object. Only classes that define an “immutable vs. mutable” distinction should adopt this protocol. Classes that don’t define such a distinction should adopt NSCopying instead. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Protocols/NSMutableCopying_Protocol/index.html#//apple_ref/occ/intf/NSMutableCopying"/> [iOSVersion(2)] public interface NSMutableCopying//: { /// <summary> /// Returns a new instance that’s a mutable copy of the receiver. (required) /// </summary> /// <param name="zone">The zone from which memory is allocated for the new instance. If zone is NULL, the new instance is allocated from the default zone, which is returned by NSDefaultMallocZone.</param> [iOSVersion(2)] [Export("mutableCopyWithZone")] AnyObject MutableCopyWithZone(NSZone zone); } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSMutableCopying protocol declares a method for providing mutable copies of an object. Only classes that define an “immutable vs. mutable” distinction should adopt this protocol. Classes that don’t define such a distinction should adopt NSCopying instead. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Protocols/NSMutableCopying_Protocol/index.html#//apple_ref/occ/intf/NSMutableCopying"/> [iOSVersion(2)] [Export("")] public interface NSMutableCopying//: { /// <summary> /// Returns a new instance that’s a mutable copy of the receiver. (required) /// </summary> /// <param name="zone">The zone from which memory is allocated for the new instance. If zone is NULL, the new instance is allocated from the default zone, which is returned by NSDefaultMallocZone.</param> [iOSVersion(2)] [Export("mutableCopyWithZone")] [return:Optional] AnyObject MutableCopyWithZone(NSZone zone); } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/Protocols/NSSecureCoding.cs b/CocoaSharp/Foundation/Protocols/NSSecureCoding.cs
index f5190584..f2f1ea79 100644
--- a/CocoaSharp/Foundation/Protocols/NSSecureCoding.cs
+++ b/CocoaSharp/Foundation/Protocols/NSSecureCoding.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// Conforming to the NSSecureCoding protocol indicates that an object handles encoding and decoding instances of itself in a manner that is robust against object substitution attacks. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSSecureCoding_Protocol_Ref/index.html#//apple_ref/occ/intf/NSSecureCoding"/> [iOSVersion(6)] public interface NSSecureCoding//: NSCoding { /// <summary> /// Returns whether the class supports secure coding. (required) /// </summary> //[iOSVersion(6)] //[Export("supportsSecureCoding")] //bool SupportsSecureCoding(); } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// Conforming to the NSSecureCoding protocol indicates that an object handles encoding and decoding instances of itself in a manner that is robust against object substitution attacks. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSSecureCoding_Protocol_Ref/index.html#//apple_ref/occ/intf/NSSecureCoding"/> [iOSVersion(6)] [Export("")] public interface NSSecureCoding//: NSCoding { /// <summary> /// Returns whether the class supports secure coding. (required) /// </summary> //[iOSVersion(6)] //[Export("supportsSecureCoding")] //bool SupportsSecureCoding(); } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/Protocols/NSURLAuthenticationChallengeSender.cs b/CocoaSharp/Foundation/Protocols/NSURLAuthenticationChallengeSender.cs
index 53731017..721d0b97 100644
--- a/CocoaSharp/Foundation/Protocols/NSURLAuthenticationChallengeSender.cs
+++ b/CocoaSharp/Foundation/Protocols/NSURLAuthenticationChallengeSender.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSURLAuthenticationChallengeSender protocol represents the interface that the sender of an authentication challenge must implement. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Protocols/NSURLAuthenticationChallengeSender_Protocol/index.html#//apple_ref/occ/intf/NSURLAuthenticationChallengeSender"/> [iOSVersion(2)] public interface NSURLAuthenticationChallengeSender//: NSObjectProtocol { /// <summary> /// Cancels a given authentication challenge. (required) /// </summary> /// <param name="challenge">The authentication challenge to cancel.</param> [iOSVersion(2)] [Export("cancelAuthenticationChallenge")] void CancelAuthenticationChallenge(NSURLAuthenticationChallenge challenge); /// <summary> /// Attempt to continue downloading a request without providing a credential for a given challenge. (required) /// </summary> /// <param name="challenge">A challenge without authentication credentials.</param> [iOSVersion(2)] [Export("continueWithoutCredentialForAuthenticationChallenge")] void ContinueWithoutCredentialForAuthenticationChallenge(NSURLAuthenticationChallenge challenge); /// <summary> /// Attempt to use a given credential for a given authentication challenge. (required) /// </summary> /// <param name="credential">The credential to use for authentication.</param> /// <param name="forAuthenticationChallenge">The challenge for which to use credential.</param> [iOSVersion(2)] [Export("useCredential")] void UseCredential(NSURLCredential credential, NSURLAuthenticationChallenge forAuthenticationChallenge); /// <summary> /// Causes the system-provided default behavior to be used. /// </summary> /// <param name="challenge">The challenge for which the default behavior should be used.</param> [iOSVersion(5)] [Export("performDefaultHandlingForAuthenticationChallenge")] void PerformDefaultHandlingForAuthenticationChallenge(NSURLAuthenticationChallenge challenge); /// <summary> /// Rejects the currently supplied protection space. /// </summary> /// <param name="challenge">The challenge that should be rejected.</param> [iOSVersion(5)] [Export("rejectProtectionSpaceAndContinueWithChallenge")] void RejectProtectionSpaceAndContinueWithChallenge(NSURLAuthenticationChallenge challenge); } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSURLAuthenticationChallengeSender protocol represents the interface that the sender of an authentication challenge must implement. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Protocols/NSURLAuthenticationChallengeSender_Protocol/index.html#//apple_ref/occ/intf/NSURLAuthenticationChallengeSender"/> [iOSVersion(2)] [Export("")] public interface NSURLAuthenticationChallengeSender//: NSObjectProtocol { /// <summary> /// Cancels a given authentication challenge. (required) /// </summary> /// <param name="challenge">The authentication challenge to cancel.</param> [iOSVersion(2)] [Export("cancelAuthenticationChallenge")] void CancelAuthenticationChallenge(NSURLAuthenticationChallenge challenge); /// <summary> /// Attempt to continue downloading a request without providing a credential for a given challenge. (required) /// </summary> /// <param name="challenge">A challenge without authentication credentials.</param> [iOSVersion(2)] [Export("continueWithoutCredentialForAuthenticationChallenge")] void ContinueWithoutCredentialForAuthenticationChallenge(NSURLAuthenticationChallenge challenge); /// <summary> /// Attempt to use a given credential for a given authentication challenge. (required) /// </summary> /// <param name="credential">The credential to use for authentication.</param> /// <param name="forAuthenticationChallenge">The challenge for which to use credential.</param> [iOSVersion(2)] [Export("useCredential")] void UseCredential(NSURLCredential credential, NSURLAuthenticationChallenge forAuthenticationChallenge); /// <summary> /// Causes the system-provided default behavior to be used. /// </summary> /// <param name="challenge">The challenge for which the default behavior should be used.</param> //[iOSVersion(5)] //[Export("performDefaultHandlingForAuthenticationChallenge")] //[InheritOptional] //void PerformDefaultHandlingForAuthenticationChallenge(NSURLAuthenticationChallenge challenge); /// <summary> /// Rejects the currently supplied protection space. /// </summary> /// <param name="challenge">The challenge that should be rejected.</param> //[iOSVersion(5)] //[Export("rejectProtectionSpaceAndContinueWithChallenge")] //[InheritOptional] //void RejectProtectionSpaceAndContinueWithChallenge(NSURLAuthenticationChallenge challenge); } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/Protocols/NSURLProtocolClient.cs b/CocoaSharp/Foundation/Protocols/NSURLProtocolClient.cs
index 6417b2b8..69b0225c 100644
--- a/CocoaSharp/Foundation/Protocols/NSURLProtocolClient.cs
+++ b/CocoaSharp/Foundation/Protocols/NSURLProtocolClient.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSURLProtocolClient protocol provides the interface used by NSURLProtocol subclasses to communicate with the URL loading system. An application should never have the need to implement this protocol. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Protocols/NSURLProtocolClient_Protocol/index.html#//apple_ref/occ/intf/NSURLProtocolClient"/> [iOSVersion(2)] public interface NSURLProtocolClient//: NSObjectProtocol { /// <summary> /// Sent to indicate to the URL loading system that a cached response is valid. (required) /// </summary> /// <param name="protocol"></param> /// <param name="cachedResponseIsValid">The cached response whose validity is being communicated.</param> [iOSVersion(2)] void URLProtocol(NSURLProtocol protocol, NSCachedURLResponse cachedResponseIsValid); /// <summary> /// Sent to indicate to the URL loading system that an authentication challenge has been canceled. (required) /// </summary> /// <param name="protocol"></param> /// <param name="didCancelAuthenticationChallenge">The authentication challenge that was canceled.</param> [iOSVersion(2)] void URLProtocol(NSURLProtocol protocol, NSURLAuthenticationChallenge didCancelAuthenticationChallenge); /// <summary> /// Sent when the load request fails due to an error. (required) /// </summary> /// <param name="protocol"></param> /// <param name="didFailWithError">The error that caused the failure of the load request.</param> [iOSVersion(2)] void URLProtocol(NSURLProtocol protocol, NSError didFailWithError); /// <summary> /// An NSURLProtocol subclass instance, protocol, sends this message to [protocol client] as it loads data. (required) /// </summary> /// <param name="protocol"></param> /// <param name="didLoadData"></param> [iOSVersion(2)] void URLProtocol(NSURLProtocol protocol, NSData didLoadData); /// <summary> /// Sent to indicate to the URL loading system that an authentication challenge has been received. (required) /// </summary> /// <param name="protocol"></param> /// <param name="didReceiveAuthenticationChallenge">The authentication challenge that has been received.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [IgnoreParameter("NAME_YOUR_PARAMS")] void URLProtocol(NSURLProtocol protocol, NSURLAuthenticationChallenge didReceiveAuthenticationChallenge, bool NAME_YOUR_PARAMS = false); /// <summary> /// Sent to indicate to the URL loading system that the protocol implementation has created a response object for the request. (required) /// </summary> /// <param name="protocol"></param> /// <param name="didReceiveResponse">The newly available response object.</param> /// <param name="cacheStoragePolicy">The cache storage policy for the response.</param> [iOSVersion(2)] void URLProtocol(NSURLProtocol protocol, NSURLResponse didReceiveResponse, NSURLCacheStoragePolicy cacheStoragePolicy); /// <summary> /// Sent to indicate to the URL loading system that the protocol implementation has been redirected. (required) /// </summary> /// <param name="protocol"></param> /// <param name="wasRedirectedToRequest">The new request that the original request was redirected to.</param> /// <param name="redirectResponse">The response from the original request that caused the redirect.</param> [iOSVersion(2)] void URLProtocol(NSURLProtocol protocol, NSURLRequest wasRedirectedToRequest, NSURLResponse redirectResponse); /// <summary> /// Sent to indicate to the URL loading system that the protocol implementation has finished loading. (required) /// </summary> /// <param name="protocol"></param> [iOSVersion(2)] void URLProtocolDidFinishLoading(NSURLProtocol protocol); } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; namespace Foundation { /// <summary> /// The NSURLProtocolClient protocol provides the interface used by NSURLProtocol subclasses to communicate with the URL loading system. An application should never have the need to implement this protocol. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Protocols/NSURLProtocolClient_Protocol/index.html#//apple_ref/occ/intf/NSURLProtocolClient"/> [iOSVersion(2)] [Export("")] public interface NSURLProtocolClient//: NSObjectProtocol { /// <summary> /// Sent to indicate to the URL loading system that a cached response is valid. (required) /// </summary> /// <param name="protocol"></param> /// <param name="cachedResponseIsValid">The cached response whose validity is being communicated.</param> [iOSVersion(2)] void URLProtocol(NSURLProtocol protocol, NSCachedURLResponse cachedResponseIsValid); /// <summary> /// Sent to indicate to the URL loading system that an authentication challenge has been canceled. (required) /// </summary> /// <param name="protocol"></param> /// <param name="didCancelAuthenticationChallenge">The authentication challenge that was canceled.</param> [iOSVersion(2)] void URLProtocol(NSURLProtocol protocol, NSURLAuthenticationChallenge didCancelAuthenticationChallenge); /// <summary> /// Sent when the load request fails due to an error. (required) /// </summary> /// <param name="protocol"></param> /// <param name="didFailWithError">The error that caused the failure of the load request.</param> [iOSVersion(2)] void URLProtocol(NSURLProtocol protocol, NSError didFailWithError); /// <summary> /// An NSURLProtocol subclass instance, protocol, sends this message to [protocol client] as it loads data. (required) /// </summary> /// <param name="protocol"></param> /// <param name="didLoadData"></param> [iOSVersion(2)] void URLProtocol(NSURLProtocol protocol, NSData didLoadData); /// <summary> /// Sent to indicate to the URL loading system that an authentication challenge has been received. (required) /// </summary> /// <param name="protocol"></param> /// <param name="didReceiveAuthenticationChallenge">The authentication challenge that has been received.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [IgnoreParameter("NAME_YOUR_PARAMS")] void URLProtocol(NSURLProtocol protocol, NSURLAuthenticationChallenge didReceiveAuthenticationChallenge, bool NAME_YOUR_PARAMS = false); /// <summary> /// Sent to indicate to the URL loading system that the protocol implementation has created a response object for the request. (required) /// </summary> /// <param name="protocol"></param> /// <param name="didReceiveResponse">The newly available response object.</param> /// <param name="cacheStoragePolicy">The cache storage policy for the response.</param> [iOSVersion(2)] void URLProtocol(NSURLProtocol protocol, NSURLResponse didReceiveResponse, NSURLCacheStoragePolicy cacheStoragePolicy); /// <summary> /// Sent to indicate to the URL loading system that the protocol implementation has been redirected. (required) /// </summary> /// <param name="protocol"></param> /// <param name="wasRedirectedToRequest">The new request that the original request was redirected to.</param> /// <param name="redirectResponse">The response from the original request that caused the redirect.</param> [iOSVersion(2)] void URLProtocol(NSURLProtocol protocol, NSURLRequest wasRedirectedToRequest, NSURLResponse redirectResponse); /// <summary> /// Sent to indicate to the URL loading system that the protocol implementation has finished loading. (required) /// </summary> /// <param name="protocol"></param> [iOSVersion(2)] void URLProtocolDidFinishLoading(NSURLProtocol protocol); } } \ No newline at end of file
diff --git a/CocoaSharp/Foundation/Unknown/AutoreleasingUnsafeMutablePointer.cs b/CocoaSharp/Foundation/Unknown/AutoreleasingUnsafeMutablePointer.cs
new file mode 100644
index 00000000..f502dbe9
--- /dev/null
+++ b/CocoaSharp/Foundation/Unknown/AutoreleasingUnsafeMutablePointer.cs
@@ -0,0 +1,11 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace Foundation
+{
+ public class AutoreleasingUnsafeMutablePointer<T>
+ {
+ }
+}
diff --git a/CocoaSharp/Foundation/Unknown/CLLocationCoordinate2D.cs b/CocoaSharp/Foundation/Unknown/CLLocationCoordinate2D.cs
new file mode 100644
index 00000000..be6426ef
--- /dev/null
+++ b/CocoaSharp/Foundation/Unknown/CLLocationCoordinate2D.cs
@@ -0,0 +1,12 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace Foundation
+{
+ public class CLLocationCoordinate2D
+ {
+
+ }
+}
diff --git a/CocoaSharp/Foundation/Unknown/NSLengthFormatter.cs b/CocoaSharp/Foundation/Unknown/CMTime.cs
index e6b7846e..8adc1bb3 100644
--- a/CocoaSharp/Foundation/Unknown/NSLengthFormatter.cs
+++ b/CocoaSharp/Foundation/Unknown/CMTime.cs
@@ -5,7 +5,7 @@ using System.Text;
namespace Foundation
{
- public class NSLengthFormatter
+ public class CMTime
{
}
}
diff --git a/CocoaSharp/Foundation/Unknown/NSFormattingContext.cs b/CocoaSharp/Foundation/Unknown/CMTimeMapping.cs
index 5e213286..43ccd3fe 100644
--- a/CocoaSharp/Foundation/Unknown/NSFormattingContext.cs
+++ b/CocoaSharp/Foundation/Unknown/CMTimeMapping.cs
@@ -5,7 +5,7 @@ using System.Text;
namespace Foundation
{
- public class NSFormattingContext
+ public class CMTimeMapping
{
}
}
diff --git a/CocoaSharp/Foundation/Unknown/CMTimeRange.cs b/CocoaSharp/Foundation/Unknown/CMTimeRange.cs
new file mode 100644
index 00000000..600b3dd0
--- /dev/null
+++ b/CocoaSharp/Foundation/Unknown/CMTimeRange.cs
@@ -0,0 +1,11 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace Foundation
+{
+ public class CMTimeRange
+ {
+ }
+}
diff --git a/CocoaSharp/Foundation/Unknown/IMP.cs b/CocoaSharp/Foundation/Unknown/IMP.cs
new file mode 100644
index 00000000..a91d9800
--- /dev/null
+++ b/CocoaSharp/Foundation/Unknown/IMP.cs
@@ -0,0 +1,11 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace Foundation
+{
+ public class IMP
+ {
+ }
+}
diff --git a/CocoaSharp/Foundation/Unknown/MKCoordinateSpan.cs b/CocoaSharp/Foundation/Unknown/MKCoordinateSpan.cs
new file mode 100644
index 00000000..fb45474d
--- /dev/null
+++ b/CocoaSharp/Foundation/Unknown/MKCoordinateSpan.cs
@@ -0,0 +1,12 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace Foundation
+{
+ public class MKCoordinateSpan
+ {
+
+ }
+}
diff --git a/CocoaSharp/Foundation/Unknown/SCNMatrixes.cs b/CocoaSharp/Foundation/Unknown/SCNMatrixes.cs
new file mode 100644
index 00000000..2dfe4dce
--- /dev/null
+++ b/CocoaSharp/Foundation/Unknown/SCNMatrixes.cs
@@ -0,0 +1,23 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace Foundation
+{
+ public class SCNMatrix1
+ {
+ }
+ public class SCNMatrix2
+ {
+ }
+ public class SCNMatrix3
+ {
+ }
+ public class SCNMatrix4
+ {
+ }
+ public class SCNMatrix5
+ {
+ }
+}
diff --git a/CocoaSharp/Foundation/Unknown/SCNVectors.cs b/CocoaSharp/Foundation/Unknown/SCNVectors.cs
new file mode 100644
index 00000000..29c7a3da
--- /dev/null
+++ b/CocoaSharp/Foundation/Unknown/SCNVectors.cs
@@ -0,0 +1,23 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace Foundation
+{
+ public class SCNVector1
+ {
+ }
+ public class SCNVector2
+ {
+ }
+ public class SCNVector3
+ {
+ }
+ public class SCNVector4
+ {
+ }
+ public class SCNVector5
+ {
+ }
+}
diff --git a/CocoaSharp/Foundation/Unknown/UnsafeMutablePointer.cs b/CocoaSharp/Foundation/Unknown/UnsafeMutablePointer.cs
new file mode 100644
index 00000000..925fa092
--- /dev/null
+++ b/CocoaSharp/Foundation/Unknown/UnsafeMutablePointer.cs
@@ -0,0 +1,14 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace Foundation
+{
+ public class UnsafeMutablePointer<T>
+ {
+ }
+ public class UnsafeMutablePointer
+ {
+ }
+}
diff --git a/CocoaSharp/Foundation/Unknown/UnsafePointer.cs b/CocoaSharp/Foundation/Unknown/UnsafePointer.cs
index cf989e21..6b1b7683 100644
--- a/CocoaSharp/Foundation/Unknown/UnsafePointer.cs
+++ b/CocoaSharp/Foundation/Unknown/UnsafePointer.cs
@@ -8,4 +8,7 @@ namespace Foundation
public class UnsafePointer<T>
{
}
+ public class UnsafePointer
+ {
+ }
}
diff --git a/CocoaSharp/Foundation/ObjectiveC/AnyClass.cs b/CocoaSharp/ObjectiveC/AnyClass.cs
index f75b8af8..f75b8af8 100644
--- a/CocoaSharp/Foundation/ObjectiveC/AnyClass.cs
+++ b/CocoaSharp/ObjectiveC/AnyClass.cs
diff --git a/CocoaSharp/Foundation/ObjectiveC/AnyObject.cs b/CocoaSharp/ObjectiveC/AnyObject.cs
index 1ccc985c..1ccc985c 100644
--- a/CocoaSharp/Foundation/ObjectiveC/AnyObject.cs
+++ b/CocoaSharp/ObjectiveC/AnyObject.cs
diff --git a/CocoaSharp/Foundation/ObjectiveC/COpaquePointer.cs b/CocoaSharp/ObjectiveC/COpaquePointer.cs
index 5420b178..5420b178 100644
--- a/CocoaSharp/Foundation/ObjectiveC/COpaquePointer.cs
+++ b/CocoaSharp/ObjectiveC/COpaquePointer.cs
diff --git a/CocoaSharp/Foundation/ObjectiveC/ConstUnsafePointer.cs b/CocoaSharp/ObjectiveC/ConstUnsafePointer.cs
index 96a20924..96a20924 100644
--- a/CocoaSharp/Foundation/ObjectiveC/ConstUnsafePointer.cs
+++ b/CocoaSharp/ObjectiveC/ConstUnsafePointer.cs
diff --git a/CocoaSharp/Foundation/ObjectiveC/NSAutoreleasePool.cs b/CocoaSharp/ObjectiveC/NSAutoreleasePool.cs
index fd9aa9a8..fd9aa9a8 100644
--- a/CocoaSharp/Foundation/ObjectiveC/NSAutoreleasePool.cs
+++ b/CocoaSharp/ObjectiveC/NSAutoreleasePool.cs
diff --git a/CocoaSharp/Foundation/ObjectiveC/NSMessageSignature.cs b/CocoaSharp/ObjectiveC/NSMessageSignature.cs
index 42f8d301..42f8d301 100644
--- a/CocoaSharp/Foundation/ObjectiveC/NSMessageSignature.cs
+++ b/CocoaSharp/ObjectiveC/NSMessageSignature.cs
diff --git a/CocoaSharp/Foundation/ObjectiveC/ObjCBool.cs b/CocoaSharp/ObjectiveC/ObjCBool.cs
index eba6f239..eba6f239 100644
--- a/CocoaSharp/Foundation/ObjectiveC/ObjCBool.cs
+++ b/CocoaSharp/ObjectiveC/ObjCBool.cs
diff --git a/CocoaSharp/ObjectiveC/ObjectiveC.csproj b/CocoaSharp/ObjectiveC/ObjectiveC.csproj
new file mode 100644
index 00000000..9465b893
--- /dev/null
+++ b/CocoaSharp/ObjectiveC/ObjectiveC.csproj
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
+ <PropertyGroup>
+ <MinimumVisualStudioVersion>10.0</MinimumVisualStudioVersion>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProjectGuid>{01E1B613-3DDB-4233-BA6E-1DF4B05307E7}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>ObjectiveC</RootNamespace>
+ <AssemblyName>ObjectiveC</AssemblyName>
+ <DefaultLanguage>en-US</DefaultLanguage>
+ <FileAlignment>512</FileAlignment>
+ <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
+ <TargetFrameworkProfile>Profile328</TargetFrameworkProfile>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <!-- A reference to the entire .NET Framework is automatically included -->
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="AnyClass.cs" />
+ <Compile Include="AnyObject.cs" />
+ <Compile Include="ConstUnsafePointer.cs" />
+ <Compile Include="COpaquePointer.cs" />
+ <Compile Include="NSAutoreleasePool.cs" />
+ <Compile Include="NSMessageSignature.cs" />
+ <Compile Include="ObjCBool.cs" />
+ <Compile Include="Protocol.cs" />
+ <Compile Include="Selector.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ </ItemGroup>
+ <Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" />
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project> \ No newline at end of file
diff --git a/CocoaSharp/ObjectiveC/Properties/AssemblyInfo.cs b/CocoaSharp/ObjectiveC/Properties/AssemblyInfo.cs
new file mode 100644
index 00000000..8338d233
--- /dev/null
+++ b/CocoaSharp/ObjectiveC/Properties/AssemblyInfo.cs
@@ -0,0 +1,30 @@
+using System.Resources;
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("ObjectiveC")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("ObjectiveC")]
+[assembly: AssemblyCopyright("Copyright © 2015")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+[assembly: NeutralResourcesLanguage("en")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/CocoaSharp/Foundation/ObjectiveC/Protocol.cs b/CocoaSharp/ObjectiveC/Protocol.cs
index 57b3afbc..57b3afbc 100644
--- a/CocoaSharp/Foundation/ObjectiveC/Protocol.cs
+++ b/CocoaSharp/ObjectiveC/Protocol.cs
diff --git a/CocoaSharp/Foundation/ObjectiveC/Selector.cs b/CocoaSharp/ObjectiveC/Selector.cs
index 5e1bf39f..5e1bf39f 100644
--- a/CocoaSharp/Foundation/ObjectiveC/Selector.cs
+++ b/CocoaSharp/ObjectiveC/Selector.cs
diff --git a/CocoaSharp/SharpSwift.Attributes/InheritOptional.cs b/CocoaSharp/SharpSwift.Attributes/InheritOptional.cs
new file mode 100644
index 00000000..517abe42
--- /dev/null
+++ b/CocoaSharp/SharpSwift.Attributes/InheritOptional.cs
@@ -0,0 +1,12 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace SharpSwift.Attributes
+{
+ [AttributeUsage(AttributeTargets.All)]
+ public class InheritOptionalAttribute : Attribute
+ {
+ }
+}
diff --git a/CocoaSharp/SharpSwift.Attributes/Optional.cs b/CocoaSharp/SharpSwift.Attributes/Optional.cs
index 57ffd59b..0dc4776a 100644
--- a/CocoaSharp/SharpSwift.Attributes/Optional.cs
+++ b/CocoaSharp/SharpSwift.Attributes/Optional.cs
@@ -5,8 +5,8 @@ using System.Text;
namespace SharpSwift.Attributes
{
- public class Optional<T>
+ [AttributeUsage(AttributeTargets.All)]
+ public class OptionalAttribute : Attribute
{
-
}
}
diff --git a/CocoaSharp/SharpSwift.Attributes/SharpSwift.Attributes.csproj b/CocoaSharp/SharpSwift.Attributes/SharpSwift.Attributes.csproj
index 7def1083..0cc2ee79 100644
--- a/CocoaSharp/SharpSwift.Attributes/SharpSwift.Attributes.csproj
+++ b/CocoaSharp/SharpSwift.Attributes/SharpSwift.Attributes.csproj
@@ -40,11 +40,12 @@
<Compile Include="ExportAttribute.cs" />
<Compile Include="IBOutletAttribute.cs" />
<Compile Include="IgnoreParameterAttribute.cs" />
+ <Compile Include="InheritOptional.cs" />
+ <Compile Include="Optional.cs" />
<Compile Include="iOSVersionAttribute.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="RenameParameterAttribute.cs" />
<Compile Include="UIApplicationMainAttribute.cs" />
- <Compile Include="Optional.cs" />
<Compile Include="AmbiguousWrapping.cs" />
<Compile Include="Unwrapped.cs" />
</ItemGroup>
diff --git a/CocoaSharp/SharpSwift.Attributes/Unwrapped.cs b/CocoaSharp/SharpSwift.Attributes/Unwrapped.cs
index 2cccd7a8..3fc84559 100644
--- a/CocoaSharp/SharpSwift.Attributes/Unwrapped.cs
+++ b/CocoaSharp/SharpSwift.Attributes/Unwrapped.cs
@@ -5,17 +5,8 @@ using System.Text;
namespace SharpSwift.Attributes
{
- //TODO: handle unwrapping better
- public class Unwrapped<T>
+ [AttributeUsage(AttributeTargets.All)]
+ public class UnwrappedAttribute : Attribute
{
- static public implicit operator T(Unwrapped<T> value)
- {
- return default(T);
- }
-
- static public implicit operator Unwrapped<T>(T value)
- {
- return default(Unwrapped<T>);
- }
}
}
diff --git a/CocoaSharp/UIKit/NSOperation.cs b/CocoaSharp/UIKit/NSOperation.cs
index c5ab8670..d5944b74 100644
--- a/CocoaSharp/UIKit/NSOperation.cs
+++ b/CocoaSharp/UIKit/NSOperation.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace Foundation { /// <summary> /// The NSOperation class is an abstract class you use to encapsulate the code and data associated with a single task. Because it is abstract, you do not use this class directly but instead subclass or use one of the system-defined subclasses (NSInvocationOperation or NSBlockOperation) to perform the actual task. Despite being abstract, the base implementation of NSOperation does include significant logic to coordinate the safe execution of your task. The presence of this built-in logic allows you to focus on the actual implementation of your task, rather than on the glue code needed to ensure it works correctly with other system objects. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/NSOperation_class/index.html#//apple_ref/occ/cl/NSOperation"/> [iOSVersion(2)] public class NSOperation : NSObject//, AnyObject, NSObjectProtocol { public NSOperation() { } /// <summary> /// Begins the execution of the operation. /// </summary> [iOSVersion(2)] [Export("start")] public virtual void Start() { } /// <summary> /// Performs the receiver’s non-concurrent task. /// </summary> [iOSVersion(2)] [Export("main")] public virtual void Main() { } /// <summary> /// Advises the operation object that it should stop executing its task. /// </summary> [iOSVersion(2)] [Export("cancel")] public virtual void Cancel() { } /// <summary> /// Makes the receiver dependent on the completion of the specified operation. /// </summary> /// <param name="operation">The operation on which the receiver should depend. The same dependency should not be added more than once to the receiver, and the results of doing so are undefined.</param> [iOSVersion(2)] [Export("addDependency")] public virtual void AddDependency(NSOperation operation) { } /// <summary> /// Removes the receiver’s dependence on the specified operation. /// </summary> /// <param name="operation">The dependent operation to be removed from the receiver.</param> [iOSVersion(2)] [Export("removeDependency")] public virtual void RemoveDependency(NSOperation operation) { } /// <summary> /// Blocks execution of the current thread until the operation object finishes its task. /// </summary> [iOSVersion(4)] [Export("waitUntilFinished")] public virtual void WaitUntilFinished() { } /// <summary> /// The block to execute after the operation’s main task is completed. /// </summary> [iOSVersion(4)] [Export("completionBlock")] public Optional<Action> CompletionBlock { get; set; } /// <summary> /// A Boolean value indicating whether the operation has been cancelled (read-only) /// </summary> [iOSVersion(8)] [Export("cancelled")] public bool Cancelled { get; private set; } /// <summary> /// A Boolean value indicating whether the operation is currently executing. (read-only) /// </summary> [iOSVersion(8)] [Export("executing")] public bool Executing { get; private set; } /// <summary> /// A Boolean value indicating whether the operation has finished executing its task. (read-only) /// </summary> [iOSVersion(8)] [Export("finished")] public bool Finished { get; private set; } /// <summary> /// A Boolean value indicating whether the operation executes its task asynchronously. (read-only) /// </summary> [iOSVersion(8)] [Export("concurrent")] public bool Concurrent { get; private set; } /// <summary> /// A Boolean value indicating whether the operation executes its task asynchronously. (read-only) /// </summary> [iOSVersion(7)] [Export("asynchronous")] public bool Asynchronous { get; private set; } /// <summary> /// A Boolean value indicating whether the operation can be performed now. (read-only) /// </summary> [iOSVersion(8)] [Export("ready")] public bool Ready { get; private set; } /// <summary> /// The name of the operation. /// </summary> [iOSVersion(8)] [Export("name")] public string Name { get; set; } /// <summary> /// An array of the operation objects that must finish executing before the current object can begin executing. (read-only) /// </summary> [iOSVersion(2)] [Export("dependencies")] public AnyObject[] Dependencies { get; private set; } /// <summary> /// The relative amount of importance for granting system resources to the operation. /// </summary> [iOSVersion(8)] [Export("qualityOfService")] public NSQualityOfService QualityOfService { get; set; } /// <summary> /// The thread priority to use when executing the operation /// </summary> [iOSVersion(4)] [Export("threadPriority")] public Double ThreadPriority { get; set; } /// <summary> /// The execution priority of the operation in an operation queue. /// </summary> [iOSVersion(2)] [Export("queuePriority")] public NSOperationQueuePriority QueuePriority { get; set; } } /// <summary> /// These constants let you prioritize the order in which operations execute. /// </summary> [iOSVersion(2)] public enum NSOperationQueuePriority { /// <summary> /// Operations receive very low priority for execution. /// </summary> [iOSVersion(2)] VeryLow, /// <summary> /// Operations receive low priority for execution. /// </summary> [iOSVersion(2)] Low, /// <summary> /// Operations receive the normal priority for execution. /// </summary> [iOSVersion(2)] Normal, /// <summary> /// Operations receive high priority for execution. /// </summary> [iOSVersion(2)] High, /// <summary> /// Operations receive very high priority for execution. /// </summary> [iOSVersion(2)] VeryHigh, } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace Foundation { /// <summary> /// The NSOperation class is an abstract class you use to encapsulate the code and data associated with a single task. Because it is abstract, you do not use this class directly but instead subclass or use one of the system-defined subclasses (NSInvocationOperation or NSBlockOperation) to perform the actual task. Despite being abstract, the base implementation of NSOperation does include significant logic to coordinate the safe execution of your task. The presence of this built-in logic allows you to focus on the actual implementation of your task, rather than on the glue code needed to ensure it works correctly with other system objects. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/NSOperation_class/index.html#//apple_ref/occ/cl/NSOperation"/> [iOSVersion(2)] public class NSOperation : NSObject//, AnyObject, NSObjectProtocol { public NSOperation() { } /// <summary> /// Begins the execution of the operation. /// </summary> [iOSVersion(2)] [Export("start")] public virtual void Start() { } /// <summary> /// Performs the receiver’s non-concurrent task. /// </summary> [iOSVersion(2)] [Export("main")] public virtual void Main() { } /// <summary> /// Advises the operation object that it should stop executing its task. /// </summary> [iOSVersion(2)] [Export("cancel")] public virtual void Cancel() { } /// <summary> /// Makes the receiver dependent on the completion of the specified operation. /// </summary> /// <param name="operation">The operation on which the receiver should depend. The same dependency should not be added more than once to the receiver, and the results of doing so are undefined.</param> [iOSVersion(2)] [Export("addDependency")] public virtual void AddDependency(NSOperation operation) { } /// <summary> /// Removes the receiver’s dependence on the specified operation. /// </summary> /// <param name="operation">The dependent operation to be removed from the receiver.</param> [iOSVersion(2)] [Export("removeDependency")] public virtual void RemoveDependency(NSOperation operation) { } /// <summary> /// Blocks execution of the current thread until the operation object finishes its task. /// </summary> [iOSVersion(4)] [Export("waitUntilFinished")] public virtual void WaitUntilFinished() { } /// <summary> /// The block to execute after the operation’s main task is completed. ///// </summary> //[iOSVersion(4)] //[Export("completionBlock")] //public Optional<Action> CompletionBlock { get; set; } /// <summary> /// A Boolean value indicating whether the operation has been cancelled (read-only) /// </summary> [iOSVersion(8)] [Export("cancelled")] public bool Cancelled { get; private set; } /// <summary> /// A Boolean value indicating whether the operation is currently executing. (read-only) /// </summary> [iOSVersion(8)] [Export("executing")] public bool Executing { get; private set; } /// <summary> /// A Boolean value indicating whether the operation has finished executing its task. (read-only) /// </summary> [iOSVersion(8)] [Export("finished")] public bool Finished { get; private set; } /// <summary> /// A Boolean value indicating whether the operation executes its task asynchronously. (read-only) /// </summary> [iOSVersion(8)] [Export("concurrent")] public bool Concurrent { get; private set; } /// <summary> /// A Boolean value indicating whether the operation executes its task asynchronously. (read-only) /// </summary> [iOSVersion(7)] [Export("asynchronous")] public bool Asynchronous { get; private set; } /// <summary> /// A Boolean value indicating whether the operation can be performed now. (read-only) /// </summary> [iOSVersion(8)] [Export("ready")] public bool Ready { get; private set; } /// <summary> /// The name of the operation. /// </summary> [iOSVersion(8)] [Export("name")] public string Name { get; set; } /// <summary> /// An array of the operation objects that must finish executing before the current object can begin executing. (read-only) /// </summary> [iOSVersion(2)] [Export("dependencies")] public AnyObject[] Dependencies { get; private set; } /// <summary> /// The relative amount of importance for granting system resources to the operation. /// </summary> [iOSVersion(8)] [Export("qualityOfService")] public NSQualityOfService QualityOfService { get; set; } /// <summary> /// The thread priority to use when executing the operation /// </summary> [iOSVersion(4)] [Export("threadPriority")] public Double ThreadPriority { get; set; } /// <summary> /// The execution priority of the operation in an operation queue. /// </summary> [iOSVersion(2)] [Export("queuePriority")] public NSOperationQueuePriority QueuePriority { get; set; } } /// <summary> /// These constants let you prioritize the order in which operations execute. /// </summary> [iOSVersion(2)] public enum NSOperationQueuePriority { /// <summary> /// Operations receive very low priority for execution. /// </summary> [iOSVersion(2)] VeryLow, /// <summary> /// Operations receive low priority for execution. /// </summary> [iOSVersion(2)] Low, /// <summary> /// Operations receive the normal priority for execution. /// </summary> [iOSVersion(2)] Normal, /// <summary> /// Operations receive high priority for execution. /// </summary> [iOSVersion(2)] High, /// <summary> /// Operations receive very high priority for execution. /// </summary> [iOSVersion(2)] VeryHigh, } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/Delegates/UIApplicationDelegate.cs b/CocoaSharp/UIKit/Protocols/Delegates/UIApplicationDelegate.cs
index 92d222af..959ea567 100644
--- a/CocoaSharp/UIKit/Protocols/Delegates/UIApplicationDelegate.cs
+++ b/CocoaSharp/UIKit/Protocols/Delegates/UIApplicationDelegate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The UIApplicationDelegate protocol defines methods that are called by the singleton UIApplication object in response to important events in the lifetime of your app. The app delegate works alongside the app object to ensure your app interacts properly with the system and with other apps. Specifically, the methods of the app delegate give you a chance to respond to important changes. For example, you use the methods of the app delegate to respond to state transitions, such as when your app moves from foreground to background execution, and to respond to incoming notifications. In many cases, the methods of the app delegate are the only way to receive these important notifications. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIApplicationDelegate_Protocol/index.html#//apple_ref/occ/intf/UIApplicationDelegate"/> [iOSVersion(2)] public interface UIApplicationDelegate//: NSObjectProtocol { /// <summary> /// Tells the delegate that the launch process has begun but that state restoration has not yet occurred. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="willFinishLaunchingWithOptions">A dictionary indicating the reason the app was launched (if any). The contents of this dictionary may be empty in situations where the user launched the app directly. For information about the possible keys in this dictionary and how to handle them, see Launch Options Keys.</param> //[iOSVersion(6)] //[Export("application")] //[Optional] //bool Application(UIApplication application, Dictionary<NSObject, AnyObject> willFinishLaunchingWithOptions); /// <summary> /// Tells the delegate that the launch process is almost done and the app is almost ready to run. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="didFinishLaunchingWithOptions">A dictionary indicating the reason the app was launched (if any). The contents of this dictionary may be empty in situations where the user launched the app directly. For information about the possible keys in this dictionary and how to handle them, see Launch Options Keys.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(3)] //[Export("application")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //bool Application(UIApplication application, Dictionary<NSObject, AnyObject> didFinishLaunchingWithOptions, bool NAME_YOUR_PARAMS = false); /// <summary> /// Tells the delegate that the app has become active. /// </summary> /// <param name="application">The singleton app object.</param> //[iOSVersion(2)] //[Export("applicationDidBecomeActive")] //[Optional] //void ApplicationDidBecomeActive(UIApplication application); /// <summary> /// Tells the delegate that the app is about to become inactive. /// </summary> /// <param name="application">The singleton app object.</param> //[iOSVersion(2)] //[Export("applicationWillResignActive")] //[Optional] //void ApplicationWillResignActive(UIApplication application); /// <summary> /// Tells the delegate that the app is now in the background. /// </summary> /// <param name="application">The singleton app object.</param> //[iOSVersion(4)] //[Export("applicationDidEnterBackground")] //[Optional] //void ApplicationDidEnterBackground(UIApplication application); /// <summary> /// Tells the delegate that the app is about to enter the foreground. /// </summary> /// <param name="application">The singleton app object.</param> //[iOSVersion(4)] //[Export("applicationWillEnterForeground")] //[Optional] //void ApplicationWillEnterForeground(UIApplication application); /// <summary> /// Tells the delegate when the app is about to terminate. /// </summary> /// <param name="application">The singleton app object.</param> //[iOSVersion(2)] //[Export("applicationWillTerminate")] //[Optional] //void ApplicationWillTerminate(UIApplication application); /// <summary> /// Tells the app that it can begin a fetch operation if it has data to download. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="performFetchWithCompletionHandler">The block to execute when the download operation is complete. When calling this block, pass in the fetch result value that best describes the results of your download operation. You must call this handler and should do so as soon as possible. For a list of possible values, see the UIBackgroundFetchResult type.</param> //[iOSVersion(7)] //[Export("application")] //[Optional] //void Application(UIApplication application, Action<UIBackgroundFetchResult> performFetchWithCompletionHandler); /// <summary> /// Tells the delegate that events related to a URL session are waiting to be processed. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="handleEventsForBackgroundURLSession">The identifier of the URL session requiring attention. If your app was just launched, you can use this identifier to create a new NSURLSession object that can receive the events.</param> /// <param name="completionHandler">The completion handler to call when you finish processing the events. Calling this completion handler lets the system know that your app’s user interface is updated and a new snapshot can be taken.</param> //[iOSVersion(7)] //[Export("application")] //[Optional] //void Application(UIApplication application, string handleEventsForBackgroundURLSession, Action completionHandler); /// <summary> /// Tells the delegate that the app successfully registered with Apple Push Service (APS). /// </summary> /// <param name="application">The app object that initiated the remote-notification registration process.</param> /// <param name="didRegisterForRemoteNotificationsWithDeviceToken">A token that identifies the device to APS. The token is an opaque data type because that is the form that the provider needs to submit to the APS servers when it sends a notification to a device. The APS servers require a binary format for performance reasons. /// The size of a device token is 32 bytes. /// Note that the device token is different from the uniqueIdentifier property of UIDevice because, for security and privacy reasons, it must change when the device is wiped.</param> //[iOSVersion(3)] //[Export("application")] //[Optional] //void Application(UIApplication application, NSData didRegisterForRemoteNotificationsWithDeviceToken); /// <summary> /// Sent to the delegate when Apple Push Service cannot successfully complete the registration process. /// </summary> /// <param name="application">The app object that initiated the remote-notification registration process.</param> /// <param name="didFailToRegisterForRemoteNotificationsWithError">An NSError object that encapsulates information why registration did not succeed. The app can choose to display this information to the user.</param> //[iOSVersion(3)] //[Export("application")] //[Optional] //void Application(UIApplication application, NSError didFailToRegisterForRemoteNotificationsWithError); /// <summary> /// Tells the app that a push notification arrived that indicates there is data to be fetched. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="didReceiveRemoteNotification">A dictionary that contains information related to the remote notification, potentially including a badge number for the app icon, an alert sound, an alert message to display to the user, a notification identifier, and custom data. The provider originates it as a JSON-defined dictionary that iOS converts to an NSDictionary object; the dictionary may contain only property-list objects plus NSNull. For more information about the contents of the push notification dictionary, see Local and Push Notification Programming Guide.</param> /// <param name="fetchCompletionHandler">The block to execute when the download operation is complete. When calling this block, pass in the fetch result value that best describes the results of your download operation. You must call this handler and should do so as soon as possible. For a list of possible values, see the UIBackgroundFetchResult type.</param> //[iOSVersion(7)] //[Export("application")] //[Optional] //void Application(UIApplication application, Dictionary<NSObject, AnyObject> didReceiveRemoteNotification, Action<UIBackgroundFetchResult> fetchCompletionHandler); /// <summary> /// Tells the app delegate to perform the custom action specified by a push notification. /// </summary> /// <param name="application">The app object that received the remote notification.</param> /// <param name="handleActionWithIdentifier">The identifier associated with the custom action.</param> /// <param name="forRemoteNotification">A dictionary that contains information related to the remote notification. This dictionary originates from the provider as a JSON-defined dictionary, which iOS converts to an NSDictionary object before calling this method. The contents of the dictionary are the push notification payload, which consists only of property-list objects plus NSNull. For more information about the contents of the push notification dictionary, see Local and Push Notification Programming Guide.</param> /// <param name="completionHandler">The block to execute when you are finished performing the specified action. You must call this block at the end of your method.</param> //[iOSVersion(8)] //[Export("application")] //[Optional] //void Application(UIApplication application, Optional<string> handleActionWithIdentifier, Dictionary<NSObject, AnyObject> forRemoteNotification, Action completionHandler); /// <summary> /// Tells the delegate that the running app received a remote notification. /// </summary> /// <param name="application">The app object that received the remote notification.</param> /// <param name="didReceiveRemoteNotification">A dictionary that contains information related to the remote notification, potentially including a badge number for the app icon, an alert sound, an alert message to display to the user, a notification identifier, and custom data. The provider originates it as a JSON-defined dictionary that iOS converts to an NSDictionary object; the dictionary may contain only property-list objects plus NSNull.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(3)] //[Export("application")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void Application(UIApplication application, Dictionary<NSObject, AnyObject> didReceiveRemoteNotification, int NAME_YOUR_PARAMS = 0); /// <summary> /// Sent to the delegate when a running app receives a local notification. /// </summary> /// <param name="application">The app object that received the local notification.</param> /// <param name="didReceiveLocalNotification">A local notification that encapsulates details about the notification, potentially including custom data.</param> //[iOSVersion(4)] //[Export("application")] //[Optional] //void Application(UIApplication application, UILocalNotification didReceiveLocalNotification); /// <summary> /// Tells the delegate that the user selected a custom action from the alert panel of a local notification. /// </summary> /// <param name="application">The app object that received the local notification.</param> /// <param name="handleActionWithIdentifier">The identifier associated with the custom action. This string corresponds to the identifier from the UILocalNotificationAction object that was used to configure the action in the local notification.</param> /// <param name="forLocalNotification">The local notification object that was triggered.</param> /// <param name="completionHandler">A block to call when you are finished performing the action.</param> //[iOSVersion(8)] //[Export("application")] //[Optional] //void Application(UIApplication application, Optional<string> handleActionWithIdentifier, UILocalNotification forLocalNotification, Action completionHandler); /// <summary> /// Tells the delegate what types of notifications may be used to get the user’s attention. /// </summary> /// <param name="application">The app object that registered the user notification settings.</param> /// <param name="didRegisterUserNotificationSettings">The user notification settings that are available to your app. The settings in this object may be different than the ones you originally requested.</param> //[iOSVersion(8)] //[Export("application")] //[Optional] //void Application(UIApplication application, UIUserNotificationSettings didRegisterUserNotificationSettings); /// <summary> /// Tells the delegate when the app receives a memory warning from the system. /// </summary> /// <param name="application">The singleton app object.</param> //[iOSVersion(2)] //[Export("applicationDidReceiveMemoryWarning")] //[Optional] //void ApplicationDidReceiveMemoryWarning(UIApplication application); /// <summary> /// Tells the delegate when there is a significant change in the time. /// </summary> /// <param name="application">The singleton app object.</param> //[iOSVersion(2)] //[Export("applicationSignificantTimeChange")] //[Optional] //void ApplicationSignificantTimeChange(UIApplication application); /// <summary> /// Asks the delegate whether the app’s state should be preserved. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="shouldSaveApplicationState">The keyed archiver into which you can put high-level state information.</param> //[iOSVersion(6)] //[Export("application")] //[Optional] //bool Application(UIApplication application, NSCoder shouldSaveApplicationState); /// <summary> /// Asks the delegate whether the app’s saved state information should be restored. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="shouldRestoreApplicationState">The keyed archiver containing the app’s previously saved state information.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(6)] //[Export("application")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //bool Application(UIApplication application, NSCoder shouldRestoreApplicationState, bool NAME_YOUR_PARAMS = false); /// <summary> /// Asks the delegate to provide the specified view controller. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="viewControllerWithRestorationIdentifierPath">An array of NSString objects corresponding to the restoration identifiers of the desired view controller and all of its ancestors in the view controller hierarchy. The last value in the array is the restoration identifier of the desired view controller. Earlier entries represent the restoration identifiers of its ancestors.</param> /// <param name="coder">The keyed archiver containing the app’s saved state information.</param> //[iOSVersion(6)] //[Export("application")] //[Optional] //Optional<UIViewController> Application(UIApplication application, AnyObject[] viewControllerWithRestorationIdentifierPath, NSCoder coder); /// <summary> /// Tells your delegate to save any high-level state information at the beginning of the state preservation process. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="willEncodeRestorableStateWithCoder">The keyed archiver in which to write any state information.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(6)] //[Export("application")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void Application(UIApplication application, NSCoder willEncodeRestorableStateWithCoder, int NAME_YOUR_PARAMS = 0); /// <summary> /// Tells your delegate to restore any high-level state information as part of the state restoration process. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="didDecodeRestorableStateWithCoder">The keyed archiver containing the app’s previously saved state information.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(6)] //[Export("application")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void Application(UIApplication application, NSCoder didDecodeRestorableStateWithCoder, string NAME_YOUR_PARAMS = ""); /// <summary> /// Asks the delegate to open a resource identified by URL. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="openURL">The URL resource to open. This resource can be a network resource or a file. For information about the Apple-registered URL schemes, see Apple URL Scheme Reference.</param> /// <param name="sourceApplication">The bundle ID of the app that is requesting your app to open the URL (url).</param> /// <param name="annotation">A property list object supplied by the source app to communicate information to the receiving app.</param> //[iOSVersion(4.2)] //[Export("application")] //[Optional] //bool Application(UIApplication application, NSURL openURL, string sourceApplication, Optional<AnyObject> annotation); /// <summary> /// Tells the delegate that the user wants to continue an activity whose data might not yet be available. /// </summary> /// <param name="application">The shared app object.</param> /// <param name="willContinueUserActivityWithType">The requested activity type.</param> //[iOSVersion(8)] //[Export("application")] //[Optional] //bool Application(UIApplication application, string willContinueUserActivityWithType); /// <summary> /// Tells the delegate that the data for continuing an activity is available. /// </summary> /// <param name="application">The shared app object.</param> /// <param name="continueUserActivity">The activity object containing the data associated with the task the user was performing. Use the data in this object to recreate what the user was doing.</param> /// <param name="restorationHandler">A block to execute if your app creates objects to perform the task. Calling this block is optional and you can copy this block and call it at a later time. When calling a saved copy of the block, you must call it from the app’s main thread. This block has no return value and takes the following parameter: /// restorableObjects /// An array of UIResponder objects representing objects you created or fetched in order to perform the operation. The system calls the restoreUserActivityState: method of each object in the array to give it a chance to perform the operation.</param> //[iOSVersion(8)] //[Export("application")] //[Optional] //bool Application(UIApplication application, NSUserActivity continueUserActivity, Action<AnyObject[]> restorationHandler); /// <summary> /// Tells the delegate that the activity was updated. (required) /// </summary> /// <param name="application">The shared app object.</param> /// <param name="didUpdateUserActivity">The activity object containing the data associated with the task the user was performing.</param> //[iOSVersion(8)] //[Export("application")] //[Optional] //void Application(UIApplication application, NSUserActivity didUpdateUserActivity); /// <summary> /// Tells the delegate that the activity could not be continued. /// </summary> /// <param name="application">The shared app object.</param> /// <param name="didFailToContinueUserActivityWithType">The activity type that was attempted.</param> /// <param name="error">An error object indicating the reason for the failure.</param> //[iOSVersion(8)] //[Export("application")] //[Optional] //void Application(UIApplication application, string didFailToContinueUserActivityWithType, NSError error); /// <summary> /// Asks the delegate to grant permission to use app extensions that are based on a specified extension point identifier. (required) /// </summary> /// <param name="application">The shared app object.</param> /// <param name="shouldAllowExtensionPointIdentifier">A constant identifying an extension point.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(8)] //[Export("application")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //bool Application(UIApplication application, string shouldAllowExtensionPointIdentifier, bool NAME_YOUR_PARAMS = false); /// <summary> /// Tells the delegate when the interface orientation of the status bar is about to change. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="willChangeStatusBarOrientation">A constant that indicates the new orientation of the app’s user interface; see Monitoring App State Changes for details.</param> /// <param name="duration">The duration of the animation to the new orientation, in seconds.</param> //[iOSVersion(2)] //[Export("application")] //[Optional] //void Application(UIApplication application, UIInterfaceOrientation willChangeStatusBarOrientation, NSTimeInterval duration); /// <summary> /// Tells the delegate when the interface orientation of the status bar has changed. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="didChangeStatusBarOrientation">A constant that indicates the previous orientation of the app’s user interface; see Monitoring App State Changes for details.</param> //[iOSVersion(2)] //[Export("application")] //[Optional] //void Application(UIApplication application, UIInterfaceOrientation didChangeStatusBarOrientation); /// <summary> /// Tells the delegate when the frame of the status bar is about to change. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="willChangeStatusBarFrame">The changed frame of the status bar, in screen coordinates.</param> //[iOSVersion(2)] //[Export("application")] //[Optional] //void Application(UIApplication application, CGRect willChangeStatusBarFrame); /// <summary> /// Tells the delegate when the frame of the status bar has changed. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="didChangeStatusBarFrame">The previous frame of the status bar, in screen coordinates.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("application")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void Application(UIApplication application, CGRect didChangeStatusBarFrame, bool NAME_YOUR_PARAMS = false); /// <summary> /// Tells the delegate that the protected files are about to become unavailable. /// </summary> /// <param name="application">The singleton app object.</param> //[iOSVersion(4)] //[Export("applicationProtectedDataWillBecomeUnavailable")] //[Optional] //void ApplicationProtectedDataWillBecomeUnavailable(UIApplication application); /// <summary> /// Tells the delegate that protected files are available now. /// </summary> /// <param name="application">The singleton app object.</param> //[iOSVersion(4)] //[Export("applicationProtectedDataDidBecomeAvailable")] //[Optional] //void ApplicationProtectedDataDidBecomeAvailable(UIApplication application); /// <summary> /// Asks the delegate for the interface orientations to use for the view controllers in the specified window. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="supportedInterfaceOrientationsForWindow">The window whose interface orientations you want to retrieve.</param> //[iOSVersion(6)] //[Export("application")] //[Optional] //int Application(UIApplication application, UIWindow supportedInterfaceOrientationsForWindow); /// <summary> /// Tells the delegate when the app has finished launching. /// </summary> /// <param name="application">The singleton app object.</param> //[iOSVersion(2)] //[Export("applicationDidFinishLaunching")] //[Optional] //void ApplicationDidFinishLaunching(UIApplication application); /// <summary> /// Asks the delegate to open a resource identified by URL. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="handleOpenURL">A object representing a URL (Universal Resource Locator). See the appendix of App Programming Guide for iOS for Apple-registered schemes for URLs.</param> //[iOSVersion(2)] //[Export("application")] //[Optional] //bool Application(UIApplication application, NSURL handleOpenURL); /// <summary> /// The window to use when presenting a storyboard. /// </summary> [iOSVersion(5)] [Export("window")] Optional<UIWindow> Window { get; set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The UIApplicationDelegate protocol defines methods that are called by the singleton UIApplication object in response to important events in the lifetime of your app. The app delegate works alongside the app object to ensure your app interacts properly with the system and with other apps. Specifically, the methods of the app delegate give you a chance to respond to important changes. For example, you use the methods of the app delegate to respond to state transitions, such as when your app moves from foreground to background execution, and to respond to incoming notifications. In many cases, the methods of the app delegate are the only way to receive these important notifications. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIApplicationDelegate_Protocol/index.html#//apple_ref/occ/intf/UIApplicationDelegate"/> [iOSVersion(2)] public interface UIApplicationDelegate//: NSObjectProtocol { /// <summary> /// Tells the delegate that the launch process has begun but that state restoration has not yet occurred. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="willFinishLaunchingWithOptions">A dictionary indicating the reason the app was launched (if any). The contents of this dictionary may be empty in situations where the user launched the app directly. For information about the possible keys in this dictionary and how to handle them, see Launch Options Keys.</param> //[iOSVersion(6)] //[Export("application")] //[Optional] //bool Application(UIApplication application, Dictionary<NSObject, AnyObject> willFinishLaunchingWithOptions); /// <summary> /// Tells the delegate that the launch process is almost done and the app is almost ready to run. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="didFinishLaunchingWithOptions">A dictionary indicating the reason the app was launched (if any). The contents of this dictionary may be empty in situations where the user launched the app directly. For information about the possible keys in this dictionary and how to handle them, see Launch Options Keys.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(3)] //[Export("application")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //bool Application(UIApplication application, Dictionary<NSObject, AnyObject> didFinishLaunchingWithOptions, bool NAME_YOUR_PARAMS = false); /// <summary> /// Tells the delegate that the app has become active. /// </summary> /// <param name="application">The singleton app object.</param> //[iOSVersion(2)] //[Export("applicationDidBecomeActive")] //[Optional] //void ApplicationDidBecomeActive(UIApplication application); /// <summary> /// Tells the delegate that the app is about to become inactive. /// </summary> /// <param name="application">The singleton app object.</param> //[iOSVersion(2)] //[Export("applicationWillResignActive")] //[Optional] //void ApplicationWillResignActive(UIApplication application); /// <summary> /// Tells the delegate that the app is now in the background. /// </summary> /// <param name="application">The singleton app object.</param> //[iOSVersion(4)] //[Export("applicationDidEnterBackground")] //[Optional] //void ApplicationDidEnterBackground(UIApplication application); /// <summary> /// Tells the delegate that the app is about to enter the foreground. /// </summary> /// <param name="application">The singleton app object.</param> //[iOSVersion(4)] //[Export("applicationWillEnterForeground")] //[Optional] //void ApplicationWillEnterForeground(UIApplication application); /// <summary> /// Tells the delegate when the app is about to terminate. /// </summary> /// <param name="application">The singleton app object.</param> //[iOSVersion(2)] //[Export("applicationWillTerminate")] //[Optional] //void ApplicationWillTerminate(UIApplication application); /// <summary> /// Tells the app that it can begin a fetch operation if it has data to download. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="performFetchWithCompletionHandler">The block to execute when the download operation is complete. When calling this block, pass in the fetch result value that best describes the results of your download operation. You must call this handler and should do so as soon as possible. For a list of possible values, see the UIBackgroundFetchResult type.</param> //[iOSVersion(7)] //[Export("application")] //[Optional] //void Application(UIApplication application, Action<UIBackgroundFetchResult> performFetchWithCompletionHandler); /// <summary> /// Tells the delegate that events related to a URL session are waiting to be processed. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="handleEventsForBackgroundURLSession">The identifier of the URL session requiring attention. If your app was just launched, you can use this identifier to create a new NSURLSession object that can receive the events.</param> /// <param name="completionHandler">The completion handler to call when you finish processing the events. Calling this completion handler lets the system know that your app’s user interface is updated and a new snapshot can be taken.</param> //[iOSVersion(7)] //[Export("application")] //[Optional] //void Application(UIApplication application, string handleEventsForBackgroundURLSession, Action completionHandler); /// <summary> /// Tells the delegate that the app successfully registered with Apple Push Service (APS). /// </summary> /// <param name="application">The app object that initiated the remote-notification registration process.</param> /// <param name="didRegisterForRemoteNotificationsWithDeviceToken">A token that identifies the device to APS. The token is an opaque data type because that is the form that the provider needs to submit to the APS servers when it sends a notification to a device. The APS servers require a binary format for performance reasons. /// The size of a device token is 32 bytes. /// Note that the device token is different from the uniqueIdentifier property of UIDevice because, for security and privacy reasons, it must change when the device is wiped.</param> //[iOSVersion(3)] //[Export("application")] //[Optional] //void Application(UIApplication application, NSData didRegisterForRemoteNotificationsWithDeviceToken); /// <summary> /// Sent to the delegate when Apple Push Service cannot successfully complete the registration process. /// </summary> /// <param name="application">The app object that initiated the remote-notification registration process.</param> /// <param name="didFailToRegisterForRemoteNotificationsWithError">An NSError object that encapsulates information why registration did not succeed. The app can choose to display this information to the user.</param> //[iOSVersion(3)] //[Export("application")] //[Optional] //void Application(UIApplication application, NSError didFailToRegisterForRemoteNotificationsWithError); /// <summary> /// Tells the app that a push notification arrived that indicates there is data to be fetched. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="didReceiveRemoteNotification">A dictionary that contains information related to the remote notification, potentially including a badge number for the app icon, an alert sound, an alert message to display to the user, a notification identifier, and custom data. The provider originates it as a JSON-defined dictionary that iOS converts to an NSDictionary object; the dictionary may contain only property-list objects plus NSNull. For more information about the contents of the push notification dictionary, see Local and Push Notification Programming Guide.</param> /// <param name="fetchCompletionHandler">The block to execute when the download operation is complete. When calling this block, pass in the fetch result value that best describes the results of your download operation. You must call this handler and should do so as soon as possible. For a list of possible values, see the UIBackgroundFetchResult type.</param> //[iOSVersion(7)] //[Export("application")] //[Optional] //void Application(UIApplication application, Dictionary<NSObject, AnyObject> didReceiveRemoteNotification, Action<UIBackgroundFetchResult> fetchCompletionHandler); /// <summary> /// Tells the app delegate to perform the custom action specified by a push notification. /// </summary> /// <param name="application">The app object that received the remote notification.</param> /// <param name="handleActionWithIdentifier">The identifier associated with the custom action.</param> /// <param name="forRemoteNotification">A dictionary that contains information related to the remote notification. This dictionary originates from the provider as a JSON-defined dictionary, which iOS converts to an NSDictionary object before calling this method. The contents of the dictionary are the push notification payload, which consists only of property-list objects plus NSNull. For more information about the contents of the push notification dictionary, see Local and Push Notification Programming Guide.</param> /// <param name="completionHandler">The block to execute when you are finished performing the specified action. You must call this block at the end of your method.</param> //[iOSVersion(8)] //[Export("application")] //[Optional] //void Application(UIApplication application, Optional<string> handleActionWithIdentifier, Dictionary<NSObject, AnyObject> forRemoteNotification, Action completionHandler); /// <summary> /// Tells the delegate that the running app received a remote notification. /// </summary> /// <param name="application">The app object that received the remote notification.</param> /// <param name="didReceiveRemoteNotification">A dictionary that contains information related to the remote notification, potentially including a badge number for the app icon, an alert sound, an alert message to display to the user, a notification identifier, and custom data. The provider originates it as a JSON-defined dictionary that iOS converts to an NSDictionary object; the dictionary may contain only property-list objects plus NSNull.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(3)] //[Export("application")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void Application(UIApplication application, Dictionary<NSObject, AnyObject> didReceiveRemoteNotification, int NAME_YOUR_PARAMS = 0); /// <summary> /// Sent to the delegate when a running app receives a local notification. /// </summary> /// <param name="application">The app object that received the local notification.</param> /// <param name="didReceiveLocalNotification">A local notification that encapsulates details about the notification, potentially including custom data.</param> //[iOSVersion(4)] //[Export("application")] //[Optional] //void Application(UIApplication application, UILocalNotification didReceiveLocalNotification); /// <summary> /// Tells the delegate that the user selected a custom action from the alert panel of a local notification. /// </summary> /// <param name="application">The app object that received the local notification.</param> /// <param name="handleActionWithIdentifier">The identifier associated with the custom action. This string corresponds to the identifier from the UILocalNotificationAction object that was used to configure the action in the local notification.</param> /// <param name="forLocalNotification">The local notification object that was triggered.</param> /// <param name="completionHandler">A block to call when you are finished performing the action.</param> //[iOSVersion(8)] //[Export("application")] //[Optional] //void Application(UIApplication application, Optional<string> handleActionWithIdentifier, UILocalNotification forLocalNotification, Action completionHandler); /// <summary> /// Tells the delegate what types of notifications may be used to get the user’s attention. /// </summary> /// <param name="application">The app object that registered the user notification settings.</param> /// <param name="didRegisterUserNotificationSettings">The user notification settings that are available to your app. The settings in this object may be different than the ones you originally requested.</param> //[iOSVersion(8)] //[Export("application")] //[Optional] //void Application(UIApplication application, UIUserNotificationSettings didRegisterUserNotificationSettings); /// <summary> /// Tells the delegate when the app receives a memory warning from the system. /// </summary> /// <param name="application">The singleton app object.</param> //[iOSVersion(2)] //[Export("applicationDidReceiveMemoryWarning")] //[Optional] //void ApplicationDidReceiveMemoryWarning(UIApplication application); /// <summary> /// Tells the delegate when there is a significant change in the time. /// </summary> /// <param name="application">The singleton app object.</param> //[iOSVersion(2)] //[Export("applicationSignificantTimeChange")] //[Optional] //void ApplicationSignificantTimeChange(UIApplication application); /// <summary> /// Asks the delegate whether the app’s state should be preserved. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="shouldSaveApplicationState">The keyed archiver into which you can put high-level state information.</param> //[iOSVersion(6)] //[Export("application")] //[Optional] //bool Application(UIApplication application, NSCoder shouldSaveApplicationState); /// <summary> /// Asks the delegate whether the app’s saved state information should be restored. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="shouldRestoreApplicationState">The keyed archiver containing the app’s previously saved state information.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(6)] //[Export("application")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //bool Application(UIApplication application, NSCoder shouldRestoreApplicationState, bool NAME_YOUR_PARAMS = false); /// <summary> /// Asks the delegate to provide the specified view controller. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="viewControllerWithRestorationIdentifierPath">An array of NSString objects corresponding to the restoration identifiers of the desired view controller and all of its ancestors in the view controller hierarchy. The last value in the array is the restoration identifier of the desired view controller. Earlier entries represent the restoration identifiers of its ancestors.</param> /// <param name="coder">The keyed archiver containing the app’s saved state information.</param> //[iOSVersion(6)] //[Export("application")] //[Optional] //Optional<UIViewController> Application(UIApplication application, AnyObject[] viewControllerWithRestorationIdentifierPath, NSCoder coder); /// <summary> /// Tells your delegate to save any high-level state information at the beginning of the state preservation process. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="willEncodeRestorableStateWithCoder">The keyed archiver in which to write any state information.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(6)] //[Export("application")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void Application(UIApplication application, NSCoder willEncodeRestorableStateWithCoder, int NAME_YOUR_PARAMS = 0); /// <summary> /// Tells your delegate to restore any high-level state information as part of the state restoration process. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="didDecodeRestorableStateWithCoder">The keyed archiver containing the app’s previously saved state information.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(6)] //[Export("application")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void Application(UIApplication application, NSCoder didDecodeRestorableStateWithCoder, string NAME_YOUR_PARAMS = ""); /// <summary> /// Asks the delegate to open a resource identified by URL. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="openURL">The URL resource to open. This resource can be a network resource or a file. For information about the Apple-registered URL schemes, see Apple URL Scheme Reference.</param> /// <param name="sourceApplication">The bundle ID of the app that is requesting your app to open the URL (url).</param> /// <param name="annotation">A property list object supplied by the source app to communicate information to the receiving app.</param> //[iOSVersion(4.2)] //[Export("application")] //[Optional] //bool Application(UIApplication application, NSURL openURL, string sourceApplication, Optional<AnyObject> annotation); /// <summary> /// Tells the delegate that the user wants to continue an activity whose data might not yet be available. /// </summary> /// <param name="application">The shared app object.</param> /// <param name="willContinueUserActivityWithType">The requested activity type.</param> //[iOSVersion(8)] //[Export("application")] //[Optional] //bool Application(UIApplication application, string willContinueUserActivityWithType); /// <summary> /// Tells the delegate that the data for continuing an activity is available. /// </summary> /// <param name="application">The shared app object.</param> /// <param name="continueUserActivity">The activity object containing the data associated with the task the user was performing. Use the data in this object to recreate what the user was doing.</param> /// <param name="restorationHandler">A block to execute if your app creates objects to perform the task. Calling this block is optional and you can copy this block and call it at a later time. When calling a saved copy of the block, you must call it from the app’s main thread. This block has no return value and takes the following parameter: /// restorableObjects /// An array of UIResponder objects representing objects you created or fetched in order to perform the operation. The system calls the restoreUserActivityState: method of each object in the array to give it a chance to perform the operation.</param> //[iOSVersion(8)] //[Export("application")] //[Optional] //bool Application(UIApplication application, NSUserActivity continueUserActivity, Action<AnyObject[]> restorationHandler); /// <summary> /// Tells the delegate that the activity was updated. (required) /// </summary> /// <param name="application">The shared app object.</param> /// <param name="didUpdateUserActivity">The activity object containing the data associated with the task the user was performing.</param> //[iOSVersion(8)] //[Export("application")] //[Optional] //void Application(UIApplication application, NSUserActivity didUpdateUserActivity); /// <summary> /// Tells the delegate that the activity could not be continued. /// </summary> /// <param name="application">The shared app object.</param> /// <param name="didFailToContinueUserActivityWithType">The activity type that was attempted.</param> /// <param name="error">An error object indicating the reason for the failure.</param> //[iOSVersion(8)] //[Export("application")] //[Optional] //void Application(UIApplication application, string didFailToContinueUserActivityWithType, NSError error); /// <summary> /// Asks the delegate to grant permission to use app extensions that are based on a specified extension point identifier. (required) /// </summary> /// <param name="application">The shared app object.</param> /// <param name="shouldAllowExtensionPointIdentifier">A constant identifying an extension point.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(8)] //[Export("application")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //bool Application(UIApplication application, string shouldAllowExtensionPointIdentifier, bool NAME_YOUR_PARAMS = false); /// <summary> /// Tells the delegate when the interface orientation of the status bar is about to change. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="willChangeStatusBarOrientation">A constant that indicates the new orientation of the app’s user interface; see Monitoring App State Changes for details.</param> /// <param name="duration">The duration of the animation to the new orientation, in seconds.</param> //[iOSVersion(2)] //[Export("application")] //[Optional] //void Application(UIApplication application, UIInterfaceOrientation willChangeStatusBarOrientation, NSTimeInterval duration); /// <summary> /// Tells the delegate when the interface orientation of the status bar has changed. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="didChangeStatusBarOrientation">A constant that indicates the previous orientation of the app’s user interface; see Monitoring App State Changes for details.</param> //[iOSVersion(2)] //[Export("application")] //[Optional] //void Application(UIApplication application, UIInterfaceOrientation didChangeStatusBarOrientation); /// <summary> /// Tells the delegate when the frame of the status bar is about to change. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="willChangeStatusBarFrame">The changed frame of the status bar, in screen coordinates.</param> //[iOSVersion(2)] //[Export("application")] //[Optional] //void Application(UIApplication application, CGRect willChangeStatusBarFrame); /// <summary> /// Tells the delegate when the frame of the status bar has changed. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="didChangeStatusBarFrame">The previous frame of the status bar, in screen coordinates.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("application")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void Application(UIApplication application, CGRect didChangeStatusBarFrame, bool NAME_YOUR_PARAMS = false); /// <summary> /// Tells the delegate that the protected files are about to become unavailable. /// </summary> /// <param name="application">The singleton app object.</param> //[iOSVersion(4)] //[Export("applicationProtectedDataWillBecomeUnavailable")] //[Optional] //void ApplicationProtectedDataWillBecomeUnavailable(UIApplication application); /// <summary> /// Tells the delegate that protected files are available now. /// </summary> /// <param name="application">The singleton app object.</param> //[iOSVersion(4)] //[Export("applicationProtectedDataDidBecomeAvailable")] //[Optional] //void ApplicationProtectedDataDidBecomeAvailable(UIApplication application); /// <summary> /// Asks the delegate for the interface orientations to use for the view controllers in the specified window. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="supportedInterfaceOrientationsForWindow">The window whose interface orientations you want to retrieve.</param> //[iOSVersion(6)] //[Export("application")] //[Optional] //int Application(UIApplication application, UIWindow supportedInterfaceOrientationsForWindow); /// <summary> /// Tells the delegate when the app has finished launching. /// </summary> /// <param name="application">The singleton app object.</param> //[iOSVersion(2)] //[Export("applicationDidFinishLaunching")] //[Optional] //void ApplicationDidFinishLaunching(UIApplication application); /// <summary> /// Asks the delegate to open a resource identified by URL. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="handleOpenURL">A object representing a URL (Universal Resource Locator). See the appendix of App Programming Guide for iOS for Apple-registered schemes for URLs.</param> //[iOSVersion(2)] //[Export("application")] //[Optional] //bool Application(UIApplication application, NSURL handleOpenURL); /// <summary> /// The window to use when presenting a storyboard. /// </summary> //[iOSVersion(5)] //[Export("window")] //Optional<UIWindow> Window { get; set; } } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/UIKit.csproj b/CocoaSharp/UIKit/UIKit.csproj
index 59f3a06b..6beae439 100644
--- a/CocoaSharp/UIKit/UIKit.csproj
+++ b/CocoaSharp/UIKit/UIKit.csproj
@@ -293,9 +293,9 @@
<Project>{c5f16b43-a040-4e1b-81f2-74a99196d319}</Project>
<Name>CoreGraphics</Name>
</ProjectReference>
- <ProjectReference Include="..\Foundation\Foundation.csproj">
- <Project>{02cf305f-5260-4c6e-9d33-7ee7877dec20}</Project>
- <Name>Foundation</Name>
+ <ProjectReference Include="..\ObjectiveC\ObjectiveC.csproj">
+ <Project>{01e1b613-3ddb-4233-ba6e-1df4b05307e7}</Project>
+ <Name>ObjectiveC</Name>
</ProjectReference>
<ProjectReference Include="..\SharpSwift.Attributes\SharpSwift.Attributes.csproj">
<Project>{58101aea-7251-4d1b-ab33-6a3bbf70b6db}</Project>
diff --git a/CocoaSharp/UIKit/UIView.cs b/CocoaSharp/UIKit/UIView.cs
index 6b4d6d20..b773fa84 100644
--- a/CocoaSharp/UIKit/UIView.cs
+++ b/CocoaSharp/UIKit/UIView.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The UIView class defines a rectangular area on the screen and the interfaces for managing the content in that area. At runtime, a view object handles the rendering of any content in its area and also handles any interactions with that content. The UIView class itself provides basic behavior for filling its rectangular area with a background color. More sophisticated content can be presented by subclassing UIView and implementing the necessary drawing and event-handling code yourself. The UIKit framework also includes a set of standard subclasses that range from simple buttons to complex tables and can be used as-is. For example, a UILabel object draws a text string and a UIImageView object draws an image. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIView_Class/index.html#//apple_ref/occ/cl/UIView"/> [iOSVersion(2)] public class UIView// : UIActivityIndicatorView//, AnyObject, NSCoding, NSObjectProtocol, Reflectable, UIAccessibilityIdentification, UIAppearance, UIAppearanceContainer, UICoordinateSpace, UIDynamicItem, UITraitEnvironment { public UIView() { } /// <summary> /// Initializes and returns a newly allocated view object with the specified frame rectangle. /// </summary> /// <param name="frame">The frame rectangle for the view, measured in points. The origin of the frame is relative to the superview in which you plan to add it. This method uses the frame rectangle to set the center and bounds properties accordingly.</param> [iOSVersion(2)] public UIView(CGRect frame) { } /// <summary> /// Returns the class used to create the layer for instances of this class. /// </summary> [iOSVersion(2)] [Export("layerClass")] public static AnyClass LayerClass() { return default(AnyClass); } /// <summary> /// Adds a view to the end of the receiver’s list of subviews. /// </summary> /// <param name="view">The view to be added. After being added, this view appears on top of any other subviews.</param> [iOSVersion(2)] [Export("addSubview")] public virtual void AddSubview(UIView view) { } /// <summary> /// Moves the specified subview so that it appears on top of its siblings. /// </summary> /// <param name="view">The subview to move to the front.</param> [iOSVersion(2)] [Export("bringSubviewToFront")] public virtual void BringSubviewToFront(UIView view) { } /// <summary> /// Moves the specified subview so that it appears behind its siblings. /// </summary> /// <param name="view">The subview to move to the back.</param> [iOSVersion(2)] [Export("sendSubviewToBack")] public virtual void SendSubviewToBack(UIView view) { } /// <summary> /// Unlinks the view from its superview and its window, and removes it from the responder chain. /// </summary> [iOSVersion(2)] [Export("removeFromSuperview")] public virtual void RemoveFromSuperview() { } /// <summary> /// Inserts a subview at the specified index. /// </summary> /// <param name="view">The view to insert. This value cannot be nil.</param> /// <param name="atIndex">The index in the array of the subviews property at which to insert the view. Subview indices start at 0 and cannot be greater than the number of subviews.</param> [iOSVersion(2)] [Export("insertSubview")] public virtual void InsertSubview(UIView view, int atIndex) { } /// <summary> /// Inserts a view above another view in the view hierarchy. /// </summary> /// <param name="view">The view to insert. It’s removed from its superview if it’s not a sibling of siblingSubview.</param> /// <param name="aboveSubview">The sibling view that will be behind the inserted view.</param> [iOSVersion(2)] [Export("insertSubview")] public virtual void InsertSubview(UIView view, UIView aboveSubview) { } /// <summary> /// Inserts a view below another view in the view hierarchy. /// </summary> /// <param name="view">The view to insert below another view. It’s removed from its superview if it’s not a sibling of siblingSubview.</param> /// <param name="belowSubview">The sibling view that will be above the inserted view.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [Export("insertSubview")] [IgnoreParameter("NAME_YOUR_PARAMS")] public virtual void InsertSubview(UIView view, UIView belowSubview, bool NAME_YOUR_PARAMS = false) { } /// <summary> /// Exchanges the subviews at the specified indices. /// </summary> /// <param name="index1">The index of the first subview in the receiver.</param> /// <param name="withSubviewAtIndex">The index of the second subview in the receiver.</param> [iOSVersion(2)] [Export("exchangeSubviewAtIndex")] public virtual void ExchangeSubviewAtIndex(int index1, int withSubviewAtIndex) { } /// <summary> /// Returns a Boolean value indicating whether the receiver is a subview of a given view or identical to that view. /// </summary> /// <param name="view">The view to test against the receiver’s view hierarchy.</param> [iOSVersion(2)] [Export("isDescendantOfView")] public virtual bool IsDescendantOfView(UIView view) { return default(bool); } /// <summary> /// Asks the view to calculate and return the size that best fits its subviews. /// </summary> /// <param name="size">The current size of the receiver.</param> [iOSVersion(2)] [Export("sizeThatFits")] public virtual CGSize SizeThatFits(CGSize size) { return default(CGSize); } /// <summary> /// Resizes and moves the receiver view so it just encloses its subviews. /// </summary> [iOSVersion(2)] [Export("sizeToFit")] public virtual void SizeToFit() { } /// <summary> /// Lays out subviews. /// </summary> [iOSVersion(2)] [Export("layoutSubviews")] public virtual void LayoutSubviews() { } /// <summary> /// Invalidates the current layout of the receiver and triggers a layout update during the next update cycle. /// </summary> [iOSVersion(2)] [Export("setNeedsLayout")] public virtual void SetNeedsLayout() { } /// <summary> /// Lays out the subviews immediately. /// </summary> [iOSVersion(2)] [Export("layoutIfNeeded")] public virtual void LayoutIfNeeded() { } /// <summary> /// Returns whether the receiver depends on the constraint-based layout system. /// </summary> [iOSVersion(6)] [Export("requiresConstraintBasedLayout")] public static bool RequiresConstraintBasedLayout() { return default(bool); } /// <summary> /// Returns a Boolean value that indicates whether the view’s autoresizing mask is translated into constraints for the constraint-based layout system. /// </summary> [iOSVersion(6)] [Export("translatesAutoresizingMaskIntoConstraints")] public virtual bool TranslatesAutoresizingMaskIntoConstraints() { return default(bool); } /// <summary> /// Sets whether the view’s autoresizing mask should be translated into constraints for the constraint-based layout system. /// </summary> /// <param name="flag">true if the view’s autoresizing mask should be translated into constraints for the constraint-based layout system, false otherwise.</param> [iOSVersion(6)] [Export("setTranslatesAutoresizingMaskIntoConstraints")] public virtual void SetTranslatesAutoresizingMaskIntoConstraints(bool flag) { } /// <summary> /// Returns the constraints held by the view. /// </summary> [iOSVersion(6)] [Export("constraints")] public virtual AnyObject[] Constraints() { return default(AnyObject[]); } /// <summary> /// Adds a constraint on the layout of the receiving view or its subviews. /// </summary> /// <param name="constraint">The constraint to be added to the view. The constraint may only reference the view itself or its subviews.</param> [iOSVersion(6)] [Export("addConstraint")] public virtual void AddConstraint(NSLayoutConstraint constraint) { } /// <summary> /// Adds multiple constraints on the layout of the receiving view or its subviews. /// </summary> /// <param name="constraints">An array of constraints to be added to the view. All constraints may only reference the view itself or its subviews.</param> [iOSVersion(6)] [Export("addConstraints")] public virtual void AddConstraints(AnyObject[] constraints) { } /// <summary> /// Removes the specified constraint from the view. /// </summary> /// <param name="constraint">The constraint to remove. Removing a constraint not held by the view has no effect.</param> [iOSVersion(6)] [Export("removeConstraint")] public virtual void RemoveConstraint(NSLayoutConstraint constraint) { } /// <summary> /// Removes the specified constraints from the view. /// </summary> /// <param name="constraints">The constraints to remove.</param> [iOSVersion(6)] [Export("removeConstraints")] public virtual void RemoveConstraints(AnyObject[] constraints) { } /// <summary> /// Returns the size of the view that satisfies the constraints it holds. /// </summary> /// <param name="targetSize">Indicates whether you want the smallest or largest possible size that meets the constraints. See Fitting Size for accepted values.</param> [iOSVersion(6)] [Export("systemLayoutSizeFittingSize")] public virtual CGSize SystemLayoutSizeFittingSize(CGSize targetSize) { return default(CGSize); } /// <summary> /// Returns the size of the view that satisfies the constraints it holds. /// </summary> /// <param name="targetSize">Indicates whether you want the smallest or largest possible size that meets the constraints. See Fitting Size for accepted values.</param> /// <param name="withHorizontalFittingPriority">The horizontal constraint priority.</param> /// <param name="verticalFittingPriority">The vertical constraint priority.</param> [iOSVersion(8)] [Export("systemLayoutSizeFittingSize")] public virtual CGSize SystemLayoutSizeFittingSize(CGSize targetSize, UILayoutPriority withHorizontalFittingPriority, UILayoutPriority verticalFittingPriority) { return default(CGSize); } /// <summary> /// Returns the natural size for the receiving view, considering only properties of the view itself. /// </summary> [iOSVersion(6)] [Export("intrinsicContentSize")] public virtual CGSize IntrinsicContentSize() { return default(CGSize); } /// <summary> /// Invalidates the view’s intrinsic content size. /// </summary> [iOSVersion(6)] [Export("invalidateIntrinsicContentSize")] public virtual void InvalidateIntrinsicContentSize() { } /// <summary> /// Returns the priority with which a view resists being made smaller than its intrinsic size. /// </summary> /// <param name="axis">The axis of the view that might be reduced.</param> [iOSVersion(6)] [Export("contentCompressionResistancePriorityForAxis")] public virtual UILayoutPriority ContentCompressionResistancePriorityForAxis(UILayoutConstraintAxis axis) { return default(UILayoutPriority); } /// <summary> /// Sets the priority with which a view resists being made smaller than its intrinsic size. /// </summary> /// <param name="priority">The new priority.</param> /// <param name="forAxis">The axis for which the compression resistance priority should be set.</param> [iOSVersion(6)] [Export("setContentCompressionResistancePriority")] public virtual void SetContentCompressionResistancePriority(UILayoutPriority priority, UILayoutConstraintAxis forAxis) { } /// <summary> /// Returns the priority with which a view resists being made larger than its intrinsic size. /// </summary> /// <param name="axis">The axis of the view that might be enlarged.</param> [iOSVersion(6)] [Export("contentHuggingPriorityForAxis")] public virtual UILayoutPriority ContentHuggingPriorityForAxis(UILayoutConstraintAxis axis) { return default(UILayoutPriority); } /// <summary> /// Sets the priority with which a view resists being made larger than its intrinsic size. /// </summary> /// <param name="priority">The new priority.</param> /// <param name="forAxis">The axis for which the content hugging priority should be set.</param> [iOSVersion(6)] [Export("setContentHuggingPriority")] public virtual void SetContentHuggingPriority(UILayoutPriority priority, UILayoutConstraintAxis forAxis) { } /// <summary> /// Returns the view’s alignment rectangle for a given frame. /// </summary> /// <param name="frame">The frame whose corresponding alignment rectangle is desired.</param> [iOSVersion(6)] [Export("alignmentRectForFrame")] public virtual CGRect AlignmentRectForFrame(CGRect frame) { return default(CGRect); } /// <summary> /// Returns the view’s frame for a given alignment rectangle. /// </summary> /// <param name="alignmentRect">The alignment rectangle whose corresponding frame is desired.</param> [iOSVersion(6)] [Export("frameForAlignmentRect")] public virtual CGRect FrameForAlignmentRect(CGRect alignmentRect) { return default(CGRect); } /// <summary> /// Returns the insets from the view’s frame that define its alignment rectangle. /// </summary> [iOSVersion(6)] [Export("alignmentRectInsets")] public virtual UIEdgeInsets AlignmentRectInsets() { return default(UIEdgeInsets); } /// <summary> /// Returns a view used to satisfy baseline constraints. /// </summary> [iOSVersion(6)] [Export("viewForBaselineLayout")] public virtual Optional<UIView> ViewForBaselineLayout() { return default(Optional<UIView>); } /// <summary> /// Returns whether the view’s constraints need updating. /// </summary> [iOSVersion(6)] [Export("needsUpdateConstraints")] public virtual bool NeedsUpdateConstraints() { return default(bool); } /// <summary> /// Controls whether the view’s constraints need updating. /// </summary> [iOSVersion(6)] [Export("setNeedsUpdateConstraints")] public virtual void SetNeedsUpdateConstraints() { } /// <summary> /// Updates constraints for the view. /// </summary> [iOSVersion(6)] [Export("updateConstraints")] public virtual void UpdateConstraints() { } /// <summary> /// Updates the constraints for the receiving view and its subviews. /// </summary> [iOSVersion(6)] [Export("updateConstraintsIfNeeded")] public virtual void UpdateConstraintsIfNeeded() { } /// <summary> /// Returns the constraints impacting the layout of the view for a given axis. /// </summary> /// <param name="axis">The axis for which the constraints should be found.</param> [iOSVersion(6)] [Export("constraintsAffectingLayoutForAxis")] public virtual AnyObject[] ConstraintsAffectingLayoutForAxis(UILayoutConstraintAxis axis) { return default(AnyObject[]); } /// <summary> /// Returns whether the constraints impacting the layout of the view incompletely specify the location of the view. /// </summary> [iOSVersion(6)] [Export("hasAmbiguousLayout")] public virtual bool HasAmbiguousLayout() { return default(bool); } /// <summary> /// Randomly changes the frame of a view with an ambiguous layout between the different valid values. /// </summary> [iOSVersion(6)] [Export("exerciseAmbiguityInLayout")] public virtual void ExerciseAmbiguityInLayout() { } /// <summary> /// Notifies the view that the layout margins changed. /// </summary> [iOSVersion(8)] [Export("layoutMarginsDidChange")] public virtual void LayoutMarginsDidChange() { } /// <summary> /// Draws the receiver’s image within the passed-in rectangle. /// </summary> /// <param name="rect">The portion of the view’s bounds that needs to be updated. The first time your view is drawn, this rectangle is typically the entire visible bounds of your view. However, during subsequent drawing operations, the rectangle may specify only part of your view.</param> [iOSVersion(2)] [Export("drawRect")] public virtual void DrawRect(CGRect rect) { } /// <summary> /// Marks the receiver’s entire bounds rectangle as needing to be redrawn. /// </summary> [iOSVersion(2)] [Export("setNeedsDisplay")] public virtual void SetNeedsDisplay() { } /// <summary> /// Marks the specified rectangle of the receiver as needing to be redrawn. /// </summary> /// <param name="invalidRect">The rectangular region of the receiver to mark as invalid; it should be specified in the coordinate system of the receiver.</param> [iOSVersion(2)] [Export("setNeedsDisplayInRect")] public virtual void SetNeedsDisplayInRect(CGRect invalidRect) { } /// <summary> /// Called by the system when the tintColor property changes. /// </summary> [iOSVersion(7)] [Export("tintColorDidChange")] public virtual void TintColorDidChange() { } /// <summary> /// Returns a print formatter for the receiving view. /// </summary> [iOSVersion(4.2)] [Export("viewPrintFormatter")] public virtual UIViewPrintFormatter ViewPrintFormatter() { return default(UIViewPrintFormatter); } /// <summary> /// Implemented to draw the view’s content for printing. /// </summary> /// <param name="area">A rectangle that defines the area for drawing printable content.</param> /// <param name="forViewPrintFormatter">An instance of UIViewPrintFormatter obtained by calling the viewPrintFormatter method.</param> [iOSVersion(4.2)] [Export("drawRect")] public virtual void DrawRect(CGRect area, UIViewPrintFormatter forViewPrintFormatter) { } /// <summary> /// Attaches a gesture recognizer to the view. /// </summary> /// <param name="gestureRecognizer">An object whose class descends from the UIGestureRecognizer class. This parameter must not be nil.</param> [iOSVersion(3.2)] [Export("addGestureRecognizer")] public virtual void AddGestureRecognizer(UIGestureRecognizer gestureRecognizer) { } /// <summary> /// Detaches a gesture recognizer from the receiving view. /// </summary> /// <param name="gestureRecognizer">An object whose class descends from the UIGestureRecognizer class.</param> [iOSVersion(3.2)] [Export("removeGestureRecognizer")] public virtual void RemoveGestureRecognizer(UIGestureRecognizer gestureRecognizer) { } /// <summary> /// Asks the view if the gesture recognizer should be allowed to continue tracking touch events. /// </summary> /// <param name="gestureRecognizer">The gesture recognizer that is attempting to transition out of the UIGestureRecognizerStatePossible state.</param> [iOSVersion(6)] [Export("gestureRecognizerShouldBegin")] public virtual bool GestureRecognizerShouldBegin(UIGestureRecognizer gestureRecognizer) { return default(bool); } /// <summary> /// Animate changes to one or more views using the specified duration, delay, options, and completion handler. /// </summary> /// <param name="duration">The total duration of the animations, measured in seconds. If you specify a negative value or 0, the changes are made without animating them.</param> /// <param name="delay">The amount of time (measured in seconds) to wait before beginning the animations. Specify a value of 0 to begin the animations immediately.</param> /// <param name="options">A mask of options indicating how you want to perform the animations. For a list of valid constants, see UIViewAnimationOptions.</param> /// <param name="animations">A block object containing the changes to commit to the views. This is where you programmatically change any animatable properties of the views in your view hierarchy. This block takes no parameters and has no return value. This parameter must not be NULL.</param> /// <param name="completion">A block object to be executed when the animation sequence ends. This block has no return value and takes a single Boolean argument that indicates whether or not the animations actually finished before the completion handler was called. If the duration of the animation is 0, this block is performed at the beginning of the next run loop cycle. This parameter may be NULL.</param> [iOSVersion(4)] [Export("animateWithDuration")] public static void AnimateWithDuration(NSTimeInterval duration, NSTimeInterval delay, UIViewAnimationOptions options, Action animations, Optional<Action<bool>> completion) { } /// <summary> /// Animate changes to one or more views using the specified duration and completion handler. /// </summary> /// <param name="duration">The total duration of the animations, measured in seconds. If you specify a negative value or 0, the changes are made without animating them.</param> /// <param name="animations">A block object containing the changes to commit to the views. This is where you programmatically change any animatable properties of the views in your view hierarchy. This block takes no parameters and has no return value. This parameter must not be NULL.</param> /// <param name="completion">A block object to be executed when the animation sequence ends. This block has no return value and takes a single Boolean argument that indicates whether or not the animations actually finished before the completion handler was called. If the duration of the animation is 0, this block is performed at the beginning of the next run loop cycle. This parameter may be NULL.</param> [iOSVersion(4)] [Export("animateWithDuration")] public static void AnimateWithDuration(NSTimeInterval duration, Action animations, Optional<Action<bool>> completion) { } /// <summary> /// Animate changes to one or more views using the specified duration. /// </summary> /// <param name="duration">The total duration of the animations, measured in seconds. If you specify a negative value or 0, the changes are made without animating them.</param> /// <param name="animations">A block object containing the changes to commit to the views. This is where you programmatically change any animatable properties of the views in your view hierarchy. This block takes no parameters and has no return value. This parameter must not be NULL.</param> [iOSVersion(4)] [Export("animateWithDuration")] public static void AnimateWithDuration(NSTimeInterval duration, Action animations) { } /// <summary> /// Creates a transition animation for the specified container view. /// </summary> /// <param name="view">The container view that performs the transition.</param> /// <param name="duration">The duration of the transition animation, measured in seconds. If you specify a negative value or 0, the transition is made without animations.</param> /// <param name="options">A mask of options indicating how you want to perform the animations. For a list of valid constants, see UIViewAnimationOptions.</param> /// <param name="animations">A block object that contains the changes you want to make to the specified view. This block takes no parameters and has no return value. This parameter must not be NULL.</param> /// <param name="completion">A block object to be executed when the animation sequence ends. This block has no return value and takes a single Boolean argument that indicates whether or not the animations actually finished before the completion handler was called. If the duration of the animation is 0, this block is performed at the beginning of the next run loop cycle. This parameter may be NULL.</param> [iOSVersion(4)] [Export("transitionWithView")] public static void TransitionWithView(UIView view, NSTimeInterval duration, UIViewAnimationOptions options, Action animations, Optional<Action<bool>> completion) { } /// <summary> /// Creates a transition animation between the specified views using the given parameters. /// </summary> /// <param name="fromView">The starting view for the transition. By default, this view is removed from its superview as part of the transition.</param> /// <param name="toView">The ending view for the transition. By default, this view is added to the superview of fromView as part of the transition.</param> /// <param name="duration">The duration of the transition animation, measured in seconds. If you specify a negative value or 0, the transition is made without animations.</param> /// <param name="options">A mask of options indicating how you want to perform the animations. For a list of valid constants, see UIViewAnimationOptions.</param> /// <param name="completion">A block object to be executed when the animation sequence ends. This block has no return value and takes a single Boolean argument that indicates whether or not the animations actually finished before the completion handler was called. If the duration of the animation is 0, this block is performed at the beginning of the next run loop cycle. This parameter may be NULL.</param> [iOSVersion(4)] [Export("transitionFromView")] public static void TransitionFromView(UIView fromView, UIView toView, NSTimeInterval duration, UIViewAnimationOptions options, Optional<Action<bool>> completion) { } /// <summary> /// Creates an animation block object that can be used to set up keyframe-based animations for the current view. /// </summary> /// <param name="duration">The duration of the overall animation, measured in seconds. If you specify a negative value or 0, changes are made immediately and without animations.</param> /// <param name="delay">Specifies the time (in seconds) to wait before starting the animation.</param> /// <param name="options">A mask of options indicating how you want to perform the animations. For a list of valid constants, see “UIViewKeyframeAnimationOptions”.</param> /// <param name="animations">A block object containing the changes to commit to the views. Typically, you call the addKeyframeWithRelativeStartTime:relativeDuration:animations: method one or more times from inside this block. You may also change view values directly if you want those changes to animate over the full duration. This block takes no parameters and has no return value. Do not use a nil value for this parameter.</param> /// <param name="completion">A block object to be executed when the animation sequence ends. This block has no return value and takes a single Boolean argument that indicates whether or not the animations finished before the completion handler was called. If the duration of the animation is 0, this block is performed at the beginning of the next run loop cycle. You can use a nil value for this parameter.</param> [iOSVersion(7)] [Export("animateKeyframesWithDuration")] public static void AnimateKeyframesWithDuration(NSTimeInterval duration, NSTimeInterval delay, UIViewKeyframeAnimationOptions options, Action animations, Optional<Action<bool>> completion) { } /// <summary> /// Specifies the timing and animation values for a single frame of a keyframe animation. /// </summary> /// <param name="frameStartTime">The time at which to start the specified animations. This value must be in the range 0 to 1, where 0 represents the start of the overall animation and 1 represents the end of the overall animation. For example, for an animation that is two seconds in duration, specifying a start time of 0.5 causes the animations to begin executing one second after the start of the overall animation.</param> /// <param name="relativeDuration">The length of time over which to animate to the specified value. This value must be in the range 0 to 1 and indicates the amount of time relative to the overall animation length. If you specify a value of 0, any properties you set in the animations block update immediately at the specified start time. If you specify a nonzero value, the properties animate over that amount of time. For example, for an animation that is two seconds in duration, specifying a duration of 0.5 results in an animation duration of one second.</param> /// <param name="animations">A block object containing the animations you want to perform. This is where you programmatically change any animatable properties of the views in your view hierarchy. This block takes no parameters and has no return value. This parameter must not be nil.</param> [iOSVersion(7)] [Export("addKeyframeWithRelativeStartTime")] public static void AddKeyframeWithRelativeStartTime(Double frameStartTime, Double relativeDuration, Action animations) { } /// <summary> /// Performs a specified system-provided animation on one or more views, along with optional parallel animations that you define. /// </summary> /// <param name="animation">The system animation to perform; a constant from the UISystemAnimation enum.</param> /// <param name="onViews">The views to perform the animations on.</param> /// <param name="options">A mask of options indicating how you want to perform the animations. For a list of valid constants, see UIViewAnimationOptions.</param> /// <param name="animations">Additional animations you specify to run alongside the system animation, with the same timing and duration that the system animation defines or inherits. /// In your additional animations, do not modify properties of the view on which the system animation is being performed.</param> /// <param name="completion">A block object to be executed when the animation sequence ends. The single Boolean argument indicates whether or not the animations finished before the completion handler was called. If the animation duration is 0, this block is performed at the beginning of the next run-loop cycle. You can use a nil value for this parameter.</param> [iOSVersion(7)] [Export("performSystemAnimation")] public static void PerformSystemAnimation(UISystemAnimation animation, AnyObject[] onViews, UIViewAnimationOptions options, Optional<Action> animations, Optional<Action<bool>> completion) { } /// <summary> /// Performs a view animation using a timing curve corresponding to the motion of a physical spring. /// </summary> /// <param name="duration">The total duration of the animations, measured in seconds. If you specify a negative value or 0, the changes are made without animating them.</param> /// <param name="delay">The amount of time (measured in seconds) to wait before beginning the animations. Specify a value of 0 to begin the animations immediately.</param> /// <param name="usingSpringWithDamping">The damping ratio for the spring animation as it approaches its quiescent state. /// To smoothly decelerate the animation without oscillation, use a value of 1. Employ a damping ratio closer to zero to increase oscillation.</param> /// <param name="initialSpringVelocity">The initial spring velocity. For smooth start to the animation, match this value to the view’s velocity as it was prior to attachment. /// A value of 1 corresponds to the total animation distance traversed in one second. For example, if the total animation distance is 200 points and you want the start of the animation to match a view velocity of 100 pt/s, use a value of 0.5.</param> /// <param name="options">A mask of options indicating how you want to perform the animations. For a list of valid constants, see UIViewAnimationOptions.</param> /// <param name="animations">A block object containing the changes to commit to the views. This is where you programmatically change any animatable properties of the views in your view hierarchy. This block takes no parameters and has no return value. This parameter must not be NULL.</param> /// <param name="completion">A block object to be executed when the animation sequence ends. This block has no return value and takes a single Boolean argument that indicates whether or not the animations actually finished before the completion handler was called. If the duration of the animation is 0, this block is performed at the beginning of the next run loop cycle. This parameter may be NULL.</param> [iOSVersion(7)] [Export("animateWithDuration")] public static void AnimateWithDuration(NSTimeInterval duration, NSTimeInterval delay, CGFloat usingSpringWithDamping, CGFloat initialSpringVelocity, UIViewAnimationOptions options, Action animations, Optional<Action<bool>> completion) { } /// <summary> /// Disables a view transition animation. /// </summary> /// <param name="actionsWithoutAnimation">The view transition code that you want to perform without animation.</param> [iOSVersion(7)] [Export("performWithoutAnimation")] public static void PerformWithoutAnimation(Action actionsWithoutAnimation) { } /// <summary> /// Marks the beginning of a begin/commit animation block. /// </summary> /// <param name="animationID">An application-supplied identifier for the animations.</param> /// <param name="context">Custom data that you want to associate with this set of animations. information that is passed to the animation delegate messages—the selectors set using the setAnimationWillStartSelector: and setAnimationDidStopSelector: methods.</param> [iOSVersion(2)] [Export("beginAnimations")] public static void BeginAnimations(Optional<string> animationID, UnsafeMutablePointer context) { } /// <summary> /// Marks the end of a begin/commit animation block and schedules the animations for execution. /// </summary> [iOSVersion(2)] [Export("commitAnimations")] public static void CommitAnimations() { } /// <summary> /// Sets the start time for the current animation block. /// </summary> /// <param name="startTime">The time to begin the animations.</param> [iOSVersion(2)] [Export("setAnimationStartDate")] public static void SetAnimationStartDate(NSDate startTime) { } /// <summary> /// Sets whether animations are enabled. /// </summary> /// <param name="enabled">Specify true to enable animations or false to disable them.</param> [iOSVersion(2)] [Export("setAnimationsEnabled")] public static void SetAnimationsEnabled(bool enabled) { } /// <summary> /// Sets the delegate for any animation messages. /// </summary> /// <param name="@delegate">An object that defines the methods registered using the setAnimationWillStartSelector: and setAnimationDidStopSelector: methods. The view maintains a strong reference to this object for the duration of the animation.</param> [iOSVersion(2)] [Export("setAnimationDelegate")] public static void SetAnimationDelegate(Optional<AnyObject> @delegate) { } /// <summary> /// Sets the message to send to the animation delegate when the animation starts. /// </summary> /// <param name="selector">The message to send to the animation delegate before animations start. The default value is NULL. This selector should be of the form: - (void)animationDidStart:(NSString *)animationID context:(void *)context. Your method must take the following arguments: /// animationID /// An NSString containing an optional application-supplied identifier. This is the identifier string that is passed to the beginAnimations:context: method. This argument can be nil. /// context /// An optional application-supplied context. This is the context data passed to the beginAnimations:context: method. This argument can be nil.</param> [iOSVersion(2)] [Export("setAnimationWillStartSelector")] public static void SetAnimationWillStartSelector(Selector selector) { } /// <summary> /// Sets the message to send to the animation delegate when animation stops. /// </summary> /// <param name="selector">The message sent to the animation delegate after animations end. The default value is NULL. The selector should be of the form: - (void)animationDidStop:(NSString *)animationID finished:(NSNumber *)finished context:(void *)context. Your method must take the following arguments: /// animationID /// An NSString containing an optional application-supplied identifier. This is the identifier that is passed to the beginAnimations:context: method. This argument can be nil. /// finished /// An NSNumber object containing a Boolean value. The value is true if the animation ran to completion before it stopped or false if it did not. /// context /// An optional application-supplied context. This is the context data passed to the beginAnimations:context: method. This argument can be nil.</param> [iOSVersion(2)] [Export("setAnimationDidStopSelector")] public static void SetAnimationDidStopSelector(Selector selector) { } /// <summary> /// Sets the duration (measured in seconds) of the animations in an animation block. /// </summary> /// <param name="duration">The period over which the animation occurs, measured in seconds.</param> [iOSVersion(2)] [Export("setAnimationDuration")] public static void SetAnimationDuration(NSTimeInterval duration) { } /// <summary> /// Sets the amount of time (in seconds) to wait before animating property changes within an animation block. /// </summary> /// <param name="delay"></param> [iOSVersion(2)] [Export("setAnimationDelay")] public static void SetAnimationDelay(NSTimeInterval delay) { } /// <summary> /// Sets the curve to use when animating property changes within an animation block. /// </summary> /// <param name="curve"></param> [iOSVersion(2)] [Export("setAnimationCurve")] public static void SetAnimationCurve(UIViewAnimationCurve curve) { } /// <summary> /// Sets the number of times animations within an animation block repeat. /// </summary> /// <param name="repeatCount">The number of times animations repeat. This value can be a fraction. If you specify the value 0, the animation is performed once without repeating.</param> [iOSVersion(2)] [Export("setAnimationRepeatCount")] public static void SetAnimationRepeatCount(float repeatCount) { } /// <summary> /// Sets whether the animations within an animation block automatically reverse themselves. /// </summary> /// <param name="repeatAutoreverses">Specify true to enable autoreversing or false to disable it.</param> [iOSVersion(2)] [Export("setAnimationRepeatAutoreverses")] public static void SetAnimationRepeatAutoreverses(bool repeatAutoreverses) { } /// <summary> /// Sets whether the animation should begin playing from the current state. /// </summary> /// <param name="fromCurrentState">Specify true if animations should begin from their currently visible state; otherwise, false.</param> [iOSVersion(2)] [Export("setAnimationBeginsFromCurrentState")] public static void SetAnimationBeginsFromCurrentState(bool fromCurrentState) { } /// <summary> /// Sets a transition to apply to a view during an animation block. /// </summary> /// <param name="transition">A transition to apply to view. Possible values are described in UIViewAnimationTransition.</param> /// <param name="forView">The view to apply the transition to.</param> /// <param name="cache">If true, the before and after images of view are rendered once and used to create the frames in the animation. Caching can improve performance but if you set this parameter to true, you must not update the view or its subviews during the transition. Updating the view and its subviews may interfere with the caching behaviors and cause the view contents to be rendered incorrectly (or in the wrong location) during the animation. You must wait until the transition ends to update the view. /// If false, the view and its contents must be updated for each frame of the transition animation, which may noticeably affect the frame rate.</param> [iOSVersion(2)] [Export("setAnimationTransition")] public static void SetAnimationTransition(UIViewAnimationTransition transition, UIView forView, bool cache) { } /// <summary> /// Returns a Boolean value indicating whether animations are enabled. /// </summary> [iOSVersion(2)] [Export("areAnimationsEnabled")] public static bool AreAnimationsEnabled() { return default(bool); } /// <summary> /// Begins applying a motion effect to the view. /// </summary> /// <param name="effect">The motion effect.</param> [iOSVersion(7)] [Export("addMotionEffect")] public virtual void AddMotionEffect(UIMotionEffect effect) { } /// <summary> /// Stops applying a motion effect to the view. /// </summary> /// <param name="effect">The motion effect.</param> [iOSVersion(7)] [Export("removeMotionEffect")] public virtual void RemoveMotionEffect(UIMotionEffect effect) { } /// <summary> /// Encodes state-related information for the view. /// </summary> /// <param name="coder">The coder object to use to encode the state of the view.</param> [iOSVersion(6)] [Export("encodeRestorableStateWithCoder")] public virtual void EncodeRestorableStateWithCoder(NSCoder coder) { } /// <summary> /// Decodes and restores state-related information for the view. /// </summary> /// <param name="coder">The coder object to use to decode the state of the view.</param> [iOSVersion(6)] [Export("decodeRestorableStateWithCoder")] public virtual void DecodeRestorableStateWithCoder(NSCoder coder) { } /// <summary> /// Returns a snapshot view based on the contents of the current view. /// </summary> /// <param name="afterUpdates">A Boolean value that specifies whether the snapshot should be taken after recent changes have been incorporated. Pass the value false to capture the screen in its current state, which might not include recent changes.</param> [iOSVersion(7)] [Export("snapshotViewAfterScreenUpdates")] public virtual UIView SnapshotViewAfterScreenUpdates(bool afterUpdates) { return default(UIView); } /// <summary> /// Returns a snapshot view based on the specified contents of the current view, with stretchable insets. /// </summary> /// <param name="rect">The portion of the view that you want to capture. The rectangle must be in the bounds coordinate space of the current view.</param> /// <param name="afterScreenUpdates">A Boolean value that specifies whether the snapshot should be taken after recent changes have been incorporated. Pass the value false if you want to capture the screen in its current state, which might not include recent changes.</param> /// <param name="withCapInsets">The edge insets that define the stretchable portion of the returned view’s content. You can specify UIEdgeInsetsZero if you do not want the contents of the returned view to have a stretchable area.</param> [iOSVersion(7)] [Export("resizableSnapshotViewFromRect")] public virtual UIView ResizableSnapshotViewFromRect(CGRect rect, bool afterScreenUpdates, UIEdgeInsets withCapInsets) { return default(UIView); } /// <summary> /// Renders a snapshot of the complete view hierarchy as visible onscreen into the current context. /// </summary> /// <param name="rect">A rectangle specified in the local coordinate system (bounds) of the view.</param> /// <param name="afterScreenUpdates">A Boolean value that indicates whether the snapshot should be rendered after recent changes have been incorporated. Specify the value false if you want to render a snapshot in the view hierarchy’s current state, which might not include recent changes.</param> [iOSVersion(7)] [Export("drawViewHierarchyInRect")] public virtual bool DrawViewHierarchyInRect(CGRect rect, bool afterScreenUpdates) { return default(bool); } /// <summary> /// Returns the view whose tag matches the specified value. /// </summary> /// <param name="tag">The tag value to search for.</param> [iOSVersion(2)] [Export("viewWithTag")] public virtual Optional<UIView> ViewWithTag(int tag) { return default(Optional<UIView>); } /// <summary> /// Converts a point from the receiver’s coordinate system to that of the specified view. /// </summary> /// <param name="point">A point specified in the local coordinate system (bounds) of the receiver.</param> /// <param name="toView">The view into whose coordinate system point is to be converted. If view is nil, this method instead converts to window base coordinates. Otherwise, both view and the receiver must belong to the same UIWindow object.</param> [iOSVersion(2)] [Export("convertPoint")] public virtual CGPoint ConvertPoint(CGPoint point, Optional<UIView> toView) { return default(CGPoint); } /// <summary> /// Converts a point from the coordinate system of a given view to that of the receiver. /// </summary> /// <param name="point">A point specified in the local coordinate system (bounds) of view.</param> /// <param name="fromView">The view with point in its coordinate system. If view is nil, this method instead converts from window base coordinates. Otherwise, both view and the receiver must belong to the same UIWindow object.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [Export("convertPoint")] [IgnoreParameter("NAME_YOUR_PARAMS")] public virtual CGPoint ConvertPoint(CGPoint point, Optional<UIView> fromView, bool NAME_YOUR_PARAMS = false) { return default(CGPoint); } /// <summary> /// Converts a rectangle from the receiver’s coordinate system to that of another view. /// </summary> /// <param name="rect">A rectangle specified in the local coordinate system (bounds) of the receiver.</param> /// <param name="toView">The view that is the target of the conversion operation. If view is nil, this method instead converts to window base coordinates. Otherwise, both view and the receiver must belong to the same UIWindow object.</param> [iOSVersion(2)] [Export("convertRect")] public virtual CGRect ConvertRect(CGRect rect, Optional<UIView> toView) { return default(CGRect); } /// <summary> /// Converts a rectangle from the coordinate system of another view to that of the receiver. /// </summary> /// <param name="rect">A rectangle specified in the local coordinate system (bounds) of view.</param> /// <param name="fromView">The view with rect in its coordinate system. If view is nil, this method instead converts from window base coordinates. Otherwise, both view and the receiver must belong to the same UIWindow object.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [Export("convertRect")] [IgnoreParameter("NAME_YOUR_PARAMS")] public virtual CGRect ConvertRect(CGRect rect, Optional<UIView> fromView, bool NAME_YOUR_PARAMS = false) { return default(CGRect); } /// <summary> /// Returns the farthest descendant of the receiver in the view hierarchy (including itself) that contains a specified point. /// </summary> /// <param name="point">A point specified in the receiver’s local coordinate system (bounds).</param> /// <param name="withEvent">The event that warranted a call to this method. If you are calling this method from outside your event-handling code, you may specify nil.</param> [iOSVersion(2)] [Export("hitTest")] public virtual Optional<UIView> HitTest(CGPoint point, Optional<UIEvent> withEvent) { return default(Optional<UIView>); } /// <summary> /// Returns a Boolean value indicating whether the receiver contains the specified point. /// </summary> /// <param name="point">A point that is in the receiver’s local coordinate system (bounds).</param> /// <param name="withEvent">The event that warranted a call to this method. If you are calling this method from outside your event-handling code, you may specify nil.</param> [iOSVersion(2)] [Export("pointInside")] public virtual bool PointInside(CGPoint point, Optional<UIEvent> withEvent) { return default(bool); } /// <summary> /// Causes the view (or one of its embedded text fields) to resign the first responder status. /// </summary> /// <param name="force">Specify true to force the first responder to resign, regardless of whether it wants to do so.</param> [iOSVersion(2)] [Export("endEditing")] public virtual bool EndEditing(bool force) { return default(bool); } /// <summary> /// Tells the view that a subview was added. /// </summary> /// <param name="subview">The view that was added as a subview.</param> [iOSVersion(2)] [Export("didAddSubview")] public virtual void DidAddSubview(UIView subview) { } /// <summary> /// Tells the view that a subview is about to be removed. /// </summary> /// <param name="subview">The subview that will be removed.</param> [iOSVersion(2)] [Export("willRemoveSubview")] public virtual void WillRemoveSubview(UIView subview) { } /// <summary> /// Tells the view that its superview is about to change to the specified superview. /// </summary> /// <param name="newSuperview">A view object that will be the new superview of the receiver. This object may be nil.</param> [iOSVersion(2)] [Export("willMoveToSuperview")] public virtual void WillMoveToSuperview(Optional<UIView> newSuperview) { } /// <summary> /// Tells the view that its superview changed. /// </summary> [iOSVersion(2)] [Export("didMoveToSuperview")] public virtual void DidMoveToSuperview() { } /// <summary> /// Tells the view that its window object is about to change. /// </summary> /// <param name="newWindow">The window object that will be at the root of the receiver's new view hierarchy. This parameter may be nil.</param> [iOSVersion(2)] [Export("willMoveToWindow")] public virtual void WillMoveToWindow(Optional<UIWindow> newWindow) { } /// <summary> /// Tells the view that its window object changed. /// </summary> [iOSVersion(2)] [Export("didMoveToWindow")] public virtual void DidMoveToWindow() { } /// <summary> /// The view’s background color. /// </summary> [iOSVersion(2)] [Export("backgroundColor")] public Optional<UIColor> BackgroundColor { get; set; } /// <summary> /// A Boolean value that determines whether the view is hidden. /// </summary> [iOSVersion(2)] [Export("hidden")] public bool Hidden { get; set; } /// <summary> /// The view’s alpha value. /// </summary> [iOSVersion(2)] [Export("alpha")] public CGFloat Alpha { get; set; } /// <summary> /// A Boolean value that determines whether the view is opaque. /// </summary> [iOSVersion(2)] [Export("opaque")] public bool Opaque { get; set; } /// <summary> /// The first nondefault tint color value in the view’s hierarchy, ascending from and starting with the view itself. /// </summary> [iOSVersion(7)] [Export("tintColor")] public UIColor TintColor { get; set; } /// <summary> /// The first non-default tint adjustment mode value in the view’s hierarchy, ascending from and starting with the view itself. /// </summary> [iOSVersion(7)] [Export("tintAdjustmentMode")] public UIViewTintAdjustmentMode TintAdjustmentMode { get; set; } /// <summary> /// A Boolean value that determines whether subviews are confined to the bounds of the view. /// </summary> [iOSVersion(2)] [Export("clipsToBounds")] public bool ClipsToBounds { get; set; } /// <summary> /// A Boolean value that determines whether the view’s bounds should be automatically cleared before drawing. /// </summary> [iOSVersion(2)] [Export("clearsContextBeforeDrawing")] public bool ClearsContextBeforeDrawing { get; set; } /// <summary> /// An optional view whose alpha channel is used to mask a view’s content. /// </summary> [iOSVersion(8)] [Export("maskView")] public Optional<UIView> MaskView { get; set; } /// <summary> /// The view’s Core Animation layer used for rendering. (read-only) /// </summary> [iOSVersion(2)] [Export("layer")] public CALayer Layer { get; private set; } /// <summary> /// A Boolean value that determines whether user events are ignored and removed from the event queue. /// </summary> [iOSVersion(2)] [Export("userInteractionEnabled")] public bool UserInteractionEnabled { get; set; } /// <summary> /// A Boolean value that indicates whether the receiver handles multi-touch events. /// </summary> [iOSVersion(2)] [Export("multipleTouchEnabled")] public bool MultipleTouchEnabled { get; set; } /// <summary> /// A Boolean value that indicates whether the receiver handles touch events exclusively. /// </summary> [iOSVersion(2)] [Export("exclusiveTouch")] public bool ExclusiveTouch { get; set; } /// <summary> /// The frame rectangle, which describes the view’s location and size in its superview’s coordinate system. /// </summary> [iOSVersion(2)] [Export("frame")] public CGRect Frame { get; set; } /// <summary> /// The receiver’s superview, or nil if it has none. (read-only) /// </summary> [iOSVersion(2)] [Export("superview")] public Optional<UIView> Superview { get; private set; } /// <summary> /// The receiver’s immediate subviews. (read-only) /// </summary> [iOSVersion(2)] [Export("subviews")] public AnyObject[] Subviews { get; private set; } /// <summary> /// The receiver’s window object, or nil if it has none. (read-only) /// </summary> [iOSVersion(2)] [Export("window")] public Optional<UIWindow> Window { get; private set; } /// <summary> /// An integer bit mask that determines how the receiver resizes itself when its superview’s bounds change. /// </summary> [iOSVersion(2)] [Export("autoresizingMask")] public UIViewAutoresizing AutoresizingMask { get; set; } /// <summary> /// A Boolean value that determines whether the receiver automatically resizes its subviews when its bounds change. /// </summary> [iOSVersion(2)] [Export("autoresizesSubviews")] public bool AutoresizesSubviews { get; set; } /// <summary> /// A flag used to determine how a view lays out its content when its bounds change. /// </summary> [iOSVersion(2)] [Export("contentMode")] public UIViewContentMode ContentMode { get; set; } /// <summary> /// The default spacing to use when laying out content in the view. /// </summary> [iOSVersion(8)] [Export("layoutMargins")] public UIEdgeInsets LayoutMargins { get; set; } /// <summary> /// A Boolean value indicating whether the current view also respects the margins of its superview. /// </summary> [iOSVersion(8)] [Export("preservesSuperviewLayoutMargins")] public bool PreservesSuperviewLayoutMargins { get; set; } /// <summary> /// The scale factor applied to the view. /// </summary> [iOSVersion(4)] [Export("contentScaleFactor")] public CGFloat ContentScaleFactor { get; set; } /// <summary> /// The gesture-recognizer objects currently attached to the view. /// </summary> [iOSVersion(3.2)] [Export("gestureRecognizers")] public AnyObject[] GestureRecognizers { get; set; } /// <summary> /// The array of motion effects for the view. /// </summary> [iOSVersion(7)] [Export("motionEffects")] public Optional<AnyObject[]> MotionEffects { get; set; } /// <summary> /// The identifier that determines whether the view supports state restoration. /// </summary> [iOSVersion(6)] [Export("restorationIdentifier")] public Optional<string> RestorationIdentifier { get; set; } /// <summary> /// An integer that you can use to identify view objects in your application. /// </summary> [iOSVersion(2)] [Export("tag")] public int Tag { get; set; } } /// <summary> /// Options for animating views using block objects. /// </summary> [iOSVersion(4)] public enum UIViewAnimationOptions { /// <summary> /// Lay out subviews at commit time so that they are animated along with their parent. /// </summary> [iOSVersion(4)] LayoutSubviews, /// <summary> /// Allow the user to interact with views while they are being animated. /// </summary> [iOSVersion(4)] AllowUserInteraction, /// <summary> /// Start the animation from the current setting associated with an already in-flight animation. If this key is not present, any in-flight animations are allowed to finish before the new animation is started. If another animation is not in flight, this key has no effect. /// </summary> [iOSVersion(4)] BeginFromCurrentState, /// <summary> /// Repeat the animation indefinitely. /// </summary> [iOSVersion(4)] Repeat, /// <summary> /// Run the animation backwards and forwards. Must be combined with the UIViewAnimationOptionRepeat option. /// </summary> [iOSVersion(4)] Autoreverse, /// <summary> /// Force the animation to use the original duration value specified when the animation was submitted. If this key is not present, the animation inherits the remaining duration of the in-flight animation, if any. /// </summary> [iOSVersion(4)] OverrideInheritedDuration, /// <summary> /// Force the animation to use the original curve value specified when the animation was submitted. If this key is not present, the animation inherits the curve of the in-flight animation, if any. /// </summary> [iOSVersion(4)] OverrideInheritedCurve, /// <summary> /// Animate the views by changing the property values dynamically and redrawing the view. If this key is not present, the views are animated using a snapshot image. /// </summary> [iOSVersion(4)] AllowAnimatedContent, /// <summary> /// When present, this key causes views to be hidden or shown (instead of removed or added) when performing a view transition. Both views must already be present in the parent view’s hierarchy when using this key. If this key is not present, the to-view in a transition is added to, and the from-view is removed from, the parent view’s list of subviews. /// </summary> [iOSVersion(4)] ShowHideTransitionViews, /// <summary> /// The option to not inherit the animation type or any options. /// </summary> [iOSVersion(4)] OverrideInheritedOptions, /// <summary> /// An ease-in ease-out curve causes the animation to begin slowly, accelerate through the middle of its duration, and then slow again before completing. /// </summary> [iOSVersion(4)] CurveEaseInOut, /// <summary> /// An ease-in curve causes the animation to begin slowly, and then speed up as it progresses. /// </summary> [iOSVersion(4)] CurveEaseIn, /// <summary> /// An ease-out curve causes the animation to begin quickly, and then slow as it completes. /// </summary> [iOSVersion(4)] CurveEaseOut, /// <summary> /// A linear animation curve causes an animation to occur evenly over its duration. /// </summary> [iOSVersion(4)] CurveLinear, /// <summary> /// No transition is specified. /// </summary> [iOSVersion(4)] TransitionNone, /// <summary> /// A transition that flips a view around its vertical axis from left to right. The left side of the view moves toward the front and right side toward the back. /// </summary> [iOSVersion(4)] TransitionFlipFromLeft, /// <summary> /// A transition that flips a view around its vertical axis from right to left. The right side of the view moves toward the front and left side toward the back. /// </summary> [iOSVersion(4)] TransitionFlipFromRight, /// <summary> /// A transition that curls a view up from the bottom. /// </summary> [iOSVersion(4)] TransitionCurlUp, /// <summary> /// A transition that curls a view down from the top. /// </summary> [iOSVersion(4)] TransitionCurlDown, /// <summary> /// A transition that dissolves from one view to the next. /// </summary> [iOSVersion(4)] TransitionCrossDissolve, /// <summary> /// A transition that flips a view around its horizontal axis from top to bottom. The top side of the view moves toward the front and the bottom side toward the back. /// </summary> [iOSVersion(4)] TransitionFlipFromTop, /// <summary> /// A transition that flips a view around its horizontal axis from bottom to top. The bottom side of the view moves toward the front and the top side toward the back. /// </summary> [iOSVersion(4)] TransitionFlipFromBottom, } /// <summary> /// Specifies the supported animation curves. /// </summary> [iOSVersion(2)] public enum UIViewAnimationCurve { /// <summary> /// An ease-in ease-out curve causes the animation to begin slowly, accelerate through the middle of its duration, and then slow again before completing. This is the default curve for most animations. /// </summary> [iOSVersion(2)] EaseInOut, /// <summary> /// An ease-in curve causes the animation to begin slowly, and then speed up as it progresses. /// </summary> [iOSVersion(2)] EaseIn, /// <summary> /// An ease-out curve causes the animation to begin quickly, and then slow down as it completes. /// </summary> [iOSVersion(2)] EaseOut, /// <summary> /// A linear animation curve causes an animation to occur evenly over its duration. /// </summary> [iOSVersion(2)] Linear, } /// <summary> /// Options to specify how a view adjusts its content when its size changes. /// </summary> [iOSVersion(2)] public enum UIViewContentMode { /// <summary> /// The option to scale the content to fit the size of itself by changing the aspect ratio of the content if necessary. /// </summary> [iOSVersion(2)] ScaleToFill, /// <summary> /// The option to scale the content to fit the size of the view by maintaining the aspect ratio. Any remaining area of the view’s bounds is transparent. /// </summary> [iOSVersion(2)] ScaleAspectFit, /// <summary> /// The option to scale the content to fill the size of the view. Some portion of the content may be clipped to fill the view’s bounds. /// </summary> [iOSVersion(2)] ScaleAspectFill, /// <summary> /// The option to redisplay the view when the bounds change by invoking the setNeedsDisplay method. /// </summary> [iOSVersion(2)] Redraw, /// <summary> /// The option to center the content in the view’s bounds, keeping the proportions the same. /// </summary> [iOSVersion(2)] Center, /// <summary> /// The option to center the content aligned at the top in the view’s bounds. /// </summary> [iOSVersion(2)] Top, /// <summary> /// The option to center the content aligned at the bottom in the view’s bounds. /// </summary> [iOSVersion(2)] Bottom, /// <summary> /// The option to align the content on the left of the view. /// </summary> [iOSVersion(2)] Left, /// <summary> /// The option to align the content on the right of the view. /// </summary> [iOSVersion(2)] Right, /// <summary> /// The option to align the content in the top-left corner of the view. /// </summary> [iOSVersion(2)] TopLeft, /// <summary> /// The option to align the content in the top-right corner of the view. /// </summary> [iOSVersion(2)] TopRight, /// <summary> /// The option to align the content in the bottom-left corner of the view. /// </summary> [iOSVersion(2)] BottomLeft, /// <summary> /// The option to align the content in the bottom-right corner of the view. /// </summary> [iOSVersion(2)] BottomRight, } /// <summary> /// The tint adjustment mode for the view. /// </summary> [iOSVersion(7)] public enum UIViewTintAdjustmentMode { /// <summary> /// The tint adjustment mode of the view is the same as its superview's tint adjustment mode (or UIViewTintAdjustmentModeNormal if the view has no superview). /// </summary> [iOSVersion(7)] Automatic, /// <summary> /// The view's tintColor property returns the completely unmodified tint color of the view. /// </summary> [iOSVersion(7)] Normal, /// <summary> /// The view's tintColor property returns a desaturated, dimmed version of the view's original tint color. /// </summary> [iOSVersion(7)] Dimmed, } /// <summary> /// Option to remove the views from the hierarchy when animation is complete. /// </summary> [iOSVersion(7)] public enum UISystemAnimation { /// <summary> /// Option to remove views from the view hierarchy when animation is complete. /// </summary> [iOSVersion(7)] Delete, } /// <summary> /// Options for automatic view resizing. /// </summary> [iOSVersion(2)] public enum UIViewAutoresizing { /// <summary> /// The option for indicating that the view does not resize. /// </summary> [iOSVersion(2)] None, /// <summary> /// Resizing performed by expanding or shrinking a view in the direction of the left margin. /// </summary> [iOSVersion(2)] FlexibleLeftMargin, /// <summary> /// Resizing performed by expanding or shrinking a view’s width. /// </summary> [iOSVersion(2)] FlexibleWidth, /// <summary> /// Resizing performed by expanding or shrinking a view in the direction of the right margin. /// </summary> [iOSVersion(2)] FlexibleRightMargin, /// <summary> /// Resizing performed by expanding or shrinking a view in the direction of the top margin. /// </summary> [iOSVersion(2)] FlexibleTopMargin, /// <summary> /// Resizing performed by expanding or shrinking a view's height. /// </summary> [iOSVersion(2)] FlexibleHeight, /// <summary> /// Resizing performed by expanding or shrinking a view in the direction of the bottom margin. /// </summary> [iOSVersion(2)] FlexibleBottomMargin, } /// <summary> /// Animation transition options for use in an animation block object. /// </summary> [iOSVersion(2)] public enum UIViewAnimationTransition { /// <summary> /// The option for indicating that no transition is specified. /// </summary> [iOSVersion(2)] None, /// <summary> /// A transition that flips a view around a vertical axis from left to right. The left side of the view moves towards the front and right side towards the back. /// </summary> [iOSVersion(2)] FlipFromLeft, /// <summary> /// A transition that flips a view around a vertical axis from right to left. The right side of the view moves towards the front and left side towards the back. /// </summary> [iOSVersion(2)] FlipFromRight, /// <summary> /// A transition that curls a view up from the bottom. /// </summary> [iOSVersion(2)] CurlUp, /// <summary> /// A transition that curls a view down from the top. /// </summary> [iOSVersion(2)] CurlDown, } /// <summary> /// Key frame animation options used with the animateKeyframesWithDuration:delay:options:animations:completion: method. /// </summary> [iOSVersion(7)] public enum UIViewKeyframeAnimationOptions { /// <summary> /// The option to lay out subviews at commit time so that they are animated along with their parent. /// </summary> [iOSVersion(7)] LayoutSubviews, /// <summary> /// The option that allows the user to interact with views while they are being animated. /// </summary> [iOSVersion(7)] AllowUserInteraction, /// <summary> /// The option to start an animation from the current setting associated with an already in-flight animation. If this option is not present, any in-flight animations are allowed to finish before the new animation is started. If another animation is not in flight, this option has no effect. /// </summary> [iOSVersion(7)] BeginFromCurrentState, /// <summary> /// The option to repeat an animation indefinitely. /// </summary> [iOSVersion(7)] Repeat, /// <summary> /// The option to run an animation backwards and forwards. Must be combined with the UIViewKeyframeAnimationOptionRepeat option. /// </summary> [iOSVersion(7)] Autoreverse, /// <summary> /// The option to force an animation to use the original duration value specified when the animation was submitted. If this option is not present, the animation inherits the remaining duration of the in-flight animation, if any. /// </summary> [iOSVersion(7)] OverrideInheritedDuration, /// <summary> /// The option to not inherit the animation type or any options. /// </summary> [iOSVersion(7)] OverrideInheritedOptions, /// <summary> /// The option to use a simple linear calculation when interpolating between keyframe values. /// </summary> [iOSVersion(7)] CalculationModeLinear, /// <summary> /// The option to not interpolate between keyframe values, but rather to jump directly to each new keyframe value. /// </summary> [iOSVersion(7)] CalculationModeDiscrete, /// <summary> /// The option to compute intermediate keyframe values using a simple pacing algorithm. This option results in an evenly paced animation. /// </summary> [iOSVersion(7)] CalculationModePaced, /// <summary> /// The option to compute intermediate frames using a default Catmull-Rom spline that passes through the keyframe values. You cannot adjust the parameters of this algorithm. /// </summary> [iOSVersion(7)] CalculationModeCubic, /// <summary> /// The option to compute intermediate frames using the cubic scheme while ignoring the timing properties of the animation. Instead, timing parameters are calculated implicitly to give the animation a constant velocity. /// </summary> [iOSVersion(7)] CalculationModeCubicPaced, } /// <summary> /// Keys that specify a horizontal or vertical layout constraint between objects. /// </summary> [iOSVersion(6)] public enum UILayoutConstraintAxis { /// <summary> /// The constraint applied when laying out the horizontal relationship between objects. /// </summary> [iOSVersion(6)] Horizontal, /// <summary> /// The constraint applied when laying out the vertical relationship between objects. /// </summary> [iOSVersion(6)] Vertical, } } \ No newline at end of file
+//using ObjectiveC; //using System; //using SharpSwift.Attributes; //using System.Collections.Generic; //using Foundation; //using CoreGraphics; //namespace UIKit //{ // /// <summary> // /// The UIView class defines a rectangular area on the screen and the interfaces for managing the content in that area. At runtime, a view object handles the rendering of any content in its area and also handles any interactions with that content. The UIView class itself provides basic behavior for filling its rectangular area with a background color. More sophisticated content can be presented by subclassing UIView and implementing the necessary drawing and event-handling code yourself. The UIKit framework also includes a set of standard subclasses that range from simple buttons to complex tables and can be used as-is. For example, a UILabel object draws a text string and a UIImageView object draws an image. // /// </summary> // /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIView_Class/index.html#//apple_ref/occ/cl/UIView"/> // [iOSVersion(2)] // public class UIView// : UIActivityIndicatorView//, AnyObject, NSCoding, NSObjectProtocol, Reflectable, UIAccessibilityIdentification, UIAppearance, UIAppearanceContainer, UICoordinateSpace, UIDynamicItem, UITraitEnvironment // { // public UIView() { } // /// <summary> // /// Initializes and returns a newly allocated view object with the specified frame rectangle. // /// </summary> // /// <param name="frame">The frame rectangle for the view, measured in points. The origin of the frame is relative to the superview in which you plan to add it. This method uses the frame rectangle to set the center and bounds properties accordingly.</param> // [iOSVersion(2)] // public UIView(CGRect frame) { } // /// <summary> // /// Returns the class used to create the layer for instances of this class. // /// </summary> // [iOSVersion(2)] // [Export("layerClass")] // public static AnyClass LayerClass() { return default(AnyClass); } // /// <summary> // /// Adds a view to the end of the receiver’s list of subviews. // /// </summary> // /// <param name="view">The view to be added. After being added, this view appears on top of any other subviews.</param> // [iOSVersion(2)] // [Export("addSubview")] // public virtual void AddSubview(UIView view) { } // /// <summary> // /// Moves the specified subview so that it appears on top of its siblings. // /// </summary> // /// <param name="view">The subview to move to the front.</param> // [iOSVersion(2)] // [Export("bringSubviewToFront")] // public virtual void BringSubviewToFront(UIView view) { } // /// <summary> // /// Moves the specified subview so that it appears behind its siblings. // /// </summary> // /// <param name="view">The subview to move to the back.</param> // [iOSVersion(2)] // [Export("sendSubviewToBack")] // public virtual void SendSubviewToBack(UIView view) { } // /// <summary> // /// Unlinks the view from its superview and its window, and removes it from the responder chain. // /// </summary> // [iOSVersion(2)] // [Export("removeFromSuperview")] // public virtual void RemoveFromSuperview() { } // /// <summary> // /// Inserts a subview at the specified index. // /// </summary> // /// <param name="view">The view to insert. This value cannot be nil.</param> // /// <param name="atIndex">The index in the array of the subviews property at which to insert the view. Subview indices start at 0 and cannot be greater than the number of subviews.</param> // [iOSVersion(2)] // [Export("insertSubview")] // public virtual void InsertSubview(UIView view, int atIndex) { } // /// <summary> // /// Inserts a view above another view in the view hierarchy. // /// </summary> // /// <param name="view">The view to insert. It’s removed from its superview if it’s not a sibling of siblingSubview.</param> // /// <param name="aboveSubview">The sibling view that will be behind the inserted view.</param> // [iOSVersion(2)] // [Export("insertSubview")] // public virtual void InsertSubview(UIView view, UIView aboveSubview) { } // /// <summary> // /// Inserts a view below another view in the view hierarchy. // /// </summary> // /// <param name="view">The view to insert below another view. It’s removed from its superview if it’s not a sibling of siblingSubview.</param> // /// <param name="belowSubview">The sibling view that will be above the inserted view.</param> // /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> // [iOSVersion(2)] // [Export("insertSubview")] // [IgnoreParameter("NAME_YOUR_PARAMS")] // public virtual void InsertSubview(UIView view, UIView belowSubview, bool NAME_YOUR_PARAMS = false) { } // /// <summary> // /// Exchanges the subviews at the specified indices. // /// </summary> // /// <param name="index1">The index of the first subview in the receiver.</param> // /// <param name="withSubviewAtIndex">The index of the second subview in the receiver.</param> // [iOSVersion(2)] // [Export("exchangeSubviewAtIndex")] // public virtual void ExchangeSubviewAtIndex(int index1, int withSubviewAtIndex) { } // /// <summary> // /// Returns a Boolean value indicating whether the receiver is a subview of a given view or identical to that view. // /// </summary> // /// <param name="view">The view to test against the receiver’s view hierarchy.</param> // [iOSVersion(2)] // [Export("isDescendantOfView")] // public virtual bool IsDescendantOfView(UIView view) { return default(bool); } // /// <summary> // /// Asks the view to calculate and return the size that best fits its subviews. // /// </summary> // /// <param name="size">The current size of the receiver.</param> // [iOSVersion(2)] // [Export("sizeThatFits")] // public virtual CGSize SizeThatFits(CGSize size) { return default(CGSize); } // /// <summary> // /// Resizes and moves the receiver view so it just encloses its subviews. // /// </summary> // [iOSVersion(2)] // [Export("sizeToFit")] // public virtual void SizeToFit() { } // /// <summary> // /// Lays out subviews. // /// </summary> // [iOSVersion(2)] // [Export("layoutSubviews")] // public virtual void LayoutSubviews() { } // /// <summary> // /// Invalidates the current layout of the receiver and triggers a layout update during the next update cycle. // /// </summary> // [iOSVersion(2)] // [Export("setNeedsLayout")] // public virtual void SetNeedsLayout() { } // /// <summary> // /// Lays out the subviews immediately. // /// </summary> // [iOSVersion(2)] // [Export("layoutIfNeeded")] // public virtual void LayoutIfNeeded() { } // /// <summary> // /// Returns whether the receiver depends on the constraint-based layout system. // /// </summary> // [iOSVersion(6)] // [Export("requiresConstraintBasedLayout")] // public static bool RequiresConstraintBasedLayout() { return default(bool); } // /// <summary> // /// Returns a Boolean value that indicates whether the view’s autoresizing mask is translated into constraints for the constraint-based layout system. // /// </summary> // [iOSVersion(6)] // [Export("translatesAutoresizingMaskIntoConstraints")] // public virtual bool TranslatesAutoresizingMaskIntoConstraints() { return default(bool); } // /// <summary> // /// Sets whether the view’s autoresizing mask should be translated into constraints for the constraint-based layout system. // /// </summary> // /// <param name="flag">true if the view’s autoresizing mask should be translated into constraints for the constraint-based layout system, false otherwise.</param> // [iOSVersion(6)] // [Export("setTranslatesAutoresizingMaskIntoConstraints")] // public virtual void SetTranslatesAutoresizingMaskIntoConstraints(bool flag) { } // /// <summary> // /// Returns the constraints held by the view. // /// </summary> // [iOSVersion(6)] // [Export("constraints")] // public virtual AnyObject[] Constraints() { return default(AnyObject[]); } // /// <summary> // /// Adds a constraint on the layout of the receiving view or its subviews. // /// </summary> // /// <param name="constraint">The constraint to be added to the view. The constraint may only reference the view itself or its subviews.</param> // [iOSVersion(6)] // [Export("addConstraint")] // public virtual void AddConstraint(NSLayoutConstraint constraint) { } // /// <summary> // /// Adds multiple constraints on the layout of the receiving view or its subviews. // /// </summary> // /// <param name="constraints">An array of constraints to be added to the view. All constraints may only reference the view itself or its subviews.</param> // [iOSVersion(6)] // [Export("addConstraints")] // public virtual void AddConstraints(AnyObject[] constraints) { } // /// <summary> // /// Removes the specified constraint from the view. // /// </summary> // /// <param name="constraint">The constraint to remove. Removing a constraint not held by the view has no effect.</param> // [iOSVersion(6)] // [Export("removeConstraint")] // public virtual void RemoveConstraint(NSLayoutConstraint constraint) { } // /// <summary> // /// Removes the specified constraints from the view. // /// </summary> // /// <param name="constraints">The constraints to remove.</param> // [iOSVersion(6)] // [Export("removeConstraints")] // public virtual void RemoveConstraints(AnyObject[] constraints) { } // /// <summary> // /// Returns the size of the view that satisfies the constraints it holds. // /// </summary> // /// <param name="targetSize">Indicates whether you want the smallest or largest possible size that meets the constraints. See Fitting Size for accepted values.</param> // [iOSVersion(6)] // [Export("systemLayoutSizeFittingSize")] // public virtual CGSize SystemLayoutSizeFittingSize(CGSize targetSize) { return default(CGSize); } // /// <summary> // /// Returns the size of the view that satisfies the constraints it holds. // /// </summary> // /// <param name="targetSize">Indicates whether you want the smallest or largest possible size that meets the constraints. See Fitting Size for accepted values.</param> // /// <param name="withHorizontalFittingPriority">The horizontal constraint priority.</param> // /// <param name="verticalFittingPriority">The vertical constraint priority.</param> // [iOSVersion(8)] // [Export("systemLayoutSizeFittingSize")] // public virtual CGSize SystemLayoutSizeFittingSize(CGSize targetSize, UILayoutPriority withHorizontalFittingPriority, UILayoutPriority verticalFittingPriority) { return default(CGSize); } // /// <summary> // /// Returns the natural size for the receiving view, considering only properties of the view itself. // /// </summary> // [iOSVersion(6)] // [Export("intrinsicContentSize")] // public virtual CGSize IntrinsicContentSize() { return default(CGSize); } // /// <summary> // /// Invalidates the view’s intrinsic content size. // /// </summary> // [iOSVersion(6)] // [Export("invalidateIntrinsicContentSize")] // public virtual void InvalidateIntrinsicContentSize() { } // /// <summary> // /// Returns the priority with which a view resists being made smaller than its intrinsic size. // /// </summary> // /// <param name="axis">The axis of the view that might be reduced.</param> // [iOSVersion(6)] // [Export("contentCompressionResistancePriorityForAxis")] // public virtual UILayoutPriority ContentCompressionResistancePriorityForAxis(UILayoutConstraintAxis axis) { return default(UILayoutPriority); } // /// <summary> // /// Sets the priority with which a view resists being made smaller than its intrinsic size. // /// </summary> // /// <param name="priority">The new priority.</param> // /// <param name="forAxis">The axis for which the compression resistance priority should be set.</param> // [iOSVersion(6)] // [Export("setContentCompressionResistancePriority")] // public virtual void SetContentCompressionResistancePriority(UILayoutPriority priority, UILayoutConstraintAxis forAxis) { } // /// <summary> // /// Returns the priority with which a view resists being made larger than its intrinsic size. // /// </summary> // /// <param name="axis">The axis of the view that might be enlarged.</param> // [iOSVersion(6)] // [Export("contentHuggingPriorityForAxis")] // public virtual UILayoutPriority ContentHuggingPriorityForAxis(UILayoutConstraintAxis axis) { return default(UILayoutPriority); } // /// <summary> // /// Sets the priority with which a view resists being made larger than its intrinsic size. // /// </summary> // /// <param name="priority">The new priority.</param> // /// <param name="forAxis">The axis for which the content hugging priority should be set.</param> // [iOSVersion(6)] // [Export("setContentHuggingPriority")] // public virtual void SetContentHuggingPriority(UILayoutPriority priority, UILayoutConstraintAxis forAxis) { } // /// <summary> // /// Returns the view’s alignment rectangle for a given frame. // /// </summary> // /// <param name="frame">The frame whose corresponding alignment rectangle is desired.</param> // [iOSVersion(6)] // [Export("alignmentRectForFrame")] // public virtual CGRect AlignmentRectForFrame(CGRect frame) { return default(CGRect); } // /// <summary> // /// Returns the view’s frame for a given alignment rectangle. // /// </summary> // /// <param name="alignmentRect">The alignment rectangle whose corresponding frame is desired.</param> // [iOSVersion(6)] // [Export("frameForAlignmentRect")] // public virtual CGRect FrameForAlignmentRect(CGRect alignmentRect) { return default(CGRect); } // /// <summary> // /// Returns the insets from the view’s frame that define its alignment rectangle. // /// </summary> // [iOSVersion(6)] // [Export("alignmentRectInsets")] // public virtual UIEdgeInsets AlignmentRectInsets() { return default(UIEdgeInsets); } // /// <summary> // /// Returns a view used to satisfy baseline constraints. // /// </summary> // [iOSVersion(6)] // [Export("viewForBaselineLayout")] // public virtual Optional<UIView> ViewForBaselineLayout() { return default(Optional<UIView>); } // /// <summary> // /// Returns whether the view’s constraints need updating. // /// </summary> // [iOSVersion(6)] // [Export("needsUpdateConstraints")] // public virtual bool NeedsUpdateConstraints() { return default(bool); } // /// <summary> // /// Controls whether the view’s constraints need updating. // /// </summary> // [iOSVersion(6)] // [Export("setNeedsUpdateConstraints")] // public virtual void SetNeedsUpdateConstraints() { } // /// <summary> // /// Updates constraints for the view. // /// </summary> // [iOSVersion(6)] // [Export("updateConstraints")] // public virtual void UpdateConstraints() { } // /// <summary> // /// Updates the constraints for the receiving view and its subviews. // /// </summary> // [iOSVersion(6)] // [Export("updateConstraintsIfNeeded")] // public virtual void UpdateConstraintsIfNeeded() { } // /// <summary> // /// Returns the constraints impacting the layout of the view for a given axis. // /// </summary> // /// <param name="axis">The axis for which the constraints should be found.</param> // [iOSVersion(6)] // [Export("constraintsAffectingLayoutForAxis")] // public virtual AnyObject[] ConstraintsAffectingLayoutForAxis(UILayoutConstraintAxis axis) { return default(AnyObject[]); } // /// <summary> // /// Returns whether the constraints impacting the layout of the view incompletely specify the location of the view. // /// </summary> // [iOSVersion(6)] // [Export("hasAmbiguousLayout")] // public virtual bool HasAmbiguousLayout() { return default(bool); } // /// <summary> // /// Randomly changes the frame of a view with an ambiguous layout between the different valid values. // /// </summary> // [iOSVersion(6)] // [Export("exerciseAmbiguityInLayout")] // public virtual void ExerciseAmbiguityInLayout() { } // /// <summary> // /// Notifies the view that the layout margins changed. // /// </summary> // [iOSVersion(8)] // [Export("layoutMarginsDidChange")] // public virtual void LayoutMarginsDidChange() { } // /// <summary> // /// Draws the receiver’s image within the passed-in rectangle. // /// </summary> // /// <param name="rect">The portion of the view’s bounds that needs to be updated. The first time your view is drawn, this rectangle is typically the entire visible bounds of your view. However, during subsequent drawing operations, the rectangle may specify only part of your view.</param> // [iOSVersion(2)] // [Export("drawRect")] // public virtual void DrawRect(CGRect rect) { } // /// <summary> // /// Marks the receiver’s entire bounds rectangle as needing to be redrawn. // /// </summary> // [iOSVersion(2)] // [Export("setNeedsDisplay")] // public virtual void SetNeedsDisplay() { } // /// <summary> // /// Marks the specified rectangle of the receiver as needing to be redrawn. // /// </summary> // /// <param name="invalidRect">The rectangular region of the receiver to mark as invalid; it should be specified in the coordinate system of the receiver.</param> // [iOSVersion(2)] // [Export("setNeedsDisplayInRect")] // public virtual void SetNeedsDisplayInRect(CGRect invalidRect) { } // /// <summary> // /// Called by the system when the tintColor property changes. // /// </summary> // [iOSVersion(7)] // [Export("tintColorDidChange")] // public virtual void TintColorDidChange() { } // /// <summary> // /// Returns a print formatter for the receiving view. // /// </summary> // [iOSVersion(4.2)] // [Export("viewPrintFormatter")] // public virtual UIViewPrintFormatter ViewPrintFormatter() { return default(UIViewPrintFormatter); } // /// <summary> // /// Implemented to draw the view’s content for printing. // /// </summary> // /// <param name="area">A rectangle that defines the area for drawing printable content.</param> // /// <param name="forViewPrintFormatter">An instance of UIViewPrintFormatter obtained by calling the viewPrintFormatter method.</param> // [iOSVersion(4.2)] // [Export("drawRect")] // public virtual void DrawRect(CGRect area, UIViewPrintFormatter forViewPrintFormatter) { } // /// <summary> // /// Attaches a gesture recognizer to the view. // /// </summary> // /// <param name="gestureRecognizer">An object whose class descends from the UIGestureRecognizer class. This parameter must not be nil.</param> // [iOSVersion(3.2)] // [Export("addGestureRecognizer")] // public virtual void AddGestureRecognizer(UIGestureRecognizer gestureRecognizer) { } // /// <summary> // /// Detaches a gesture recognizer from the receiving view. // /// </summary> // /// <param name="gestureRecognizer">An object whose class descends from the UIGestureRecognizer class.</param> // [iOSVersion(3.2)] // [Export("removeGestureRecognizer")] // public virtual void RemoveGestureRecognizer(UIGestureRecognizer gestureRecognizer) { } // /// <summary> // /// Asks the view if the gesture recognizer should be allowed to continue tracking touch events. // /// </summary> // /// <param name="gestureRecognizer">The gesture recognizer that is attempting to transition out of the UIGestureRecognizerStatePossible state.</param> // [iOSVersion(6)] // [Export("gestureRecognizerShouldBegin")] // public virtual bool GestureRecognizerShouldBegin(UIGestureRecognizer gestureRecognizer) { return default(bool); } // /// <summary> // /// Animate changes to one or more views using the specified duration, delay, options, and completion handler. // /// </summary> // /// <param name="duration">The total duration of the animations, measured in seconds. If you specify a negative value or 0, the changes are made without animating them.</param> // /// <param name="delay">The amount of time (measured in seconds) to wait before beginning the animations. Specify a value of 0 to begin the animations immediately.</param> // /// <param name="options">A mask of options indicating how you want to perform the animations. For a list of valid constants, see UIViewAnimationOptions.</param> // /// <param name="animations">A block object containing the changes to commit to the views. This is where you programmatically change any animatable properties of the views in your view hierarchy. This block takes no parameters and has no return value. This parameter must not be NULL.</param> // /// <param name="completion">A block object to be executed when the animation sequence ends. This block has no return value and takes a single Boolean argument that indicates whether or not the animations actually finished before the completion handler was called. If the duration of the animation is 0, this block is performed at the beginning of the next run loop cycle. This parameter may be NULL.</param> // [iOSVersion(4)] // [Export("animateWithDuration")] // public static void AnimateWithDuration(NSTimeInterval duration, NSTimeInterval delay, UIViewAnimationOptions options, Action animations, Optional<Action<bool>> completion) { } // /// <summary> // /// Animate changes to one or more views using the specified duration and completion handler. // /// </summary> // /// <param name="duration">The total duration of the animations, measured in seconds. If you specify a negative value or 0, the changes are made without animating them.</param> // /// <param name="animations">A block object containing the changes to commit to the views. This is where you programmatically change any animatable properties of the views in your view hierarchy. This block takes no parameters and has no return value. This parameter must not be NULL.</param> // /// <param name="completion">A block object to be executed when the animation sequence ends. This block has no return value and takes a single Boolean argument that indicates whether or not the animations actually finished before the completion handler was called. If the duration of the animation is 0, this block is performed at the beginning of the next run loop cycle. This parameter may be NULL.</param> // [iOSVersion(4)] // [Export("animateWithDuration")] // public static void AnimateWithDuration(NSTimeInterval duration, Action animations, Optional<Action<bool>> completion) { } // /// <summary> // /// Animate changes to one or more views using the specified duration. // /// </summary> // /// <param name="duration">The total duration of the animations, measured in seconds. If you specify a negative value or 0, the changes are made without animating them.</param> // /// <param name="animations">A block object containing the changes to commit to the views. This is where you programmatically change any animatable properties of the views in your view hierarchy. This block takes no parameters and has no return value. This parameter must not be NULL.</param> // [iOSVersion(4)] // [Export("animateWithDuration")] // public static void AnimateWithDuration(NSTimeInterval duration, Action animations) { } // /// <summary> // /// Creates a transition animation for the specified container view. // /// </summary> // /// <param name="view">The container view that performs the transition.</param> // /// <param name="duration">The duration of the transition animation, measured in seconds. If you specify a negative value or 0, the transition is made without animations.</param> // /// <param name="options">A mask of options indicating how you want to perform the animations. For a list of valid constants, see UIViewAnimationOptions.</param> // /// <param name="animations">A block object that contains the changes you want to make to the specified view. This block takes no parameters and has no return value. This parameter must not be NULL.</param> // /// <param name="completion">A block object to be executed when the animation sequence ends. This block has no return value and takes a single Boolean argument that indicates whether or not the animations actually finished before the completion handler was called. If the duration of the animation is 0, this block is performed at the beginning of the next run loop cycle. This parameter may be NULL.</param> // [iOSVersion(4)] // [Export("transitionWithView")] // public static void TransitionWithView(UIView view, NSTimeInterval duration, UIViewAnimationOptions options, Action animations, Optional<Action<bool>> completion) { } // /// <summary> // /// Creates a transition animation between the specified views using the given parameters. // /// </summary> // /// <param name="fromView">The starting view for the transition. By default, this view is removed from its superview as part of the transition.</param> // /// <param name="toView">The ending view for the transition. By default, this view is added to the superview of fromView as part of the transition.</param> // /// <param name="duration">The duration of the transition animation, measured in seconds. If you specify a negative value or 0, the transition is made without animations.</param> // /// <param name="options">A mask of options indicating how you want to perform the animations. For a list of valid constants, see UIViewAnimationOptions.</param> // /// <param name="completion">A block object to be executed when the animation sequence ends. This block has no return value and takes a single Boolean argument that indicates whether or not the animations actually finished before the completion handler was called. If the duration of the animation is 0, this block is performed at the beginning of the next run loop cycle. This parameter may be NULL.</param> // [iOSVersion(4)] // [Export("transitionFromView")] // public static void TransitionFromView(UIView fromView, UIView toView, NSTimeInterval duration, UIViewAnimationOptions options, Optional<Action<bool>> completion) { } // /// <summary> // /// Creates an animation block object that can be used to set up keyframe-based animations for the current view. // /// </summary> // /// <param name="duration">The duration of the overall animation, measured in seconds. If you specify a negative value or 0, changes are made immediately and without animations.</param> // /// <param name="delay">Specifies the time (in seconds) to wait before starting the animation.</param> // /// <param name="options">A mask of options indicating how you want to perform the animations. For a list of valid constants, see “UIViewKeyframeAnimationOptions”.</param> // /// <param name="animations">A block object containing the changes to commit to the views. Typically, you call the addKeyframeWithRelativeStartTime:relativeDuration:animations: method one or more times from inside this block. You may also change view values directly if you want those changes to animate over the full duration. This block takes no parameters and has no return value. Do not use a nil value for this parameter.</param> // /// <param name="completion">A block object to be executed when the animation sequence ends. This block has no return value and takes a single Boolean argument that indicates whether or not the animations finished before the completion handler was called. If the duration of the animation is 0, this block is performed at the beginning of the next run loop cycle. You can use a nil value for this parameter.</param> // [iOSVersion(7)] // [Export("animateKeyframesWithDuration")] // public static void AnimateKeyframesWithDuration(NSTimeInterval duration, NSTimeInterval delay, UIViewKeyframeAnimationOptions options, Action animations, Optional<Action<bool>> completion) { } // /// <summary> // /// Specifies the timing and animation values for a single frame of a keyframe animation. // /// </summary> // /// <param name="frameStartTime">The time at which to start the specified animations. This value must be in the range 0 to 1, where 0 represents the start of the overall animation and 1 represents the end of the overall animation. For example, for an animation that is two seconds in duration, specifying a start time of 0.5 causes the animations to begin executing one second after the start of the overall animation.</param> // /// <param name="relativeDuration">The length of time over which to animate to the specified value. This value must be in the range 0 to 1 and indicates the amount of time relative to the overall animation length. If you specify a value of 0, any properties you set in the animations block update immediately at the specified start time. If you specify a nonzero value, the properties animate over that amount of time. For example, for an animation that is two seconds in duration, specifying a duration of 0.5 results in an animation duration of one second.</param> // /// <param name="animations">A block object containing the animations you want to perform. This is where you programmatically change any animatable properties of the views in your view hierarchy. This block takes no parameters and has no return value. This parameter must not be nil.</param> // [iOSVersion(7)] // [Export("addKeyframeWithRelativeStartTime")] // public static void AddKeyframeWithRelativeStartTime(Double frameStartTime, Double relativeDuration, Action animations) { } // /// <summary> // /// Performs a specified system-provided animation on one or more views, along with optional parallel animations that you define. // /// </summary> // /// <param name="animation">The system animation to perform; a constant from the UISystemAnimation enum.</param> // /// <param name="onViews">The views to perform the animations on.</param> // /// <param name="options">A mask of options indicating how you want to perform the animations. For a list of valid constants, see UIViewAnimationOptions.</param> // /// <param name="animations">Additional animations you specify to run alongside the system animation, with the same timing and duration that the system animation defines or inherits. // /// In your additional animations, do not modify properties of the view on which the system animation is being performed.</param> // /// <param name="completion">A block object to be executed when the animation sequence ends. The single Boolean argument indicates whether or not the animations finished before the completion handler was called. If the animation duration is 0, this block is performed at the beginning of the next run-loop cycle. You can use a nil value for this parameter.</param> // [iOSVersion(7)] // [Export("performSystemAnimation")] // public static void PerformSystemAnimation(UISystemAnimation animation, AnyObject[] onViews, UIViewAnimationOptions options, Optional<Action> animations, Optional<Action<bool>> completion) { } // /// <summary> // /// Performs a view animation using a timing curve corresponding to the motion of a physical spring. // /// </summary> // /// <param name="duration">The total duration of the animations, measured in seconds. If you specify a negative value or 0, the changes are made without animating them.</param> // /// <param name="delay">The amount of time (measured in seconds) to wait before beginning the animations. Specify a value of 0 to begin the animations immediately.</param> // /// <param name="usingSpringWithDamping">The damping ratio for the spring animation as it approaches its quiescent state. // /// To smoothly decelerate the animation without oscillation, use a value of 1. Employ a damping ratio closer to zero to increase oscillation.</param> // /// <param name="initialSpringVelocity">The initial spring velocity. For smooth start to the animation, match this value to the view’s velocity as it was prior to attachment. // /// A value of 1 corresponds to the total animation distance traversed in one second. For example, if the total animation distance is 200 points and you want the start of the animation to match a view velocity of 100 pt/s, use a value of 0.5.</param> // /// <param name="options">A mask of options indicating how you want to perform the animations. For a list of valid constants, see UIViewAnimationOptions.</param> // /// <param name="animations">A block object containing the changes to commit to the views. This is where you programmatically change any animatable properties of the views in your view hierarchy. This block takes no parameters and has no return value. This parameter must not be NULL.</param> // /// <param name="completion">A block object to be executed when the animation sequence ends. This block has no return value and takes a single Boolean argument that indicates whether or not the animations actually finished before the completion handler was called. If the duration of the animation is 0, this block is performed at the beginning of the next run loop cycle. This parameter may be NULL.</param> // [iOSVersion(7)] // [Export("animateWithDuration")] // public static void AnimateWithDuration(NSTimeInterval duration, NSTimeInterval delay, CGFloat usingSpringWithDamping, CGFloat initialSpringVelocity, UIViewAnimationOptions options, Action animations, Optional<Action<bool>> completion) { } // /// <summary> // /// Disables a view transition animation. // /// </summary> // /// <param name="actionsWithoutAnimation">The view transition code that you want to perform without animation.</param> // [iOSVersion(7)] // [Export("performWithoutAnimation")] // public static void PerformWithoutAnimation(Action actionsWithoutAnimation) { } // /// <summary> // /// Marks the beginning of a begin/commit animation block. // /// </summary> // /// <param name="animationID">An application-supplied identifier for the animations.</param> // /// <param name="context">Custom data that you want to associate with this set of animations. information that is passed to the animation delegate messages—the selectors set using the setAnimationWillStartSelector: and setAnimationDidStopSelector: methods.</param> // [iOSVersion(2)] // [Export("beginAnimations")] // public static void BeginAnimations(Optional<string> animationID, UnsafeMutablePointer context) { } // /// <summary> // /// Marks the end of a begin/commit animation block and schedules the animations for execution. // /// </summary> // [iOSVersion(2)] // [Export("commitAnimations")] // public static void CommitAnimations() { } // /// <summary> // /// Sets the start time for the current animation block. // /// </summary> // /// <param name="startTime">The time to begin the animations.</param> // [iOSVersion(2)] // [Export("setAnimationStartDate")] // public static void SetAnimationStartDate(NSDate startTime) { } // /// <summary> // /// Sets whether animations are enabled. // /// </summary> // /// <param name="enabled">Specify true to enable animations or false to disable them.</param> // [iOSVersion(2)] // [Export("setAnimationsEnabled")] // public static void SetAnimationsEnabled(bool enabled) { } // /// <summary> // /// Sets the delegate for any animation messages. // /// </summary> // /// <param name="@delegate">An object that defines the methods registered using the setAnimationWillStartSelector: and setAnimationDidStopSelector: methods. The view maintains a strong reference to this object for the duration of the animation.</param> // [iOSVersion(2)] // [Export("setAnimationDelegate")] // public static void SetAnimationDelegate(Optional<AnyObject> @delegate) { } // /// <summary> // /// Sets the message to send to the animation delegate when the animation starts. // /// </summary> // /// <param name="selector">The message to send to the animation delegate before animations start. The default value is NULL. This selector should be of the form: - (void)animationDidStart:(NSString *)animationID context:(void *)context. Your method must take the following arguments: // /// animationID // /// An NSString containing an optional application-supplied identifier. This is the identifier string that is passed to the beginAnimations:context: method. This argument can be nil. // /// context // /// An optional application-supplied context. This is the context data passed to the beginAnimations:context: method. This argument can be nil.</param> // [iOSVersion(2)] // [Export("setAnimationWillStartSelector")] // public static void SetAnimationWillStartSelector(Selector selector) { } // /// <summary> // /// Sets the message to send to the animation delegate when animation stops. // /// </summary> // /// <param name="selector">The message sent to the animation delegate after animations end. The default value is NULL. The selector should be of the form: - (void)animationDidStop:(NSString *)animationID finished:(NSNumber *)finished context:(void *)context. Your method must take the following arguments: // /// animationID // /// An NSString containing an optional application-supplied identifier. This is the identifier that is passed to the beginAnimations:context: method. This argument can be nil. // /// finished // /// An NSNumber object containing a Boolean value. The value is true if the animation ran to completion before it stopped or false if it did not. // /// context // /// An optional application-supplied context. This is the context data passed to the beginAnimations:context: method. This argument can be nil.</param> // [iOSVersion(2)] // [Export("setAnimationDidStopSelector")] // public static void SetAnimationDidStopSelector(Selector selector) { } // /// <summary> // /// Sets the duration (measured in seconds) of the animations in an animation block. // /// </summary> // /// <param name="duration">The period over which the animation occurs, measured in seconds.</param> // [iOSVersion(2)] // [Export("setAnimationDuration")] // public static void SetAnimationDuration(NSTimeInterval duration) { } // /// <summary> // /// Sets the amount of time (in seconds) to wait before animating property changes within an animation block. // /// </summary> // /// <param name="delay"></param> // [iOSVersion(2)] // [Export("setAnimationDelay")] // public static void SetAnimationDelay(NSTimeInterval delay) { } // /// <summary> // /// Sets the curve to use when animating property changes within an animation block. // /// </summary> // /// <param name="curve"></param> // [iOSVersion(2)] // [Export("setAnimationCurve")] // public static void SetAnimationCurve(UIViewAnimationCurve curve) { } // /// <summary> // /// Sets the number of times animations within an animation block repeat. // /// </summary> // /// <param name="repeatCount">The number of times animations repeat. This value can be a fraction. If you specify the value 0, the animation is performed once without repeating.</param> // [iOSVersion(2)] // [Export("setAnimationRepeatCount")] // public static void SetAnimationRepeatCount(float repeatCount) { } // /// <summary> // /// Sets whether the animations within an animation block automatically reverse themselves. // /// </summary> // /// <param name="repeatAutoreverses">Specify true to enable autoreversing or false to disable it.</param> // [iOSVersion(2)] // [Export("setAnimationRepeatAutoreverses")] // public static void SetAnimationRepeatAutoreverses(bool repeatAutoreverses) { } // /// <summary> // /// Sets whether the animation should begin playing from the current state. // /// </summary> // /// <param name="fromCurrentState">Specify true if animations should begin from their currently visible state; otherwise, false.</param> // [iOSVersion(2)] // [Export("setAnimationBeginsFromCurrentState")] // public static void SetAnimationBeginsFromCurrentState(bool fromCurrentState) { } // /// <summary> // /// Sets a transition to apply to a view during an animation block. // /// </summary> // /// <param name="transition">A transition to apply to view. Possible values are described in UIViewAnimationTransition.</param> // /// <param name="forView">The view to apply the transition to.</param> // /// <param name="cache">If true, the before and after images of view are rendered once and used to create the frames in the animation. Caching can improve performance but if you set this parameter to true, you must not update the view or its subviews during the transition. Updating the view and its subviews may interfere with the caching behaviors and cause the view contents to be rendered incorrectly (or in the wrong location) during the animation. You must wait until the transition ends to update the view. // /// If false, the view and its contents must be updated for each frame of the transition animation, which may noticeably affect the frame rate.</param> // [iOSVersion(2)] // [Export("setAnimationTransition")] // public static void SetAnimationTransition(UIViewAnimationTransition transition, UIView forView, bool cache) { } // /// <summary> // /// Returns a Boolean value indicating whether animations are enabled. // /// </summary> // [iOSVersion(2)] // [Export("areAnimationsEnabled")] // public static bool AreAnimationsEnabled() { return default(bool); } // /// <summary> // /// Begins applying a motion effect to the view. // /// </summary> // /// <param name="effect">The motion effect.</param> // [iOSVersion(7)] // [Export("addMotionEffect")] // public virtual void AddMotionEffect(UIMotionEffect effect) { } // /// <summary> // /// Stops applying a motion effect to the view. // /// </summary> // /// <param name="effect">The motion effect.</param> // [iOSVersion(7)] // [Export("removeMotionEffect")] // public virtual void RemoveMotionEffect(UIMotionEffect effect) { } // /// <summary> // /// Encodes state-related information for the view. // /// </summary> // /// <param name="coder">The coder object to use to encode the state of the view.</param> // [iOSVersion(6)] // [Export("encodeRestorableStateWithCoder")] // public virtual void EncodeRestorableStateWithCoder(NSCoder coder) { } // /// <summary> // /// Decodes and restores state-related information for the view. // /// </summary> // /// <param name="coder">The coder object to use to decode the state of the view.</param> // [iOSVersion(6)] // [Export("decodeRestorableStateWithCoder")] // public virtual void DecodeRestorableStateWithCoder(NSCoder coder) { } // /// <summary> // /// Returns a snapshot view based on the contents of the current view. // /// </summary> // /// <param name="afterUpdates">A Boolean value that specifies whether the snapshot should be taken after recent changes have been incorporated. Pass the value false to capture the screen in its current state, which might not include recent changes.</param> // [iOSVersion(7)] // [Export("snapshotViewAfterScreenUpdates")] // public virtual UIView SnapshotViewAfterScreenUpdates(bool afterUpdates) { return default(UIView); } // /// <summary> // /// Returns a snapshot view based on the specified contents of the current view, with stretchable insets. // /// </summary> // /// <param name="rect">The portion of the view that you want to capture. The rectangle must be in the bounds coordinate space of the current view.</param> // /// <param name="afterScreenUpdates">A Boolean value that specifies whether the snapshot should be taken after recent changes have been incorporated. Pass the value false if you want to capture the screen in its current state, which might not include recent changes.</param> // /// <param name="withCapInsets">The edge insets that define the stretchable portion of the returned view’s content. You can specify UIEdgeInsetsZero if you do not want the contents of the returned view to have a stretchable area.</param> // [iOSVersion(7)] // [Export("resizableSnapshotViewFromRect")] // public virtual UIView ResizableSnapshotViewFromRect(CGRect rect, bool afterScreenUpdates, UIEdgeInsets withCapInsets) { return default(UIView); } // /// <summary> // /// Renders a snapshot of the complete view hierarchy as visible onscreen into the current context. // /// </summary> // /// <param name="rect">A rectangle specified in the local coordinate system (bounds) of the view.</param> // /// <param name="afterScreenUpdates">A Boolean value that indicates whether the snapshot should be rendered after recent changes have been incorporated. Specify the value false if you want to render a snapshot in the view hierarchy’s current state, which might not include recent changes.</param> // [iOSVersion(7)] // [Export("drawViewHierarchyInRect")] // public virtual bool DrawViewHierarchyInRect(CGRect rect, bool afterScreenUpdates) { return default(bool); } // /// <summary> // /// Returns the view whose tag matches the specified value. // /// </summary> // /// <param name="tag">The tag value to search for.</param> // [iOSVersion(2)] // [Export("viewWithTag")] // public virtual Optional<UIView> ViewWithTag(int tag) { return default(Optional<UIView>); } // /// <summary> // /// Converts a point from the receiver’s coordinate system to that of the specified view. // /// </summary> // /// <param name="point">A point specified in the local coordinate system (bounds) of the receiver.</param> // /// <param name="toView">The view into whose coordinate system point is to be converted. If view is nil, this method instead converts to window base coordinates. Otherwise, both view and the receiver must belong to the same UIWindow object.</param> // [iOSVersion(2)] // [Export("convertPoint")] // public virtual CGPoint ConvertPoint(CGPoint point, Optional<UIView> toView) { return default(CGPoint); } // /// <summary> // /// Converts a point from the coordinate system of a given view to that of the receiver. // /// </summary> // /// <param name="point">A point specified in the local coordinate system (bounds) of view.</param> // /// <param name="fromView">The view with point in its coordinate system. If view is nil, this method instead converts from window base coordinates. Otherwise, both view and the receiver must belong to the same UIWindow object.</param> // /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> // [iOSVersion(2)] // [Export("convertPoint")] // [IgnoreParameter("NAME_YOUR_PARAMS")] // public virtual CGPoint ConvertPoint(CGPoint point, Optional<UIView> fromView, bool NAME_YOUR_PARAMS = false) { return default(CGPoint); } // /// <summary> // /// Converts a rectangle from the receiver’s coordinate system to that of another view. // /// </summary> // /// <param name="rect">A rectangle specified in the local coordinate system (bounds) of the receiver.</param> // /// <param name="toView">The view that is the target of the conversion operation. If view is nil, this method instead converts to window base coordinates. Otherwise, both view and the receiver must belong to the same UIWindow object.</param> // [iOSVersion(2)] // [Export("convertRect")] // public virtual CGRect ConvertRect(CGRect rect, Optional<UIView> toView) { return default(CGRect); } // /// <summary> // /// Converts a rectangle from the coordinate system of another view to that of the receiver. // /// </summary> // /// <param name="rect">A rectangle specified in the local coordinate system (bounds) of view.</param> // /// <param name="fromView">The view with rect in its coordinate system. If view is nil, this method instead converts from window base coordinates. Otherwise, both view and the receiver must belong to the same UIWindow object.</param> // /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> // [iOSVersion(2)] // [Export("convertRect")] // [IgnoreParameter("NAME_YOUR_PARAMS")] // public virtual CGRect ConvertRect(CGRect rect, Optional<UIView> fromView, bool NAME_YOUR_PARAMS = false) { return default(CGRect); } // /// <summary> // /// Returns the farthest descendant of the receiver in the view hierarchy (including itself) that contains a specified point. // /// </summary> // /// <param name="point">A point specified in the receiver’s local coordinate system (bounds).</param> // /// <param name="withEvent">The event that warranted a call to this method. If you are calling this method from outside your event-handling code, you may specify nil.</param> // [iOSVersion(2)] // [Export("hitTest")] // public virtual Optional<UIView> HitTest(CGPoint point, Optional<UIEvent> withEvent) { return default(Optional<UIView>); } // /// <summary> // /// Returns a Boolean value indicating whether the receiver contains the specified point. // /// </summary> // /// <param name="point">A point that is in the receiver’s local coordinate system (bounds).</param> // /// <param name="withEvent">The event that warranted a call to this method. If you are calling this method from outside your event-handling code, you may specify nil.</param> // [iOSVersion(2)] // [Export("pointInside")] // public virtual bool PointInside(CGPoint point, Optional<UIEvent> withEvent) { return default(bool); } // /// <summary> // /// Causes the view (or one of its embedded text fields) to resign the first responder status. // /// </summary> // /// <param name="force">Specify true to force the first responder to resign, regardless of whether it wants to do so.</param> // [iOSVersion(2)] // [Export("endEditing")] // public virtual bool EndEditing(bool force) { return default(bool); } // /// <summary> // /// Tells the view that a subview was added. // /// </summary> // /// <param name="subview">The view that was added as a subview.</param> // [iOSVersion(2)] // [Export("didAddSubview")] // public virtual void DidAddSubview(UIView subview) { } // /// <summary> // /// Tells the view that a subview is about to be removed. // /// </summary> // /// <param name="subview">The subview that will be removed.</param> // [iOSVersion(2)] // [Export("willRemoveSubview")] // public virtual void WillRemoveSubview(UIView subview) { } // /// <summary> // /// Tells the view that its superview is about to change to the specified superview. // /// </summary> // /// <param name="newSuperview">A view object that will be the new superview of the receiver. This object may be nil.</param> // [iOSVersion(2)] // [Export("willMoveToSuperview")] // public virtual void WillMoveToSuperview(Optional<UIView> newSuperview) { } // /// <summary> // /// Tells the view that its superview changed. // /// </summary> // [iOSVersion(2)] // [Export("didMoveToSuperview")] // public virtual void DidMoveToSuperview() { } // /// <summary> // /// Tells the view that its window object is about to change. // /// </summary> // /// <param name="newWindow">The window object that will be at the root of the receiver's new view hierarchy. This parameter may be nil.</param> // [iOSVersion(2)] // [Export("willMoveToWindow")] // public virtual void WillMoveToWindow(Optional<UIWindow> newWindow) { } // /// <summary> // /// Tells the view that its window object changed. // /// </summary> // [iOSVersion(2)] // [Export("didMoveToWindow")] // public virtual void DidMoveToWindow() { } // /// <summary> // /// The view’s background color. // /// </summary> // [iOSVersion(2)] // [Export("backgroundColor")] // public Optional<UIColor> BackgroundColor { get; set; } // /// <summary> // /// A Boolean value that determines whether the view is hidden. // /// </summary> // [iOSVersion(2)] // [Export("hidden")] // public bool Hidden { get; set; } // /// <summary> // /// The view’s alpha value. // /// </summary> // [iOSVersion(2)] // [Export("alpha")] // public CGFloat Alpha { get; set; } // /// <summary> // /// A Boolean value that determines whether the view is opaque. // /// </summary> // [iOSVersion(2)] // [Export("opaque")] // public bool Opaque { get; set; } // /// <summary> // /// The first nondefault tint color value in the view’s hierarchy, ascending from and starting with the view itself. // /// </summary> // [iOSVersion(7)] // [Export("tintColor")] // public UIColor TintColor { get; set; } // /// <summary> // /// The first non-default tint adjustment mode value in the view’s hierarchy, ascending from and starting with the view itself. // /// </summary> // [iOSVersion(7)] // [Export("tintAdjustmentMode")] // public UIViewTintAdjustmentMode TintAdjustmentMode { get; set; } // /// <summary> // /// A Boolean value that determines whether subviews are confined to the bounds of the view. // /// </summary> // [iOSVersion(2)] // [Export("clipsToBounds")] // public bool ClipsToBounds { get; set; } // /// <summary> // /// A Boolean value that determines whether the view’s bounds should be automatically cleared before drawing. // /// </summary> // [iOSVersion(2)] // [Export("clearsContextBeforeDrawing")] // public bool ClearsContextBeforeDrawing { get; set; } // /// <summary> // /// An optional view whose alpha channel is used to mask a view’s content. // /// </summary> // [iOSVersion(8)] // [Export("maskView")] // public Optional<UIView> MaskView { get; set; } // /// <summary> // /// The view’s Core Animation layer used for rendering. (read-only) // /// </summary> // [iOSVersion(2)] // [Export("layer")] // public CALayer Layer { get; private set; } // /// <summary> // /// A Boolean value that determines whether user events are ignored and removed from the event queue. // /// </summary> // [iOSVersion(2)] // [Export("userInteractionEnabled")] // public bool UserInteractionEnabled { get; set; } // /// <summary> // /// A Boolean value that indicates whether the receiver handles multi-touch events. // /// </summary> // [iOSVersion(2)] // [Export("multipleTouchEnabled")] // public bool MultipleTouchEnabled { get; set; } // /// <summary> // /// A Boolean value that indicates whether the receiver handles touch events exclusively. // /// </summary> // [iOSVersion(2)] // [Export("exclusiveTouch")] // public bool ExclusiveTouch { get; set; } // /// <summary> // /// The frame rectangle, which describes the view’s location and size in its superview’s coordinate system. // /// </summary> // [iOSVersion(2)] // [Export("frame")] // public CGRect Frame { get; set; } // /// <summary> // /// The receiver’s superview, or nil if it has none. (read-only) // /// </summary> // [iOSVersion(2)] // [Export("superview")] // public Optional<UIView> Superview { get; private set; } // /// <summary> // /// The receiver’s immediate subviews. (read-only) // /// </summary> // [iOSVersion(2)] // [Export("subviews")] // public AnyObject[] Subviews { get; private set; } // /// <summary> // /// The receiver’s window object, or nil if it has none. (read-only) // /// </summary> // [iOSVersion(2)] // [Export("window")] // public Optional<UIWindow> Window { get; private set; } // /// <summary> // /// An integer bit mask that determines how the receiver resizes itself when its superview’s bounds change. // /// </summary> // [iOSVersion(2)] // [Export("autoresizingMask")] // public UIViewAutoresizing AutoresizingMask { get; set; } // /// <summary> // /// A Boolean value that determines whether the receiver automatically resizes its subviews when its bounds change. // /// </summary> // [iOSVersion(2)] // [Export("autoresizesSubviews")] // public bool AutoresizesSubviews { get; set; } // /// <summary> // /// A flag used to determine how a view lays out its content when its bounds change. // /// </summary> // [iOSVersion(2)] // [Export("contentMode")] // public UIViewContentMode ContentMode { get; set; } // /// <summary> // /// The default spacing to use when laying out content in the view. // /// </summary> // [iOSVersion(8)] // [Export("layoutMargins")] // public UIEdgeInsets LayoutMargins { get; set; } // /// <summary> // /// A Boolean value indicating whether the current view also respects the margins of its superview. // /// </summary> // [iOSVersion(8)] // [Export("preservesSuperviewLayoutMargins")] // public bool PreservesSuperviewLayoutMargins { get; set; } // /// <summary> // /// The scale factor applied to the view. // /// </summary> // [iOSVersion(4)] // [Export("contentScaleFactor")] // public CGFloat ContentScaleFactor { get; set; } // /// <summary> // /// The gesture-recognizer objects currently attached to the view. // /// </summary> // [iOSVersion(3.2)] // [Export("gestureRecognizers")] // public AnyObject[] GestureRecognizers { get; set; } // /// <summary> // /// The array of motion effects for the view. // /// </summary> // [iOSVersion(7)] // [Export("motionEffects")] // public Optional<AnyObject[]> MotionEffects { get; set; } // /// <summary> // /// The identifier that determines whether the view supports state restoration. // /// </summary> // [iOSVersion(6)] // [Export("restorationIdentifier")] // public Optional<string> RestorationIdentifier { get; set; } // /// <summary> // /// An integer that you can use to identify view objects in your application. // /// </summary> // [iOSVersion(2)] // [Export("tag")] // public int Tag { get; set; } // } // /// <summary> // /// Options for animating views using block objects. // /// </summary> // [iOSVersion(4)] // public enum UIViewAnimationOptions // { // /// <summary> // /// Lay out subviews at commit time so that they are animated along with their parent. // /// </summary> // [iOSVersion(4)] // LayoutSubviews, // /// <summary> // /// Allow the user to interact with views while they are being animated. // /// </summary> // [iOSVersion(4)] // AllowUserInteraction, // /// <summary> // /// Start the animation from the current setting associated with an already in-flight animation. If this key is not present, any in-flight animations are allowed to finish before the new animation is started. If another animation is not in flight, this key has no effect. // /// </summary> // [iOSVersion(4)] // BeginFromCurrentState, // /// <summary> // /// Repeat the animation indefinitely. // /// </summary> // [iOSVersion(4)] // Repeat, // /// <summary> // /// Run the animation backwards and forwards. Must be combined with the UIViewAnimationOptionRepeat option. // /// </summary> // [iOSVersion(4)] // Autoreverse, // /// <summary> // /// Force the animation to use the original duration value specified when the animation was submitted. If this key is not present, the animation inherits the remaining duration of the in-flight animation, if any. // /// </summary> // [iOSVersion(4)] // OverrideInheritedDuration, // /// <summary> // /// Force the animation to use the original curve value specified when the animation was submitted. If this key is not present, the animation inherits the curve of the in-flight animation, if any. // /// </summary> // [iOSVersion(4)] // OverrideInheritedCurve, // /// <summary> // /// Animate the views by changing the property values dynamically and redrawing the view. If this key is not present, the views are animated using a snapshot image. // /// </summary> // [iOSVersion(4)] // AllowAnimatedContent, // /// <summary> // /// When present, this key causes views to be hidden or shown (instead of removed or added) when performing a view transition. Both views must already be present in the parent view’s hierarchy when using this key. If this key is not present, the to-view in a transition is added to, and the from-view is removed from, the parent view’s list of subviews. // /// </summary> // [iOSVersion(4)] // ShowHideTransitionViews, // /// <summary> // /// The option to not inherit the animation type or any options. // /// </summary> // [iOSVersion(4)] // OverrideInheritedOptions, // /// <summary> // /// An ease-in ease-out curve causes the animation to begin slowly, accelerate through the middle of its duration, and then slow again before completing. // /// </summary> // [iOSVersion(4)] // CurveEaseInOut, // /// <summary> // /// An ease-in curve causes the animation to begin slowly, and then speed up as it progresses. // /// </summary> // [iOSVersion(4)] // CurveEaseIn, // /// <summary> // /// An ease-out curve causes the animation to begin quickly, and then slow as it completes. // /// </summary> // [iOSVersion(4)] // CurveEaseOut, // /// <summary> // /// A linear animation curve causes an animation to occur evenly over its duration. // /// </summary> // [iOSVersion(4)] // CurveLinear, // /// <summary> // /// No transition is specified. // /// </summary> // [iOSVersion(4)] // TransitionNone, // /// <summary> // /// A transition that flips a view around its vertical axis from left to right. The left side of the view moves toward the front and right side toward the back. // /// </summary> // [iOSVersion(4)] // TransitionFlipFromLeft, // /// <summary> // /// A transition that flips a view around its vertical axis from right to left. The right side of the view moves toward the front and left side toward the back. // /// </summary> // [iOSVersion(4)] // TransitionFlipFromRight, // /// <summary> // /// A transition that curls a view up from the bottom. // /// </summary> // [iOSVersion(4)] // TransitionCurlUp, // /// <summary> // /// A transition that curls a view down from the top. // /// </summary> // [iOSVersion(4)] // TransitionCurlDown, // /// <summary> // /// A transition that dissolves from one view to the next. // /// </summary> // [iOSVersion(4)] // TransitionCrossDissolve, // /// <summary> // /// A transition that flips a view around its horizontal axis from top to bottom. The top side of the view moves toward the front and the bottom side toward the back. // /// </summary> // [iOSVersion(4)] // TransitionFlipFromTop, // /// <summary> // /// A transition that flips a view around its horizontal axis from bottom to top. The bottom side of the view moves toward the front and the top side toward the back. // /// </summary> // [iOSVersion(4)] // TransitionFlipFromBottom, // } // /// <summary> // /// Specifies the supported animation curves. // /// </summary> // [iOSVersion(2)] // public enum UIViewAnimationCurve // { // /// <summary> // /// An ease-in ease-out curve causes the animation to begin slowly, accelerate through the middle of its duration, and then slow again before completing. This is the default curve for most animations. // /// </summary> // [iOSVersion(2)] // EaseInOut, // /// <summary> // /// An ease-in curve causes the animation to begin slowly, and then speed up as it progresses. // /// </summary> // [iOSVersion(2)] // EaseIn, // /// <summary> // /// An ease-out curve causes the animation to begin quickly, and then slow down as it completes. // /// </summary> // [iOSVersion(2)] // EaseOut, // /// <summary> // /// A linear animation curve causes an animation to occur evenly over its duration. // /// </summary> // [iOSVersion(2)] // Linear, // } // /// <summary> // /// Options to specify how a view adjusts its content when its size changes. // /// </summary> // [iOSVersion(2)] // public enum UIViewContentMode // { // /// <summary> // /// The option to scale the content to fit the size of itself by changing the aspect ratio of the content if necessary. // /// </summary> // [iOSVersion(2)] // ScaleToFill, // /// <summary> // /// The option to scale the content to fit the size of the view by maintaining the aspect ratio. Any remaining area of the view’s bounds is transparent. // /// </summary> // [iOSVersion(2)] // ScaleAspectFit, // /// <summary> // /// The option to scale the content to fill the size of the view. Some portion of the content may be clipped to fill the view’s bounds. // /// </summary> // [iOSVersion(2)] // ScaleAspectFill, // /// <summary> // /// The option to redisplay the view when the bounds change by invoking the setNeedsDisplay method. // /// </summary> // [iOSVersion(2)] // Redraw, // /// <summary> // /// The option to center the content in the view’s bounds, keeping the proportions the same. // /// </summary> // [iOSVersion(2)] // Center, // /// <summary> // /// The option to center the content aligned at the top in the view’s bounds. // /// </summary> // [iOSVersion(2)] // Top, // /// <summary> // /// The option to center the content aligned at the bottom in the view’s bounds. // /// </summary> // [iOSVersion(2)] // Bottom, // /// <summary> // /// The option to align the content on the left of the view. // /// </summary> // [iOSVersion(2)] // Left, // /// <summary> // /// The option to align the content on the right of the view. // /// </summary> // [iOSVersion(2)] // Right, // /// <summary> // /// The option to align the content in the top-left corner of the view. // /// </summary> // [iOSVersion(2)] // TopLeft, // /// <summary> // /// The option to align the content in the top-right corner of the view. // /// </summary> // [iOSVersion(2)] // TopRight, // /// <summary> // /// The option to align the content in the bottom-left corner of the view. // /// </summary> // [iOSVersion(2)] // BottomLeft, // /// <summary> // /// The option to align the content in the bottom-right corner of the view. // /// </summary> // [iOSVersion(2)] // BottomRight, // } // /// <summary> // /// The tint adjustment mode for the view. // /// </summary> // [iOSVersion(7)] // public enum UIViewTintAdjustmentMode // { // /// <summary> // /// The tint adjustment mode of the view is the same as its superview's tint adjustment mode (or UIViewTintAdjustmentModeNormal if the view has no superview). // /// </summary> // [iOSVersion(7)] // Automatic, // /// <summary> // /// The view's tintColor property returns the completely unmodified tint color of the view. // /// </summary> // [iOSVersion(7)] // Normal, // /// <summary> // /// The view's tintColor property returns a desaturated, dimmed version of the view's original tint color. // /// </summary> // [iOSVersion(7)] // Dimmed, // } // /// <summary> // /// Option to remove the views from the hierarchy when animation is complete. // /// </summary> // [iOSVersion(7)] // public enum UISystemAnimation // { // /// <summary> // /// Option to remove views from the view hierarchy when animation is complete. // /// </summary> // [iOSVersion(7)] // Delete, // } // /// <summary> // /// Options for automatic view resizing. // /// </summary> // [iOSVersion(2)] // public enum UIViewAutoresizing // { // /// <summary> // /// The option for indicating that the view does not resize. // /// </summary> // [iOSVersion(2)] // None, // /// <summary> // /// Resizing performed by expanding or shrinking a view in the direction of the left margin. // /// </summary> // [iOSVersion(2)] // FlexibleLeftMargin, // /// <summary> // /// Resizing performed by expanding or shrinking a view’s width. // /// </summary> // [iOSVersion(2)] // FlexibleWidth, // /// <summary> // /// Resizing performed by expanding or shrinking a view in the direction of the right margin. // /// </summary> // [iOSVersion(2)] // FlexibleRightMargin, // /// <summary> // /// Resizing performed by expanding or shrinking a view in the direction of the top margin. // /// </summary> // [iOSVersion(2)] // FlexibleTopMargin, // /// <summary> // /// Resizing performed by expanding or shrinking a view's height. // /// </summary> // [iOSVersion(2)] // FlexibleHeight, // /// <summary> // /// Resizing performed by expanding or shrinking a view in the direction of the bottom margin. // /// </summary> // [iOSVersion(2)] // FlexibleBottomMargin, // } // /// <summary> // /// Animation transition options for use in an animation block object. // /// </summary> // [iOSVersion(2)] // public enum UIViewAnimationTransition // { // /// <summary> // /// The option for indicating that no transition is specified. // /// </summary> // [iOSVersion(2)] // None, // /// <summary> // /// A transition that flips a view around a vertical axis from left to right. The left side of the view moves towards the front and right side towards the back. // /// </summary> // [iOSVersion(2)] // FlipFromLeft, // /// <summary> // /// A transition that flips a view around a vertical axis from right to left. The right side of the view moves towards the front and left side towards the back. // /// </summary> // [iOSVersion(2)] // FlipFromRight, // /// <summary> // /// A transition that curls a view up from the bottom. // /// </summary> // [iOSVersion(2)] // CurlUp, // /// <summary> // /// A transition that curls a view down from the top. // /// </summary> // [iOSVersion(2)] // CurlDown, // } // /// <summary> // /// Key frame animation options used with the animateKeyframesWithDuration:delay:options:animations:completion: method. // /// </summary> // [iOSVersion(7)] // public enum UIViewKeyframeAnimationOptions // { // /// <summary> // /// The option to lay out subviews at commit time so that they are animated along with their parent. // /// </summary> // [iOSVersion(7)] // LayoutSubviews, // /// <summary> // /// The option that allows the user to interact with views while they are being animated. // /// </summary> // [iOSVersion(7)] // AllowUserInteraction, // /// <summary> // /// The option to start an animation from the current setting associated with an already in-flight animation. If this option is not present, any in-flight animations are allowed to finish before the new animation is started. If another animation is not in flight, this option has no effect. // /// </summary> // [iOSVersion(7)] // BeginFromCurrentState, // /// <summary> // /// The option to repeat an animation indefinitely. // /// </summary> // [iOSVersion(7)] // Repeat, // /// <summary> // /// The option to run an animation backwards and forwards. Must be combined with the UIViewKeyframeAnimationOptionRepeat option. // /// </summary> // [iOSVersion(7)] // Autoreverse, // /// <summary> // /// The option to force an animation to use the original duration value specified when the animation was submitted. If this option is not present, the animation inherits the remaining duration of the in-flight animation, if any. // /// </summary> // [iOSVersion(7)] // OverrideInheritedDuration, // /// <summary> // /// The option to not inherit the animation type or any options. // /// </summary> // [iOSVersion(7)] // OverrideInheritedOptions, // /// <summary> // /// The option to use a simple linear calculation when interpolating between keyframe values. // /// </summary> // [iOSVersion(7)] // CalculationModeLinear, // /// <summary> // /// The option to not interpolate between keyframe values, but rather to jump directly to each new keyframe value. // /// </summary> // [iOSVersion(7)] // CalculationModeDiscrete, // /// <summary> // /// The option to compute intermediate keyframe values using a simple pacing algorithm. This option results in an evenly paced animation. // /// </summary> // [iOSVersion(7)] // CalculationModePaced, // /// <summary> // /// The option to compute intermediate frames using a default Catmull-Rom spline that passes through the keyframe values. You cannot adjust the parameters of this algorithm. // /// </summary> // [iOSVersion(7)] // CalculationModeCubic, // /// <summary> // /// The option to compute intermediate frames using the cubic scheme while ignoring the timing properties of the animation. Instead, timing parameters are calculated implicitly to give the animation a constant velocity. // /// </summary> // [iOSVersion(7)] // CalculationModeCubicPaced, // } // /// <summary> // /// Keys that specify a horizontal or vertical layout constraint between objects. // /// </summary> // [iOSVersion(6)] // public enum UILayoutConstraintAxis // { // /// <summary> // /// The constraint applied when laying out the horizontal relationship between objects. // /// </summary> // [iOSVersion(6)] // Horizontal, // /// <summary> // /// The constraint applied when laying out the vertical relationship between objects. // /// </summary> // [iOSVersion(6)] // Vertical, // } //} \ No newline at end of file
diff --git a/StubGen/StubGen/FrameworkURLData.cs b/StubGen/StubGen/FrameworkURLData.cs
index 14d5c648..d9998452 100644
--- a/StubGen/StubGen/FrameworkURLData.cs
+++ b/StubGen/StubGen/FrameworkURLData.cs
@@ -14,6 +14,7 @@ namespace StubGen
Dictionary<string, string> Extra { get; }
Dictionary<string, string> LinkReplaces { get; }
string[] Usings { get; }
+ string Namespace { get; }
}
public class FoundationData : IFrameworkURLData
@@ -32,6 +33,11 @@ namespace StubGen
}
}
+ public string Namespace
+ {
+ get { return "Foundation"; }
+ }
+
public string URL {
get
{
@@ -93,6 +99,11 @@ namespace StubGen
}
}
+ public string Namespace
+ {
+ get { return "UIKit"; }
+ }
+
public string URL
{
get
diff --git a/StubGen/StubGen/ScrapeFramework.cs b/StubGen/StubGen/ScrapeFramework.cs
index 12115036..8f4c36c8 100644
--- a/StubGen/StubGen/ScrapeFramework.cs
+++ b/StubGen/StubGen/ScrapeFramework.cs
@@ -27,6 +27,10 @@ namespace StubGen
}
catch
{
+ using (var writer = new StreamWriter(@"Output\Missing.txt", true))
+ {
+ writer.WriteLine(name);
+ }
Console.WriteLine("No link for " + name);
return;
}
@@ -47,7 +51,7 @@ namespace StubGen
using (var writer = new StreamWriter(outputPath + name + ".cs"))
{
writer.Write(Indenter.IndentDocument(
- Finals.Class(link,
+ Finals.Class(link, data.Namespace,
type == RowType.Interface, data.Usings)));
writer.Flush();
@@ -56,7 +60,10 @@ namespace StubGen
public static void ScrapeFramework(IFrameworkURLData data)
{
- Directory.Delete(@"Output\");
+ if(Directory.Exists(@"Output\"))
+ {
+ Directory.Delete(@"Output\", true);
+ }
Directory.CreateDirectory(@"Output\");
using (var client = new HttpClient())
@@ -84,7 +91,7 @@ namespace StubGen
using (var writer = new StreamWriter("Output\\" + extra.Key + ".cs"))
{
writer.Write(Indenter.IndentDocument(
- Finals.Class(extra.Value,
+ Finals.Class(extra.Value, data.Namespace,
false, data.Usings)));
writer.Flush();
diff --git a/StubGen/StubGen/Scrapers/Finals/ClassFinal.cs b/StubGen/StubGen/Scrapers/Finals/ClassFinal.cs
index 351e8c51..c76b2d44 100644
--- a/StubGen/StubGen/Scrapers/Finals/ClassFinal.cs
+++ b/StubGen/StubGen/Scrapers/Finals/ClassFinal.cs
@@ -72,7 +72,7 @@ namespace StubGen.Scrapers.Finals
/// </summary>
/// <param name="url"></param>
/// <returns></returns>
- public static string Class(string url, bool isInterface = false, string[] usings = null)
+ public static string Class(string url, string defaultNamespace, bool isInterface = false, string[] usings = null)
{
Signatures = new List<string>();
var parsed = new ScrapedClass(url);
@@ -95,7 +95,7 @@ namespace StubGen.Scrapers.Finals
//namespace xyz {
- output += NewLine + NewLine + "namespace " + parsed.Namespace + NewLine + "{" + NewLine;
+ output += NewLine + NewLine + "namespace " + (!string.IsNullOrWhiteSpace(parsed.Namespace) ? parsed.Namespace : defaultNamespace) + NewLine + "{" + NewLine;
//trivia, add the <see cref> tag
@@ -130,8 +130,13 @@ namespace StubGen.Scrapers.Finals
if (!isInterface)
{
- //Add a parameterless constructor for everything
- output += "public " + parsed.Name + "() { }" + NewLine;
+ if (
+ !parsed.Members.OfType<ScrapedMethod>()
+ .Any(method => method.IsConstructor && method.Parameters.Count == 0))
+ {
+ //Add a parameterless constructor for everything
+ output += "public " + parsed.Name + "() { }" + NewLine;
+ }
}
//Remove repeated properties
@@ -182,6 +187,12 @@ namespace StubGen.Scrapers.Finals
output += Finals.Notification(notification, parsed, isInterface);
}
+ output = output.TrimEnd() + NewLine + NewLine;
+
+ foreach (var strct in parsed.Members.OfType<ScrapedStruct>())
+ {
+ output += Finals.Struct(strct, parsed, isInterface);
+ }
return output.TrimEnd() + NewLine + "}" + NewLine;
}
diff --git a/StubGen/StubGen/Scrapers/Finals/MethodFinal.cs b/StubGen/StubGen/Scrapers/Finals/MethodFinal.cs
index c3f76ee2..b4ffd7a6 100644
--- a/StubGen/StubGen/Scrapers/Finals/MethodFinal.cs
+++ b/StubGen/StubGen/Scrapers/Finals/MethodFinal.cs
@@ -39,30 +39,17 @@ namespace StubGen.Scrapers.Finals
if (method.IsOptional)
{
- toOutput += "[Optional]" + NewLine;
+ toOutput += "[InheritOptional]" + NewLine;
}
//Deal with optional/unwrapped return values using attributes
if (method.ReturnType.Optional)
{
- toOutput += "[ValueOptional]" + NewLine;
+ toOutput += "[return:Optional]" + NewLine;
}
if (method.ReturnType.Unwrapped)
{
- toOutput += "[ValueUnwrapped]" + NewLine;
- }
-
- //Deal with optional/unwrapped parameters using attributes
- foreach (var param in method.Parameters)
- {
- if (param.Type.Optional)
- {
- toOutput += "[ParameterOptional(\"" + param.Name + "\")]" + NewLine;
- }
- if (param.Type.Unwrapped)
- {
- toOutput += "[ParameterUnwrapped(\"" + param.Name + "\")]" + NewLine;
- }
+ toOutput += "[return:Unwrapped]" + NewLine;
}
if (differentiator != "")
@@ -97,8 +84,12 @@ namespace StubGen.Scrapers.Finals
output += method.ReturnType.CSharpType + " ";
output += method.CSharpName + "(";
+
output += string.Join(", ",
- method.Parameters.Select(param => (param.Type.CSharpType == "Self" ? parent.CSharpName : param.Type.CSharpType) + " " + param.Name));
+ method.Parameters.Select(param =>
+ (param.Type.Optional ? "[Optional] " : "") + (param.Type.Unwrapped ? "[Unwrapped] " : "") +
+ (param.Type.CSharpType == "Self" ? parent.CSharpName : param.Type.CSharpType) + " " + param.Name));
+
output += differentiator + ")";
if (!isInterface)
{
@@ -119,7 +110,9 @@ namespace StubGen.Scrapers.Finals
{
output += "public " + parent.Name + "(";
output += string.Join(", ",
- method.Parameters.Select(param => (param.Type.CSharpType == "Self" ? parent.CSharpName : param.Type.CSharpType) + " " + param.Name));
+ method.Parameters.Select(param =>
+ (param.Type.Optional ? "[Optional] " : "") + (param.Type.Unwrapped ? "[Unwrapped] " : "") +
+ (param.Type.CSharpType == "Self" ? parent.CSharpName : param.Type.CSharpType) + " " + param.Name));
output += differentiator + ") { }" + NewLine + NewLine;
}
return output;
diff --git a/StubGen/StubGen/Scrapers/Finals/PropertyFinal.cs b/StubGen/StubGen/Scrapers/Finals/PropertyFinal.cs
index e6b0314a..765e9f75 100644
--- a/StubGen/StubGen/Scrapers/Finals/PropertyFinal.cs
+++ b/StubGen/StubGen/Scrapers/Finals/PropertyFinal.cs
@@ -17,11 +17,11 @@ namespace StubGen.Scrapers.Finals
if (property.Type.Optional)
{
- output += "[ValueOptional]" + NewLine;
+ output += "[Optional]" + NewLine;
}
if (property.Type.Unwrapped)
{
- output += "[ValueUnwrapped]" + NewLine;
+ output += "[Unwrapped]" + NewLine;
}
if (!isInterface) //todo: comment out private/static properties in interfaces
diff --git a/StubGen/StubGen/Scrapers/Finals/StructFinal.cs b/StubGen/StubGen/Scrapers/Finals/StructFinal.cs
new file mode 100644
index 00000000..7822a735
--- /dev/null
+++ b/StubGen/StubGen/Scrapers/Finals/StructFinal.cs
@@ -0,0 +1,53 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace StubGen.Scrapers.Finals
+{
+ partial class Finals
+ {
+ public static string Struct(ScrapedStruct scrapedEnum, ScrapedClass parent, bool isInterface)
+ {
+ var output = "";
+ output += scrapedEnum.GetTrivia();
+
+ output += "public struct " + scrapedEnum.CSharpName + NewLine + "{" + NewLine;
+ if (scrapedEnum.Members != null)
+ {
+ foreach (var member in scrapedEnum.Members)
+ {
+ output += member.GetTrivia();
+
+ if (member.Type.Optional)
+ {
+ output += "[Optional]" + NewLine;
+ }
+ if (member.Type.Unwrapped)
+ {
+ output += "[Unwrapped]" + NewLine;
+ }
+
+ if (!isInterface) //todo: comment out private/static properties in interfaces
+ {
+ output += member.Public ? "public " : "";
+ output += member.Static ? "static " : "";
+ }
+ if (member.Type.CSharpType == "Self")
+ {
+ member.Type.CSharpType = scrapedEnum.CSharpName;
+ }
+
+ output += member.Type.CSharpType + " ";
+ output += member.CSharpName + " { get; ";
+ output += member.ReadOnly ? "private set; " : "set; ";
+ output += "}" + NewLine + NewLine;
+ }
+ }
+
+ output += "}" + NewLine;
+ return output;
+ }
+ }
+}
diff --git a/StubGen/StubGen/Scrapers/ScrapedClass.cs b/StubGen/StubGen/Scrapers/ScrapedClass.cs
index 29875fd4..a23a4aa3 100644
--- a/StubGen/StubGen/Scrapers/ScrapedClass.cs
+++ b/StubGen/StubGen/Scrapers/ScrapedClass.cs
@@ -71,7 +71,8 @@ namespace StubGen
ConformsTo = conformsTo == null ? new string[0] : conformsTo.Select(node => node.RealInnerText().Trim());
//Parses the name
- Name = doc.DocumentNode.SelectSingleNode("//h1[@class='chapter-name']").RealInnerText();
+ Name = doc.DocumentNode.SelectSingleNode("//h1[@class='chapter-name']").RealInnerText().Replace(" ", "").Trim().Replace("Reference", "");
+ CSharpName = Name;
//Parses the namespace from the "Import Statement" section
var importStatement =
@@ -79,7 +80,19 @@ namespace StubGen
"//div[@class='z-module-import half']/code[@class='code-voice Swift']");
if (importStatement != null)
{
- Namespace = importStatement.RealInnerText().Split("import ")[1].Split(' ')[0].Trim();
+ try
+ {
+ Namespace = importStatement.RealInnerText().Split("import ")[1].Split(' ')[0].Trim()
+ .Replace(" ", "");
+ if (Namespace.EndsWith("Reference"))
+ {
+ Namespace = Namespace.Replace("Reference", "");
+ }
+ }
+ catch
+ {
+ Namespace = "";
+ }
}
//Parses the description
diff --git a/StubGen/StubGen/Scrapers/ScrapedMember.cs b/StubGen/StubGen/Scrapers/ScrapedMember.cs
index 2466b675..4f04a582 100644
--- a/StubGen/StubGen/Scrapers/ScrapedMember.cs
+++ b/StubGen/StubGen/Scrapers/ScrapedMember.cs
@@ -67,11 +67,18 @@ namespace StubGen
{
baseMember.iOSVersion = null;
- if (double.TryParse(
+ try
+ {
+ if (double.TryParse(
node.SelectSingleNode("./div[@class='availability']/p").RealInnerText().Split("in iOS ")[1]
.Split(' ')[0], out availability))
+ {
+ baseMember.iOSVersion = availability;
+ }
+ }
+ catch
{
- baseMember.iOSVersion = availability;
+ // ignored
}
}
else
@@ -92,6 +99,10 @@ namespace StubGen
{
return new ScrapedEnum(baseMember, realNode);
}
+ if (baseMember.Declaration.Contains("struct ") && baseMember.Declaration.Contains("var "))
+ {
+ return new ScrapedStruct(baseMember, realNode);
+ }
if ((baseMember.Declaration.Contains("init(") || baseMember.Declaration.Contains("func ")))
{
return new ScrapedMethod(baseMember, realNode);
diff --git a/StubGen/StubGen/Scrapers/ScrapedMethod.cs b/StubGen/StubGen/Scrapers/ScrapedMethod.cs
index d3162bf7..8b41df66 100644
--- a/StubGen/StubGen/Scrapers/ScrapedMethod.cs
+++ b/StubGen/StubGen/Scrapers/ScrapedMethod.cs
@@ -17,9 +17,14 @@ namespace StubGen
Description = node.SelectSingleNode("./div[@class='abstract']/p").RealInnerText();
Deprecated = Description.ToLower().Contains("deprecat");
IsOptional = Declaration.Contains("optional ");
- RawName = Declaration.Split('(')[0].Split("func ").Last();
+ RawName = Declaration.Split('(')[0].Split("func ").Last().Trim().Trim('`').Trim();
CSharpName = RawName.ToUpper()[0] + RawName.Substring(1);
+ if (new[] { "object", "string", "delegate", "int", "uint", "float", "class", "this", "new" }.Contains(CSharpName))
+ {
+ CSharpName = "@" + CSharpName;
+ }
+
if (Declaration.ToLower().Contains("init("))
{
CSharpName = "init";
@@ -64,6 +69,11 @@ namespace StubGen
ReturnDescription = null;
}
+ if (Declaration.ToLower().Contains("allocwithzone"))
+ {
+ var m = 1;
+ }
+
if (Declaration.Contains("->"))
{
var returnType = Declaration.Split("->").Last();
@@ -72,7 +82,7 @@ namespace StubGen
ReturnType = ScrapedType.ScrapeType(returnType);
}
}
- if (ReturnType == null)
+ if (ReturnType == null || ReturnType.CSharpType.Trim() == "")
{
ReturnType = ScrapedType.ScrapeType("void");
}
diff --git a/StubGen/StubGen/Scrapers/ScrapedParameter.cs b/StubGen/StubGen/Scrapers/ScrapedParameter.cs
index 905c1a1b..0f497684 100644
--- a/StubGen/StubGen/Scrapers/ScrapedParameter.cs
+++ b/StubGen/StubGen/Scrapers/ScrapedParameter.cs
@@ -19,8 +19,8 @@ namespace StubGen
var names = parameter.Split(':')[0].Trim().Split(' ');
Name = names[0].Trim() == "_" ? names.Last() : names[0];
InternalName = names.Last();
- Name = Name.Trim();
- if (new[] {"object", "string", "delegate"}.Contains(Name))
+ Name = Name.Trim().Trim('`');
+ if (new[] {"object", "string", "delegate","int","uint","float","class", "this", "new","bool","char","double","short","long"}.Contains(Name))
{
Name = "@" + Name;
}
diff --git a/StubGen/StubGen/Scrapers/ScrapedProperty.cs b/StubGen/StubGen/Scrapers/ScrapedProperty.cs
index 902e45ef..eef6bda6 100644
--- a/StubGen/StubGen/Scrapers/ScrapedProperty.cs
+++ b/StubGen/StubGen/Scrapers/ScrapedProperty.cs
@@ -1,5 +1,6 @@
using HtmlAgilityPack;
-
+using System.Collections.Generic;
+using System.Linq;
namespace StubGen
{
@@ -20,7 +21,12 @@ namespace StubGen
var name = Declaration.Split("var ")[1].Split(':')[0].Trim();
RawName = name;
- CSharpName = name.ToUpper()[0] + name.Substring(1);
+ CSharpName = (name.ToUpper()[0] + name.Substring(1)).Trim('`');
+
+ if (new[] { "object", "string", "delegate", "int", "uint", "float", "class", "this", "new" }.Contains(CSharpName))
+ {
+ CSharpName = "@" + CSharpName;
+ }
var type = Declaration.SplitAtFirstOccurrence(':')[1].Trim().Split('{')[0].Split(';')[0].Trim();
Type = ScrapedType.ScrapeType(type);
diff --git a/StubGen/StubGen/Scrapers/ScrapedStruct.cs b/StubGen/StubGen/Scrapers/ScrapedStruct.cs
new file mode 100644
index 00000000..4a6065e7
--- /dev/null
+++ b/StubGen/StubGen/Scrapers/ScrapedStruct.cs
@@ -0,0 +1,88 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using HtmlAgilityPack;
+
+
+namespace StubGen
+{
+ public class ScrapedStructMember : ScrapedMember
+ {
+ public ScrapedType Type { get; set; }
+ public bool ReadOnly { get; set; }
+ public ScrapedStructMember(string declaration)
+ {
+ Public = true;
+ RawName = declaration.Split("var ")[1].Split(':')[0].Trim();
+ CSharpName = RawName.ToUpper()[0] + RawName.Substring(1);
+ Type = ScrapedType.ScrapeType(declaration.Split(':')[1].Trim().Split(' ')[0]);
+ ReadOnly = declaration.Contains("{ get }");
+ }
+ }
+
+ public class ScrapedStruct : ScrapedMember
+ {
+ public List<ScrapedStructMember> Members { get; set; }
+
+ public ScrapedStruct(ScrapedMember baseValues, HtmlNode node) : base(baseValues)
+ {
+ Description = node.SelectSingleNode("./div[@class='abstract']/p").RealInnerText();
+ Deprecated = Description.ToLower().Contains("deprecat");
+
+ if (Declaration.StartsWith("struct "))
+ {
+ var name = Declaration.Split("struct ")[1].Split(' ')[0].Trim();
+
+ RawName = name;
+ CSharpName = name.ToUpper()[0] + name.Substring(1);
+
+ Members = new List<ScrapedStructMember>();
+ var members = Declaration.Split('\n').Select(str => str.Trim());
+ foreach (var member in members)
+ {
+ if (member.Contains("var "))
+ {
+ Members.Add(new ScrapedStructMember(member));
+ }
+ }
+ }
+
+ var descriptions = node.SelectNodes("./ul[@class='list-bullet']/li");
+ if (descriptions != null)
+ {
+ foreach (var desc in descriptions)
+ {
+ var optName = desc.SelectSingleNode("./p[@class='para Swift']").RealInnerText().Trim();
+
+ var definitionPs = desc.SelectNodes("./div[@class='definition']/p[@class='para']");
+ var availability = definitionPs.Last().RealInnerText().Trim();
+ double? availNum = null;
+ if (availability.Contains("in iOS "))
+ {
+ try
+ {
+ availNum = double.Parse(availability.Trim().Split("in iOS ")[1].Split(' ')[0]);
+ definitionPs.Remove(definitionPs.Last());
+ }
+ catch
+ {
+
+ }
+ }
+ var def = string.Join(Environment.NewLine, definitionPs.Select(defi => defi.RealInnerText().Trim()));
+
+ var memberWithName = Members.FirstOrDefault(mem => mem.RawName == optName);
+ if (memberWithName != null)
+ {
+ memberWithName.iOSVersion = availNum;
+ memberWithName.Description = def;
+ memberWithName.Deprecated = def.ToLower().Contains("deprec");
+ }
+ }
+ }
+
+ Public = true;
+ Static = true;
+ }
+ }
+}
diff --git a/StubGen/StubGen/Scrapers/Types.cs b/StubGen/StubGen/Scrapers/Types.cs
index f4d74a40..95c0c922 100644
--- a/StubGen/StubGen/Scrapers/Types.cs
+++ b/StubGen/StubGen/Scrapers/Types.cs
@@ -28,6 +28,7 @@ namespace StubGen
}
CSharpType = Name.CSharpType + "<" + string.Join(", ", Types.Select(genType => genType.CSharpType)) + ">";
+ CSharpType = CSharpType.Replace("<void>", "");
}
}
@@ -121,14 +122,15 @@ namespace StubGen
RawSwift = type;
CSharpType = Helpers.ParseType(type);
-
- Unwrapped = type.EndsWith("!");
- Optional = type.EndsWith("?");
}
public static ScrapedType ScrapeType(string type)
{
+ type = type.Trim().Trim('`').Trim();
+ var endOfString = (type.Length > 2) ? type.Substring(type.Length - 2) : "";
+
type = Helpers.ParseType(type);
+
if (type == "" || type == ")" || type == "(AnyObject!," || type == "([NSObject" || type == "(ConstUnsafePointer<()>" || (type.StartsWith("(") && type.Count(chr => chr == ')') == 0))
{
return new ScrapedType("WEIRD");
@@ -158,7 +160,7 @@ namespace StubGen
return new ScrapedGeneric(type);
}
- return new ScrapedType(type);
+ return new ScrapedType(type) { Unwrapped = endOfString.Contains("!"), Optional = endOfString.Contains("?") };
}
}
}
diff --git a/StubGen/StubGen/StubGen.csproj b/StubGen/StubGen/StubGen.csproj
index 937d414d..86ba2282 100644
--- a/StubGen/StubGen/StubGen.csproj
+++ b/StubGen/StubGen/StubGen.csproj
@@ -58,13 +58,16 @@
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="ScrapeFramework.cs" />
+ <Compile Include="Scrapers\Extensions.cs" />
<Compile Include="Scrapers\Finals\ClassFinal.cs" />
+ <Compile Include="Scrapers\Finals\StructFinal.cs" />
<Compile Include="Scrapers\Finals\Notification.cs" />
<Compile Include="Scrapers\Finals\TypeDefFinal.cs" />
<Compile Include="Scrapers\Finals\MethodFinal.cs" />
<Compile Include="Scrapers\Finals\EnumFinal.cs" />
<Compile Include="Scrapers\Finals\PropertyFinal.cs" />
<Compile Include="Scrapers\ScrapedClass.cs" />
+ <Compile Include="Scrapers\ScrapedStruct.cs" />
<Compile Include="Scrapers\ScrapedMember.cs" />
<Compile Include="Scrapers\ScrapedMethod.cs" />
<Compile Include="Scrapers\ScrapedParameter.cs" />
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback