• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: core data - beyond the simple example
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >core data - beyond the simple example (From: Torsten Curdt <email@hidden>)
 >Re: core data - beyond the simple example (From: "I. Savant" <email@hidden>)
 >Re: core data - beyond the simple example (From: Torsten Curdt <email@hidden>)
 >Re: core data - beyond the simple example (From: "I. Savant" <email@hidden>)
 >Re: core data - beyond the simple example (From: Torsten Curdt <email@hidden>)
 >Re: core data - beyond the simple example (From: Torsten Curdt <email@hidden>)
 >Re: core data - beyond the simple example (From: "I. Savant" <email@hidden>)
 >Re: core data - beyond the simple example (From: Torsten Curdt <email@hidden>)
 >Re: core data - beyond the simple example (From: "I. Savant" <email@hidden>)
 >Re: core data - beyond the simple example (From: Torsten Curdt <email@hidden>)
 >Re: core data - beyond the simple example (From: Jim Correia <email@hidden>)

  • Prev by Date: Re: [MEET] April CocoaHeads Mac Developer Meetings
  • Next by Date: Re: core data - beyond the simple example
  • Previous by thread: Re: core data - beyond the simple example
  • Next by thread: Re: core data - beyond the simple example
  • Index(es):
    • Date
    • Thread