{ Parsed from Appkit.framework NSTextField.h } {$ifdef TYPES} {$ifndef NSTEXTFIELD_PAS_T} {$define NSTEXTFIELD_PAS_T} {$endif} {$endif} {$ifdef RECORDS} {$ifndef NSTEXTFIELD_PAS_R} {$define NSTEXTFIELD_PAS_R} {$endif} {$endif} {$ifdef FUNCTIONS} {$ifndef NSTEXTFIELD_PAS_F} {$define NSTEXTFIELD_PAS_F} {$endif} {$endif} {$ifdef EXTERNAL_SYMBOLS} {$ifndef NSTEXTFIELD_PAS_S} {$define NSTEXTFIELD_PAS_S} {$endif} {$endif} {$ifdef FORWARD} NSTextFieldDelegateProtocol = objcprotocol; NSTextField = objcclass; NSTextFieldPointer = ^NSTextField; NSTextFieldPtr = NSTextFieldPointer; {$endif} {$ifdef CLASSES} {$ifndef NSTEXTFIELD_PAS_C} {$define NSTEXTFIELD_PAS_C} { NSTextField } NSTextField = objcclass external (NSControl, NSUserInterfaceValidationsProtocol) private _delegate: id; _errorAction: SEL; public procedure setBackgroundColor(color: NSColor); message 'setBackgroundColor:'; function backgroundColor: NSColor; message 'backgroundColor'; procedure setDrawsBackground(flag: Boolean); message 'setDrawsBackground:'; function drawsBackground: Boolean; message 'drawsBackground'; procedure setTextColor(color: NSColor); message 'setTextColor:'; function textColor: NSColor; message 'textColor'; function isBordered: Boolean; message 'isBordered'; procedure setBordered(flag: Boolean); message 'setBordered:'; function isBezeled: Boolean; message 'isBezeled'; procedure setBezeled(flag: Boolean); message 'setBezeled:'; function isEditable: Boolean; message 'isEditable'; procedure setEditable(flag: Boolean); message 'setEditable:'; function isSelectable: Boolean; message 'isSelectable'; procedure setSelectable(flag: Boolean); message 'setSelectable:'; procedure selectText(sender: id); message 'selectText:'; function delegate: NSTextFieldDelegateProtocol; message 'delegate'; procedure setDelegate(anObject: NSTextFieldDelegateProtocol); message 'setDelegate:'; function textShouldBeginEditing(textObject: NSText): Boolean; message 'textShouldBeginEditing:'; function textShouldEndEditing(textObject: NSText): Boolean; message 'textShouldEndEditing:'; procedure textDidBeginEditing(notification: NSNotification); message 'textDidBeginEditing:'; procedure textDidEndEditing(notification: NSNotification); message 'textDidEndEditing:'; procedure textDidChange(notification: NSNotification); message 'textDidChange:'; function acceptsFirstResponder: Boolean; message 'acceptsFirstResponder'; procedure setBezelStyle(style: NSTextFieldBezelStyle); message 'setBezelStyle:'; function bezelStyle: NSTextFieldBezelStyle; message 'bezelStyle'; { Adopted Protocols } function validateUserInterfaceItem(anItem: NSValidatedUserInterfaceItemProtocol): Boolean; end; { NSKeyboardUI_NSTextFieldCategory } NSKeyboardUI_NSTextFieldCategory = objccategory external name 'NSKeyboardUI' (NSTextField) procedure setTitleWithMnemonic(stringWithAmpersand: NSString); message 'setTitleWithMnemonic:'; end; { NSTextFieldAttributedStringMethodsCategory } NSTextFieldAttributedStringMethodsCategory = objccategory external (NSTextField) function allowsEditingTextAttributes: Boolean; message 'allowsEditingTextAttributes'; procedure setAllowsEditingTextAttributes(flag: Boolean); message 'setAllowsEditingTextAttributes:'; function importsGraphics: Boolean; message 'importsGraphics'; procedure setImportsGraphics(flag: Boolean); message 'setImportsGraphics:'; end; {$endif} {$endif} {$ifdef PROTOCOLS} {$ifndef NSTEXTFIELD_PAS_P} {$define NSTEXTFIELD_PAS_P} { NSTextFieldDelegate Protocol } NSTextFieldDelegateProtocol = objcprotocol external name 'NSTextFieldDelegate' end; {$endif} {$endif}