abstract class UI::Native::Populator::Sender

Overview

Setter sender interface. The renderer supplies a LibObjCBridge- backed implementation; specs supply a FakeLibObjCBridge-backed one. Methods are deliberately String-typed for the spec side — the production sender stringifies its args once at the boundary and passes the real Void* / Float64 / String through.

Defined in:

ui/native/swiftkit_overrides.cr

Instance Method Summary

Instance Method Detail

abstract def set_bool(target : String, setter : Symbol, value : Bool | Nil) #

Set an NSNumber? field from a Bool?. nil skips.


[View source]
def set_bool_array(target : String, setter : Symbol, values : Array(Bool)) #

[View source]
abstract def set_color(target : String, setter : Symbol, color : UI::Color | Nil) #

Set an NSColor?/UIColor? field. nil means leave unset.


[View source]
def set_int(target : String, setter : Symbol, value : Int32 | Nil) #

Scalar Int setter (selectedIndex etc.). nil skips.


[View source]
def set_int_array(target : String, setter : Symbol, values : Array(Int32)) #

[View source]
abstract def set_number(target : String, setter : Symbol, value : Float64 | Nil) #

Set an NSNumber? field from a Float64?. nil skips.


[View source]
abstract def set_string(target : String, setter : Symbol, value : String | Nil) #

Set an NSString? field. nil skips.


[View source]
def set_string_array(target : String, setter : Symbol, values : Array(String)) #

Group 3 array setters. Container widgets carry parallel arrays (tab labels / icons / tokens, form section field counts, etc.). Empty arrays are skipped.


[View source]
def set_uint64_array(target : String, setter : Symbol, values : Array(UInt64)) #

[View source]