diff --git a/cocoa.nim b/cocoa.nim index 4fc6b67..d4d6adb 100644 --- a/cocoa.nim +++ b/cocoa.nim @@ -104,6 +104,7 @@ proc clear*(widget: ID) {.cdecl, importc: "LB_Clear".} proc `item=`(widget: ID; pos: cint) {.cdecl, importc: "SetItem".} proc remove*(widget: ID; pos: cint) {.cdecl, importc: "RemoveItem".} proc link*( widget: ID, widgetIvar: cstring, target: ID, targetIvar: cstring) {.cdecl, importc:"bindWidget".} +proc setDelegate*(widget: ID) {.cdecl, importc: "setDelegate".} proc `tooltip=`*(widget: ID, tip: cstring) {.cdecl, importc: "setToolTip".} # TableView Functions diff --git a/cocoa/col.nim b/cocoa/col.nim index f6ee1ae..68b559f 100644 --- a/cocoa/col.nim +++ b/cocoa/col.nim @@ -79,6 +79,7 @@ proc newMenu*(Title: cstring): id {.cdecl, importc: "createMenu".} proc newMenuItem*(parent: id; caption: cstring; key: cstring; callback: ACTION) {.cdecl, importc: "createMenuItem".} proc newMenuSeparator*(parent: id) {.cdecl, importc: "createMenuSeparator".} proc newSlider*(parent: id; left: cint; top: cint; width: cint; height: cint; callback: ACTION): id {.cdecl, importc: "createSlider".} +proc setDelegate*(widget: ID) {.cdecl, importc: "setDelegate".} proc `text=`*(widget: id; txt: cstring) = widget.SetText(txt) @@ -116,4 +117,4 @@ proc value*(widget: id, value: cint) = proc value*(widget: id): cint = GetValue(widget) -# #endif \ No newline at end of file +# #endif