From 7bad3a77faccdfbe2f2370e3c960b226fef6f118 Mon Sep 17 00:00:00 2001 From: slava Date: Tue, 1 Aug 2006 00:43:48 +0000 Subject: [PATCH] Get Cocoa binding working with strict char* handling --- TODO.FACTOR.txt | 1 - library/ui/cocoa/menu-bar.factor | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/TODO.FACTOR.txt b/TODO.FACTOR.txt index 598a9d3eba..08c37164fc 100644 --- a/TODO.FACTOR.txt +++ b/TODO.FACTOR.txt @@ -2,7 +2,6 @@ - windows native i/o - fix contribs: parser-combinators, boids, automata, space-invaders -- unix i/o: problems with passing f to syscalls - sometimes darcs get fails with the httpd - gdb triggers 'mutliple i/o ops on port' error - "localhost" 50 won't fail diff --git a/library/ui/cocoa/menu-bar.factor b/library/ui/cocoa/menu-bar.factor index 5f5f48caf8..805f335d0a 100644 --- a/library/ui/cocoa/menu-bar.factor +++ b/library/ui/cocoa/menu-bar.factor @@ -10,10 +10,10 @@ IN: cocoa GENERIC: to-target-and-action ( spec -- target action ) M: f to-target-and-action f swap ; -M: string to-target-and-action sel_registerName f ; +M: string to-target-and-action f ; M: word to-target-and-action unit to-target-and-action ; M: quotation to-target-and-action - "perform:" sel_registerName swap ; + "perform:" swap ; : ( title -- ) NSMenu -> alloc