CoreFoundation Command Line Tool - an easy beginner question

2008-08-04 Thread Steve Cronin
Folks; Here's the pretty simple tool I'm trying to create (THANK-YOU Michael Ash!!) int main (int argc, const char * argv[]) { char dummy; read(STDIN_FILENO, dummy, 1); [NSAutoreleasePool new]; NSURL *url = [NSURL fileURLWithPath:[NSString

Re: CoreFoundation Command Line Tool - an easy beginner question

2008-08-04 Thread David Duncan
On Aug 4, 2008, at 11:51 AM, Steve Cronin wrote: Folks; I open new project using the CoreFoundation - Command Line Tool template, and place the code shown above. I've tried various usages of #import Foundation/Foundation.h but can't seem to get it right so that NSURL NSAutoreleasePool

Re: CoreFoundation Command Line Tool - an easy beginner question

2008-08-04 Thread Chris Parker
On Aug 4, 2008, at 11:51 AM, Steve Cronin wrote: Here's the pretty simple tool I'm trying to create (THANK-YOU Michael Ash!!) int main (int argc, const char * argv[]) { char dummy; read(STDIN_FILENO, dummy, 1); [NSAutoreleasePool new]; NSURL *url = [NSURL

Re: CoreFoundation Command Line Tool - an easy beginner question

2008-08-04 Thread Michael Ash
On Mon, Aug 4, 2008 at 3:10 PM, David Duncan [EMAIL PROTECTED] wrote: On Aug 4, 2008, at 11:51 AM, Steve Cronin wrote: Folks; I open new project using the CoreFoundation - Command Line Tool template, and place the code shown above. I've tried various usages of #import

Re: CoreFoundation Command Line Tool - an easy beginner question

2008-08-04 Thread David Duncan
On Aug 4, 2008, at 2:00 PM, Michael Ash wrote: I think you may have missed the read() at the beginning of the function, which is critical to the operation of the tool. (The purpose is to wait for the parent process to quit, then restart it.) If, however, I have instead missed a way to make the

Re: CoreFoundation Command Line Tool - an easy beginner question

2008-08-04 Thread Michael Ash
On Mon, Aug 4, 2008 at 5:19 PM, David Duncan [EMAIL PROTECTED] wrote: On Aug 4, 2008, at 2:00 PM, Michael Ash wrote: I think you may have missed the read() at the beginning of the function, which is critical to the operation of the tool. (The purpose is to wait for the parent process to quit,