Re: NSString problem
Re: NSString problem
- Subject: Re: NSString problem
- From: Aki Inoue <email@hidden>
- Date: Thu, 2 May 2002 02:03:00 -0700
It's easy.
Unlike C++, ObjC doesn't allow you to create stack based objects.
chain is simply an uninitialized variable.
Aki
On 2002.05.02, at 01:05, Famille GOUREAU-SUIGNARD wrote:
Hi everybody,
is anybody able to explai me why the following script gives me this
error (cocoa application) :
CarApp.app has exited due to signal 11 (SIGSEGV).
- (void) actionExportation: (id)sender
{
NSString *chemin = @"/users/cathy/Documents/Gestion
stock/sortie.txt" ;
NSMutableString *chaine ;
[chaine setString:@""] ;
[chaine appendString:@"tagada"] ;
[chaine writeToFile: chemin atomically : NO] ;
}
Many thanks.
Camille
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.