Re: Property attributes
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