111
117
IntPtr Constructor (string str);
113
119
[Export ("initWithString:attributes:")]
120
[EditorBrowsable (EditorBrowsableState.Advanced)]
114
121
IntPtr Constructor (string str, NSDictionary attributes);
116
123
[Export ("initWithAttributedString:")]
117
124
IntPtr Constructor (NSAttributedString other);
126
[Export ("enumerateAttributesInRange:options:usingBlock:")]
127
void EnumerateAttributes (NSRange range, NSAttributedStringEnumeration options, NSAttributedRangeCallback callback);
129
[Export ("enumerateAttribute:inRange:options:usingBlock:")]
130
void EnumerateAttribute (NSString attributeName, NSRange inRange, NSAttributedStringEnumeration options, NSAttributedStringCallback callback);
121
134
SizeF Size { get; }
126
136
[Field ("NSFontAttributeName", "AppKit")]
128
[Field ("NSFontAttributeName")]
130
137
NSString FontAttributeName { get; }
133
139
[Field ("NSLinkAttributeName", "AppKit")]
135
[Field ("NSLinkAttributeName")]
137
140
NSString LinkAttributeName { get; }
140
142
[Field ("NSUnderlineStyleAttributeName", "AppKit")]
142
[Field ("NSUnderlineStyleAttributeName")]
144
143
NSString UnderlineStyleAttributeName { get; }
147
145
[Field ("NSStrikethroughStyleAttributeName", "AppKit")]
149
[Field ("NSStrikethroughStyleAttributeName")]
151
146
NSString StrikethroughStyleAttributeName { get; }
154
148
[Field ("NSStrokeWidthAttributeName", "AppKit")]
156
[Field ("NSStrokeWidthAttributeName")]
158
149
NSString StrokeWidthAttributeName { get; }
161
151
[Field ("NSParagraphStyleAttributeName", "AppKit")]
163
[Field ("NSParagraphStyleAttributeName")]
165
152
NSString ParagraphStyleAttributeName { get; }
168
154
[Field ("NSForegroundColorAttributeName", "AppKit")]
170
[Field ("NSForegroundColorAttributeName")]
172
155
NSString ForegroundColorAttributeName { get; }
175
157
[Field ("NSBackgroundColorAttributeName", "AppKit")]
177
[Field ("NSBackgroundColorAttributeName")]
179
158
NSString BackgroundColorAttributeName { get; }
182
160
[Field ("NSLigatureAttributeName", "AppKit")]
184
[Field ("NSLigatureAttributeName")]
186
161
NSString LigatureAttributeName { get; }
163
[Field ("NSObliquenessAttributeName", "AppKit")]
164
NSString ObliquenessAttributeName { get; }
166
[Field ("NSSuperscriptAttributeName", "AppKit")]
167
NSString SuperscriptAttributeName { get; }
169
[Field ("NSAttachmentAttributeName", "AppKit")]
170
NSString AttachmentAttributeName { get; }
172
[Field ("NSBaselineOffsetAttributeName", "AppKit")]
173
NSString BaselineOffsetAttributeName { get; }
175
[Field ("NSKernAttributeName", "AppKit")]
176
NSString KernAttributeName { get; }
178
[Field ("NSStrokeColorAttributeName", "AppKit")]
179
NSString StrokeColorAttributeName { get; }
181
[Field ("NSUnderlineColorAttributeName", "AppKit")]
182
NSString UnderlineColorAttributeName { get; }
184
[Field ("NSStrikethroughColorAttributeName", "AppKit")]
185
NSString StrikethroughColorAttributeName { get; }
187
[Field ("NSShadowAttributeName", "AppKit")]
188
NSString ShadowAttributeName { get; }
190
[Field ("NSExpansionAttributeName", "AppKit")]
191
NSString ExpansionAttributeName { get; }
193
[Field ("NSCursorAttributeName", "AppKit")]
194
NSString CursorAttributeName { get; }
196
[Field ("NSToolTipAttributeName", "AppKit")]
197
NSString ToolTipAttributeName { get; }
199
[Field ("NSMarkedClauseSegmentAttributeName", "AppKit")]
200
NSString MarkedClauseSegmentAttributeName { get; }
202
[Field ("NSWritingDirectionAttributeName", "AppKit")]
203
NSString WritingDirectionAttributeName { get; }
205
[Field ("NSVerticalGlyphFormAttributeName", "AppKit")]
206
NSString VerticalGlyphFormAttributeName { get; }
188
208
[Export ("initWithData:options:documentAttributes:error:")]
189
209
IntPtr Constructor (NSData data, NSDictionary options, out NSDictionary docAttributes, out NSError error);
302
347
//- (NSRange)rangeOfUnit:(NSCalendarUnit)smaller inUnit:(NSCalendarUnit)larger forDate:(NSDate *)date;
303
348
//- (NSUInteger)ordinalityOfUnit:(NSCalendarUnit)smaller inUnit:(NSCalendarUnit)larger forDate:(NSDate *)date;
304
349
//- (BOOL)rangeOfUnit:(NSCalendarUnit)unit startDate:(NSDate **)datep interval:(NSTimeInterval *)tip forDate:(NSDate *)date AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER;
305
//- (NSDate *)dateFromComponents:(NSDateComponents *)comps;
306
//- (NSDateComponents *)components:(NSUInteger)unitFlags fromDate:(NSDate *)date;
307
//- (NSDate *)dateByAddingComponents:(NSDateComponents *)comps toDate:(NSDate *)date options:(NSUInteger)opts;
308
//- (NSDateComponents *)components:(NSUInteger)unitFlags fromDate:(NSDate *)startingDate toDate:(NSDate *)resultDate options:(NSUInteger)opts;
351
[Export ("components:fromDate:")]
352
NSDateComponents Components (NSCalendarUnit unitFlags, NSDate fromDate);
354
[Export ("components:fromDate:toDate:options:")]
355
NSDateComponents Components (NSCalendarUnit unitFlags, NSDate fromDate, NSDate toDate, NSDateComponentsWrappingBehavior opts);
357
[Export ("dateByAddingComponents:toDate:options:")]
358
NSDate DateByAddingComponents (NSDateComponents comps, NSDate date, NSDateComponentsWrappingBehavior opts);
360
[Export ("dateFromComponents:")]
361
NSDate DateFromComponents (NSDateComponents comps);
363
[Field ("NSGregorianCalendar"), Internal]
364
NSString NSGregorianCalendar { get; }
366
[Field ("NSBuddhistCalendar"), Internal]
367
NSString NSBuddhistCalendar { get; }
369
[Field ("NSChineseCalendar"), Internal]
370
NSString NSChineseCalendar { get; }
372
[Field ("NSHebrewCalendar"), Internal]
373
NSString NSHebrewCalendar { get; }
375
[Field ("NSIslamicCalendar"), Internal]
376
NSString NSIslamicCalendar { get; }
378
[Field ("NSIslamicCivilCalendar"), Internal]
379
NSString NSIslamicCivilCalendar { get; }
381
[Field ("NSJapaneseCalendar"), Internal]
382
NSString NSJapaneseCalendar { get; }
384
[Field ("NSRepublicOfChinaCalendar"), Internal]
385
NSString NSRepublicOfChinaCalendar { get; }
387
[Field ("NSPersianCalendar"), Internal]
388
NSString NSPersianCalendar { get; }
390
[Field ("NSIndianCalendar"), Internal]
391
NSString NSIndianCalendar { get; }
393
[Field ("NSISO8601Calendar"), Internal]
394
NSString NSISO8601Calendar { get; }
612
713
[Export ("yearForWeekOfYear")]
613
714
int YearForWeekOfYear { get; set; }
717
[Export ("leapMonth")]
718
bool IsLeapMonth { [Bind ("isLeapMonth")] get; set; }
722
[BaseType (typeof (NSFormatter))]
723
interface NSByteCountFormatter {
724
[Export ("allowsNonnumericFormatting")]
725
bool AllowsNonnumericFormatting { get; set; }
727
[Export ("includesUnit")]
728
bool IncludesUnit { get; set; }
730
[Export ("includesCount")]
731
bool IncludesCount { get; set; }
733
[Export ("includesActualByteCount")]
734
bool IncludesActualByteCount { get; set; }
736
[Export ("adaptive")]
737
bool Adaptive { [Bind ("isAdaptive")] get; set; }
739
[Export ("zeroPadsFractionDigits")]
740
bool ZeroPadsFractionDigits { get; set; }
743
[Export ("stringFromByteCount:countStyle:")]
744
string Format (long byteCount, NSByteCountFormatterCountStyle countStyle);
746
[Export ("stringFromByteCount:")]
747
string Format (long byteCount);
749
[Export ("allowedUnits")]
750
NSByteCountFormatterUnits AllowedUnits { get; set; }
752
[Export ("countStyle")]
753
NSByteCountFormatterCountStyle CountStyle { get; set; }
616
756
[BaseType (typeof (NSFormatter))]
617
757
public interface NSDateFormatter {
618
758
[Export ("stringFromDate:")]
720
861
[Export ("gregorianStartDate")]
721
862
NSDate GregorianStartDate { get; set; }
865
public delegate void NSFileHandleUpdateHandler (NSFileHandle handle);
867
public interface NSFileHandleReadEventArgs {
868
[Export ("NSFileHandleNotificationDataItem")]
869
NSData AvailableData { get; }
871
[Export ("NSFileHandleError", ArgumentSemantic.Assign)]
872
int UnixErrorCode { get; }
875
public interface NSFileHandleConnectionAcceptedEventArgs {
876
[Export ("NSFileHandleNotificationFileHandleItem")]
877
NSFileHandle NearSocketConnection { get; }
879
[Export ("NSFileHandleError", ArgumentSemantic.Assign)]
880
int UnixErrorCode { get; }
883
[BaseType (typeof (NSObject))]
884
[DisableDefaultCtor] // return invalid handle
885
public interface NSFileHandle
887
[Export ("availableData")]
888
NSData AvailableData ();
890
[Export ("readDataToEndOfFile")]
891
NSData ReadDataToEndOfFile ();
893
[Export ("readDataOfLength:")]
894
NSData ReadDataOfLength (uint length);
896
[Export ("writeData:")]
897
void WriteData (NSData data);
899
[Export ("offsetInFile")]
900
ulong OffsetInFile ();
902
[Export ("seekToEndOfFile")]
903
ulong SeekToEndOfFile ();
905
[Export ("seekToFileOffset:")]
906
void SeekToFileOffset (ulong offset);
908
[Export ("truncateFileAtOffset:")]
909
void TruncateFileAtOffset (ulong offset);
911
[Export ("synchronizeFile")]
912
void SynchronizeFile ();
914
[Export ("closeFile")]
918
[Export ("fileHandleWithStandardInput")]
919
NSFileHandle FromStandardInput ();
922
[Export ("fileHandleWithStandardOutput")]
923
NSFileHandle FromStandardOutput ();
926
[Export ("fileHandleWithStandardError")]
927
NSFileHandle FromStandardError ();
930
[Export ("fileHandleWithNullDevice")]
931
NSFileHandle FromNullDevice ();
934
[Export ("fileHandleForReadingAtPath:")]
935
NSFileHandle OpenRead (string path);
938
[Export ("fileHandleForWritingAtPath:")]
939
NSFileHandle OpenWrite (string path);
942
[Export ("fileHandleForUpdatingAtPath:")]
943
NSFileHandle OpenUpdate (string path);
946
[Export ("fileHandleForReadingFromURL:error:")]
947
NSFileHandle OpenReadUrl (NSUrl url, out NSError error);
950
[Export ("fileHandleForWritingToURL:error:")]
951
NSFileHandle OpenWriteUrl (NSUrl url, out NSError error);
954
[Export ("fileHandleForUpdatingURL:error:")]
955
NSFileHandle OpenUpdateUrl (NSUrl url, out NSError error);
957
[Export ("readInBackgroundAndNotifyForModes:")]
958
void ReadInBackground (NSString [] notifyRunLoopModes);
960
[Export ("readInBackgroundAndNotify")]
961
void ReadInBackground ();
963
[Export ("readToEndOfFileInBackgroundAndNotifyForModes:")]
964
void ReadToEndOfFileInBackground (NSString [] notifyRunLoopModes);
966
[Export ("readToEndOfFileInBackgroundAndNotify")]
967
void ReadToEndOfFileInBackground ();
969
[Export ("acceptConnectionInBackgroundAndNotifyForModes:")]
970
void AcceptConnectionInBackground (NSString [] notifyRunLoopModes);
972
[Export ("acceptConnectionInBackgroundAndNotify")]
973
void AcceptConnectionInBackground ();
975
[Export ("waitForDataInBackgroundAndNotifyForModes:")]
976
void WaitForDataInBackground (NSString [] notifyRunLoopModes);
978
[Export ("waitForDataInBackgroundAndNotify")]
979
void WaitForDataInBackground ();
981
[Export ("initWithFileDescriptor:closeOnDealloc:")]
982
IntPtr Constructor (int fd, bool closeOnDealloc);
984
[Export ("initWithFileDescriptor:")]
985
IntPtr Constructor (int fd);
987
[Export ("fileDescriptor")]
988
int FileDescriptor { get; }
990
[Export ("setReadabilityHandler:")]
991
void SetReadabilityHandler ([NullAllowed] NSFileHandleUpdateHandler readCallback);
993
[Export ("setWriteabilityHandler:")]
994
void SetWriteabilityHandle ([NullAllowed] NSFileHandleUpdateHandler writeCallback);
996
[Field ("NSFileHandleOperationException")]
997
NSString OperationException { get; }
999
[Field ("NSFileHandleReadCompletionNotification")]
1000
[Notification (typeof (NSFileHandleReadEventArgs))]
1001
NSString ReadCompletionNotification { get; }
1003
[Field ("NSFileHandleReadToEndOfFileCompletionNotification")]
1004
[Notification (typeof (NSFileHandleReadEventArgs))]
1005
NSString ReadToEndOfFileCompletionNotification { get; }
1007
[Field ("NSFileHandleConnectionAcceptedNotification")]
1008
[Notification (typeof (NSFileHandleConnectionAcceptedEventArgs))]
1009
NSString ConnectionAcceptedNotification { get; }
1012
[Field ("NSFileHandleDataAvailableNotification")]
1014
NSString DataAvailableNotification { get; }
1017
[BaseType (typeof (NSObject))]
1018
public interface NSPipe {
1020
[Export ("fileHandleForReading")]
1021
NSFileHandle ReadHandle { get; }
1023
[Export ("fileHandleForWriting")]
1024
NSFileHandle WriteHandle { get; }
724
1031
//@interface NSFormatter : NSObject <NSCopying, NSCoding>
725
1032
[BaseType (typeof (NSObject))]
726
1033
public interface NSFormatter {
1468
1800
[Export ("sentenceRangeForRange:")]
1469
1801
NSRange GetSentenceRangeForRange (NSRange range);
1471
[Export ("tagAtIndex:scheme:tokenRange:sentenceRange:"), Internal]
1472
string GetTag (int charIndex, NSString tagScheme, IntPtr tokenRangePtr, IntPtr sentenceRangePtr);
1803
[Export ("tagAtIndex:scheme:tokenRange:sentenceRange:")]
1804
string GetTag (int charIndex, NSString tagScheme, ref NSRange tokenRange, ref NSRange sentenceRange);
1474
1806
[Export ("tagsInRange:scheme:options:tokenRanges:"), Internal]
1475
NSString [] GetTangsInRange (NSRange range, NSString tagScheme, NSLinguisticTaggerOptions opts, IntPtr refToNSArrayTokenRanges);
1807
NSString [] GetTagsInRange (NSRange range, NSString tagScheme, NSLinguisticTaggerOptions opts, ref NSArray tokenRanges);
1477
1809
[Export ("possibleTagsAtIndex:scheme:tokenRange:sentenceRange:scores:"), Internal]
1478
NSString [] GetPossibleTags (int charIndex, NSString tagScheme, IntPtr tokenRangePointer, IntPtr sentenceRangePointer, IntPtr IntPtrToReturnArrayScores);
1810
NSString [] GetPossibleTags (int charIndex, NSString tagScheme, ref NSRange tokenRange, ref NSRange sentenceRange, ref NSArray scores);
1480
1812
//Detected properties
1481
1813
[Export ("string")]
1641
1975
[Export ("componentsFromLocaleIdentifier:")][Static]
1642
1976
NSDictionary ComponentsFromLocaleIdentifier (string identifier);
1644
[Export ("localeIdentifierFromComponents:")]
1978
[Export ("localeIdentifierFromComponents:")][Static]
1645
1979
string LocaleIdentifierFromComponents (NSDictionary dict);
1647
[Export ("canonicalLanguageIdentifierFromString")]
1981
[Export ("canonicalLanguageIdentifierFromString:")][Static]
1648
1982
string CanonicalLanguageIdentifierFromString (string str);
1650
[Export ("canonicalLocaleIdentifierFromString:")]
1984
[Export ("canonicalLocaleIdentifierFromString:")][Static]
1651
1985
string CanonicalLocaleIdentifierFromString (string str);
1653
[Export ("characterDirectionForLanguage")]
1987
[Export ("characterDirectionForLanguage:")][Static]
1654
1988
NSLocaleLanguageDirection GetCharacterDirection (string isoLanguageCode);
1656
[Export ("lineDirectionForLanguage")]
1990
[Export ("lineDirectionForLanguage:")][Static]
1657
1991
NSLocaleLanguageDirection GetLineDirection (string isoLanguageCode);
1659
1993
[Field ("NSCurrentLocaleDidChangeNotification")]
2198
2568
/* These methods come from NURL_AppKitAdditions */
2200
[Export ("URLFromPasteboard:")][Static]
2570
[Export ("URLFromPasteboard:")]
2201
2572
NSUrl FromPasteboard (NSPasteboard pasteboard);
2203
2574
[Export ("writeToPasteboard:")]
2204
2575
void WriteToPasteboard (NSPasteboard pasteboard);
2577
[Export("bookmarkDataWithContentsOfURL:error:")]
2579
NSData GetBookmarkData (NSUrl bookmarkFileUrl, out NSError error);
2581
[Export("URLByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:")]
2583
NSUrl FromBookmarkData (NSData data, NSUrlBookmarkResolutionOptions options, [NullAllowed] NSUrl relativeToUrl, out bool isStale, out NSError error);
2585
[Export("writeBookmarkData:toURL:options:error:")]
2587
bool WriteBookmarkData (NSData data, NSUrl bookmarkFileUrl, NSUrlBookmarkCreationOptions options, out NSError error);
2589
[Export("startAccessingSecurityScopedResource")]
2590
bool StartAccessingSecurityScopedResource();
2592
[Export("stopAccessingSecurityScopedResource")]
2593
void StopAccessingSecurityScopedResource();
2595
[Export("filePathURL")]
2596
NSUrl FilePathUrl { get; }
2598
[Export("fileReferenceURL")]
2599
NSUrl FileReferenceUrl { get; }
2208
2603
[Export ("getResourceValue:forKey:error:"), Internal]
2521
2916
[Field ("NSURLUbiquitousItemPercentDownloadedKey")]
2917
[Obsolete ("Deprecated in iOS 6.0. Use NSMetadataQuery.UbiquitousItemPercentDownloadedKey on NSMetadataItem")]
2522
2918
NSString UbiquitousItemPercentDownloadedKey { get; }
2921
[Obsolete ("Deprecated in iOS 6.0. Use NSMetadataQuery.NSMetadataUbiquitousItemPercentUploadedKey on NSMetadataItem")]
2525
2922
[Field ("NSURLUbiquitousItemPercentUploadedKey")]
2526
2923
NSString UbiquitousItemPercentUploadedKey { get; }
2529
2927
[Field ("NSURLIsExcludedFromBackupKey")]
2530
2928
NSString IsExcludedFromBackupKey { get; }
2930
[Export ("bookmarkDataWithOptions:includingResourceValuesForKeys:relativeToURL:error:")]
2931
NSData CreateBookmarkData (NSUrlBookmarkCreationOptions options, string [] resourceValues, [NullAllowed] NSUrl relativeUrl, out NSError error);
2933
[Export ("initByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:")]
2934
IntPtr Constructor (NSData bookmarkData, NSUrlBookmarkResolutionOptions resolutionOptions, [NullAllowed] NSUrl relativeUrl, out bool bookmarkIsStale, out NSError error);
2936
[Field ("NSURLPathKey")]
2937
[Since (6,0)][MountainLion]
2938
NSString PathKey { get; }
2533
2941
[BaseType (typeof (NSObject), Name="NSURLCache")]
3087
3515
[Export ("setObject:forKey:"), Internal]
3088
3516
void SetObject (NSObject obj, NSObject key);
3520
[Export ("dictionaryWithSharedKeySet:")]
3521
NSDictionary FromSharedKeySet (NSObject sharedKeyToken);
3091
3524
[BaseType (typeof (NSSet))]
3092
3525
public interface NSMutableSet {
3526
[Export ("initWithArray:")]
3527
IntPtr Constructor (NSArray other);
3529
[Export ("initWithSet:")]
3530
IntPtr Constructor (NSSet other);
3532
[Export ("initWithCapacity:")]
3533
IntPtr Constructor (int capacity);
3093
3535
[Export ("addObject:")]
3094
3536
void Add (NSObject nso);
3096
3538
[Export ("removeObject:")]
3097
3539
void Remove (NSObject nso);
3541
[Export ("removeAllObjects")]
3544
[Export ("addObjectsFromArray:")]
3545
void AddObjects (NSObject [] objects);
3547
[Internal, Export ("minusSet:")]
3548
void MinusSet (NSSet other);
3100
3551
[BaseType (typeof (NSUrlRequest), Name="NSMutableURLRequest")]
3349
3806
[Export ("stringByReplacingCharactersInRange:withString:")]
3350
3807
NSString Replace (NSRange range, NSString replacement);
3809
// start methods from NSStringPathExtensions category
3812
[Export("pathWithComponents:")]
3813
string[] PathWithComponents( string[] components );
3815
[Export("pathComponents")]
3816
string[] PathComponents { get; }
3818
[Export("isAbsolutePath")]
3819
bool IsAbsolutePath { get; }
3821
[Export("lastPathComponent")]
3822
NSString LastPathComponent { get; }
3824
[Export("stringByDeletingLastPathComponent")]
3825
NSString DeleteLastPathComponent();
3827
[Export("stringByAppendingPathComponent:")]
3828
NSString AppendPathComponent( NSString str );
3830
[Export("pathExtension")]
3831
NSString PathExtension { get; }
3833
[Export("stringByDeletingPathExtension")]
3834
NSString DeletePathExtension();
3836
[Export("stringByAppendingPathExtension:")]
3837
NSString AppendPathExtension( NSString str );
3839
[Export("stringByAbbreviatingWithTildeInPath")]
3840
NSString AbbreviateTildeInPath();
3842
[Export("stringByExpandingTildeInPath")]
3843
NSString ExpandTildeInPath();
3845
[Export("stringByStandardizingPath")]
3846
NSString StandarizePath();
3848
[Export("stringByResolvingSymlinksInPath")]
3849
NSString ResolveSymlinksInPath();
3851
[Export("stringsByAppendingPaths:")]
3852
string[] AppendPaths( string[] paths );
3854
// end methods from NSStringPathExtensions category
3857
[Export ("capitalizedStringWithLocale:")]
3858
string Capitalize (NSLocale locale);
3861
[Export ("lowercaseStringWithLocale:")]
3862
string ToLower (NSLocale locale);
3865
[Export ("uppercaseStringWithLocale:")]
3866
string ToUpper (NSLocale locale);
3870
[BaseType (typeof (NSObject))]
3871
public interface NSStringDrawingContext {
3872
[Export ("minimumScaleFactor")]
3873
float MinimumScaleFactor { get; set; }
3875
[Export ("minimumTrackingAdjustment")]
3876
float MinimumTrackingAdjustment { get; set; }
3878
[Export ("actualScaleFactor")]
3879
float ActualScaleFactor { get; }
3881
[Export ("actualTrackingAdjustment")]
3882
float ActualTrackingAdjustment { get; }
3884
[Export ("totalBounds")]
3885
RectangleF TotalBounds { get; }
3354
3888
[BaseType (typeof (NSStream))]
3889
[DefaultCtorVisibility (Visibility.Protected)]
3355
3890
public interface NSInputStream {
3356
3891
[Export ("hasBytesAvailable")]
3357
3892
bool HasBytesAvailable ();
3359
3894
[Export ("initWithFileAtPath:")]
3360
3895
IntPtr Constructor (string path);
3897
[Export ("initWithData:")]
3898
IntPtr Constructor (NSData data);
3900
[Export ("initWithURL:")]
3901
IntPtr Constructor (NSUrl url);
3363
3904
[Export ("inputStreamWithData:")]
3364
3905
NSInputStream FromData (NSData data);
3488
4032
[Export ("commitEditingWithDelegate:didCommitSelector:contextInfo:")]
3489
4033
//void CommitEditingWithDelegateDidCommitSelectorContextInfo (NSObject objDelegate, Selector didCommitSelector, IntPtr contextInfo);
3490
4034
void CommitEditing (NSObject objDelegate, Selector didCommitSelector, IntPtr contextInfo);
3492
4036
[Export ("copy")]
3493
4037
NSObject Copy ();
3495
4039
[Export ("mutableCopy")]
3496
4040
NSObject MutableCopy ();
4042
[Export ("description")]
4043
string Description { get; }
4045
[Export ("debugDescription")]
4046
string DebugDescription { get; }
4049
// Extra Perform methods, with selectors
4051
[Export ("performSelector:withObject:afterDelay:inModes:")]
4052
void PerformSelector (Selector selector, NSObject withObject, double afterDelay, NSString [] nsRunLoopModes);
4054
[Export ("performSelector:onThread:withObject:waitUntilDone:")]
4055
void PerformSelector (Selector selector, NSThread onThread, NSObject withObject, bool waitUntilDone);
4057
[Export ("performSelector:onThread:withObject:waitUntilDone:modes:")]
4058
void PerformSelector (Selector selector, NSThread onThread, NSObject withObject, bool waitUntilDone, NSString [] nsRunLoopModes);
4060
[Static, Export ("cancelPreviousPerformRequestsWithTarget:")]
4061
void CancelPreviousPerformRequest (NSObject aTarget);
4063
[Static, Export ("cancelPreviousPerformRequestsWithTarget:selector:object:")]
4064
void CancelPreviousPerformRequest (NSObject aTarget, Selector selector, [NullAllowed] NSObject argument);
3499
4067
[BaseType (typeof (NSObject))]
4843
5476
NSDecimalNumber Divide (NSDecimalNumber d, NSObject Behavior);
4845
5478
[Export ("decimalNumberByRaisingToPower:")]
4846
NSDecimalNumber RaiseTo (NSDecimalNumber d);
5479
NSDecimalNumber RaiseTo (uint power);
4848
5481
[Export ("decimalNumberByRaisingToPower:withBehavior:")]
4849
NSDecimalNumber RaiseTo (NSDecimalNumber d, NSObject Behavior);
5482
NSDecimalNumber RaiseTo (uint power, NSObject Behavior);
4851
5484
[Export ("decimalNumberByMultiplyingByPowerOf10:")]
4852
NSDecimalNumber MultiplyPowerOf10 (NSDecimalNumber d);
5485
NSDecimalNumber MultiplyPowerOf10 (short power);
4854
5487
[Export ("decimalNumberByMultiplyingByPowerOf10:withBehavior:")]
4855
NSDecimalNumber MultiplyPowerOf10 (NSDecimalNumber d, NSObject Behavior);
5488
NSDecimalNumber MultiplyPowerOf10 (short power, NSObject Behavior);
4857
5490
[Export ("decimalNumberByRoundingAccordingToBehavior:")]
4858
5491
NSDecimalNumber Rounding (NSObject behavior);
4960
5602
string OperatingSystemVersionString { get; }
4962
5604
[Export ("physicalMemory")]
4963
long PhysicalMemory { get; }
5605
ulong PhysicalMemory { get; }
4965
5607
[Export ("processorCount")]
4966
5608
int ProcessorCount { get; }
4968
5610
[Export ("activeProcessorCount")]
4969
5611
int ActiveProcessorCount { get; }
5613
[Export ("systemUptime")]
5614
double SystemUptime { get; }
5616
[Export ("enableSuddenTermination")]
5617
void EnableSuddenTermination ();
5619
[Export ("disableSuddenTermination")]
5620
void DisableSuddenTermination ();
5622
[Export ("enableAutomaticTermination:")]
5623
void EnableAutomaticTermination (string reason);
5625
[Export ("disableAutomaticTermination:")]
5626
void DisableAutomaticTermination (string reason);
5628
[Export ("automaticTerminationSupportEnabled")]
5629
bool AutomaticTerminationSupportEnabled { get; set; }
4972
5632
[BaseType (typeof (NSMutableData))]
5795
6477
void UnregisterClass (Class protocolClass);
6480
[BaseType (typeof(NSObject))]
6481
[DisableDefaultCtor]
6482
public interface NSPropertyListSerialization {
6483
[Static, Export ("dataWithPropertyList:format:options:error:")]
6484
NSData DataWithPropertyList (NSObject plist, NSPropertyListFormat format,
6485
NSPropertyListWriteOptions options, out NSError error);
6487
[Static, Export ("writePropertyList:toStream:format:options:error:")]
6488
int WritePropertyList (NSObject plist, NSOutputStream stream, NSPropertyListFormat format,
6489
NSPropertyListWriteOptions options, out NSError error);
6491
[Static, Export ("propertyListWithData:options:format:error:")]
6492
NSObject PropertyListWithData (NSData data, NSPropertyListReadOptions options,
6493
ref NSPropertyListFormat format, out NSError error);
6495
[Static, Export ("propertyListWithStream:options:format:error:")]
6496
NSObject PropertyListWithStream (NSInputStream stream, NSPropertyListReadOptions options,
6497
ref NSPropertyListFormat format, out NSError error);
6499
[Static, Export ("propertyList:isValidForFormat:")]
6500
bool IsValidForFormat (NSObject plist, NSPropertyListFormat format);