cocoa 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +1 -0
- data/VERSION +1 -1
- data/cocoa.gemspec +11 -5
- data/examples/table_view.rb +72 -0
- data/lib/cocoa/bindings/CAConstraint.rb +2 -2
- data/lib/cocoa/bindings/CALayer.rb +6 -6
- data/lib/cocoa/bindings/CAMediaTimingFunction.rb +1 -1
- data/lib/cocoa/bindings/CAOpenGLLayer.rb +2 -2
- data/lib/cocoa/bindings/CARenderer.rb +2 -2
- data/lib/cocoa/bindings/CATransaction.rb +1 -1
- data/lib/cocoa/bindings/CIImage.rb +2 -2
- data/lib/cocoa/bindings/NSATSTypesetter.rb +21 -21
- data/lib/cocoa/bindings/NSAffineTransform.rb +2 -2
- data/lib/cocoa/bindings/NSAlert.rb +2 -2
- data/lib/cocoa/bindings/NSAnimation.rb +3 -3
- data/lib/cocoa/bindings/NSAnimationContext.rb +1 -1
- data/lib/cocoa/bindings/NSAppleEventDescriptor.rb +8 -8
- data/lib/cocoa/bindings/NSAppleEventManager.rb +3 -3
- data/lib/cocoa/bindings/NSAppleScript.rb +2 -2
- data/lib/cocoa/bindings/NSApplication.rb +19 -19
- data/lib/cocoa/bindings/NSArchiver.rb +3 -3
- data/lib/cocoa/bindings/NSArray.rb +21 -21
- data/lib/cocoa/bindings/NSArrayController.rb +2 -2
- data/lib/cocoa/bindings/NSAssertionHandler.rb +2 -2
- data/lib/cocoa/bindings/NSAttributedString.rb +29 -29
- data/lib/cocoa/bindings/NSBezierPath.rb +15 -15
- data/lib/cocoa/bindings/NSBitmapImageRep.rb +16 -16
- data/lib/cocoa/bindings/NSBrowser.rb +16 -16
- data/lib/cocoa/bindings/NSBundle.rb +14 -14
- data/lib/cocoa/bindings/NSButton.rb +2 -2
- data/lib/cocoa/bindings/NSButtonCell.rb +6 -6
- data/lib/cocoa/bindings/NSByteCountFormatter.rb +1 -1
- data/lib/cocoa/bindings/NSCache.rb +1 -1
- data/lib/cocoa/bindings/NSCachedImageRep.rb +2 -2
- data/lib/cocoa/bindings/NSCachedURLResponse.rb +1 -1
- data/lib/cocoa/bindings/NSCalendar.rb +4 -4
- data/lib/cocoa/bindings/NSCalendarDate.rb +7 -7
- data/lib/cocoa/bindings/NSCell.rb +21 -21
- data/lib/cocoa/bindings/NSClassDescription.rb +1 -1
- data/lib/cocoa/bindings/NSCoder.rb +20 -20
- data/lib/cocoa/bindings/NSCollectionView.rb +3 -3
- data/lib/cocoa/bindings/NSColor.rb +17 -17
- data/lib/cocoa/bindings/NSColorList.rb +3 -3
- data/lib/cocoa/bindings/NSColorPanel.rb +1 -1
- data/lib/cocoa/bindings/NSColorPicker.rb +2 -2
- data/lib/cocoa/bindings/NSComboBox.rb +1 -1
- data/lib/cocoa/bindings/NSComboBoxCell.rb +1 -1
- data/lib/cocoa/bindings/NSComparisonPredicate.rb +2 -2
- data/lib/cocoa/bindings/NSCompoundPredicate.rb +1 -1
- data/lib/cocoa/bindings/NSConditionLock.rb +1 -1
- data/lib/cocoa/bindings/NSConnection.rb +6 -6
- data/lib/cocoa/bindings/NSControl.rb +2 -2
- data/lib/cocoa/bindings/NSController.rb +1 -1
- data/lib/cocoa/bindings/NSCursor.rb +1 -1
- data/lib/cocoa/bindings/NSCustomImageRep.rb +2 -2
- data/lib/cocoa/bindings/NSData.rb +12 -12
- data/lib/cocoa/bindings/NSDataDetector.rb +2 -2
- data/lib/cocoa/bindings/NSDate.rb +5 -5
- data/lib/cocoa/bindings/NSDateFormatter.rb +4 -4
- data/lib/cocoa/bindings/NSDecimalNumber.rb +10 -10
- data/lib/cocoa/bindings/NSDecimalNumberHandler.rb +2 -2
- data/lib/cocoa/bindings/NSDictionary.rb +12 -12
- data/lib/cocoa/bindings/NSDistantObject.rb +4 -4
- data/lib/cocoa/bindings/NSDistributedNotificationCenter.rb +3 -3
- data/lib/cocoa/bindings/NSDocument.rb +41 -41
- data/lib/cocoa/bindings/NSDocumentController.rb +16 -16
- data/lib/cocoa/bindings/NSDraggingItem.rb +1 -1
- data/lib/cocoa/bindings/NSDraggingSession.rb +1 -1
- data/lib/cocoa/bindings/NSDrawer.rb +1 -1
- data/lib/cocoa/bindings/NSError.rb +2 -2
- data/lib/cocoa/bindings/NSEvent.rb +9 -9
- data/lib/cocoa/bindings/NSException.rb +3 -3
- data/lib/cocoa/bindings/NSExpression.rb +8 -8
- data/lib/cocoa/bindings/NSFileCoordinator.rb +4 -4
- data/lib/cocoa/bindings/NSFileHandle.rb +4 -4
- data/lib/cocoa/bindings/NSFileManager.rb +39 -39
- data/lib/cocoa/bindings/NSFileVersion.rb +4 -4
- data/lib/cocoa/bindings/NSFileWrapper.rb +6 -6
- data/lib/cocoa/bindings/NSFont.rb +4 -4
- data/lib/cocoa/bindings/NSFontCollection.rb +5 -5
- data/lib/cocoa/bindings/NSFontDescriptor.rb +1 -1
- data/lib/cocoa/bindings/NSFontManager.rb +10 -10
- data/lib/cocoa/bindings/NSFontPanel.rb +1 -1
- data/lib/cocoa/bindings/NSForm.rb +1 -1
- data/lib/cocoa/bindings/NSFormatter.rb +3 -3
- data/lib/cocoa/bindings/NSGlyphGenerator.rb +1 -1
- data/lib/cocoa/bindings/NSGlyphInfo.rb +3 -3
- data/lib/cocoa/bindings/NSGradient.rb +7 -7
- data/lib/cocoa/bindings/NSGraphicsContext.rb +1 -1
- data/lib/cocoa/bindings/NSHTTPCookie.rb +1 -1
- data/lib/cocoa/bindings/NSHTTPCookieStorage.rb +1 -1
- data/lib/cocoa/bindings/NSHTTPURLResponse.rb +1 -1
- data/lib/cocoa/bindings/NSHashTable.rb +2 -2
- data/lib/cocoa/bindings/NSHelpManager.rb +4 -4
- data/lib/cocoa/bindings/NSImage.rb +11 -11
- data/lib/cocoa/bindings/NSImageRep.rb +2 -2
- data/lib/cocoa/bindings/NSIndexPath.rb +2 -2
- data/lib/cocoa/bindings/NSIndexSet.rb +9 -9
- data/lib/cocoa/bindings/NSIndexSpecifier.rb +1 -1
- data/lib/cocoa/bindings/NSInputManager.rb +2 -2
- data/lib/cocoa/bindings/NSInputServer.rb +1 -1
- data/lib/cocoa/bindings/NSInputStream.rb +2 -2
- data/lib/cocoa/bindings/NSInvocation.rb +2 -2
- data/lib/cocoa/bindings/NSInvocationOperation.rb +1 -1
- data/lib/cocoa/bindings/NSJSONSerialization.rb +4 -4
- data/lib/cocoa/bindings/NSKeyedArchiver.rb +12 -12
- data/lib/cocoa/bindings/NSKeyedUnarchiver.rb +3 -3
- data/lib/cocoa/bindings/NSLayoutConstraint.rb +2 -2
- data/lib/cocoa/bindings/NSLayoutManager.rb +59 -59
- data/lib/cocoa/bindings/NSLinguisticTagger.rb +8 -8
- data/lib/cocoa/bindings/NSLocale.rb +1 -1
- data/lib/cocoa/bindings/NSMachBootstrapServer.rb +2 -2
- data/lib/cocoa/bindings/NSMachPort.rb +4 -4
- data/lib/cocoa/bindings/NSMapTable.rb +4 -4
- data/lib/cocoa/bindings/NSMatrix.rb +20 -20
- data/lib/cocoa/bindings/NSMenu.rb +7 -7
- data/lib/cocoa/bindings/NSMenuItem.rb +1 -1
- data/lib/cocoa/bindings/NSMenuItemCell.rb +6 -6
- data/lib/cocoa/bindings/NSMessagePortNameServer.rb +1 -1
- data/lib/cocoa/bindings/NSMetadataQuery.rb +1 -1
- data/lib/cocoa/bindings/NSMutableArray.rb +12 -12
- data/lib/cocoa/bindings/NSMutableAttributedString.rb +11 -11
- data/lib/cocoa/bindings/NSMutableData.rb +2 -2
- data/lib/cocoa/bindings/NSMutableDictionary.rb +2 -2
- data/lib/cocoa/bindings/NSMutableIndexSet.rb +1 -1
- data/lib/cocoa/bindings/NSMutableOrderedSet.rb +11 -11
- data/lib/cocoa/bindings/NSMutableString.rb +3 -3
- data/lib/cocoa/bindings/NSMutableURLRequest.rb +2 -2
- data/lib/cocoa/bindings/NSNameSpecifier.rb +1 -1
- data/lib/cocoa/bindings/NSNetService.rb +4 -4
- data/lib/cocoa/bindings/NSNetServiceBrowser.rb +3 -3
- data/lib/cocoa/bindings/NSNib.rb +4 -4
- data/lib/cocoa/bindings/NSNibConnector.rb +1 -1
- data/lib/cocoa/bindings/NSNotification.rb +1 -1
- data/lib/cocoa/bindings/NSNotificationCenter.rb +4 -4
- data/lib/cocoa/bindings/NSNotificationQueue.rb +2 -2
- data/lib/cocoa/bindings/NSNumberFormatter.rb +2 -2
- data/lib/cocoa/bindings/NSObject.rb +142 -142
- data/lib/cocoa/bindings/NSObjectController.rb +1 -1
- data/lib/cocoa/bindings/NSOpenGLContext.rb +8 -8
- data/lib/cocoa/bindings/NSOpenGLLayer.rb +2 -2
- data/lib/cocoa/bindings/NSOpenGLPixelBuffer.rb +1 -1
- data/lib/cocoa/bindings/NSOpenGLPixelFormat.rb +1 -1
- data/lib/cocoa/bindings/NSOpenGLView.rb +1 -1
- data/lib/cocoa/bindings/NSOpenPanel.rb +3 -3
- data/lib/cocoa/bindings/NSOperationQueue.rb +1 -1
- data/lib/cocoa/bindings/NSOrderedSet.rb +21 -21
- data/lib/cocoa/bindings/NSOrthography.rb +2 -2
- data/lib/cocoa/bindings/NSOutlineView.rb +7 -7
- data/lib/cocoa/bindings/NSOutputStream.rb +7 -7
- data/lib/cocoa/bindings/NSPageLayout.rb +1 -1
- data/lib/cocoa/bindings/NSPasteboard.rb +9 -9
- data/lib/cocoa/bindings/NSPasteboardItem.rb +4 -4
- data/lib/cocoa/bindings/NSPathCell.rb +4 -4
- data/lib/cocoa/bindings/NSPathControl.rb +1 -1
- data/lib/cocoa/bindings/NSPersistentDocument.rb +4 -4
- data/lib/cocoa/bindings/NSPointerArray.rb +2 -2
- data/lib/cocoa/bindings/NSPopUpButton.rb +3 -3
- data/lib/cocoa/bindings/NSPopUpButtonCell.rb +5 -5
- data/lib/cocoa/bindings/NSPopover.rb +1 -1
- data/lib/cocoa/bindings/NSPort.rb +5 -5
- data/lib/cocoa/bindings/NSPortCoder.rb +2 -2
- data/lib/cocoa/bindings/NSPortMessage.rb +1 -1
- data/lib/cocoa/bindings/NSPortNameServer.rb +2 -2
- data/lib/cocoa/bindings/NSPositionalSpecifier.rb +1 -1
- data/lib/cocoa/bindings/NSPredicate.rb +2 -2
- data/lib/cocoa/bindings/NSPredicateEditorRowTemplate.rb +2 -2
- data/lib/cocoa/bindings/NSPrintOperation.rb +4 -4
- data/lib/cocoa/bindings/NSPrintPanel.rb +1 -1
- data/lib/cocoa/bindings/NSPrinter.rb +9 -9
- data/lib/cocoa/bindings/NSPropertyListSerialization.rb +7 -7
- data/lib/cocoa/bindings/NSProtocolChecker.rb +2 -2
- data/lib/cocoa/bindings/NSRangeSpecifier.rb +1 -1
- data/lib/cocoa/bindings/NSRegularExpression.rb +10 -10
- data/lib/cocoa/bindings/NSRelativeSpecifier.rb +1 -1
- data/lib/cocoa/bindings/NSResponder.rb +5 -5
- data/lib/cocoa/bindings/NSRuleEditor.rb +4 -4
- data/lib/cocoa/bindings/NSRulerMarker.rb +2 -2
- data/lib/cocoa/bindings/NSRulerView.rb +4 -4
- data/lib/cocoa/bindings/NSRunLoop.rb +7 -7
- data/lib/cocoa/bindings/NSSavePanel.rb +3 -3
- data/lib/cocoa/bindings/NSScanner.rb +4 -4
- data/lib/cocoa/bindings/NSScreen.rb +1 -1
- data/lib/cocoa/bindings/NSScriptClassDescription.rb +1 -1
- data/lib/cocoa/bindings/NSScriptCoercionHandler.rb +2 -2
- data/lib/cocoa/bindings/NSScriptCommandDescription.rb +1 -1
- data/lib/cocoa/bindings/NSScriptObjectSpecifier.rb +3 -3
- data/lib/cocoa/bindings/NSScriptSuiteRegistry.rb +2 -2
- data/lib/cocoa/bindings/NSScrollView.rb +3 -3
- data/lib/cocoa/bindings/NSScroller.rb +4 -4
- data/lib/cocoa/bindings/NSSegmentedCell.rb +10 -10
- data/lib/cocoa/bindings/NSSegmentedControl.rb +7 -7
- data/lib/cocoa/bindings/NSSet.rb +9 -9
- data/lib/cocoa/bindings/NSSharingService.rb +1 -1
- data/lib/cocoa/bindings/NSSharingServicePicker.rb +1 -1
- data/lib/cocoa/bindings/NSSliderCell.rb +1 -1
- data/lib/cocoa/bindings/NSSocketPort.rb +3 -3
- data/lib/cocoa/bindings/NSSocketPortNameServer.rb +2 -2
- data/lib/cocoa/bindings/NSSortDescriptor.rb +3 -3
- data/lib/cocoa/bindings/NSSound.rb +2 -2
- data/lib/cocoa/bindings/NSSpecifierTest.rb +1 -1
- data/lib/cocoa/bindings/NSSpeechSynthesizer.rb +3 -3
- data/lib/cocoa/bindings/NSSpellChecker.rb +15 -15
- data/lib/cocoa/bindings/NSSpellServer.rb +2 -2
- data/lib/cocoa/bindings/NSSplitView.rb +2 -2
- data/lib/cocoa/bindings/NSStatusItem.rb +1 -1
- data/lib/cocoa/bindings/NSStream.rb +4 -4
- data/lib/cocoa/bindings/NSString.rb +39 -39
- data/lib/cocoa/bindings/NSTabView.rb +1 -1
- data/lib/cocoa/bindings/NSTabViewItem.rb +1 -1
- data/lib/cocoa/bindings/NSTableHeaderCell.rb +1 -1
- data/lib/cocoa/bindings/NSTableView.rb +25 -25
- data/lib/cocoa/bindings/NSTask.rb +1 -1
- data/lib/cocoa/bindings/NSText.rb +4 -4
- data/lib/cocoa/bindings/NSTextAlternatives.rb +1 -1
- data/lib/cocoa/bindings/NSTextBlock.rb +9 -9
- data/lib/cocoa/bindings/NSTextCheckingResult.rb +12 -12
- data/lib/cocoa/bindings/NSTextContainer.rb +1 -1
- data/lib/cocoa/bindings/NSTextList.rb +1 -1
- data/lib/cocoa/bindings/NSTextStorage.rb +1 -1
- data/lib/cocoa/bindings/NSTextTab.rb +2 -2
- data/lib/cocoa/bindings/NSTextTable.rb +3 -3
- data/lib/cocoa/bindings/NSTextTableBlock.rb +1 -1
- data/lib/cocoa/bindings/NSTextView.rb +27 -27
- data/lib/cocoa/bindings/NSThread.rb +2 -2
- data/lib/cocoa/bindings/NSTimeZone.rb +3 -3
- data/lib/cocoa/bindings/NSTimer.rb +3 -3
- data/lib/cocoa/bindings/NSToolbar.rb +1 -1
- data/lib/cocoa/bindings/NSTrackingArea.rb +1 -1
- data/lib/cocoa/bindings/NSTreeController.rb +4 -4
- data/lib/cocoa/bindings/NSTreeNode.rb +1 -1
- data/lib/cocoa/bindings/NSTypesetter.rb +24 -24
- data/lib/cocoa/bindings/NSURL.rb +18 -18
- data/lib/cocoa/bindings/NSURLAuthenticationChallenge.rb +2 -2
- data/lib/cocoa/bindings/NSURLCache.rb +2 -2
- data/lib/cocoa/bindings/NSURLConnection.rb +6 -6
- data/lib/cocoa/bindings/NSURLCredential.rb +4 -4
- data/lib/cocoa/bindings/NSURLCredentialStorage.rb +3 -3
- data/lib/cocoa/bindings/NSURLDownload.rb +3 -3
- data/lib/cocoa/bindings/NSURLHandle.rb +3 -3
- data/lib/cocoa/bindings/NSURLProtectionSpace.rb +2 -2
- data/lib/cocoa/bindings/NSURLProtocol.rb +5 -5
- data/lib/cocoa/bindings/NSURLRequest.rb +2 -2
- data/lib/cocoa/bindings/NSURLResponse.rb +1 -1
- data/lib/cocoa/bindings/NSUbiquitousKeyValueStore.rb +8 -8
- data/lib/cocoa/bindings/NSUnarchiver.rb +3 -3
- data/lib/cocoa/bindings/NSUndoManager.rb +1 -1
- data/lib/cocoa/bindings/NSUniqueIDSpecifier.rb +1 -1
- data/lib/cocoa/bindings/NSUserAppleScriptTask.rb +1 -1
- data/lib/cocoa/bindings/NSUserAutomatorTask.rb +1 -1
- data/lib/cocoa/bindings/NSUserDefaults.rb +9 -9
- data/lib/cocoa/bindings/NSUserDefaultsController.rb +1 -1
- data/lib/cocoa/bindings/NSUserScriptTask.rb +1 -1
- data/lib/cocoa/bindings/NSUserUnixTask.rb +1 -1
- data/lib/cocoa/bindings/NSValue.rb +3 -3
- data/lib/cocoa/bindings/NSValueTransformer.rb +1 -1
- data/lib/cocoa/bindings/NSView.rb +34 -34
- data/lib/cocoa/bindings/NSViewController.rb +2 -2
- data/lib/cocoa/bindings/NSWhoseSpecifier.rb +1 -1
- data/lib/cocoa/bindings/NSWindow.rb +22 -22
- data/lib/cocoa/bindings/NSWindowController.rb +2 -2
- data/lib/cocoa/bindings/NSWorkspace.rb +18 -18
- data/lib/cocoa/bindings/NSXMLDTD.rb +6 -6
- data/lib/cocoa/bindings/NSXMLDocument.rb +9 -9
- data/lib/cocoa/bindings/NSXMLElement.rb +7 -7
- data/lib/cocoa/bindings/NSXMLNode.rb +8 -8
- data/lib/cocoa/bindings/NSXPCConnection.rb +1 -1
- data/lib/cocoa/bindings/NSXPCInterface.rb +4 -4
- data/lib/cocoa/extensions.rb +7 -4
- data/lib/cocoa/helpers.rb +99 -179
- data/lib/cocoa/objc.rb +63 -217
- data/lib/cocoa/objc/method_def.rb +314 -0
- data/lib/cocoa/structs/NSRange.rb +3 -0
- data/lib/cocoa/structs/NSRect.rb +3 -0
- data/spec/cocoa/cocoa_spec.rb +99 -0
- data/spec/spec_helper.rb +1 -0
- data/tasks/generate.rake +6 -4
- metadata +37 -37
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
require 'cocoa/bindings/NSObject'
|
|
3
3
|
module Cocoa
|
|
4
4
|
class NSScriptCoercionHandler < Cocoa::NSObject
|
|
5
|
-
attach_method :coerceValue, :args=>2, :names=>[
|
|
6
|
-
attach_method :registerCoercer, :args=>4, :names=>[
|
|
5
|
+
attach_method :coerceValue, :args=>2, :names=>[:toClass], :types=>["@", "#"], :retval=>"@"
|
|
6
|
+
attach_method :registerCoercer, :args=>4, :names=>[:selector, :toConvertFromClass, :toClass], :types=>["@", ":", "#", "#"], :retval=>"v"
|
|
7
7
|
attach_singular_method :sharedCoercionHandler, :args=>0, :names=>[], :types=>[], :retval=>"@"
|
|
8
8
|
end
|
|
9
9
|
end
|
|
@@ -11,7 +11,7 @@ module Cocoa
|
|
|
11
11
|
attach_method :commandName, :args=>0, :names=>[], :types=>[], :retval=>"@"
|
|
12
12
|
attach_method :createCommandInstance, :args=>0, :names=>[], :types=>[], :retval=>"@"
|
|
13
13
|
attach_method :createCommandInstanceWithZone, :args=>1, :names=>[], :types=>["^{_NSZone=}"], :retval=>"@"
|
|
14
|
-
attach_method :initWithSuiteName, :args=>3, :names=>[
|
|
14
|
+
attach_method :initWithSuiteName, :args=>3, :names=>[:commandName, :dictionary], :types=>["@", "@", "@"], :retval=>"@"
|
|
15
15
|
attach_method :isOptionalArgumentWithName, :args=>1, :names=>[], :types=>["@"], :retval=>"B"
|
|
16
16
|
attach_method :returnType, :args=>0, :names=>[], :types=>[], :retval=>"@"
|
|
17
17
|
attach_method :suiteName, :args=>0, :names=>[], :types=>[], :retval=>"@"
|
|
@@ -10,9 +10,9 @@ module Cocoa
|
|
|
10
10
|
attach_method :descriptor, :args=>0, :names=>[], :types=>[], :retval=>"@"
|
|
11
11
|
attach_method :evaluationErrorNumber, :args=>0, :names=>[], :types=>[], :retval=>"q"
|
|
12
12
|
attach_method :evaluationErrorSpecifier, :args=>0, :names=>[], :types=>[], :retval=>"@"
|
|
13
|
-
attach_method :indicesOfObjectsByEvaluatingWithContainer, :args=>2, :names=>[
|
|
14
|
-
attach_method :initWithContainerClassDescription, :args=>3, :names=>[
|
|
15
|
-
attach_method :initWithContainerSpecifier, :args=>2, :names=>[
|
|
13
|
+
attach_method :indicesOfObjectsByEvaluatingWithContainer, :args=>2, :names=>[:count], :types=>["@", "^q"], :retval=>"^q"
|
|
14
|
+
attach_method :initWithContainerClassDescription, :args=>3, :names=>[:containerSpecifier, :key], :types=>["@", "@", "@"], :retval=>"@"
|
|
15
|
+
attach_method :initWithContainerSpecifier, :args=>2, :names=>[:key], :types=>["@", "@"], :retval=>"@"
|
|
16
16
|
attach_method :key, :args=>0, :names=>[], :types=>[], :retval=>"@"
|
|
17
17
|
attach_method :keyClassDescription, :args=>0, :names=>[], :types=>[], :retval=>"@"
|
|
18
18
|
attach_singular_method :objectSpecifierWithDescriptor, :args=>1, :names=>[], :types=>["@"], :retval=>"@"
|
|
@@ -7,9 +7,9 @@ module Cocoa
|
|
|
7
7
|
attach_method :bundleForSuite, :args=>1, :names=>[], :types=>["@"], :retval=>"@"
|
|
8
8
|
attach_method :classDescriptionWithAppleEventCode, :args=>1, :names=>[], :types=>["I"], :retval=>"@"
|
|
9
9
|
attach_method :classDescriptionsInSuite, :args=>1, :names=>[], :types=>["@"], :retval=>"@"
|
|
10
|
-
attach_method :commandDescriptionWithAppleEventClass, :args=>2, :names=>[
|
|
10
|
+
attach_method :commandDescriptionWithAppleEventClass, :args=>2, :names=>[:andAppleEventCode], :types=>["I", "I"], :retval=>"@"
|
|
11
11
|
attach_method :commandDescriptionsInSuite, :args=>1, :names=>[], :types=>["@"], :retval=>"@"
|
|
12
|
-
attach_method :loadSuiteWithDictionary, :args=>2, :names=>[
|
|
12
|
+
attach_method :loadSuiteWithDictionary, :args=>2, :names=>[:fromBundle], :types=>["@", "@"], :retval=>"v"
|
|
13
13
|
attach_method :loadSuitesFromBundle, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
|
|
14
14
|
attach_method :registerClassDescription, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
|
|
15
15
|
attach_method :registerCommandDescription, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
|
|
@@ -7,7 +7,7 @@ module Cocoa
|
|
|
7
7
|
attach_method :backgroundColor, :args=>0, :names=>[], :types=>[], :retval=>"@"
|
|
8
8
|
attach_method :borderType, :args=>0, :names=>[], :types=>[], :retval=>"Q"
|
|
9
9
|
attach_method :contentSize, :args=>0, :names=>[], :types=>[], :retval=>"{CGSize=dd}"
|
|
10
|
-
attach_singular_method :contentSizeForFrameSize, [{:args=>4, :names=>[
|
|
10
|
+
attach_singular_method :contentSizeForFrameSize, [{:args=>4, :names=>[:hasHorizontalScroller, :hasVerticalScroller, :borderType], :types=>["{CGSize=dd}", "B", "B", "Q"], :retval=>"{CGSize=dd}"}, {:args=>6, :names=>[:horizontalScrollerClass, :verticalScrollerClass, :borderType, :controlSize, :scrollerStyle], :types=>["{CGSize=dd}", "#", "#", "Q", "Q", "q"], :retval=>"{CGSize=dd}"}]
|
|
11
11
|
attach_method :contentView, :args=>0, :names=>[], :types=>[], :retval=>"@"
|
|
12
12
|
attach_method :documentCursor, :args=>0, :names=>[], :types=>[], :retval=>"@"
|
|
13
13
|
attach_method :documentView, :args=>0, :names=>[], :types=>[], :retval=>"@"
|
|
@@ -15,7 +15,7 @@ module Cocoa
|
|
|
15
15
|
attach_method :drawsBackground, :args=>0, :names=>[], :types=>[], :retval=>"B"
|
|
16
16
|
attach_method :findBarPosition, :args=>0, :names=>[], :types=>[], :retval=>"q"
|
|
17
17
|
attach_method :flashScrollers, :args=>0, :names=>[], :types=>[], :retval=>"v"
|
|
18
|
-
attach_singular_method :frameSizeForContentSize, [{:args=>4, :names=>[
|
|
18
|
+
attach_singular_method :frameSizeForContentSize, [{:args=>4, :names=>[:hasHorizontalScroller, :hasVerticalScroller, :borderType], :types=>["{CGSize=dd}", "B", "B", "Q"], :retval=>"{CGSize=dd}"}, {:args=>6, :names=>[:horizontalScrollerClass, :verticalScrollerClass, :borderType, :controlSize, :scrollerStyle], :types=>["{CGSize=dd}", "#", "#", "Q", "Q", "q"], :retval=>"{CGSize=dd}"}]
|
|
19
19
|
attach_method :hasHorizontalRuler, :args=>0, :names=>[], :types=>[], :retval=>"B"
|
|
20
20
|
attach_method :hasHorizontalScroller, :args=>0, :names=>[], :types=>[], :retval=>"B"
|
|
21
21
|
attach_method :hasVerticalRuler, :args=>0, :names=>[], :types=>[], :retval=>"B"
|
|
@@ -57,7 +57,7 @@ module Cocoa
|
|
|
57
57
|
attach_method :setHorizontalScrollElasticity, :args=>1, :names=>[], :types=>["q"], :retval=>"v"
|
|
58
58
|
attach_method :setHorizontalScroller, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
|
|
59
59
|
attach_method :setLineScroll, :args=>1, :names=>[], :types=>["d"], :retval=>"v"
|
|
60
|
-
attach_method :setMagnification, [{:args=>1, :names=>[], :types=>["d"], :retval=>"v"}, {:args=>2, :names=>[
|
|
60
|
+
attach_method :setMagnification, [{:args=>1, :names=>[], :types=>["d"], :retval=>"v"}, {:args=>2, :names=>[:centeredAtPoint], :types=>["d", "{CGPoint=dd}"], :retval=>"v"}]
|
|
61
61
|
attach_method :setMaxMagnification, :args=>1, :names=>[], :types=>["d"], :retval=>"v"
|
|
62
62
|
attach_method :setMinMagnification, :args=>1, :names=>[], :types=>["d"], :retval=>"v"
|
|
63
63
|
attach_method :setPageScroll, :args=>1, :names=>[], :types=>["d"], :retval=>"v"
|
|
@@ -6,9 +6,9 @@ module Cocoa
|
|
|
6
6
|
attach_method :checkSpaceForParts, :args=>0, :names=>[], :types=>[], :retval=>"v"
|
|
7
7
|
attach_method :controlSize, :args=>0, :names=>[], :types=>[], :retval=>"Q"
|
|
8
8
|
attach_method :controlTint, :args=>0, :names=>[], :types=>[], :retval=>"Q"
|
|
9
|
-
attach_method :drawArrow, :args=>2, :names=>[
|
|
9
|
+
attach_method :drawArrow, :args=>2, :names=>[:highlight], :types=>["Q", "B"], :retval=>"v"
|
|
10
10
|
attach_method :drawKnob, :args=>0, :names=>[], :types=>[], :retval=>"v"
|
|
11
|
-
attach_method :drawKnobSlotInRect, :args=>2, :names=>[
|
|
11
|
+
attach_method :drawKnobSlotInRect, :args=>2, :names=>[:highlight], :types=>["{CGRect={CGPoint=dd}{CGSize=dd}}", "B"], :retval=>"v"
|
|
12
12
|
attach_method :drawParts, :args=>0, :names=>[], :types=>[], :retval=>"v"
|
|
13
13
|
attach_method :highlight, :args=>1, :names=>[], :types=>["B"], :retval=>"v"
|
|
14
14
|
attach_method :hitPart, :args=>0, :names=>[], :types=>[], :retval=>"Q"
|
|
@@ -19,11 +19,11 @@ module Cocoa
|
|
|
19
19
|
attach_method :rectForPart, :args=>1, :names=>[], :types=>["Q"], :retval=>"{CGRect={CGPoint=dd}{CGSize=dd}}"
|
|
20
20
|
attach_method :scrollerStyle, :args=>0, :names=>[], :types=>[], :retval=>"q"
|
|
21
21
|
attach_singular_method :scrollerWidth, :args=>0, :names=>[], :types=>[], :retval=>"d"
|
|
22
|
-
attach_singular_method :scrollerWidthForControlSize, [{:args=>1, :names=>[], :types=>["Q"], :retval=>"d"}, {:args=>2, :names=>[
|
|
22
|
+
attach_singular_method :scrollerWidthForControlSize, [{:args=>1, :names=>[], :types=>["Q"], :retval=>"d"}, {:args=>2, :names=>[:scrollerStyle], :types=>["Q", "q"], :retval=>"d"}]
|
|
23
23
|
attach_method :setArrowsPosition, :args=>1, :names=>[], :types=>["Q"], :retval=>"v"
|
|
24
24
|
attach_method :setControlSize, :args=>1, :names=>[], :types=>["Q"], :retval=>"v"
|
|
25
25
|
attach_method :setControlTint, :args=>1, :names=>[], :types=>["Q"], :retval=>"v"
|
|
26
|
-
attach_method :setFloatValue, :args=>2, :names=>[
|
|
26
|
+
attach_method :setFloatValue, :args=>2, :names=>[:knobProportion], :types=>["f", "d"], :retval=>"v"
|
|
27
27
|
attach_method :setKnobProportion, :args=>1, :names=>[], :types=>["d"], :retval=>"v"
|
|
28
28
|
attach_method :setKnobStyle, :args=>1, :names=>[], :types=>["q"], :retval=>"v"
|
|
29
29
|
attach_method :setScrollerStyle, :args=>1, :names=>[], :types=>["q"], :retval=>"v"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
require 'cocoa/bindings/NSActionCell'
|
|
3
3
|
module Cocoa
|
|
4
4
|
class NSSegmentedCell < Cocoa::NSActionCell
|
|
5
|
-
attach_method :drawSegment, :args=>3, :names=>[
|
|
5
|
+
attach_method :drawSegment, :args=>3, :names=>[:inFrame, :withView], :types=>["q", "{CGRect={CGPoint=dd}{CGSize=dd}}", "@"], :retval=>"v"
|
|
6
6
|
attach_method :imageForSegment, :args=>1, :names=>[], :types=>["q"], :retval=>"@"
|
|
7
7
|
attach_method :imageScalingForSegment, :args=>1, :names=>[], :types=>["q"], :retval=>"Q"
|
|
8
8
|
attach_method :interiorBackgroundStyleForSegment, :args=>1, :names=>[], :types=>["q"], :retval=>"q"
|
|
@@ -16,19 +16,19 @@ module Cocoa
|
|
|
16
16
|
attach_method :segmentStyle, :args=>0, :names=>[], :types=>[], :retval=>"q"
|
|
17
17
|
attach_method :selectSegmentWithTag, :args=>1, :names=>[], :types=>["q"], :retval=>"B"
|
|
18
18
|
attach_method :selectedSegment, :args=>0, :names=>[], :types=>[], :retval=>"q"
|
|
19
|
-
attach_method :setEnabled, :args=>2, :names=>[
|
|
20
|
-
attach_method :setImage, :args=>2, :names=>[
|
|
21
|
-
attach_method :setImageScaling, :args=>2, :names=>[
|
|
22
|
-
attach_method :setLabel, :args=>2, :names=>[
|
|
23
|
-
attach_method :setMenu, :args=>2, :names=>[
|
|
19
|
+
attach_method :setEnabled, :args=>2, :names=>[:forSegment], :types=>["B", "q"], :retval=>"v"
|
|
20
|
+
attach_method :setImage, :args=>2, :names=>[:forSegment], :types=>["@", "q"], :retval=>"v"
|
|
21
|
+
attach_method :setImageScaling, :args=>2, :names=>[:forSegment], :types=>["Q", "q"], :retval=>"v"
|
|
22
|
+
attach_method :setLabel, :args=>2, :names=>[:forSegment], :types=>["@", "q"], :retval=>"v"
|
|
23
|
+
attach_method :setMenu, :args=>2, :names=>[:forSegment], :types=>["@", "q"], :retval=>"v"
|
|
24
24
|
attach_method :setSegmentCount, :args=>1, :names=>[], :types=>["q"], :retval=>"v"
|
|
25
25
|
attach_method :setSegmentStyle, :args=>1, :names=>[], :types=>["q"], :retval=>"v"
|
|
26
|
-
attach_method :setSelected, :args=>2, :names=>[
|
|
26
|
+
attach_method :setSelected, :args=>2, :names=>[:forSegment], :types=>["B", "q"], :retval=>"v"
|
|
27
27
|
attach_method :setSelectedSegment, :args=>1, :names=>[], :types=>["q"], :retval=>"v"
|
|
28
|
-
attach_method :setTag, :args=>2, :names=>[
|
|
29
|
-
attach_method :setToolTip, :args=>2, :names=>[
|
|
28
|
+
attach_method :setTag, :args=>2, :names=>[:forSegment], :types=>["q", "q"], :retval=>"v"
|
|
29
|
+
attach_method :setToolTip, :args=>2, :names=>[:forSegment], :types=>["@", "q"], :retval=>"v"
|
|
30
30
|
attach_method :setTrackingMode, :args=>1, :names=>[], :types=>["Q"], :retval=>"v"
|
|
31
|
-
attach_method :setWidth, :args=>2, :names=>[
|
|
31
|
+
attach_method :setWidth, :args=>2, :names=>[:forSegment], :types=>["d", "q"], :retval=>"v"
|
|
32
32
|
attach_method :tagForSegment, :args=>1, :names=>[], :types=>["q"], :retval=>"q"
|
|
33
33
|
attach_method :toolTipForSegment, :args=>1, :names=>[], :types=>["q"], :retval=>"@"
|
|
34
34
|
attach_method :trackingMode, :args=>0, :names=>[], :types=>[], :retval=>"Q"
|
|
@@ -12,16 +12,16 @@ module Cocoa
|
|
|
12
12
|
attach_method :segmentStyle, :args=>0, :names=>[], :types=>[], :retval=>"q"
|
|
13
13
|
attach_method :selectSegmentWithTag, :args=>1, :names=>[], :types=>["q"], :retval=>"B"
|
|
14
14
|
attach_method :selectedSegment, :args=>0, :names=>[], :types=>[], :retval=>"q"
|
|
15
|
-
attach_method :setEnabled, :args=>2, :names=>[
|
|
16
|
-
attach_method :setImage, :args=>2, :names=>[
|
|
17
|
-
attach_method :setImageScaling, :args=>2, :names=>[
|
|
18
|
-
attach_method :setLabel, :args=>2, :names=>[
|
|
19
|
-
attach_method :setMenu, :args=>2, :names=>[
|
|
15
|
+
attach_method :setEnabled, :args=>2, :names=>[:forSegment], :types=>["B", "q"], :retval=>"v"
|
|
16
|
+
attach_method :setImage, :args=>2, :names=>[:forSegment], :types=>["@", "q"], :retval=>"v"
|
|
17
|
+
attach_method :setImageScaling, :args=>2, :names=>[:forSegment], :types=>["Q", "q"], :retval=>"v"
|
|
18
|
+
attach_method :setLabel, :args=>2, :names=>[:forSegment], :types=>["@", "q"], :retval=>"v"
|
|
19
|
+
attach_method :setMenu, :args=>2, :names=>[:forSegment], :types=>["@", "q"], :retval=>"v"
|
|
20
20
|
attach_method :setSegmentCount, :args=>1, :names=>[], :types=>["q"], :retval=>"v"
|
|
21
21
|
attach_method :setSegmentStyle, :args=>1, :names=>[], :types=>["q"], :retval=>"v"
|
|
22
|
-
attach_method :setSelected, :args=>2, :names=>[
|
|
22
|
+
attach_method :setSelected, :args=>2, :names=>[:forSegment], :types=>["B", "q"], :retval=>"v"
|
|
23
23
|
attach_method :setSelectedSegment, :args=>1, :names=>[], :types=>["q"], :retval=>"v"
|
|
24
|
-
attach_method :setWidth, :args=>2, :names=>[
|
|
24
|
+
attach_method :setWidth, :args=>2, :names=>[:forSegment], :types=>["d", "q"], :retval=>"v"
|
|
25
25
|
attach_method :widthForSegment, :args=>1, :names=>[], :types=>["q"], :retval=>"d"
|
|
26
26
|
end
|
|
27
27
|
end
|
data/lib/cocoa/bindings/NSSet.rb
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
require 'cocoa/bindings/NSObject'
|
|
3
3
|
module Cocoa
|
|
4
4
|
class NSSet < Cocoa::NSObject
|
|
5
|
-
attach_method :addObserver, :args=>4, :names=>[
|
|
5
|
+
attach_method :addObserver, :args=>4, :names=>[:forKeyPath, :options, :context], :types=>["@", "@", "Q", "^v"], :retval=>"v"
|
|
6
6
|
attach_method :allObjects, :args=>0, :names=>[], :types=>[], :retval=>"@"
|
|
7
7
|
attach_method :anyObject, :args=>0, :names=>[], :types=>[], :retval=>"@"
|
|
8
8
|
attach_method :containsObject, :args=>1, :names=>[], :types=>["@"], :retval=>"B"
|
|
@@ -10,28 +10,28 @@ module Cocoa
|
|
|
10
10
|
attach_method :description, :args=>0, :names=>[], :types=>[], :retval=>"@"
|
|
11
11
|
attach_method :descriptionWithLocale, :args=>1, :names=>[], :types=>["@"], :retval=>"@"
|
|
12
12
|
attach_method :enumerateObjectsUsingBlock, :args=>1, :names=>[], :types=>["@?"], :retval=>"v"
|
|
13
|
-
attach_method :enumerateObjectsWithOptions, :args=>2, :names=>[
|
|
13
|
+
attach_method :enumerateObjectsWithOptions, :args=>2, :names=>[:usingBlock], :types=>["Q", "@?"], :retval=>"v"
|
|
14
14
|
attach_method :filteredSetUsingPredicate, :args=>1, :names=>[], :types=>["@"], :retval=>"@"
|
|
15
15
|
attach_method :initWithArray, :args=>1, :names=>[], :types=>["@"], :retval=>"@"
|
|
16
|
-
attach_method :initWithObjects, [{:args=>1, :names=>[], :types=>["@"], :retval=>"@", :variadic=>true}, {:args=>2, :names=>[
|
|
17
|
-
attach_method :initWithSet, [{:args=>1, :names=>[], :types=>["@"], :retval=>"@"}, {:args=>2, :names=>[
|
|
16
|
+
attach_method :initWithObjects, [{:args=>1, :names=>[], :types=>["@"], :retval=>"@", :variadic=>true}, {:args=>2, :names=>[:count], :types=>["^@", "Q"], :retval=>"@"}]
|
|
17
|
+
attach_method :initWithSet, [{:args=>1, :names=>[], :types=>["@"], :retval=>"@"}, {:args=>2, :names=>[:copyItems], :types=>["@", "B"], :retval=>"@"}]
|
|
18
18
|
attach_method :intersectsSet, :args=>1, :names=>[], :types=>["@"], :retval=>"B"
|
|
19
19
|
attach_method :isEqualToSet, :args=>1, :names=>[], :types=>["@"], :retval=>"B"
|
|
20
20
|
attach_method :isSubsetOfSet, :args=>1, :names=>[], :types=>["@"], :retval=>"B"
|
|
21
|
-
attach_method :makeObjectsPerformSelector, [{:args=>1, :names=>[], :types=>[":"], :retval=>"v"}, {:args=>2, :names=>[
|
|
21
|
+
attach_method :makeObjectsPerformSelector, [{:args=>1, :names=>[], :types=>[":"], :retval=>"v"}, {:args=>2, :names=>[:withObject], :types=>[":", "@"], :retval=>"v"}]
|
|
22
22
|
attach_method :member, :args=>1, :names=>[], :types=>["@"], :retval=>"@"
|
|
23
23
|
attach_method :objectEnumerator, :args=>0, :names=>[], :types=>[], :retval=>"@"
|
|
24
24
|
attach_method :objectsPassingTest, :args=>1, :names=>[], :types=>["@?"], :retval=>"@"
|
|
25
|
-
attach_method :objectsWithOptions, :args=>2, :names=>[
|
|
26
|
-
attach_method :removeObserver, [{:args=>2, :names=>[
|
|
25
|
+
attach_method :objectsWithOptions, :args=>2, :names=>[:passingTest], :types=>["Q", "@?"], :retval=>"@"
|
|
26
|
+
attach_method :removeObserver, [{:args=>2, :names=>[:forKeyPath], :types=>["@", "@"], :retval=>"v"}, {:args=>3, :names=>[:forKeyPath, :context], :types=>["@", "@", "^v"], :retval=>"v"}]
|
|
27
27
|
attach_singular_method :set, :args=>0, :names=>[], :types=>[], :retval=>"@"
|
|
28
28
|
attach_method :setByAddingObject, :args=>1, :names=>[], :types=>["@"], :retval=>"@"
|
|
29
29
|
attach_method :setByAddingObjectsFromArray, :args=>1, :names=>[], :types=>["@"], :retval=>"@"
|
|
30
30
|
attach_method :setByAddingObjectsFromSet, :args=>1, :names=>[], :types=>["@"], :retval=>"@"
|
|
31
|
-
attach_method :setValue, :args=>2, :names=>[
|
|
31
|
+
attach_method :setValue, :args=>2, :names=>[:forKey], :types=>["@", "@"], :retval=>"v"
|
|
32
32
|
attach_singular_method :setWithArray, :args=>1, :names=>[], :types=>["@"], :retval=>"@"
|
|
33
33
|
attach_singular_method :setWithObject, :args=>1, :names=>[], :types=>["@"], :retval=>"@"
|
|
34
|
-
attach_singular_method :setWithObjects, [{:args=>1, :names=>[], :types=>["@"], :retval=>"@", :variadic=>true}, {:args=>2, :names=>[
|
|
34
|
+
attach_singular_method :setWithObjects, [{:args=>1, :names=>[], :types=>["@"], :retval=>"@", :variadic=>true}, {:args=>2, :names=>[:count], :types=>["^@", "Q"], :retval=>"@"}]
|
|
35
35
|
attach_singular_method :setWithSet, :args=>1, :names=>[], :types=>["@"], :retval=>"@"
|
|
36
36
|
attach_method :sortedArrayUsingDescriptors, :args=>1, :names=>[], :types=>["@"], :retval=>"@"
|
|
37
37
|
attach_method :valueForKey, :args=>1, :names=>[], :types=>["@"], :retval=>"@"
|
|
@@ -6,7 +6,7 @@ module Cocoa
|
|
|
6
6
|
attach_method :canPerformWithItems, :args=>1, :names=>[], :types=>["@"], :retval=>"B"
|
|
7
7
|
attach_method :delegate, :args=>0, :names=>[], :types=>[], :retval=>"@"
|
|
8
8
|
attach_method :image, :args=>0, :names=>[], :types=>[], :retval=>"@"
|
|
9
|
-
attach_method :initWithTitle, :args=>4, :names=>[
|
|
9
|
+
attach_method :initWithTitle, :args=>4, :names=>[:image, :alternateImage, :handler], :types=>["@", "@", "@", "@?"], :retval=>"@"
|
|
10
10
|
attach_method :performWithItems, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
|
|
11
11
|
attach_method :setDelegate, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
|
|
12
12
|
attach_singular_method :sharingServiceNamed, :args=>1, :names=>[], :types=>["@"], :retval=>"@"
|
|
@@ -5,6 +5,6 @@ module Cocoa
|
|
|
5
5
|
attach_method :delegate, :args=>0, :names=>[], :types=>[], :retval=>"@"
|
|
6
6
|
attach_method :initWithItems, :args=>1, :names=>[], :types=>["@"], :retval=>"@"
|
|
7
7
|
attach_method :setDelegate, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
|
|
8
|
-
attach_method :showRelativeToRect, :args=>3, :names=>[
|
|
8
|
+
attach_method :showRelativeToRect, :args=>3, :names=>[:ofView, :preferredEdge], :types=>["{CGRect={CGPoint=dd}{CGSize=dd}}", "@", "Q"], :retval=>"v"
|
|
9
9
|
end
|
|
10
10
|
end
|
|
@@ -5,7 +5,7 @@ module Cocoa
|
|
|
5
5
|
attach_method :allowsTickMarkValuesOnly, :args=>0, :names=>[], :types=>[], :retval=>"B"
|
|
6
6
|
attach_method :altIncrementValue, :args=>0, :names=>[], :types=>[], :retval=>"d"
|
|
7
7
|
attach_method :closestTickMarkValueToValue, :args=>1, :names=>[], :types=>["d"], :retval=>"d"
|
|
8
|
-
attach_method :drawBarInside, :args=>2, :names=>[
|
|
8
|
+
attach_method :drawBarInside, :args=>2, :names=>[:flipped], :types=>["{CGRect={CGPoint=dd}{CGSize=dd}}", "B"], :retval=>"v"
|
|
9
9
|
attach_method :drawKnob, [{:args=>0, :names=>[], :types=>[], :retval=>"v"}, {:args=>1, :names=>[], :types=>["{CGRect={CGPoint=dd}{CGSize=dd}}"], :retval=>"v"}]
|
|
10
10
|
attach_method :indexOfTickMarkAtPoint, :args=>1, :names=>[], :types=>["{CGPoint=dd}"], :retval=>"q"
|
|
11
11
|
attach_method :isVertical, :args=>0, :names=>[], :types=>[], :retval=>"q"
|
|
@@ -4,9 +4,9 @@ module Cocoa
|
|
|
4
4
|
class NSSocketPort < Cocoa::NSPort
|
|
5
5
|
attach_method :address, :args=>0, :names=>[], :types=>[], :retval=>"@"
|
|
6
6
|
attach_method :init, :args=>0, :names=>[], :types=>[], :retval=>"@"
|
|
7
|
-
attach_method :initRemoteWithProtocolFamily, :args=>4, :names=>[
|
|
8
|
-
attach_method :initRemoteWithTCPPort, :args=>2, :names=>[
|
|
9
|
-
attach_method :initWithProtocolFamily, [{:args=>4, :names=>[
|
|
7
|
+
attach_method :initRemoteWithProtocolFamily, :args=>4, :names=>[:socketType, :protocol, :address], :types=>["i", "i", "i", "@"], :retval=>"@"
|
|
8
|
+
attach_method :initRemoteWithTCPPort, :args=>2, :names=>[:host], :types=>["S", "@"], :retval=>"@"
|
|
9
|
+
attach_method :initWithProtocolFamily, [{:args=>4, :names=>[:socketType, :protocol, :address], :types=>["i", "i", "i", "@"], :retval=>"@"}, {:args=>4, :names=>[:socketType, :protocol, :socket], :types=>["i", "i", "i", "i"], :retval=>"@"}]
|
|
10
10
|
attach_method :initWithTCPPort, :args=>1, :names=>[], :types=>["S"], :retval=>"@"
|
|
11
11
|
attach_method :protocol, :args=>0, :names=>[], :types=>[], :retval=>"i"
|
|
12
12
|
attach_method :protocolFamily, :args=>0, :names=>[], :types=>[], :retval=>"i"
|
|
@@ -3,8 +3,8 @@ require 'cocoa/bindings/NSPortNameServer'
|
|
|
3
3
|
module Cocoa
|
|
4
4
|
class NSSocketPortNameServer < Cocoa::NSPortNameServer
|
|
5
5
|
attach_method :defaultNameServerPortNumber, :args=>0, :names=>[], :types=>[], :retval=>"S"
|
|
6
|
-
attach_method :portForName, [{:args=>1, :names=>[], :types=>["@"], :retval=>"@"}, {:args=>2, :names=>[
|
|
7
|
-
attach_method :registerPort, [{:args=>2, :names=>[
|
|
6
|
+
attach_method :portForName, [{:args=>1, :names=>[], :types=>["@"], :retval=>"@"}, {:args=>2, :names=>[:host], :types=>["@", "@"], :retval=>"@"}, {:args=>3, :names=>[:host, :nameServerPortNumber], :types=>["@", "@", "S"], :retval=>"@"}]
|
|
7
|
+
attach_method :registerPort, [{:args=>2, :names=>[:name], :types=>["@", "@"], :retval=>"B"}, {:args=>3, :names=>[:name, :nameServerPortNumber], :types=>["@", "@", "S"], :retval=>"B"}]
|
|
8
8
|
attach_method :removePortForName, :args=>1, :names=>[], :types=>["@"], :retval=>"B"
|
|
9
9
|
attach_method :setDefaultNameServerPortNumber, :args=>1, :names=>[], :types=>["S"], :retval=>"v"
|
|
10
10
|
attach_singular_method :sharedInstance, :args=>0, :names=>[], :types=>[], :retval=>"@"
|
|
@@ -4,11 +4,11 @@ module Cocoa
|
|
|
4
4
|
class NSSortDescriptor < Cocoa::NSObject
|
|
5
5
|
attach_method :ascending, :args=>0, :names=>[], :types=>[], :retval=>"B"
|
|
6
6
|
attach_method :comparator, :args=>0, :names=>[], :types=>[], :retval=>"@?"
|
|
7
|
-
attach_method :compareObject, :args=>2, :names=>[
|
|
8
|
-
attach_method :initWithKey, [{:args=>2, :names=>[
|
|
7
|
+
attach_method :compareObject, :args=>2, :names=>[:toObject], :types=>["@", "@"], :retval=>"q"
|
|
8
|
+
attach_method :initWithKey, [{:args=>2, :names=>[:ascending], :types=>["@", "B"], :retval=>"@"}, {:args=>3, :names=>[:ascending, :comparator], :types=>["@", "B", "@?"], :retval=>"@"}, {:args=>3, :names=>[:ascending, :selector], :types=>["@", "B", ":"], :retval=>"@"}]
|
|
9
9
|
attach_method :key, :args=>0, :names=>[], :types=>[], :retval=>"@"
|
|
10
10
|
attach_method :reversedSortDescriptor, :args=>0, :names=>[], :types=>[], :retval=>"@"
|
|
11
11
|
attach_method :selector, :args=>0, :names=>[], :types=>[], :retval=>":"
|
|
12
|
-
attach_singular_method :sortDescriptorWithKey, [{:args=>2, :names=>[
|
|
12
|
+
attach_singular_method :sortDescriptorWithKey, [{:args=>2, :names=>[:ascending], :types=>["@", "B"], :retval=>"@"}, {:args=>3, :names=>[:ascending, :comparator], :types=>["@", "B", "@?"], :retval=>"@"}, {:args=>3, :names=>[:ascending, :selector], :types=>["@", "B", ":"], :retval=>"@"}]
|
|
13
13
|
end
|
|
14
14
|
end
|
|
@@ -7,8 +7,8 @@ module Cocoa
|
|
|
7
7
|
attach_method :currentTime, :args=>0, :names=>[], :types=>[], :retval=>"d"
|
|
8
8
|
attach_method :delegate, :args=>0, :names=>[], :types=>[], :retval=>"@"
|
|
9
9
|
attach_method :duration, :args=>0, :names=>[], :types=>[], :retval=>"d"
|
|
10
|
-
attach_method :initWithContentsOfFile, :args=>2, :names=>[
|
|
11
|
-
attach_method :initWithContentsOfURL, :args=>2, :names=>[
|
|
10
|
+
attach_method :initWithContentsOfFile, :args=>2, :names=>[:byReference], :types=>["@", "B"], :retval=>"@"
|
|
11
|
+
attach_method :initWithContentsOfURL, :args=>2, :names=>[:byReference], :types=>["@", "B"], :retval=>"@"
|
|
12
12
|
attach_method :initWithData, :args=>1, :names=>[], :types=>["@"], :retval=>"@"
|
|
13
13
|
attach_method :initWithPasteboard, :args=>1, :names=>[], :types=>["@"], :retval=>"@"
|
|
14
14
|
attach_method :isPlaying, :args=>0, :names=>[], :types=>[], :retval=>"B"
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
require 'cocoa/bindings/NSScriptWhoseTest'
|
|
3
3
|
module Cocoa
|
|
4
4
|
class NSSpecifierTest < Cocoa::NSScriptWhoseTest
|
|
5
|
-
attach_method :initWithObjectSpecifier, :args=>3, :names=>[
|
|
5
|
+
attach_method :initWithObjectSpecifier, :args=>3, :names=>[:comparisonOperator, :testObject], :types=>["@", "Q", "@"], :retval=>"@"
|
|
6
6
|
end
|
|
7
7
|
end
|
|
@@ -11,17 +11,17 @@ module Cocoa
|
|
|
11
11
|
attach_method :initWithVoice, :args=>1, :names=>[], :types=>["@"], :retval=>"@"
|
|
12
12
|
attach_singular_method :isAnyApplicationSpeaking, :args=>0, :names=>[], :types=>[], :retval=>"B"
|
|
13
13
|
attach_method :isSpeaking, :args=>0, :names=>[], :types=>[], :retval=>"B"
|
|
14
|
-
attach_method :objectForProperty, :args=>2, :names=>[
|
|
14
|
+
attach_method :objectForProperty, :args=>2, :names=>[:error], :types=>["@", "^@"], :retval=>"@"
|
|
15
15
|
attach_method :pauseSpeakingAtBoundary, :args=>1, :names=>[], :types=>["Q"], :retval=>"v"
|
|
16
16
|
attach_method :phonemesFromText, :args=>1, :names=>[], :types=>["@"], :retval=>"@"
|
|
17
17
|
attach_method :rate, :args=>0, :names=>[], :types=>[], :retval=>"f"
|
|
18
18
|
attach_method :setDelegate, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
|
|
19
|
-
attach_method :setObject, :args=>3, :names=>[
|
|
19
|
+
attach_method :setObject, :args=>3, :names=>[:forProperty, :error], :types=>["@", "@", "^@"], :retval=>"B"
|
|
20
20
|
attach_method :setRate, :args=>1, :names=>[], :types=>["f"], :retval=>"v"
|
|
21
21
|
attach_method :setUsesFeedbackWindow, :args=>1, :names=>[], :types=>["B"], :retval=>"v"
|
|
22
22
|
attach_method :setVoice, :args=>1, :names=>[], :types=>["@"], :retval=>"B"
|
|
23
23
|
attach_method :setVolume, :args=>1, :names=>[], :types=>["f"], :retval=>"v"
|
|
24
|
-
attach_method :startSpeakingString, [{:args=>1, :names=>[], :types=>["@"], :retval=>"B"}, {:args=>2, :names=>[
|
|
24
|
+
attach_method :startSpeakingString, [{:args=>1, :names=>[], :types=>["@"], :retval=>"B"}, {:args=>2, :names=>[:toURL], :types=>["@", "@"], :retval=>"B"}]
|
|
25
25
|
attach_method :stopSpeaking, :args=>0, :names=>[], :types=>[], :retval=>"v"
|
|
26
26
|
attach_method :stopSpeakingAtBoundary, :args=>1, :names=>[], :types=>["Q"], :retval=>"v"
|
|
27
27
|
attach_method :usesFeedbackWindow, :args=>0, :names=>[], :types=>[], :retval=>"B"
|
|
@@ -5,44 +5,44 @@ module Cocoa
|
|
|
5
5
|
attach_method :accessoryView, :args=>0, :names=>[], :types=>[], :retval=>"@"
|
|
6
6
|
attach_method :automaticallyIdentifiesLanguages, :args=>0, :names=>[], :types=>[], :retval=>"B"
|
|
7
7
|
attach_method :availableLanguages, :args=>0, :names=>[], :types=>[], :retval=>"@"
|
|
8
|
-
attach_method :checkGrammarOfString, :args=>6, :names=>[
|
|
9
|
-
attach_method :checkSpellingOfString, [{:args=>2, :names=>[
|
|
10
|
-
attach_method :checkString, :args=>7, :names=>[
|
|
8
|
+
attach_method :checkGrammarOfString, :args=>6, :names=>[:startingAt, :language, :wrap, :inSpellDocumentWithTag, :details], :types=>["@", "q", "@", "B", "q", "^@"], :retval=>"{_NSRange=QQ}"
|
|
9
|
+
attach_method :checkSpellingOfString, [{:args=>2, :names=>[:startingAt], :types=>["@", "q"], :retval=>"{_NSRange=QQ}"}, {:args=>6, :names=>[:startingAt, :language, :wrap, :inSpellDocumentWithTag, :wordCount], :types=>["@", "q", "@", "B", "q", "^q"], :retval=>"{_NSRange=QQ}"}]
|
|
10
|
+
attach_method :checkString, :args=>7, :names=>[:range, :types, :options, :inSpellDocumentWithTag, :orthography, :wordCount], :types=>["@", "{_NSRange=QQ}", "Q", "@", "q", "^@", "^q"], :retval=>"@"
|
|
11
11
|
attach_method :closeSpellDocumentWithTag, :args=>1, :names=>[], :types=>["q"], :retval=>"v"
|
|
12
|
-
attach_method :completionsForPartialWordRange, :args=>4, :names=>[
|
|
13
|
-
attach_method :correctionForWordRange, :args=>4, :names=>[
|
|
14
|
-
attach_method :countWordsInString, :args=>2, :names=>[
|
|
12
|
+
attach_method :completionsForPartialWordRange, :args=>4, :names=>[:inString, :language, :inSpellDocumentWithTag], :types=>["{_NSRange=QQ}", "@", "@", "q"], :retval=>"@"
|
|
13
|
+
attach_method :correctionForWordRange, :args=>4, :names=>[:inString, :language, :inSpellDocumentWithTag], :types=>["{_NSRange=QQ}", "@", "@", "q"], :retval=>"@"
|
|
14
|
+
attach_method :countWordsInString, :args=>2, :names=>[:language], :types=>["@", "@"], :retval=>"q"
|
|
15
15
|
attach_method :dismissCorrectionIndicatorForView, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
|
|
16
16
|
attach_method :forgetWord, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
|
|
17
17
|
attach_method :guessesForWord, :args=>1, :names=>[], :types=>["@"], :retval=>"@"
|
|
18
|
-
attach_method :guessesForWordRange, :args=>4, :names=>[
|
|
18
|
+
attach_method :guessesForWordRange, :args=>4, :names=>[:inString, :language, :inSpellDocumentWithTag], :types=>["{_NSRange=QQ}", "@", "@", "q"], :retval=>"@"
|
|
19
19
|
attach_method :hasLearnedWord, :args=>1, :names=>[], :types=>["@"], :retval=>"B"
|
|
20
|
-
attach_method :ignoreWord, :args=>2, :names=>[
|
|
20
|
+
attach_method :ignoreWord, :args=>2, :names=>[:inSpellDocumentWithTag], :types=>["@", "q"], :retval=>"v"
|
|
21
21
|
attach_method :ignoredWordsInSpellDocumentWithTag, :args=>1, :names=>[], :types=>["q"], :retval=>"@"
|
|
22
22
|
attach_singular_method :isAutomaticSpellingCorrectionEnabled, :args=>0, :names=>[], :types=>[], :retval=>"B"
|
|
23
23
|
attach_singular_method :isAutomaticTextReplacementEnabled, :args=>0, :names=>[], :types=>[], :retval=>"B"
|
|
24
24
|
attach_method :language, :args=>0, :names=>[], :types=>[], :retval=>"@"
|
|
25
|
-
attach_method :languageForWordRange, :args=>3, :names=>[
|
|
25
|
+
attach_method :languageForWordRange, :args=>3, :names=>[:inString, :orthography], :types=>["{_NSRange=QQ}", "@", "@"], :retval=>"@"
|
|
26
26
|
attach_method :learnWord, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
|
|
27
|
-
attach_method :menuForResult, :args=>5, :names=>[
|
|
28
|
-
attach_method :recordResponse, :args=>5, :names=>[
|
|
29
|
-
attach_method :requestCheckingOfString, :args=>6, :names=>[
|
|
27
|
+
attach_method :menuForResult, :args=>5, :names=>[:string, :options, :atLocation, :inView], :types=>["@", "@", "@", "{CGPoint=dd}", "@"], :retval=>"@"
|
|
28
|
+
attach_method :recordResponse, :args=>5, :names=>[:toCorrection, :forWord, :language, :inSpellDocumentWithTag], :types=>["q", "@", "@", "@", "q"], :retval=>"v"
|
|
29
|
+
attach_method :requestCheckingOfString, :args=>6, :names=>[:range, :types, :options, :inSpellDocumentWithTag, :completionHandler], :types=>["@", "{_NSRange=QQ}", "Q", "@", "q", "@?"], :retval=>"q"
|
|
30
30
|
attach_method :setAccessoryView, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
|
|
31
31
|
attach_method :setAutomaticallyIdentifiesLanguages, :args=>1, :names=>[], :types=>["B"], :retval=>"v"
|
|
32
|
-
attach_method :setIgnoredWords, :args=>2, :names=>[
|
|
32
|
+
attach_method :setIgnoredWords, :args=>2, :names=>[:inSpellDocumentWithTag], :types=>["@", "q"], :retval=>"v"
|
|
33
33
|
attach_method :setLanguage, :args=>1, :names=>[], :types=>["@"], :retval=>"B"
|
|
34
34
|
attach_method :setSubstitutionsPanelAccessoryViewController, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
|
|
35
35
|
attach_method :setWordFieldStringValue, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
|
|
36
36
|
attach_singular_method :sharedSpellChecker, :args=>0, :names=>[], :types=>[], :retval=>"@"
|
|
37
37
|
attach_singular_method :sharedSpellCheckerExists, :args=>0, :names=>[], :types=>[], :retval=>"B"
|
|
38
|
-
attach_method :showCorrectionIndicatorOfType, :args=>6, :names=>[
|
|
38
|
+
attach_method :showCorrectionIndicatorOfType, :args=>6, :names=>[:primaryString, :alternativeStrings, :forStringInRect, :view, :completionHandler], :types=>["q", "@", "@", "{CGRect={CGPoint=dd}{CGSize=dd}}", "@", "@?"], :retval=>"v"
|
|
39
39
|
attach_method :spellingPanel, :args=>0, :names=>[], :types=>[], :retval=>"@"
|
|
40
40
|
attach_method :substitutionsPanel, :args=>0, :names=>[], :types=>[], :retval=>"@"
|
|
41
41
|
attach_method :substitutionsPanelAccessoryViewController, :args=>0, :names=>[], :types=>[], :retval=>"@"
|
|
42
42
|
attach_singular_method :uniqueSpellDocumentTag, :args=>0, :names=>[], :types=>[], :retval=>"q"
|
|
43
43
|
attach_method :unlearnWord, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
|
|
44
44
|
attach_method :updatePanels, :args=>0, :names=>[], :types=>[], :retval=>"v"
|
|
45
|
-
attach_method :updateSpellingPanelWithGrammarString, :args=>2, :names=>[
|
|
45
|
+
attach_method :updateSpellingPanelWithGrammarString, :args=>2, :names=>[:detail], :types=>["@", "@"], :retval=>"v"
|
|
46
46
|
attach_method :updateSpellingPanelWithMisspelledWord, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
|
|
47
47
|
attach_method :userPreferredLanguages, :args=>0, :names=>[], :types=>[], :retval=>"@"
|
|
48
48
|
attach_method :userQuotesArrayForLanguage, :args=>1, :names=>[], :types=>["@"], :retval=>"@"
|
|
@@ -3,8 +3,8 @@ require 'cocoa/bindings/NSObject'
|
|
|
3
3
|
module Cocoa
|
|
4
4
|
class NSSpellServer < Cocoa::NSObject
|
|
5
5
|
attach_method :delegate, :args=>0, :names=>[], :types=>[], :retval=>"@"
|
|
6
|
-
attach_method :isWordInUserDictionaries, :args=>2, :names=>[
|
|
7
|
-
attach_method :registerLanguage, :args=>2, :names=>[
|
|
6
|
+
attach_method :isWordInUserDictionaries, :args=>2, :names=>[:caseSensitive], :types=>["@", "B"], :retval=>"B"
|
|
7
|
+
attach_method :registerLanguage, :args=>2, :names=>[:byVendor], :types=>["@", "@"], :retval=>"B"
|
|
8
8
|
attach_method :run, :args=>0, :names=>[], :types=>[], :retval=>"v"
|
|
9
9
|
attach_method :setDelegate, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
|
|
10
10
|
end
|
|
@@ -18,9 +18,9 @@ module Cocoa
|
|
|
18
18
|
attach_method :setAutosaveName, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
|
|
19
19
|
attach_method :setDelegate, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
|
|
20
20
|
attach_method :setDividerStyle, :args=>1, :names=>[], :types=>["q"], :retval=>"v"
|
|
21
|
-
attach_method :setHoldingPriority, :args=>2, :names=>[
|
|
21
|
+
attach_method :setHoldingPriority, :args=>2, :names=>[:forSubviewAtIndex], :types=>["f", "q"], :retval=>"v"
|
|
22
22
|
attach_method :setIsPaneSplitter, :args=>1, :names=>[], :types=>["B"], :retval=>"v"
|
|
23
|
-
attach_method :setPosition, :args=>2, :names=>[
|
|
23
|
+
attach_method :setPosition, :args=>2, :names=>[:ofDividerAtIndex], :types=>["d", "q"], :retval=>"v"
|
|
24
24
|
attach_method :setVertical, :args=>1, :names=>[], :types=>["B"], :retval=>"v"
|
|
25
25
|
end
|
|
26
26
|
end
|
|
@@ -6,7 +6,7 @@ module Cocoa
|
|
|
6
6
|
attach_method :alternateImage, :args=>0, :names=>[], :types=>[], :retval=>"@"
|
|
7
7
|
attach_method :attributedTitle, :args=>0, :names=>[], :types=>[], :retval=>"@"
|
|
8
8
|
attach_method :doubleAction, :args=>0, :names=>[], :types=>[], :retval=>":"
|
|
9
|
-
attach_method :drawStatusBarBackgroundInRect, :args=>2, :names=>[
|
|
9
|
+
attach_method :drawStatusBarBackgroundInRect, :args=>2, :names=>[:withHighlight], :types=>["{CGRect={CGPoint=dd}{CGSize=dd}}", "B"], :retval=>"v"
|
|
10
10
|
attach_method :highlightMode, :args=>0, :names=>[], :types=>[], :retval=>"B"
|
|
11
11
|
attach_method :image, :args=>0, :names=>[], :types=>[], :retval=>"@"
|
|
12
12
|
attach_method :isEnabled, :args=>0, :names=>[], :types=>[], :retval=>"B"
|
|
@@ -4,13 +4,13 @@ module Cocoa
|
|
|
4
4
|
class NSStream < Cocoa::NSObject
|
|
5
5
|
attach_method :close, :args=>0, :names=>[], :types=>[], :retval=>"v"
|
|
6
6
|
attach_method :delegate, :args=>0, :names=>[], :types=>[], :retval=>"@"
|
|
7
|
-
attach_singular_method :getStreamsToHost, :args=>4, :names=>[
|
|
7
|
+
attach_singular_method :getStreamsToHost, :args=>4, :names=>[:port, :inputStream, :outputStream], :types=>["@", "q", "^@", "^@"], :retval=>"v"
|
|
8
8
|
attach_method :open, :args=>0, :names=>[], :types=>[], :retval=>"v"
|
|
9
9
|
attach_method :propertyForKey, :args=>1, :names=>[], :types=>["@"], :retval=>"@"
|
|
10
|
-
attach_method :removeFromRunLoop, :args=>2, :names=>[
|
|
11
|
-
attach_method :scheduleInRunLoop, :args=>2, :names=>[
|
|
10
|
+
attach_method :removeFromRunLoop, :args=>2, :names=>[:forMode], :types=>["@", "@"], :retval=>"v"
|
|
11
|
+
attach_method :scheduleInRunLoop, :args=>2, :names=>[:forMode], :types=>["@", "@"], :retval=>"v"
|
|
12
12
|
attach_method :setDelegate, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
|
|
13
|
-
attach_method :setProperty, :args=>2, :names=>[
|
|
13
|
+
attach_method :setProperty, :args=>2, :names=>[:forKey], :types=>["@", "@"], :retval=>"B"
|
|
14
14
|
attach_method :streamError, :args=>0, :names=>[], :types=>[], :retval=>"@"
|
|
15
15
|
attach_method :streamStatus, :args=>0, :names=>[], :types=>[], :retval=>"Q"
|
|
16
16
|
end
|
|
@@ -5,7 +5,7 @@ module Cocoa
|
|
|
5
5
|
attach_method :UTF8String, :args=>0, :names=>[], :types=>[], :retval=>"*"
|
|
6
6
|
attach_singular_method :availableStringEncodings, :args=>0, :names=>[], :types=>[], :retval=>"^Q"
|
|
7
7
|
attach_method :boolValue, :args=>0, :names=>[], :types=>[], :retval=>"B"
|
|
8
|
-
attach_method :boundingRectWithSize, :args=>3, :names=>[
|
|
8
|
+
attach_method :boundingRectWithSize, :args=>3, :names=>[:options, :attributes], :types=>["{CGSize=dd}", "q", "@"], :retval=>"{CGRect={CGPoint=dd}{CGSize=dd}}"
|
|
9
9
|
attach_method :cString, :args=>0, :names=>[], :types=>[], :retval=>"*"
|
|
10
10
|
attach_method :cStringLength, :args=>0, :names=>[], :types=>[], :retval=>"Q"
|
|
11
11
|
attach_method :cStringUsingEncoding, :args=>1, :names=>[], :types=>["Q"], :retval=>"*"
|
|
@@ -14,46 +14,46 @@ module Cocoa
|
|
|
14
14
|
attach_method :capitalizedStringWithLocale, :args=>1, :names=>[], :types=>["@"], :retval=>"@"
|
|
15
15
|
attach_method :caseInsensitiveCompare, :args=>1, :names=>[], :types=>["@"], :retval=>"q"
|
|
16
16
|
attach_method :characterAtIndex, :args=>1, :names=>[], :types=>["Q"], :retval=>"S"
|
|
17
|
-
attach_method :commonPrefixWithString, :args=>2, :names=>[
|
|
18
|
-
attach_method :compare, [{:args=>1, :names=>[], :types=>["@"], :retval=>"q"}, {:args=>2, :names=>[
|
|
19
|
-
attach_method :completePathIntoString, :args=>4, :names=>[
|
|
17
|
+
attach_method :commonPrefixWithString, :args=>2, :names=>[:options], :types=>["@", "Q"], :retval=>"@"
|
|
18
|
+
attach_method :compare, [{:args=>1, :names=>[], :types=>["@"], :retval=>"q"}, {:args=>2, :names=>[:options], :types=>["@", "Q"], :retval=>"q"}, {:args=>3, :names=>[:options, :range], :types=>["@", "Q", "{_NSRange=QQ}"], :retval=>"q"}, {:args=>4, :names=>[:options, :range, :locale], :types=>["@", "Q", "{_NSRange=QQ}", "@"], :retval=>"q"}]
|
|
19
|
+
attach_method :completePathIntoString, :args=>4, :names=>[:caseSensitive, :matchesIntoArray, :filterTypes], :types=>["^@", "B", "^@", "@"], :retval=>"Q"
|
|
20
20
|
attach_method :componentsSeparatedByCharactersInSet, :args=>1, :names=>[], :types=>["@"], :retval=>"@"
|
|
21
21
|
attach_method :componentsSeparatedByString, :args=>1, :names=>[], :types=>["@"], :retval=>"@"
|
|
22
|
-
attach_method :dataUsingEncoding, [{:args=>1, :names=>[], :types=>["Q"], :retval=>"@"}, {:args=>2, :names=>[
|
|
22
|
+
attach_method :dataUsingEncoding, [{:args=>1, :names=>[], :types=>["Q"], :retval=>"@"}, {:args=>2, :names=>[:allowLossyConversion], :types=>["Q", "B"], :retval=>"@"}]
|
|
23
23
|
attach_method :decomposedStringWithCanonicalMapping, :args=>0, :names=>[], :types=>[], :retval=>"@"
|
|
24
24
|
attach_method :decomposedStringWithCompatibilityMapping, :args=>0, :names=>[], :types=>[], :retval=>"@"
|
|
25
25
|
attach_singular_method :defaultCStringEncoding, :args=>0, :names=>[], :types=>[], :retval=>"Q"
|
|
26
26
|
attach_method :description, :args=>0, :names=>[], :types=>[], :retval=>"@"
|
|
27
27
|
attach_method :doubleValue, :args=>0, :names=>[], :types=>[], :retval=>"d"
|
|
28
|
-
attach_method :drawAtPoint, :args=>2, :names=>[
|
|
29
|
-
attach_method :drawInRect, :args=>2, :names=>[
|
|
30
|
-
attach_method :drawWithRect, :args=>3, :names=>[
|
|
28
|
+
attach_method :drawAtPoint, :args=>2, :names=>[:withAttributes], :types=>["{CGPoint=dd}", "@"], :retval=>"v"
|
|
29
|
+
attach_method :drawInRect, :args=>2, :names=>[:withAttributes], :types=>["{CGRect={CGPoint=dd}{CGSize=dd}}", "@"], :retval=>"v"
|
|
30
|
+
attach_method :drawWithRect, :args=>3, :names=>[:options, :attributes], :types=>["{CGRect={CGPoint=dd}{CGSize=dd}}", "q", "@"], :retval=>"v"
|
|
31
31
|
attach_method :enumerateLinesUsingBlock, :args=>1, :names=>[], :types=>["@?"], :retval=>"v"
|
|
32
|
-
attach_method :enumerateLinguisticTagsInRange, :args=>5, :names=>[
|
|
33
|
-
attach_method :enumerateSubstringsInRange, :args=>3, :names=>[
|
|
32
|
+
attach_method :enumerateLinguisticTagsInRange, :args=>5, :names=>[:scheme, :options, :orthography, :usingBlock], :types=>["{_NSRange=QQ}", "@", "Q", "@", "@?"], :retval=>"v"
|
|
33
|
+
attach_method :enumerateSubstringsInRange, :args=>3, :names=>[:options, :usingBlock], :types=>["{_NSRange=QQ}", "Q", "@?"], :retval=>"v"
|
|
34
34
|
attach_method :fastestEncoding, :args=>0, :names=>[], :types=>[], :retval=>"Q"
|
|
35
35
|
attach_method :fileSystemRepresentation, :args=>0, :names=>[], :types=>[], :retval=>"*"
|
|
36
36
|
attach_method :floatValue, :args=>0, :names=>[], :types=>[], :retval=>"f"
|
|
37
|
-
attach_method :getBytes, :args=>7, :names=>[
|
|
38
|
-
attach_method :getCString, [{:args=>1, :names=>[], :types=>["*"], :retval=>"v"}, {:args=>2, :names=>[
|
|
39
|
-
attach_method :getCharacters, [{:args=>1, :names=>[], :types=>["^S"], :retval=>"v"}, {:args=>2, :names=>[
|
|
40
|
-
attach_method :getFileSystemRepresentation, :args=>2, :names=>[
|
|
41
|
-
attach_method :getLineStart, :args=>4, :names=>[
|
|
42
|
-
attach_method :getParagraphStart, :args=>4, :names=>[
|
|
37
|
+
attach_method :getBytes, :args=>7, :names=>[:maxLength, :usedLength, :encoding, :options, :range, :remainingRange], :types=>["^v", "Q", "^Q", "Q", "Q", "{_NSRange=QQ}", "^{_NSRange=QQ}"], :retval=>"B"
|
|
38
|
+
attach_method :getCString, [{:args=>1, :names=>[], :types=>["*"], :retval=>"v"}, {:args=>2, :names=>[:maxLength], :types=>["*", "Q"], :retval=>"v"}, {:args=>3, :names=>[:maxLength, :encoding], :types=>["*", "Q", "Q"], :retval=>"B"}, {:args=>4, :names=>[:maxLength, :range, :remainingRange], :types=>["*", "Q", "{_NSRange=QQ}", "^{_NSRange=QQ}"], :retval=>"v"}]
|
|
39
|
+
attach_method :getCharacters, [{:args=>1, :names=>[], :types=>["^S"], :retval=>"v"}, {:args=>2, :names=>[:range], :types=>["^S", "{_NSRange=QQ}"], :retval=>"v"}]
|
|
40
|
+
attach_method :getFileSystemRepresentation, :args=>2, :names=>[:maxLength], :types=>["*", "Q"], :retval=>"B"
|
|
41
|
+
attach_method :getLineStart, :args=>4, :names=>[:end, :contentsEnd, :forRange], :types=>["^Q", "^Q", "^Q", "{_NSRange=QQ}"], :retval=>"v"
|
|
42
|
+
attach_method :getParagraphStart, :args=>4, :names=>[:end, :contentsEnd, :forRange], :types=>["^Q", "^Q", "^Q", "{_NSRange=QQ}"], :retval=>"v"
|
|
43
43
|
attach_method :hasPrefix, :args=>1, :names=>[], :types=>["@"], :retval=>"B"
|
|
44
44
|
attach_method :hasSuffix, :args=>1, :names=>[], :types=>["@"], :retval=>"B"
|
|
45
45
|
attach_method :hash, :args=>0, :names=>[], :types=>[], :retval=>"Q"
|
|
46
46
|
attach_method :init, :args=>0, :names=>[], :types=>[], :retval=>"@"
|
|
47
|
-
attach_method :initWithBytes, :args=>3, :names=>[
|
|
48
|
-
attach_method :initWithBytesNoCopy, :args=>4, :names=>[
|
|
49
|
-
attach_method :initWithCString, [{:args=>1, :names=>[], :types=>["*"], :retval=>"@"}, {:args=>2, :names=>[
|
|
50
|
-
attach_method :initWithCStringNoCopy, :args=>3, :names=>[
|
|
51
|
-
attach_method :initWithCharacters, :args=>2, :names=>[
|
|
52
|
-
attach_method :initWithCharactersNoCopy, :args=>3, :names=>[
|
|
53
|
-
attach_method :initWithContentsOfFile, [{:args=>1, :names=>[], :types=>["@"], :retval=>"@"}, {:args=>3, :names=>[
|
|
54
|
-
attach_method :initWithContentsOfURL, [{:args=>1, :names=>[], :types=>["@"], :retval=>"@"}, {:args=>3, :names=>[
|
|
55
|
-
attach_method :initWithData, :args=>2, :names=>[
|
|
56
|
-
attach_method :initWithFormat, [{:args=>1, :names=>[], :types=>["@"], :retval=>"@", :variadic=>true}, {:args=>2, :names=>[
|
|
47
|
+
attach_method :initWithBytes, :args=>3, :names=>[:length, :encoding], :types=>["^v", "Q", "Q"], :retval=>"@"
|
|
48
|
+
attach_method :initWithBytesNoCopy, :args=>4, :names=>[:length, :encoding, :freeWhenDone], :types=>["^v", "Q", "Q", "B"], :retval=>"@"
|
|
49
|
+
attach_method :initWithCString, [{:args=>1, :names=>[], :types=>["*"], :retval=>"@"}, {:args=>2, :names=>[:encoding], :types=>["*", "Q"], :retval=>"@"}, {:args=>2, :names=>[:length], :types=>["*", "Q"], :retval=>"@"}]
|
|
50
|
+
attach_method :initWithCStringNoCopy, :args=>3, :names=>[:length, :freeWhenDone], :types=>["*", "Q", "B"], :retval=>"@"
|
|
51
|
+
attach_method :initWithCharacters, :args=>2, :names=>[:length], :types=>["^S", "Q"], :retval=>"@"
|
|
52
|
+
attach_method :initWithCharactersNoCopy, :args=>3, :names=>[:length, :freeWhenDone], :types=>["^S", "Q", "B"], :retval=>"@"
|
|
53
|
+
attach_method :initWithContentsOfFile, [{:args=>1, :names=>[], :types=>["@"], :retval=>"@"}, {:args=>3, :names=>[:encoding, :error], :types=>["@", "Q", "^@"], :retval=>"@"}, {:args=>3, :names=>[:usedEncoding, :error], :types=>["@", "^Q", "^@"], :retval=>"@"}]
|
|
54
|
+
attach_method :initWithContentsOfURL, [{:args=>1, :names=>[], :types=>["@"], :retval=>"@"}, {:args=>3, :names=>[:encoding, :error], :types=>["@", "Q", "^@"], :retval=>"@"}, {:args=>3, :names=>[:usedEncoding, :error], :types=>["@", "^Q", "^@"], :retval=>"@"}]
|
|
55
|
+
attach_method :initWithData, :args=>2, :names=>[:encoding], :types=>["@", "Q"], :retval=>"@"
|
|
56
|
+
attach_method :initWithFormat, [{:args=>1, :names=>[], :types=>["@"], :retval=>"@", :variadic=>true}, {:args=>2, :names=>[:arguments], :types=>["@", "^{__va_list_tag=II^v^v}"], :retval=>"@"}, {:args=>2, :names=>[:locale], :types=>["@", "@"], :retval=>"@", :variadic=>true}, {:args=>3, :names=>[:locale, :arguments], :types=>["@", "@", "^{__va_list_tag=II^v^v}"], :retval=>"@"}]
|
|
57
57
|
attach_method :initWithString, :args=>1, :names=>[], :types=>["@"], :retval=>"@"
|
|
58
58
|
attach_method :initWithUTF8String, :args=>1, :names=>[], :types=>["*"], :retval=>"@"
|
|
59
59
|
attach_method :intValue, :args=>0, :names=>[], :types=>[], :retval=>"i"
|
|
@@ -64,7 +64,7 @@ module Cocoa
|
|
|
64
64
|
attach_method :length, :args=>0, :names=>[], :types=>[], :retval=>"Q"
|
|
65
65
|
attach_method :lengthOfBytesUsingEncoding, :args=>1, :names=>[], :types=>["Q"], :retval=>"Q"
|
|
66
66
|
attach_method :lineRangeForRange, :args=>1, :names=>[], :types=>["{_NSRange=QQ}"], :retval=>"{_NSRange=QQ}"
|
|
67
|
-
attach_method :linguisticTagsInRange, :args=>5, :names=>[
|
|
67
|
+
attach_method :linguisticTagsInRange, :args=>5, :names=>[:scheme, :options, :orthography, :tokenRanges], :types=>["{_NSRange=QQ}", "@", "Q", "@", "^@"], :retval=>"@"
|
|
68
68
|
attach_method :localizedCaseInsensitiveCompare, :args=>1, :names=>[], :types=>["@"], :retval=>"q"
|
|
69
69
|
attach_method :localizedCompare, :args=>1, :names=>[], :types=>["@"], :retval=>"q"
|
|
70
70
|
attach_singular_method :localizedNameOfStringEncoding, :args=>1, :names=>[], :types=>["Q"], :retval=>"@"
|
|
@@ -83,10 +83,10 @@ module Cocoa
|
|
|
83
83
|
attach_method :precomposedStringWithCompatibilityMapping, :args=>0, :names=>[], :types=>[], :retval=>"@"
|
|
84
84
|
attach_method :propertyList, :args=>0, :names=>[], :types=>[], :retval=>"@"
|
|
85
85
|
attach_method :propertyListFromStringsFileFormat, :args=>0, :names=>[], :types=>[], :retval=>"@"
|
|
86
|
-
attach_method :rangeOfCharacterFromSet, [{:args=>1, :names=>[], :types=>["@"], :retval=>"{_NSRange=QQ}"}, {:args=>2, :names=>[
|
|
86
|
+
attach_method :rangeOfCharacterFromSet, [{:args=>1, :names=>[], :types=>["@"], :retval=>"{_NSRange=QQ}"}, {:args=>2, :names=>[:options], :types=>["@", "Q"], :retval=>"{_NSRange=QQ}"}, {:args=>3, :names=>[:options, :range], :types=>["@", "Q", "{_NSRange=QQ}"], :retval=>"{_NSRange=QQ}"}]
|
|
87
87
|
attach_method :rangeOfComposedCharacterSequenceAtIndex, :args=>1, :names=>[], :types=>["Q"], :retval=>"{_NSRange=QQ}"
|
|
88
88
|
attach_method :rangeOfComposedCharacterSequencesForRange, :args=>1, :names=>[], :types=>["{_NSRange=QQ}"], :retval=>"{_NSRange=QQ}"
|
|
89
|
-
attach_method :rangeOfString, [{:args=>1, :names=>[], :types=>["@"], :retval=>"{_NSRange=QQ}"}, {:args=>2, :names=>[
|
|
89
|
+
attach_method :rangeOfString, [{:args=>1, :names=>[], :types=>["@"], :retval=>"{_NSRange=QQ}"}, {:args=>2, :names=>[:options], :types=>["@", "Q"], :retval=>"{_NSRange=QQ}"}, {:args=>3, :names=>[:options, :range], :types=>["@", "Q", "{_NSRange=QQ}"], :retval=>"{_NSRange=QQ}"}, {:args=>4, :names=>[:options, :range, :locale], :types=>["@", "Q", "{_NSRange=QQ}", "@"], :retval=>"{_NSRange=QQ}"}]
|
|
90
90
|
attach_method :sizeWithAttributes, :args=>1, :names=>[], :types=>["@"], :retval=>"{CGSize=dd}"
|
|
91
91
|
attach_method :smallestEncoding, :args=>0, :names=>[], :types=>[], :retval=>"Q"
|
|
92
92
|
attach_singular_method :string, :args=>0, :names=>[], :types=>[], :retval=>"@"
|
|
@@ -99,18 +99,18 @@ module Cocoa
|
|
|
99
99
|
attach_method :stringByDeletingLastPathComponent, :args=>0, :names=>[], :types=>[], :retval=>"@"
|
|
100
100
|
attach_method :stringByDeletingPathExtension, :args=>0, :names=>[], :types=>[], :retval=>"@"
|
|
101
101
|
attach_method :stringByExpandingTildeInPath, :args=>0, :names=>[], :types=>[], :retval=>"@"
|
|
102
|
-
attach_method :stringByFoldingWithOptions, :args=>2, :names=>[
|
|
103
|
-
attach_method :stringByPaddingToLength, :args=>3, :names=>[
|
|
104
|
-
attach_method :stringByReplacingCharactersInRange, :args=>2, :names=>[
|
|
105
|
-
attach_method :stringByReplacingOccurrencesOfString, [{:args=>2, :names=>[
|
|
102
|
+
attach_method :stringByFoldingWithOptions, :args=>2, :names=>[:locale], :types=>["Q", "@"], :retval=>"@"
|
|
103
|
+
attach_method :stringByPaddingToLength, :args=>3, :names=>[:withString, :startingAtIndex], :types=>["Q", "@", "Q"], :retval=>"@"
|
|
104
|
+
attach_method :stringByReplacingCharactersInRange, :args=>2, :names=>[:withString], :types=>["{_NSRange=QQ}", "@"], :retval=>"@"
|
|
105
|
+
attach_method :stringByReplacingOccurrencesOfString, [{:args=>2, :names=>[:withString], :types=>["@", "@"], :retval=>"@"}, {:args=>4, :names=>[:withString, :options, :range], :types=>["@", "@", "Q", "{_NSRange=QQ}"], :retval=>"@"}]
|
|
106
106
|
attach_method :stringByReplacingPercentEscapesUsingEncoding, :args=>1, :names=>[], :types=>["Q"], :retval=>"@"
|
|
107
107
|
attach_method :stringByResolvingSymlinksInPath, :args=>0, :names=>[], :types=>[], :retval=>"@"
|
|
108
108
|
attach_method :stringByStandardizingPath, :args=>0, :names=>[], :types=>[], :retval=>"@"
|
|
109
109
|
attach_method :stringByTrimmingCharactersInSet, :args=>1, :names=>[], :types=>["@"], :retval=>"@"
|
|
110
|
-
attach_singular_method :stringWithCString, [{:args=>1, :names=>[], :types=>["*"], :retval=>"@"}, {:args=>2, :names=>[
|
|
111
|
-
attach_singular_method :stringWithCharacters, :args=>2, :names=>[
|
|
112
|
-
attach_singular_method :stringWithContentsOfFile, [{:args=>1, :names=>[], :types=>["@"], :retval=>"@"}, {:args=>3, :names=>[
|
|
113
|
-
attach_singular_method :stringWithContentsOfURL, [{:args=>1, :names=>[], :types=>["@"], :retval=>"@"}, {:args=>3, :names=>[
|
|
110
|
+
attach_singular_method :stringWithCString, [{:args=>1, :names=>[], :types=>["*"], :retval=>"@"}, {:args=>2, :names=>[:encoding], :types=>["*", "Q"], :retval=>"@"}, {:args=>2, :names=>[:length], :types=>["*", "Q"], :retval=>"@"}]
|
|
111
|
+
attach_singular_method :stringWithCharacters, :args=>2, :names=>[:length], :types=>["^S", "Q"], :retval=>"@"
|
|
112
|
+
attach_singular_method :stringWithContentsOfFile, [{:args=>1, :names=>[], :types=>["@"], :retval=>"@"}, {:args=>3, :names=>[:encoding, :error], :types=>["@", "Q", "^@"], :retval=>"@"}, {:args=>3, :names=>[:usedEncoding, :error], :types=>["@", "^Q", "^@"], :retval=>"@"}]
|
|
113
|
+
attach_singular_method :stringWithContentsOfURL, [{:args=>1, :names=>[], :types=>["@"], :retval=>"@"}, {:args=>3, :names=>[:encoding, :error], :types=>["@", "Q", "^@"], :retval=>"@"}, {:args=>3, :names=>[:usedEncoding, :error], :types=>["@", "^Q", "^@"], :retval=>"@"}]
|
|
114
114
|
attach_singular_method :stringWithFormat, :args=>1, :names=>[], :types=>["@"], :retval=>"@", :variadic=>true
|
|
115
115
|
attach_singular_method :stringWithString, :args=>1, :names=>[], :types=>["@"], :retval=>"@"
|
|
116
116
|
attach_singular_method :stringWithUTF8String, :args=>1, :names=>[], :types=>["*"], :retval=>"@"
|
|
@@ -120,7 +120,7 @@ module Cocoa
|
|
|
120
120
|
attach_method :substringWithRange, :args=>1, :names=>[], :types=>["{_NSRange=QQ}"], :retval=>"@"
|
|
121
121
|
attach_method :uppercaseString, :args=>0, :names=>[], :types=>[], :retval=>"@"
|
|
122
122
|
attach_method :uppercaseStringWithLocale, :args=>1, :names=>[], :types=>["@"], :retval=>"@"
|
|
123
|
-
attach_method :writeToFile, [{:args=>2, :names=>[
|
|
124
|
-
attach_method :writeToURL, [{:args=>2, :names=>[
|
|
123
|
+
attach_method :writeToFile, [{:args=>2, :names=>[:atomically], :types=>["@", "B"], :retval=>"B"}, {:args=>4, :names=>[:atomically, :encoding, :error], :types=>["@", "B", "Q", "^@"], :retval=>"B"}]
|
|
124
|
+
attach_method :writeToURL, [{:args=>2, :names=>[:atomically], :types=>["@", "B"], :retval=>"B"}, {:args=>4, :names=>[:atomically, :encoding, :error], :types=>["@", "B", "Q", "^@"], :retval=>"B"}]
|
|
125
125
|
end
|
|
126
126
|
end
|