• 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: Property attributes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Property attributes


  • Subject: Re: Property attributes
  • From: Bill Bumgarner <email@hidden>
  • Date: Tue, 30 Sep 2008 12:58:08 -0700

On Sep 29, 2008, at 10:15 PM, D.K. Johnston wrote:
Am I right in assuming that property attributes like "assign" and "nonatomic" have no effect for types like NSInteger and BOOL? i.e.

	@property NSInteger myInteger;

is exactly the same as:

@property(assign,nonatomic) NSInteger myInteger;

Maybe. It is entirely architecture dependent. If your code were ever to be compiled for or run on an architecture that does not guarantee atomic assigns of BOOLs or NSIntegers, then atomic/nonatomic wouldn't mean the same thing.


b.bum

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: 
 >Property attributes (From: "D.K. Johnston" <email@hidden>)

  • Prev by Date: Re: Finding other apps' paths - deterministically!
  • Next by Date: Release build wrong executable name, but debug build it correct
  • Previous by thread: Property attributes
  • Next by thread: Problems with loose ViewController coupling and KVO to-many relationships
  • Index(es):
    • Date
    • Thread