Re: @property and @synthesize not working
Re: @property and @synthesize not working
- Subject: Re: @property and @synthesize not working
- From: Chris Hanson <email@hidden>
- Date: Sat, 16 Aug 2008 08:53:30 -0700
On Aug 13, 2008, at 6:47 PM, Nathan Gilmore wrote:
I am a newbie and I am having trouble getting my setter to work when
I use @synthesize. Here is the code:
@interface DayTaskController : NSArrayController {
NSCalendarDate *searchDate;
}
@property(readwrite, assign) NSCalendarDate *searchDate;
This should really be "copy" rather than "assign" as NSDate and
NSCalendarDate conform to NSCopying. At the very least, it should be
"retain" unless you're writing GC-only code.
-- Chris
_______________________________________________
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