CoreData application doesn't stop on breakpoints
CoreData application doesn't stop on breakpoints
- Subject: CoreData application doesn't stop on breakpoints
- From: Robert Cerny <email@hidden>
- Date: Thu, 29 Sep 2005 17:11:31 +0200
Dear list,
I'm still new to CoreData so I ask you for patience. I created a
model named BasicTask and added name, price, startDate, endDate and
length fields. Length is transient, and should be a difference
between endDate and startDate.
1] I created a Managed Object Class using Assistant for my entity
BasicTask and let create accessor methods.
2] I changed length getter to:
- (NSCalendarDate*)length
{
NSTimeInterval diff = [[self valueForKey:@"endDate"]
timeIntervalSinceDate:[self valueForKey:@"startDate"]];
return [NSCalendarDate
dateWithTimeIntervalSinceReferenceDate:diff];
}
3] added an initialize method
+ (void)initialize {
if (self == [BasicTask class])
{
NSArray *keys = [NSArray arrayWithObjects:@"startDate",
@"endDate", nil];
[self setKeys:keys
triggerChangeNotificationsForDependentKey:@"length"];
}
}
4] I added breakpoints to initialize and getter methods. I triple
checked that I'm in debug mode, debug symbols are on, etc. It still
doesn't stop on my breakpoints nor returns difference in the proper
field. What's wrong? It looks like my entity class is ignored.
Thanks
Robert
_______________________________________________
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