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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to