/** * @since Available in iOS 2.0 and later. * @deprecated Deprecated in iOS 9.0. */ @Deprecated public boolean save() throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = save(ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 2.0 and later. * @deprecated Deprecated in iOS 9.0. */ @Deprecated public boolean removeRecord(ABRecord record) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = removeRecord(record, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 3.0 and later. * @deprecated Deprecated in iOS 9.0. */ @Deprecated public static boolean setMetadataForPersistentStoreType(NSPersistentStoreMetadata metadata, String storeType, NSURL url) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = setMetadataForPersistentStoreType(metadata, storeType, url, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 9.0 and later. */ public boolean resolveOptimisticLockingVersionConflicts(NSArray<NSMergeConflict> list) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = resolveOptimisticLockingVersionConflicts(list, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 4.0 and later. */ public static NSFileHandle createForReading(NSURL url) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); NSFileHandle result = createForReading(url, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
public AVAudioConverterOutputStatus convert(AVAudioBuffer outputBuffer, Block2<Integer, MachineSizedSIntPtr, AVAudioBuffer> inputBlock) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); AVAudioConverterOutputStatus result = convert(outputBuffer, ptr, inputBlock); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } // TODO simplify the inputBlock!!! /*<methods>*/
/** * @since Available in iOS 9.0 and later. */ public NSObject decodeTopLevelObject() throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); NSObject result = decodeTopLevelObject(ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 8.0 and later. */ protected boolean getRelationshipOfDirectoryToItem(MachineSizedSIntPtr outRelationship, NSURL directoryURL, NSURL otherURL) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = getRelationshipOfDirectoryToItem(outRelationship, directoryURL, otherURL, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 5.0 and later. */ public boolean createSymbolicLinkAtURL(NSURL url, NSURL destURL) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = createSymbolicLinkAtURL(url, destURL, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 2.0 and later. */ public boolean createDirectoryAtPath(String path, boolean createIntermediates, NSFileAttributes attributes) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = createDirectoryAtPath(path, createIntermediates, attributes, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 2.0 and later. */ public NSFileSystemAttributes getAttributesOfFileSystemAtPath(String path) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); NSFileSystemAttributes result = getAttributesOfFileSystemAtPath(path, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 2.0 and later. */ public boolean copyItemAtPath(String srcPath, String dstPath) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = copyItemAtPath(srcPath, dstPath, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 4.0 and later. */ public boolean linkItemAtURL(NSURL srcURL, NSURL dstURL) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = linkItemAtURL(srcURL, dstURL, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 4.0 and later. */ public boolean removeItemAtURL(NSURL URL) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = removeItemAtURL(URL, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 5.0 and later. */ public boolean startDownloadingUbiquitousItemAtURL(NSURL url) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = startDownloadingUbiquitousItemAtURL(url, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 5.0 and later. */ public boolean evictUbiquitousItemAtURL(NSURL url) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = evictUbiquitousItemAtURL(url, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 4.1 and later. */ public static boolean unregisterFonts(NSURL fontURL, CTFontManagerScope scope) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = unregisterFonts(fontURL, scope, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 3.0 and later. */ public @MachineSizedUInt long getCountForFetchRequest(NSFetchRequest request) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); long result = getCountForFetchRequest(request, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 8.0 and later. */ protected boolean getRelationshipOfDirectoryToItem(MachineSizedSIntPtr outRelationship, NSSearchPathDirectory directory, NSSearchPathDomainMask domainMask, NSURL url) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = getRelationshipOfDirectoryToItem(outRelationship, directory, domainMask, url, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
public static GLKTextureInfo loadCubeMap(String path, GLKTextureLoaderOptions options) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); GLKTextureInfo result = loadCubeMap(path, options, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } @Method(selector = "cubeMapWithContentsOfFile:options:error:")