verify input parameter of init method and return nil before invoke [super init]

2013-01-29 Thread Bob Cromwell
[super init]; if (self) { _foo = foo; . } return self; } I had thought there would be memory leak. "Bla * b = [Bla alloc ] initWithFoo:nil];" . However under ARC using Instruments Leaks, there are no leak found. Th

Re: Questions about CoreData and object graphs

2012-11-14 Thread Bob Cromwell
Actually your guess is wrong. Core Data could handle this by turn the object to fault. Have a look at the method refreshObject:mergeChanges. Bob Cromwell On 2012-11-15, at 上午10:30, William Squires wrote: > 1) Can CoreData properly manage an object graph where the objects form a > ci

Core Data : Batch Faulting while take advantage of cache

2012-11-13 Thread Bob Cromwell
alueForKey:nil]; } So my question is : are there any way to batch fault objects while take advantage of the cache ? Bob Cromwell ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comment

Re: Core Data fetch performance

2012-11-12 Thread Bob Cromwell
Hi Hunter, I am very interested in what bugs they fixed. Could you please share more about it , e.g. an official bug fix report ? Thanks Bob > The API changes came in iOS 5 but in iOS 6 they fixed enough bugs to make it > work right. :-) > On Nov 11, 2012, at 4:50 PM, Rick Mann wrote:

Re: ARC issue

2012-11-07 Thread Bob Cromwell
According to ARC documentation, out parameter will be changed to auto release one: NSError ** error will be auto changed to NSError * __autorelease * error. So It's expected behavior that crash happens. An article about this here http://blog.pioneeringsoftware.co.uk/2012/03/06/out-parameter