• 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
ARC Help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ARC Help


  • Subject: ARC Help
  • From: Chris Tracewell <email@hidden>
  • Date: Fri, 22 Mar 2013 11:34:41 -0700

In a project I am moving from GC to ARC I'm trying to understand the nuances of the new declarations. I have many pre-ARC properties that look like...

--------------------------------------------------------------------
@interface TKObject : NSObject
	{
	NSString *theString;
	}

@property(readwrite,assign) NSString *theString;
--------------------------------------------------------------------

After ARC conversion it looks like....

--------------------------------------------------------------------
@interface TKObject : NSObject
	{
	NSString *__strong theString;
	}

@property(readwrite,strong) NSString *theString;
--------------------------------------------------------------------

My question is, couldn't it just as easily be written the same as the pre ARC style sans "assign" in @property since strong is the default? I noticed that in most of my files that the ARC conversion tool changes it simply replaced properties with assign type with the strong and __strong designators. However three files out of about 50 it just dropped the assign form @property. Is there a difference or reason for this?


CT


_______________________________________________

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: ARC Help
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: exc bad access when change the contentSize of popover
  • Next by Date: Re: ARC Help
  • Previous by thread: Re: Uncooperative Services Menu
  • Next by thread: Re: ARC Help
  • Index(es):
    • Date
    • Thread