home *** CD-ROM | disk | FTP | other *** search
- One thing that might be a good idea is to take a surreptitious peek at the NXString class which NeXT
- still hasn't documented yet, but the compiler knows about. It would be nice if the stuff we came up
- with would seamlessly integrate with what NeXT will eventually let us see....
-
-
- P.S. If you want to peek, compile the following snippet, and go exploring with gdb....
-
-
- -----------------------------
- #import <objc/Object.h>
- #import <stdio.h>
-
- @interface NXString : Object
- {}
- @end
-
- @interface NXSimpleReadOnlyString : NXString
- {
- char *characters;
- unsigned _length;
- }
- @end
-
- @interface NXConstantString : NXSimpleReadOnlyString
- {}
- @end
-
- main()
- {
- id string = @"hi there";
- int k;
-
- printf("The class name is %s\n", [string name]);
-
- for(k=0;k<5;k++)
- fprintf(stderr,"%d\n",k);
-
- exit(0);
- }
-
-
- -----------------------------
-
- ---
- John Feiler jjfeiler@relief.com
- 4926 152nd St. SW NeXTmail Welcome!!!
- Edmonds, WA 98026-4433 Independent NeXTSTEP Developer
-
-