• 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: sigbus error 10 (newbie)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sigbus error 10 (newbie)


  • Subject: Re: sigbus error 10 (newbie)
  • From: Hamish Allan <email@hidden>
  • Date: Sat, 19 Mar 2005 13:44:25 +0000

On Mar 19, 2005, at 6:11, Daniel Child wrote:

There's something obvious here but I'm still not seeing it. Thanks in advance.

Do you understand the difference between the following?

1) NSString *s;
2) NSString *s = [[NSString alloc] init];

What would you expect the result of executing the following method to be? (NB trial-and-error is not a good approach to programming, so don't cheat by getting the compiler to tell you the answer to this question! You need to think about what happens and why.)

- (void)test
{
NSString *stringPointer;
NSLog(@"address of stringPointer is %p, stringPointer is %p", &stringPointer, stringPointer);
}

Best wishes,
Hamish
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: NSTimer causes events to be lost
  • Next by Date: Re: Help with CFXMLTreeCreateFromData with an NSMutableURLRequest response.
  • Previous by thread: Re: sigbus error 10 (newbie)
  • Next by thread: Progress bar
  • Index(es):
    • Date
    • Thread