gscheme/test/test.m~

16 lines
383 B
Mathematica

#import <Foundation/Foundation.h>
#import <AppKit/AppKit.h>
int main(int argc, char **argv)
{
NSMutableSet *strset = [NSMutableSet setWithCapacity:1];
NSString
*str1 = [NSString stringWithCString:"abcd"],
*str2 = [NSString stringWithCString:"abcd"];
[strset addObject:str1];
NSLog(@"%@ %@ %@\n", str1, str2,
[strset member:str2]);
}