FROM : Andrew Farmer
DATE : Fri Dec 10 20:57:43 2004
On 10 Dec 2004, at 00:44, Ole Voß wrote:
> Sorry people - I solved the problem myself. I was assuming that I
> could use '%@' to display the number returned. Obviously NSLog is very
> strict about this. Using '%d' solved the problem already.
It's not specifically that it's being "strict" - the "%@" format string
indicates that the matching argument can be treated as a pointer. If it
can't - for example, in this case, you're passing a small integer - it
could probably make demons come out your (program's) nose if it wanted.
DATE : Fri Dec 10 20:57:43 2004
On 10 Dec 2004, at 00:44, Ole Voß wrote:
> Sorry people - I solved the problem myself. I was assuming that I
> could use '%@' to display the number returned. Obviously NSLog is very
> strict about this. Using '%d' solved the problem already.
It's not specifically that it's being "strict" - the "%@" format string
indicates that the matching argument can be treated as a pointer. If it
can't - for example, in this case, you're passing a small integer - it
could probably make demons come out your (program's) nose if it wanted.
| Related mails | Author | Date |
|---|---|---|
| Ole Voss | Oct 26, 23:16 | |
| R. Scott Thompson | Oct 26, 23:26 | |
| Nathan Day | Oct 27, 05:01 | |
| Andréas Saudemont | Oct 27, 09:14 | |
| Ole Voß | Dec 10, 09:33 | |
| Ole Voß | Dec 10, 09:44 | |
| Jiri Volejnik | Dec 10, 09:57 | |
| Ken Ferry | Dec 10, 10:05 | |
| Andrew Farmer | Dec 10, 10:16 | |
| Andrew Farmer | Dec 10, 20:57 |






Cocoa mail archive

