• 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 and @synthesize not working
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >@property and @synthesize not working (From: Nathan Gilmore <email@hidden>)

  • Prev by Date: Re: Using Flex/Lex in a Cocoa project
  • Next by Date: Preferred Wrapper for TCP Sockets Over Local Network?
  • Previous by thread: Re: @property and @synthesize not working
  • Next by thread: Does NSNotificationCenter have zeroing weak references to observers ?
  • Index(es):
    • Date
    • Thread