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 (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]