Re: constants? strings? what do i wrong?
Re: constants? strings? what do i wrong?
- Subject: Re: constants? strings? what do i wrong?
- From: Jörn Salewski <email@hidden>
- Date: Mon, 02 Feb 2004 21:27:19 +0100
am 02.02.2004 20:54 Uhr schrieb Steffi Krause unter email@hidden:
>
i have an interface like this:
>
>
@interface MyClass: NSObject
>
{
>
#define ASTRING @"Stringcontent"
>
}
>
>
in the implementation i have this:
>
>
NSLog (ASTRING);
>
>
and i get an error like this: MyApp has exited due to signal 10 (SIGBUS).
>
>
what is wrong here? i'm stuck!
try:
#define ASTRING @"Stringcontent"
@interface MyClass: NSObject {
}
And
NSLog (@"%@", [ASTRING description]);
_______________________________________________
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.