Re: Easy one.
Re: Easy one.
- Subject: Re: Easy one.
- From: Mark Papadakis <email@hidden>
- Date: Fri, 15 Jul 2005 11:26:37 +0300
You could also use NSLog (@"Here is the result %s", [hello
UTF8String]), if you feel bad about using the %@ formatting directive.
Mark
On Jul 15, 2005, at 11:20 , Rustam Muginov wrote:
On 15.07.2005 12:13, "Derrick Carlin" <email@hidden> wrote:
For you. not me... heh heh
I'm just learning...
What is wrong with this code?...
-(void) setter:(NSString *) hello
{
NSLog (@"hello\n");
NSLog (@"Here is the result %s",hello);
Shoud be:
NSLog (@"Here is the result %@",hello);
Cocoa NSString is not the C ASCIIZ string
NSLog (@"hello\n");
}
@end
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden