Re: core data - beyond the simple example
Re: core data - beyond the simple example
- Subject: Re: core data - beyond the simple example
- From: Torsten Curdt <email@hidden>
- Date: Sat, 5 Apr 2008 01:28:45 +0200
On Apr 4, 2008, at 23:53, Jim Correia wrote:
On Apr 4, 2008, at 5:44 PM, Torsten Curdt wrote:
- (void)setFilter:(NSPredicate*)newFilter
{
if (filter != newFilter) {
[filter release];
filter = newFilter;
}
}
- (NSPredicate*)filter
{
return filter;
}
Is this the exact code you are using in your application? Your -
setFilter: has a memory management bug... review the object
ownership rules.
Thanks for pointing out. I was changing the method and a retain got
lost in translation.
http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/Articles/mmAccessorMethods.html
...but that's not the problem.
cheers
--
Torsten
_______________________________________________
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