Re: Many-To-Many Relationship Interface in Core Data
Re: Many-To-Many Relationship Interface in Core Data
- Subject: Re: Many-To-Many Relationship Interface in Core Data
- From: mmalc crawford <email@hidden>
- Date: Thu, 26 Apr 2007 18:33:11 -0700
On Apr 26, 2007, at 5:09 PM, Frank D. Engel, Jr. wrote:
malloc: *** Deallocation of a pointer not malloced: 0xbfffd8a0;
This could be a double free(), or free() called with the middle of
an allocated block; Try setting environment variable MallocHelp to
see tools to help debug
But I don't do any retain (should I? I am setting these as member
variables of the class, and using them in the other methods later
on), release, malloc, free, etc...
For a summary of memory management rules, see <http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/Tasks/MemoryManagementRules.html
>;
the enclosing document gives a full treatment.
restrictions = [NSEntityDescription entityForName:@"Restriction"
inManagedObjectContext:ctx];
qualifiers = [NSEntityDescription entityForName:@"Qualifier"
inManagedObjectContext:ctx];
[...]
But I don't do any retain (should I? I am setting these as member
variables of the class, and using them in the other methods later
on), release, malloc, free, etc...
You should almost certainly be retaining these values, but
"indirectly" using accessor methods -- see the references given above.
I'm sorry if any of this seems obvious, but I'm still learning Cocoa
while trying to do this!
You are *strongly* discouraged from using Core Data (and even
bindings) until you have mastered the fundamentals of Cocoa. These
technologies give a high level of abstraction that makes problem-
solving difficult or impossible if you do not understand the basics
upon which they are built.
mmalc
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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