Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Danger signs to be on the lookout for when buying a 3GS on Craigslist for unlocking? Granitel Jailbreaks and iOS Hacks 5 Nov 13, 2011 07:28 AM
Quick question...Which firmware is jailbreakable on iPhone 4? Tethered? Untethered? WiiDSmoker Jailbreaks and iOS Hacks 7 Dec 28, 2010 12:05 PM
Weird icon in status bar on my iPhone 3G - I have no clue what it is! kidpaul1 iPhone Tips, Help and Troubleshooting 2 Nov 3, 2010 05:29 PM
i know how many 3g iphones just one att store will have in my town which is small Vegan TJ iPhone 16 Jul 3, 2008 09:56 PM
Having problems upgrading to 1.1.2 on OTB 1.1.3 iPhone mikelong622 Jailbreaks and iOS Hacks 6 Feb 10, 2008 11:31 AM


All times are GMT -5. The time now is 09:03 PM.

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

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