Re: Looking for NSLog help
Re: Looking for NSLog help
- Subject: Re: Looking for NSLog help
- From: Tommy Nordgren <email@hidden>
- Date: Wed, 22 Apr 2009 15:44:54 +0200
On Apr 22, 2009, at 3:04 PM, Sandy Santra wrote:
Very confused about Help in Xcode. Need information on NSLog and
can't find it.
So I'm offline. I want to use some type of research/help tool in
Xcode Help to find out what all the "switches" are for NSLog. I
know some of them:
%d is for displaying an interger
%f is for displaying a float
%@ is for displaying a textString
But what I need is the switch for displaying the variable type
Fraction. (Maybe such a thing doesn't exist?)
Where can I find this in Help?
As far as Doc Sets go, I'm pretty sure I have:
Mac OS X Leopard Core Library
WebObjects Library
Xcode 3.1 Developer Tools Library
iPhone OS Library (although this one says "This Is a Partial
Documentation Set")
But after running a search with all API options active (C++, Java,
Obj-C), I see some information on NSLog in the document entitled
"Assertions and Logging" and a few other documents, but still can't
find a list of the "switches." I found NSLog listed in the document
Foundation Functions Reference, but no list of of the switches.
The following I guess I haven't subscribed to yet, and hence can't
access while offline:
Apple iPhone OS
Apple iPhone OS 2.1
Apple iPhone OS 2.2
Apple iPhone OS 2.2.1
Is the information I'm looking for in one of these Document Sets?
I also seem to recall there's some keyboard/mouse shortcut in Xcode
that you can invoke when hovering over or after selecting a function
(or method?) that takes you right to the documentation for that
particular item, but I can't remember it.
It occurs to me that maybe there ISN'T a switch for fractions, since
I see this line in the example code I'm studying:
NSLog (@"%i/%i", numerator, denominator)
but nevertheless, I'd still like to see a list of the available
switches.
Thanks for any information.
--Sandy Santra
There are no standard switches for fractions.
%@ is the switch for an Objective-C object reference.
You can find all the switches in the documentation for NSString methods
-----------------------------------
See the amazing new SF reel: Invasion of the man eating cucumbers from
outer space.
On congratulations for a fantastic parody, the producer replies :
"What parody?"
Tommy Nordgren
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden