Re: @property and @synthesize not working

2008-08-16 Thread Chris Hanson
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) NSCalendarDat

Re: @property and @synthesize not working

2008-08-13 Thread Michael Ash
On Wed, Aug 13, 2008 at 10:27 PM, Nathan Gilmore <[EMAIL PROTECTED]> wrote: > Hi Andrew, > > Thanks so much for your quick response and all of the great tips! > > You were right. dayOneTasks was nil. > > I am a little confused about how this works with Interface Builder. In > MainMenu.nib, I have

Re: @property and @synthesize not working

2008-08-13 Thread Andrew Merenbach
Hi, Nathan, Ah! I have a suggestion, but there's one thing that I forgot: as a *general* rule of thumb for *most* init methods, do not do anything between "self = [super init];" and "return self;" that isn't in a conditional to test the validity of "self" -- that is to say: - (id)init {

Re: @property and @synthesize not working

2008-08-13 Thread Nathan Gilmore
Hi Andrew, Thanks so much for your quick response and all of the great tips! You were right. dayOneTasks was nil. I am a little confused about how this works with Interface Builder. In MainMenu.nib, I have a DayOneTasks Controller. It's class is set to DayTaskController. I also have th

Re: @property and @synthesize not working

2008-08-13 Thread Andrew Merenbach
On Aug 13, 2008, at 6:47 PM, Nathan Gilmore wrote: Hello everyone, I am a newbie and I am having trouble getting my setter to work when I use @synthesize. Here is the code: **Header File** @interface DayTaskController : NSArrayController { NSCalendarDate *searchDate; } - (void)s

@property and @synthesize not working

2008-08-13 Thread Nathan Gilmore
Hello everyone, I am a newbie and I am having trouble getting my setter to work when I use @synthesize. Here is the code: **Header File** @interface DayTaskController : NSArrayController { NSCalendarDate *searchDate; } - (void)search:(id)sender; @property(readwrite, assign) NSCal