• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How do you receive a BOOL from a method returning BOOL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do you receive a BOOL from a method returning BOOL


  • Subject: Re: How do you receive a BOOL from a method returning BOOL
  • From: Steven Kramer <email@hidden>
  • Date: Sat, 18 Dec 2004 19:57:28 +0100


Op 18-dec-04 om 19:22 heeft Evan Schoenberg het volgende geschreven:

One problem (of many potential problems) your code definitely has is that you can't print a BOOL value using the %@ formatter, which is reserved for ObjC objects. I'm amazed this line isn't crashing your program. The NSLog you want is:
NSLog(@"res: %i", res);



The OP said it printed null, which means the bool value was NO which in most respects is encoded similarly as a nil object. Printing YES would have been an interesting experiment.


Regards,

Steven Kramer

--
email@hidden
http://sprintteam.com/

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >How do you receive a BOOL from a method returning BOOL (From: "BK [address used for mailing lists only]" <email@hidden>)
 >Re: How do you receive a BOOL from a method returning BOOL (From: Evan Schoenberg <email@hidden>)

  • Prev by Date: Re: How do you receive a BOOL from a method returning BOOL
  • Next by Date: arch 1.2 and nib files
  • Previous by thread: Re: How do you receive a BOOL from a method returning BOOL
  • Next by thread: Re: How do you receive a BOOL from a method returning BOOL
  • Index(es):
    • Date
    • Thread