Re: releasing an object
Re: releasing an object
- Subject: Re: releasing an object
- From: Andreas Mayer <email@hidden>
- Date: Sat, 10 Oct 2009 18:18:24 +0200
Am 10.10.2009 um 17:43 Uhr schrieb Nick Rogers:
selectedPTVolume = [[Volume alloc] initWithDictionary:data];
[selectedPTVolume retain];
Read the memory management rules again. By calling alloc the retain
count of the created object is one. There is no need to send it an
additional retain message.
if I comment this the GUI hangs,
Then you've got another problem somewhere else.
[selectedPTVolume release];
selectedPTVolume = nil;
if (outlineViewData)
[outlineViewData reloadData];/ crashes here
I guess it crashes because you just pulled the outline view's model
data from under it's feet.
How is the outline view connected to the model?
Andreas
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden