Watson1978
8/2/2011 - 12:48 PM

test_bundle.m

// 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];
}