Re: NSLog object = nil?

2013-08-20 Thread Diederik Meijer | Ten Horses
Thanks for this. I'd like to try using the Document object that owns the itemStore. The itemStore objects are created by the Document object in a loop as part of a dispatch_async GCD block. The itemStores' workers have a reference to the Document object. But since the itemStore objects are creat

Re: NSLog object = nil?

2013-08-20 Thread Laurent Daudelin
Wouldn’t be possible to implement dealloc in that class and put an NSLog call there? Of course, in an ARC project, you wouldn’t call [super dealloc] but would that cause a problem? -Laurent. -- Laurent Daudelin AIM/iChat/Skype:LaurentDaudelin http://www.nemesys-

Re: NSLog object = nil?

2013-08-20 Thread Lee Ann Rucker
On Aug 20, 2013, at 2:32 PM, Diederik Meijer | Ten Horses wrote: > Is there any way to NSLog the destruction of the itemStore object? Sure, but you'll save a lot more time if you use Instruments to track object lifetimes - it'll show you who does own the object and keeps you from hitting deall

Re: NSLog object = nil?

2013-08-20 Thread Diederik Meijer | Ten Horses
Apologies, no need to respond, I have just fixed this.. Op Aug 20, 2013, om 11:32 PM heeft Diederik Meijer | Ten Horses het volgende geschreven: > Dear list, > > I have the following structure: > > An itemStore object creates a worker object (property of itemStore object) > that hold a wea

Re: NSLog object = nil?

2013-08-20 Thread Ken Thomases
On Aug 20, 2013, at 4:32 PM, Diederik Meijer | Ten Horses wrote: > An itemStore object creates a worker object (property of itemStore object) > that hold a weak reference back to the itemStore object; > When the worker classes is done, it sets the itemStore object (of which the > worker class it

Re: NSLog object = nil?

2013-08-20 Thread Tom Davie
On 20 Aug 2013, at 23:32, Diederik Meijer | Ten Horses wrote: > Dear list, > > I have the following structure: > > An itemStore object creates a worker object (property of itemStore object) > that hold a weak reference back to the itemStore object; > When the worker classes is done, it sets

NSLog object = nil?

2013-08-20 Thread Diederik Meijer | Ten Horses
Dear list, I have the following structure: An itemStore object creates a worker object (property of itemStore object) that hold a weak reference back to the itemStore object; When the worker classes is done, it sets the itemStore object (of which the worker class itself is a property) to nil.