• 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: NSLog object = nil?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSLog object = nil?


  • Subject: Re: NSLog object = nil?
  • From: Diederik Meijer | Ten Horses <email@hidden>
  • Date: Tue, 20 Aug 2013 23:50:52 +0200

Apologies, no need to respond, I have just fixed this..



Op Aug 20, 2013, om 11:32 PM heeft Diederik Meijer | Ten Horses <email@hidden> het volgende geschreven:

> 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.
>
> This project uses ARC.
>
> So within itemStore I do:
> self.worker = [[Worker alloc] init];
> [self.worker setItemStore:self];
>
> In Worker.h I do
> @property (nonatomic, weak) ItemStore *itemStore;
>
> In Worker.m, when all its tasks are done, I do
> self.itemStore = nil;
>
> I assume this completely destroys the itemStore object and all objects it exclusively owns.
>
> Is there any way to NSLog the destruction of the itemStore object?
>
> I tried putting a log in itemStore's dealloc method, but it doesn't show up in the console.
>
> Many thanks,
>
> Diederik
> _______________________________________________
>
> 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


_______________________________________________

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: 
 >NSLog object = nil? (From: Diederik Meijer | Ten Horses <email@hidden>)

  • Prev by Date: Re: NSLog object = nil?
  • Next by Date: Re: NSLog object = nil?
  • Previous by thread: Re: NSLog object = nil?
  • Next by thread: Re: NSLog object = nil?
  • Index(es):
    • Date
    • Thread