|May 15, 2008, 08:24 AM||#1|
have problem for objective-c which is used on iphone
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
|May 15, 2008, 08:46 AM||#2|
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.
The only thing that seems to increase over the years is that nonsense multiplies.
|May 15, 2008, 11:23 PM||#3|
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.....
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|Objective-C Viewer - Source code viewer for iPhone\iPad||skoroapps||iPhone and iPod touch Apps||1||Dec 11, 2013 12:05 PM|
|Objective-C: What is subclassing?||moonman239||Mac Programming||3||Feb 26, 2013 08:08 PM|
|Problem in detect CGRect - objective-c||nxcoder||iPhone/iPad Programming||0||Dec 31, 2012 10:15 AM|
|Objective C - retain release problem||quanganhct||Mac Programming||9||Nov 22, 2012 05:21 AM|
|Some long-form and (I like to think) objective first impressions of the iPhone 5.||mattcube64||iPhone||2||Sep 23, 2012 12:43 AM|
All times are GMT -5. The time now is 10:30 PM.