• 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: constants? strings? what do i wrong?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: constants? strings? what do i wrong? (From: "Steffi Krause" <email@hidden>)

  • Prev by Date: Re: Cocoa/Windows parallel dvlpmt
  • Next by Date: Re: Row moving [source]
  • Previous by thread: Re: constants? strings? what do i wrong?
  • Next by thread: Re: constants? strings? what do i wrong?
  • Index(es):
    • Date
    • Thread