• 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: Block Confusion...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Block Confusion...


  • Subject: Re: Block Confusion...
  • From: David Duncan <email@hidden>
  • Date: Tue, 31 Jan 2012 10:25:05 -0800

On Jan 31, 2012, at 9:05 AM, R wrote:

> never mind..... the class was getting dealloc.  Still getting use to ARC and new ivar techniques.


As a point of design here, without further knowledge on why your "ClassB" is keeping a weak reference to the target mutable array (rather than a strong one) this seems like a bad design choice. Weak references should generally be used in order to break retain cycles (and even then you still need to think carefully about where the weak pointer should go in such a design).

Given the statements about your design, it seems like there are probably better ways for you to put the whole thing together, primarily as it seems you are trying to setup a producer-consumer pattern.
--
David Duncan

_______________________________________________

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


  • Follow-Ups:
    • Re: Block Confusion...
      • From: R <email@hidden>
References: 
 >Block Confusion... (From: R <email@hidden>)
 >Re: Block Confusion... (From: Fritz Anderson <email@hidden>)
 >Re: Block Confusion... (From: R <email@hidden>)
 >Re: Block Confusion... (From: R <email@hidden>)

  • Prev by Date: Re: How do you run an app on the device with Instruments?
  • Next by Date: On iOS5 simulator and device, NSDateFormatter doesn't show time zone abbreviation for "Asia/Kolkata" for the "z" or "zzz" specifier.
  • Previous by thread: Re: Block Confusion...
  • Next by thread: Re: Block Confusion...
  • Index(es):
    • Date
    • Thread