Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 7th, 2012  |  syntax: None  |  size: 0.35 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. // gcc -framework Foundation -fobjc-gc test_bundle.m
  2. #import <Foundation/Foundation.h>
  3.  
  4. int main(void)
  5. {
  6.     NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
  7.  
  8.     NSString* path = @"/Library/Frameworks/MacRuby.framework";
  9.     NSBundle* bundle = [NSBundle bundleWithPath:path];
  10.     [bundle load];
  11.     NSLog(@"%@", bundle);
  12.  
  13.     [pool release];
  14. }