- // gcc -framework Foundation -fobjc-gc test_bundle.m
- #import <Foundation/Foundation.h>
- int main(void)
- {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- NSString* path = @"/Library/Frameworks/MacRuby.framework";
- NSBundle* bundle = [NSBundle bundleWithPath:path];
- [bundle load];
- NSLog(@"%@", bundle);
- [pool release];
- }