issue porting resource files code from 10.4 to 10.5

2009-05-28 Thread Victor Bovio
Hello everyone, I'm porting an Application from 10.4 to 10.5 at 64 bit, and I have a problem with resource files, in the Tiger app I have this code to read some resource files: FSSpec spec; FSRef ref; CFURLRef url = (CFURLRef)[NSURL fileURLWithPath: myPathString]; if (CFURLGetFSRef(url,

adding a custom view to NSPrintPanel

2008-05-12 Thread Victor Bovio
Hi, Does anyone knows of an example or tutorial on how to this ?? The documentation says that I have to use this method on NSPrintPanel: - (void)addAccessoryController:(NSViewController NSPrintPanelAccessorizing *)accessoryController I have no idea how a NSViewController works.. any

printing PDF issues

2008-04-07 Thread Victor Bovio
Hi, I have a document-based Cocoa application, in which I display quartz routines directly to the context of my NSView. Following the documentation I added this methods to enable printing in my application: on NSDocument: - (void)printDocumentWithSettings:(NSDictionary *)printSettings