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 6935421
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:06:02+00:00 2026-05-27T12:06:02+00:00

I have a very simple project. Extremely watered down. All it does is load

  • 0

I have a very simple project. Extremely watered down. All it does is load some text into an NSTableView. That’s it. But it’s using a new window and controller, called “Revisions.”

As soon as the new window becomes active, it crashes or just locks up. No errors in the console. If it sits in the background, behind the AppDelegate’s window, it appears to load the information fine. I can see the table is populated perfectly. But as soon as I click on the window and make it active, it crashes/locks.

This is driving me nuts. I know it has to do with memory management, but I can’t figure out where or how or why.

Note, I’m in XCode 4.2, where there’s no more releasin’ (unless I change some settings, of course).

All connections in

AppDelegate.h

#import <Cocoa/Cocoa.h>
@interface AppDelegate : NSObject <NSApplicationDelegate>
@property (assign) IBOutlet NSWindow *window;
@end

AppDelegate.m

#import "AppDelegate.h"
#import "Revisions.h"

@implementation AppDelegate

@synthesize window = _window;

- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
{    
    Revisions *rev = [[Revisions alloc] initWithWindowNibName:@"Revisions"];
    [rev loadWindow];    
}

Revisions.h

#import <Cocoa/Cocoa.h>

@interface Revisions : NSWindowController
{    
    IBOutlet NSTableView *quicktimesList;
    IBOutlet NSTableView *unusedDataList;   
}

@end

Revisions.m

#import "Revisions.h"

@implementation Revisions


- (id)initWithWindow:(NSWindow *)window
{
    self = [super initWithWindow:window];
    if (self) {
        // Initialization code here.
    }

    return self;
}

- (void)windowDidLoad
{
    [super windowDidLoad];    
    // Implement this method to handle any initialization after your window controller's window has been loaded from its nib file.
}


- (NSInteger)numberOfRowsInTableView:(NSTableView *)aTableView
{
    NSLog(@"Creating number of rows.");
    return 10;
}

- (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColumn *)aTableColumn row:(NSInteger)rowIndex
{
    NSLog(@"Starting Loop.");
    NSString *words = [[NSString alloc] initWithFormat:@"Row %i", rowIndex];
    NSLog(@"Looping %i", (int)rowIndex);
    return words;
}

@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-27T12:06:03+00:00Added an answer on May 27, 2026 at 12:06 pm

    Ok. I’m going to give you a couple of tips when dealing with potential memory leaks in Xcode 4.2.

    1. When writing software for Mac it is advisable to enable garbage collection in your build settings. Just simply search for “garbage collection” in the search bar of your build settings and set it to “required”.

    2. If you have memory leaks in your project just press the “product” menu and hit “Analyze”.This does as the menu item states, it analyses your project for potential memory leaks and helps you track them down.

    Hope this helps!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a very simple Setup project that copies three dlls into the GAC.
I have a very simple VS2005 deployment project that aims to install for all
I have a very simple web project, which need to just persistence some users,
I have a very, very simple any build script: <project name=quiz_jar default=all> <target name=all>
I have a very simple makefile, that basically does the following: # Pre-compiled header
I have a VERY simple C# Winforms project that I made using Visual Studio
Hope you are fine. I have to make a Web Project (very simple) I
i have very simple problem. I need to create model, that represent element of
I have a very simple bit of script that changes the status of an
I have a very simple Java RMI Server that looks like the following: import

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.