Re: Is this a bug in NSCalendarDate?
Re: Is this a bug in NSCalendarDate?
- Subject: Re: Is this a bug in NSCalendarDate?
- From: John Stiles <email@hidden>
- Date: Sun, 04 Sep 2005 08:19:31 -0700
NSLog( [date class] );
Mark Williams wrote:
I think I know what the problem was... I could be wrong but I was
pulling the date out of the preferences. Thus it was just an NSDate
object correct? so basically if I understand my mistake and am
correct about this, since it was just a plain NSDate object
monthOfYear really isn't available to it. So the actual code was:
NSCalendarDate * date = [settings objectForKey:@"Last Date"];
NSLog(@"%i",[date monthOfYear]);
On Sep 2, 2005, at 11:06 PM, John Stiles wrote:
Is it possible that the calendar date object is not being retained,
and gets autoreleased, in the time between its creation and the NSLog?
You might turn on NSZombieEnabled:
http://www.cocoadev.com/index.pl?NSZombieEnabled
Mark Williams wrote:
NSCalendarDate * date = [NSCalendarDate calendarDate];
NSLog(@"%i",[date monthOfYear]);
That's basically what I'm trying to do. And when it gets to the
nslog I get an error, selector not recognized.
Mark
On Sep 2, 2005, at 4:00 PM, John Stiles wrote:
Show your work, please.
On Sep 2, 2005, at 3:59 PM, Mark Williams wrote:
I just tried to use NSCalendarDate monthOfYear and I get an
error that the selector is not recognized, what's happening there?
Mark.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40blizzard.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden