• 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: Eric Forget <email@hidden>
  • Date: Mon, 02 Feb 2004 15:47:41 -0500

> 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!

I suppose your string is not really defined as @"Stringcontent", right? If
so, did you put formatting escape characters in it (%@, %d, etc.)? If yes,
make sure you always pass the right format parameters every time...

Eric

___________________________________________________________________

Eric Forget Cafederic
email@hidden <http://www.cafederic.com/>

Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684>
_______________________________________________
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: 
 >constants? strings? what do i wrong? (From: "Steffi Krause" <email@hidden>)

  • Prev by Date: Re: Packager
  • Next by Date: Re: [SOLVED !] Disabling_Expose_for_some_windows,_some_day?
  • Previous by thread: Re: constants? strings? what do i wrong?
  • Next by thread: Re: constants? strings? what do i wrong?
  • Index(es):
    • Date
    • Thread