• 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: Proper way to retain member of AppDelegate?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Proper way to retain member of AppDelegate?


  • Subject: Re: Proper way to retain member of AppDelegate?
  • From: Jens Alfke <email@hidden>
  • Date: Wed, 15 Oct 2014 14:30:49 -0700

> On Oct 15, 2014, at 1:58 PM, Howard Moon <email@hidden> wrote:
>
> I think I resolved it… my data object's members were all declared using @property(assign).  I changed those all to @property(retain), and it works now.

Don't use assign or retain in ARC, use weak and strong. (And generally you'd just omit strong since it's the default.)

—Jens
_______________________________________________

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: Proper way to retain member of AppDelegate?
      • From: Howard Moon <email@hidden>
References: 
 >Proper way to retain member of AppDelegate? (From: Howard Moon <email@hidden>)
 >Re: Proper way to retain member of AppDelegate? (From: Howard Moon <email@hidden>)

  • Prev by Date: Re: Proper way to retain member of AppDelegate?
  • Next by Date: Re: Proper way to retain member of AppDelegate?
  • Previous by thread: Re: Proper way to retain member of AppDelegate?
  • Next by thread: Re: Proper way to retain member of AppDelegate?
  • Index(es):
    • Date
    • Thread