Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7587393
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T19:39:47+00:00 2026-05-30T19:39:47+00:00

No compiler errors, but can’t trace into instance methods of my classes. I’m pretty

  • 0

No compiler errors, but can’t trace into instance methods of my classes. I’m pretty sure I’m just not setting this up correctly, but I guess it could be some obscure configuration (hope not).

My calls to the classes can’t be traced into (just shows assembler), and breakpoints in the ATLCalCellList class (ie, at init, load, clear) never execute.

UIViewController header:

//  ATLCalendarViewController.h
#import <UIKit/UIKit.h>
#import "ATLCalCellList.h"

@interface ATLCalendarViewController : UIViewController {
ATLCalCellList* calCellList ;
}
@property (nonatomic, strong) ATLCalCellList* calCellList ;

- (IBAction)btnTestLoadListPress:(id)sender;
- (void) refreshCalCellList ;
@end

Main file:

//  ATLCalendarViewController.m

#import "ATLCalendarViewController.h"
@implementation ATLCalendarViewController
@synthesize calCellList ;

- (void)viewDidLoad  {
  [super viewDidLoad];
  // Custom initialization   
  [self.calCellList init] ;
}

- (IBAction)btnTestLoadListPress:(id)sender 
{
  [self refreshCalCellList] ;
}

- (void) refreshCalCellList 
{
**//==================================  PROBLEM ========================================**
// BREAKPOINTS ON THE 4 LINES BELOW GET CALLED, BUT CAN'T TRACE INTO THE METHOD CODE
// TRACE INTO ON ANY OF THESE SHOWS ASSEMBLER
// IT LOOKS LIKE THE CALLED CODE IN THE METHODS IS NOT BEING EXECUTED
  [self.calCellList clear] ;
  self.calCellList.calListCount = 0 ;
  self.calCellList.calListDate = [NSDate date] ;  
  [self.calCellList load] ;   
}

@end

The class header file for calCellList is:

//  ATLCalCellList.h
#import <Foundation/Foundation.h>
#import "ATLCalCellData.h"

@interface ATLCalCellList : NSObject {

  NSMutableArray *calListArray ;
  NSInteger       calListCount ;
  NSDate         *calListDate ;
  BOOL            calListSimulate ;
}

// PROPERTIES
@ property(nonatomic, strong) NSMutableArray *calListArray ;
@ property(nonatomic)         NSInteger       calListCount ;
@ property(nonatomic, strong) NSDate         *calListDate ;
@ property(nonatomic)         BOOL            calListSimulate ;

// METHODS    
- (id)  init ;
- (BOOL) load ;
- (BOOL) save ;
- (void) clear ;
- (void) addCell:    (ATLCalCellData *) calCellData ;
- (void) removeCell: (ATLCalCellData *) calCellData ;

In case you need to see the full class implementation, here’s most of it:

//  ATLCalCellList.m
#import "ATLCalCellList.h"
@implementation ATLCalCellList

@synthesize calListArray ;
@synthesize calListCount ;
@synthesize calListDate ;
@synthesize calListSimulate ;

- (id) init 
{
  self = [super init] ;

  self.calListArray = nil ;
  self.calListArray = [calListArray init] ;
  self.calListDate  = [NSDate date] ;

  return self ;
}

- (BOOL) load
{
 // load data for one day
  ATLCalCellData* newCell ;
  if ([newCell init]) {
    newCell.calCellDate = self.calListDate ;
    newCell.calCellHour = x ;
    newCell.calCellMinute = 0 ;
    newCell.calCellTitle = @"Appt with Destiny" ;
    newCell.calCellLocation = @"Atlas World HQ" ;
    [newCell.calCellAlliesIDList addObject: @"333000333" ] ;
    [newCell.calCellAlliesNameList addObject: @"Joe Chicago"] ;  
    newCell.calCellDurationMinutes = 60 ;
    newCell.calCellAlarm1AdvanceMinutes = 30 ;        
    NSCalendar *gregorian = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar];
    NSDateComponents *offsetComponents = [[NSDateComponents alloc] init];
    [offsetComponents setHour:0];
    [offsetComponents setMinute: newCell.calCellAlarm1AdvanceMinutes];
    newCell.calCellAlarm1Datetime = 
        [gregorian dateByAddingComponents:offsetComponents toDate:   
        newCell.calCellAlarm1Datetime options:0];            
          }
        }
      }
    }
  } else {
    // load the cells from the actual database:
    // #OPENTASK

    // end
  }
  return TRUE ;
}

- (BOOL) save
{
  // save data for one day
  return TRUE ;
}


- (void) clear {
  //  Clear the daylist array

  self.calListArray = nil ;
  [self.calListArray init];
}

- (void) addCell: (ATLCalCellData *) calendarCell {
  [self.calListArray addObject: calendarCell];
}

- (void) removeCell: (ATLCalCellData *) calendarCell {
  //  Find and remove the passed in cell from the array:
  // #TBD Locate the cell with the datetime and userid, then delete it
  // 
}

@end
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T19:39:48+00:00Added an answer on May 30, 2026 at 7:39 pm

    I believe the problem is that you’re calling init on something that hasn’t actually been allocated yet. Essentially your code is telling the application to go to whatever random place in memory that self.calCellList happens to point to, treat it as an object, and send an init message to it. This may, of course, cause all sorts of issues.

    It may work better if you do:

    - (void)viewDidLoad  {
      [super viewDidLoad];
    
      // Custom initialization   
      calCellList =  [[ATLCalCellList alloc] init] ;
    }
    

    Also note that if you do:

    @property (nonatomic, strong) ATLCalCellList* calCellList ;
    //...
    @synthesize calCellList ;
    

    …then you don’t need to also declare a backing ivar for the field. Specifically, this is redundant:

    ATLCalCellList* calCellList ;
    

    When you @synthesize the property, a backing ivar of the same name will automatically be generated for you. The code you have is essentially declaring the ivar twice, which is harmless but unnecessary.

    Edit: Just took a closer look at your code, and you seem to be making the same mistake in other places as well:

    self.calListArray = [calListArray init] ;
    

    As above, this will not work. You can’t initialize an unassigned variable by calling init on it. You need to alloc an instance, and then call init on that instance. Like:

    self.calListArray = [[NSMutableArray alloc] init];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm running into some compiler errors I don't understand. I'm pretty sure I'm doing
I've got a compiler error but I can't figure out why. the .hpp: #ifndef
I'm not sure why I'm getting this error, but shouldn't this code compile, since
I'm not new to C++ but I am used to running a g++ compiler
I must be missing something obvious but I'm not sure what. I've created a
Everyone (at least everyone who uses a compiled language) has faced compilation errors but
I wanted to use boost::thread in my program, but get the following compiler error
I keep getting compiler errors when I try to access flashVars in an AS3
Why do I get compiler errors with this Java code? 1 public List<? extends
This is one of my most dreaded C/C++ compiler errors: file.cpp(3124) : fatal error

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.