Note | Most of UIKit framework Smalltalk wrappers are in UIKit.st. See our media swiki for iOS SDK. Read more about "Implementing wrappers with S8". |
UIControl subclass: #UITextField!
! UITextField methodsFor: #accessing ! text " Return the text of the receiver. " ^self handle basicAt: #text! !
UITextField buildAccessors: #( text placeholder textAlignment typingAttributes )!
UITextField buildTypedAccessors: #( #( attributedText #NSAttributedString ) #( delegate #NSObject ) #( font #NSFont ) #( inputAccessoryView #UIView ) #( inputView #UIView ) #( textColor #UIColor ) )!
UITextField buildBooleanAccessors: #( allowsEditingTextAttributes adjustsFontSizeToFitWidth clearsOnBeginEditing clearsOnInsertion editable selectable )!
buildFunctionsfor implementing methods whose implementation consists in the invocation of the respective method in the native handle object
UIControl subclass: #UITextField! UITextField buildAccessors: #( text placeholder textAlignment typingAttributes )! UITextField buildBooleanAccessors: #( allowsEditingTextAttributes adjustsFontSizeToFitWidth clearsOnBeginEditing clearsOnInsertion editable selectable )! UITextField buildBooleanGetters: #( editing )! UITextField buildTypedAccessors: #( #( attributedText #NSAttributedString ) #( delegate #NSObject ) #( font #NSFont ) #( inputAccessoryView #UIView ) #( inputView #UIView ) #( textColor #UIColor ) )! UITextField buildFunctions: #( #( #drawTextInRect: #( #( rect handle ) ) ) )! !
It is not mandatory to wrap all the methods of the original native class. You can implement/wrap only the ones you will use directly from your Smalltalk code. |
There are some native functions that require out arguments (variables to contain data after the function has been evaluated). There is a page on the topic here |