[MacRuby] #1029: Possible PDFKit bug
MacRuby
ruby-noreply at macosforge.org
Tue Dec 7 00:02:26 PST 2010
#1029: Possible PDFKit bug
----------------------------------+-----------------------------------------
Reporter: yasuimao@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: blocker | Milestone:
Component: MacRuby | Keywords:
----------------------------------+-----------------------------------------
Comment(by lsansonetti@…):
Here is an Objective-C implementation of your snippet:
{{{
#import <Cocoa/Cocoa.h>
#import <Quartz/Quartz.h>
int main(void)
{
PDFDocument *doc = [[PDFDocument alloc] initWithURL:[NSURL
fileURLWithPath:@"sample.pdf"]];
for (id result in [doc findString:@"the"
withOptions:NSCaseInsensitiveSearch]) {
NSLog(@"found %@", result);
}
return 0;
}
}}}
Could you save it as test.m, then compile and run using:
{{{
$ gcc test.m -o test -fobjc-gc -framework Cocoa -framework Quartz
$ ./test
}}}
And let me know if you see the crash?
--
Ticket URL: <http://www.macruby.org/trac/ticket/1029#comment:4>
MacRuby <http://macruby.org/>
More information about the macruby-tickets
mailing list