Source

pyobjc / pyobjc-framework-Cocoa / PyObjCTest / test_appkit_protocols.py

from PyObjCTools.TestSupport import *
import Cocoa

class TestProtocolsExisting (TestCase):
    @min_os_level('10.6')
    def testProtocols10_6(self):
        objc.protocolNamed('NSAlertDelegate')
        objc.protocolNamed('NSAnimatablePropertyContainer')
        objc.protocolNamed('NSAnimationDelegate')
        objc.protocolNamed('NSApplicationDelegate')
        objc.protocolNamed('NSBrowserDelegate')
        objc.protocolNamed('NSChangeSpelling')
        objc.protocolNamed('NSCollectionViewDelegate')
        objc.protocolNamed('NSColorPickingCustom')
        objc.protocolNamed('NSColorPickingDefault')
        objc.protocolNamed('NSComboBoxCellDataSource')
        objc.protocolNamed('NSComboBoxDataSource')
        objc.protocolNamed('NSComboBoxDelegate')
        objc.protocolNamed('NSControlTextEditingDelegate')
        objc.protocolNamed('NSDatePickerCellDelegate')
        objc.protocolNamed('NSDockTilePlugIn')
        objc.protocolNamed('NSDraggingInfo')
        objc.protocolNamed('NSDrawerDelegate')
        objc.protocolNamed('NSGlyphStorage')
        objc.protocolNamed('NSIgnoreMisspelledWords')
        objc.protocolNamed('NSImageDelegate')
        objc.protocolNamed('NSInputServerMouseTracker')
        objc.protocolNamed('NSInputServiceProvider')
        objc.protocolNamed('NSLayoutManagerDelegate')
        objc.protocolNamed('NSMatrixDelegate')
        objc.protocolNamed('NSMenuDelegate')
        objc.protocolNamed('NSOpenSavePanelDelegate')
        objc.protocolNamed('NSOutlineViewDataSource')
        objc.protocolNamed('NSOutlineViewDelegate')
        objc.protocolNamed('NSPasteboardItemDataProvider')
        objc.protocolNamed('NSPasteboardReading')
        objc.protocolNamed('NSPasteboardWriting')
        objc.protocolNamed('NSPathCellDelegate')
        objc.protocolNamed('NSPathControlDelegate')
        objc.protocolNamed('NSPrintPanelAccessorizing')
        objc.protocolNamed('NSRuleEditorDelegate')
        objc.protocolNamed('NSSoundDelegate')
        objc.protocolNamed('NSSpeechRecognizerDelegate')
        objc.protocolNamed('NSSpeechSynthesizerDelegate')
        objc.protocolNamed('NSSplitViewDelegate')
        objc.protocolNamed('NSTabViewDelegate')
        objc.protocolNamed('NSTableViewDataSource')
        objc.protocolNamed('NSTableViewDelegate')
        objc.protocolNamed('NSTextAttachmentCell')
        objc.protocolNamed('NSTextDelegate')
        objc.protocolNamed('NSTextFieldDelegate')
        objc.protocolNamed('NSTextInput')
        objc.protocolNamed('NSTextInputClient')
        objc.protocolNamed('NSTextStorageDelegate')
        objc.protocolNamed('NSTextViewDelegate')
        objc.protocolNamed('NSTokenFieldCellDelegate')
        objc.protocolNamed('NSTokenFieldDelegate')
        objc.protocolNamed('NSToolbarDelegate')
        objc.protocolNamed('NSUserInterfaceItemSearching')
        objc.protocolNamed('NSUserInterfaceValidations')
        objc.protocolNamed('NSValidatedUserInterfaceItem')
        objc.protocolNamed('NSWindowDelegate')

    @min_os_level('10.7')
    def testProtocols10_7(self):
        objc.protocolNamed('NSDraggingDestination')
        objc.protocolNamed('NSDraggingSource')
        objc.protocolNamed('NSPopoverDelegate')
        objc.protocolNamed('NSTextFinderBarContainer')
        objc.protocolNamed('NSTextFinderClient')
        objc.protocolNamed('NSTextLayoutOrientationProvider')
        objc.protocolNamed('NSUserInterfaceItemIdentification')
        objc.protocolNamed('NSWindowRestoration')

    @min_os_level('10.8')
    def testProtocols10_8(self):
        objc.protocolNamed('NSPageControllerDelegate')
        objc.protocolNamed('NSSharingServiceDelegate')
        objc.protocolNamed('NSSharingServicePickerDelegate')

if __name__ == "__main__":
    main()
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.