cocoa.messages vocabulary - Factor Documentation (original) (raw)

cocoa.messages vocabulary
Factor handbook » Vocabulary index

Summary
Support and syntax for Objective C message sending

Metadata

Parents: cocoa
Authors: Slava Pestov
Platforms: macos

Words

Tuple classes

Class Superclass Slots
no-objc-method tuple name
no-objc-type tuple name
selector-tuple tuple name object

Macro words

Word Stack effect
(send) ( signature selector super? -- quot )

Symbol words

alien>objc-types
class-init-hooks
message-senders
objc-methods
objc>alien-types
objc>struct-types
super-message-senders

Ordinary words

Word Stack effect
(objc-class) ( name word -- class )
(parse-objc-type) ( i string -- ctype )
( name -- sel )
( receiver -- super )
?lookup-objc-method ( name -- signature/f )
cache-stub ( signature function assoc -- )
cache-stubs ( signature -- )
class-exists? ( string -- class )
decode-type ( ch -- ctype )
define-objc-class-word ( quot name -- )
each-method-in-class ( class quot: ( classname method -- ) -- )
import-objc-class ( name quot -- )
lookup-objc-method ( name -- signature )
lookup-selector ( name -- alien )
make-prepare-send ( selector signature super? -- quot )
make-sender ( signature function -- quot )
method-arg-type ( method i -- type )
method-arg-types ( method -- args )
method-collisions ( -- collisions )
method-count ( class -- c-direct-array )
method-name ( method -- name )
method-return-type ( method -- ctype )
method-return-type-parsed ( method -- ctype/f )
method-signature ( method -- signature )
no-objc-method ( name -- * )
no-objc-type ( name -- * )
objc-class ( string -- class )
objc-class-names ( -- seq )
objc-meta-class ( string -- class )
objc-protocol ( string -- class )
objc-struct-type ( i string -- ctype )
parse-objc-type ( string -- ctype )
register-objc-method ( classname method -- )
register-objc-methods ( class -- )
root-class ( class -- root )
selector ( selector -- alien )
selector-name ( name -- name' )
send ( receiver args... signature selector -- return... )
sender-stub ( signature function -- word )
sender-stub-name ( signature -- str )
super-send ( receiver args... signature selector -- return... )
warn-unknown-objc-method ( classname method-name method -- )

Class predicate words

Word Stack effect
no-objc-method? ( object -- ? )
no-objc-type? ( object -- ? )
selector-tuple? ( object -- ? )

Files

resource:basis/cocoa/messages/messages.factor
resource:basis/cocoa/messages/messages-docs.factor
resource:basis/cocoa/messages/messages-tests.factor

Metadata files

resource:basis/cocoa/messages/authors.txt
resource:basis/cocoa/messages/platforms.txt
resource:basis/cocoa/messages/summary.txt