Hello, all.

How should I write NSNotFound in Factor code ?
-1 ? Or 2 63 ^ 1 - ?


At METHOD: void setMarkedText: id text selectedRange: NSRange range ,
I would like to write like :

           if ([text isMemberOfClass:[NSString class]]) {
               ...
            } else {
               ...
            }

in Factor. I wrote :

            NSString -> class 
            text swap  -> isMemberOfClass: [
                text CF>string str!
            ] [
                text -> string CF>string str!
            ] if

But it does not seem to work well. How should I write it?

--
KUSUMOTO Norio







_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to