Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > Mac OS X Development Forums > Objective-C, Python, Ruby Development

Reply
 
LinkBack Thread Tools Display Modes
Old 09-11-2009, 08:01 AM   #1 (permalink)
Registered Member
 
Join Date: Sep 2009
Location: Bhubaneswar(INDIA)
Posts: 39
ajitbiswal is on a distinguished road
Default NSString

- (BOOL)boolValue
Return Value
The Boolean value of the receiver’s text. Returns YES on encountering one of "Y", "y", "T", "t", or a digit 1-9—the
method ignores any trailing characters. Returns NO if the receiver doesn’t begin with a valid decimal text representation of a number.


In the explanation of above method, i am unable to understand why it is only restrict to "Y", "y", "T", "t", or a digit 1-9....please reply me...
ajitbiswal is offline   Reply With Quote
Old 09-11-2009, 09:17 AM   #2 (permalink)
Former NeXTStep Developer
 
Join Date: Mar 2009
Posts: 997
FlyingDiver will become famous soon enough
Default

Because "Yes" and "True" are the common (in English) words for a "positive" boolean value. And since 0 is the common value for a "negative" or "false" boolean, any number other than 0 must result in a "positive" result.

Is there some reason you're just reading the API documentation and asking questions about it, rather than posting actual programming questions?

joe
FlyingDiver is offline   Reply With Quote
Old 09-13-2009, 10:51 PM   #3 (permalink)
Registered Member
 
Join Date: Sep 2009
Location: Bhubaneswar(INDIA)
Posts: 39
ajitbiswal is on a distinguished road
Default

Quote:
Originally Posted by FlyingDiver View Post
Because "Yes" and "True" are the common (in English) words for a "positive" boolean value. And since 0 is the common value for a "negative" or "false" boolean, any number other than 0 must result in a "positive" result.

Is there some reason you're just reading the API documentation and asking questions about it, rather than posting actual programming questions?

joe

Yes sir... Now i have given task to read the documentation and after that they will give me small tasks to solve out little problems..so over all now my duty is to read the documentation and understand concept of objective c... sorry if my questions are not up to that level...
ajitbiswal is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
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
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 459
13 members and 446 guests
Domele, Duncan C, Feldspar, MacBook MH, Objective Zero, patapple, peterwilli, pipposanta, PixelInteractive, Punkjumper, SLIC, taylor202, Today's Posts
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,694
Threads: 94,137
Posts: 402,950
Top Poster: BrianSlick (7,990)
Welcome to our newest member, peterwilli
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:03 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0