Skip to content

Instantly share code, notes, and snippets.

@solussd
Created December 23, 2011 16:11
Show Gist options
  • Save solussd/1514590 to your computer and use it in GitHub Desktop.
Save solussd/1514590 to your computer and use it in GitHub Desktop.
why does this end in a BAD_ACCESS?
@implementation SBAppDelegate {
__weak NSNumber *aNumber;
NSNumber *anotherNumber;
}
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
NSNumber *myNumber = [NSNumber numberWithInt:2];
self->anotherNumber = myNumber;
self->aNumber = myNumber;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment