• 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
CoreData application doesn't stop on breakpoints
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: CoreData application doesn't stop on breakpoints
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: Re: Inside or outside an if statement - what's the difference?
  • Next by Date: Re: Getting mouseMoved event while dragging
  • Previous by thread: Re: Getting mouseMoved event while dragging
  • Next by thread: Re: CoreData application doesn't stop on breakpoints
  • Index(es):
    • Date
    • Thread