A few things I'd be leary of...
i) your parseURL routine is returning an NSArray, not an NSMutableArray- you probably need to convert
ii) when setting the array, do you retain it? (and release it later)
iii) init methods should be for initializing a member of a class (I'm not sure if you created this init method returning an (id) or just happened to call your method as such)
iv) your data source ought to be already instantiated from Interface Builder so you won't need to 'init' or 'initWithDataArray'
v) you should have a connected IBOutlet for the instantiated dataSource class member - instead of using [myTable dataSource], in my example it is tableDataSource which has your setDataArray and the other necessary NSTableView methods
- (int) numberOfRowsInTableView: (NSTableView *)tableView
- (id) tableView: (NSTableView *)tableView objectValueForTableColumn: (NSTableColumn *) column row: (int) row
So this is how I would expect your method to be (off the top of my head):
- (void)awakeFromNib
{
NSURL * userURL;
NSMutableArray *parsedURL;
userURL = [NSURL URLWithString:@"http://www.yahoo.com"];
parsedURL = [NSMutableArray arrayWithArray:[self parseURL:userURL]];
[tableDataSource setDataArray

arsedURL];
}
and your dataSource class would be something like:
- (void) setDataArray

NSMutableArray *)anArray{
[anArray retain];
[tableViewArray release];
tableViewArray = anArray;
}
and you'll have in your dealloc method something like:
- (void) dealloc {
[tableViewArray release];
[super dealloc];
}
Another option would be that you could have an NSMutableArray instantiated, and at the setDataArray, remove all objects, and addObjectsFromArray from the passed array...
<small>[ 06-20-2002, 10:07 PM: Message edited by: Brad Brack ]</small>