Re: constants? strings? what do i wrong?
Re: constants? strings? what do i wrong?
- Subject: Re: constants? strings? what do i wrong?
- From: Pete Yandell <email@hidden>
- Date: Tue, 3 Feb 2004 11:21:26 +1100
The problem is not in the bit of the code that you've shown us.
If I create a project and do:
#define ASTRING @"Hello, World!"
NSLog(ASTRING);
it happily spits out the string with no errors.
You need to post more of your code.
Pete Yandell
http://pete.yandell.com/
On 03/02/2004, at 10:10 AM, Steffi Krause wrote:
>
> Try it again, like this:
>
>
>
> NSLog(@"%@", ASTRING);
>
>
thanks again! it still doesn't work though. of course i write
>
something else
>
in ASTRING and ANUMBER but
>
it is also only a string, nothing fancy. and it doesn't work with the
>
number
>
as well.
>
>
maybe the error is more with the definition of the constant? i want to
>
have
>
a string which i need several
>
times in the application and i thought maybe a constant would be best.
>
would
>
you do it differently?
>
>
--
>
GMX ProMail (250 MB Mailbox, 50 FreeSMS, Virenschutz, 2,99
>
EUR/Monat...)
>
jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++
>
http://www.gmx.net/derspiegel +++
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.