Hi, I have a cocoa application in the works that will be a file browser, but I hit a major wall. I know the basics of Objective-C, but my C/C++ is bad (I just know syntax, enough to get by). I think that my problem can be solved with a knowledge of C, but am not sure. Here is the code (everything is linked correctly):
Controller.h
--------------
#import <Cocoa/Cocoa.h>
@interface Controller : NSObject
{
IBOutlet id directoryField;
IBOutlet id tableView;
IBOutlet id tableColumn;
NSArray *files;
}
- (IBAction)check

id)sender;
@end
--------------
Controller.m
--------------
#import "Controller.h"
@implementation Controller
- (IBAction)check

id)sender
{
BOOL isDir;
NSString *path = [directoryField stringValue];
NSFileManager *manager = [NSFileManager defaultManager];
if ([manager fileExistsAtPath

ath isDirectory:&isDir] && isDir)
{
files = [manager directoryContentsAtPath

ath];
}
[tableView reloadData];
}
- (int)numberOfRowsInTableView

NSTableView *)aTableView
{
return [files count];
}
- (id)tableView

NSTableView *)aTableView
objectValueForTableColumn

NSTableColumn *)aTableColumn
row

int)rowIndex
{
return [files objectAtIndex:rowIndex];
}
@end
---------------
During runtime, I get this error: FileBrowser.app has exited due to signal 11 (SIGSEGV).
I have know idea what SIGSEGV is. Sometimes instead of SIGSEGV it is SIGBUS.
Any information on this would be appreciated.
[ 08-10-2001: Message edited by: El Presidente ]