Re: Trouble with openFileWithoutUI

2008-11-17 Thread Kyle Sluder
On Mon, Nov 17, 2008 at 2:52 PM, <[EMAIL PROTECTED]> wrote: > It seemed like the think to use. Read that first sentence again. "Sent directly by the sender to the delegate..." The delegate is the receiver, not the NSApplication instance. > Ok, How do I open a file pragramatically? Read up on

Re: Trouble with openFileWithoutUI

2008-11-17 Thread jhjames3
Documentation for application:openFileWithoutUI: "Sent directly by sender to the delegate to request that the file filename be opened as a linked file. The method should open the file without bringing up its application’s user interface—that is, work with the file is under programmatic control o

Re: Trouble with openFileWithoutUI

2008-11-17 Thread Keary Suska
On Nov 17, 2008, at 9:44 AM, [EMAIL PROTECTED] wrote: I am trying to open a defined document type programmatically. Document type is defined in info.plist and opens with UI just fine. I can not get openFileWithoutUI to work. I have read documentation and I find no samples of code. There are

Re: Trouble with openFileWithoutUI

2008-11-17 Thread Fritz Anderson
On 17 Nov 2008, at 10:44 AM, [EMAIL PROTECTED] wrote: I am trying to open a defined document type programmatically. Document type is defined in info.plist and opens with UI just fine. I can not get openFileWithoutUI to work. I have read documentation and I find no samples of code. There are

RE: Trouble with openFileWithoutUI

2008-11-17 Thread Etienne Guérard
Try the following instead: 3: I call from another controller with the following: NSApplication* app = [NSApplication sharedApplication]; [self application:app /* or NSApp */ openFileWithoutUI: totalFile]; EG -Original Message- 3: I call from another controller with the following: NSApplic