Re: Unix Signals Delivered from Quitting Cocoa Apps?
Re: Unix Signals Delivered from Quitting Cocoa Apps?
- Subject: Re: Unix Signals Delivered from Quitting Cocoa Apps?
- From: "Stephen J. Butler" <email@hidden>
- Date: Mon, 13 Sep 2010 03:26:36 -0500
On Mon, Sep 13, 2010 at 3:05 AM, aaron smith
<email@hidden> wrote:
> Thanks for pointing that I can't use high level frameworks in a child.
> I'll set up everything I need for the execvp call before the actual
> fork.
>
> AH! I totally missed that I need to use an int to store the child exit
> status info.
>
> Here's a version that works now..
>
> http://pastebin.org/860040
You really shouldn't use the result of -[NSString UTF8String] past the
lifetime of the object itself. Either do a strcpy real quick, or use
-[NSString maximumLengthOfBytesUsingEncoding:] with -[NSString
getCString:maxLength:encoding:]
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden