From 4f8bc90ccaa0087bdcf5d777184aa52c665c17f5 Mon Sep 17 00:00:00 2001 From: Doug Coleman Date: Fri, 29 Aug 2008 00:52:00 -0500 Subject: [PATCH] remove old accessors from cocoa --- basis/cocoa/messages/messages.factor | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/basis/cocoa/messages/messages.factor b/basis/cocoa/messages/messages.factor index 94c5f05887..ea7280b5a6 100755 --- a/basis/cocoa/messages/messages.factor +++ b/basis/cocoa/messages/messages.factor @@ -1,6 +1,6 @@ ! Copyright (C) 2006, 2008 Slava Pestov. ! See http://factorcode.org/license.txt for BSD license. -USING: alien alien.c-types alien.strings +USING: accessors alien alien.c-types alien.strings arrays assocs combinators compiler kernel math namespaces parser prettyprint prettyprint.sections quotations sequences strings words cocoa.runtime io macros @@ -46,11 +46,11 @@ TUPLE: selector name object ; MEMO: ( name -- sel ) f \ selector boa ; : selector ( selector -- alien ) - dup selector-object expired? [ - dup selector-name sel_registerName - dup rot set-selector-object + dup object>> expired? [ + dup name>> sel_registerName + [ >>object drop ] keep ] [ - selector-object + object>> ] if ; SYMBOL: objc-methods