View Full Version : have problem for objective-c which is used on iphone
vavdiyaharesh
May 15, 2008, 09:24 AM
Hello everyone
Right now i am learning objective-c because i have to develop one web application for iphone.
I cant understand that how can i print string in objective-c and meaning of "NSLog" and their syntax
Pls help me its urgent
Thanking you.
crees!
May 15, 2008, 09:46 AM
I am *just* learning Objective-C. Luckily, I took a C (and C++) class years ago and it's all coming back to me as I read on. And from what I've read, haven't programmed yet, it should be.
NSLog(@"something to output");
Also, I believe you need to include the Foundation framework (I think). That's where NSLog is hiding out.
If you're referencing variables the syntax is a little different. Check out cocoadevcentral.com. I also downloaded a PDF called Become an XCoder. It was linked in one of the threads under Programming recently. Also, books are valuable too. Check out Amazon.
vavdiyaharesh
May 16, 2008, 12:23 AM
thank your reply
i know that nslog is about for printing something but syntax of nslog i cant understand. means where can i use NSLog and so what is difference between NSLog and printf.....
vBulletin® v3.6.10, Copyright ©2000-2009, Jelsoft Enterprises Ltd.