Пример #1
0
 public CFMutableString(CFString theString, nint maxLength = default(nint))
 {
     if (theString == null)
     {
         throw new ArgumentNullException(nameof(theString));
     }
     // NSMallocException Out of memory. We suggest restarting the application. If you have an unsaved document, create a backup copy in Finder, then try to save.
     if (maxLength < 0)
     {
         throw new ArgumentException(nameof(maxLength));
     }
     Handle = CFStringCreateMutableCopy(IntPtr.Zero, maxLength, theString.GetHandle());
 }
Пример #2
0
 // constant documentation mention it also accept any ICT transform
 public bool Transform(ref CFRange range, CFString transform, bool reverse)
 {
     return(Transform(ref range, transform.GetHandle(), reverse));
 }
Пример #3
0
 // constant documentation mention it also accept any ICT transform
 public bool Transform(CFString transform, bool reverse)
 {
     return(Transform(transform.GetHandle(), reverse));
 }