cocoa-ui-backend


Vocabulary
ui.backend.cocoa

Definition


Methods

M: cocoa-ui-backend (close-window)
[
view>> dup { char { id SEL } } "isInFullScreenMode" send
zero?
[ drop ] [
f
{ void { id SEL id } }
"exitFullScreenModeWithOptions:" send
] if
] [ window>> { void { id SEL } } "release" send ] bi ;

































M: cocoa-ui-backend raise-window*
handle>> [
window>> dup f { void { id SEL id } } "orderFront:" send
{ void { id SEL } } "makeKeyWindow" send NSApp 1
{ void { id SEL char } } "activateIgnoringOtherApps:"
send
] when* ;









M: cocoa-ui-backend system-alert
NSAlert { id { id SEL } } "alloc" send
{ id { id SEL } } "init" send
{ id { id SEL } } "autorelease" send [
{
[
swap <NSString>
{ void { id SEL id } } "setInformativeText:"
send
]
[
swap <NSString>
{ void { id SEL id } } "setMessageText:" send
]
[
"OK" <NSString>
{ id { id SEL id } } "addButtonWithTitle:" send
drop
]
[ { long { id SEL } } "runModal" send drop ]
} cleave
] [ 2drop ] if* ;