Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old May 15, 2008, 08:24 AM   #1
vavdiyaharesh
macrumors newbie
 
Join Date: May 2008
have problem for objective-c which is used on iphone

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.
vavdiyaharesh is offline   0 Reply With Quote
Old May 15, 2008, 08:46 AM   #2
crees!
macrumors 68000
 
crees!'s Avatar
 
Join Date: Jun 2003
Location: MD/VA/DC
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.
NOSOCIALISM NOBAMA
crees! is offline   0 Reply With Quote
Old May 15, 2008, 11:23 PM   #3
vavdiyaharesh
Thread Starter
macrumors newbie
 
Join Date: May 2008
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.....
vavdiyaharesh is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
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

Forum Jump

All times are GMT -5. The time now is 03:52 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC