Re: sigbus error 10 (newbie)
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