Sudden exit from NSBrowser deleg.
Sudden exit from NSBrowser deleg.
- Subject: Sudden exit from NSBrowser deleg.
- From: Sanri Parov <email@hidden>
- Date: Sat, 6 Dec 2003 15:40:55 +0100
Hi everybody,
I'm populating an NSBrowser with this tiny code:
- (int)numberOfRowsInTableView:(NSTableView *)aTableView
{return [array_nomi_playlists count];}
- (id)tableView:(NSTableView *)aTableView
objectValueForTableColumn:(NSTableColumn *)aTableColumn
row:(int)rowIndex
{
NSString *table_result=[NSString string];
table_result = [array_nomi_playlists objectAtIndex:rowIndex];
[aTableView reloadData];
return table_result;
}
"array_nomi_playlist" is an NSMutableArray which tracks all playlist
names of user's iTunes library. But when the second selector comes into
the very end of the array, the program crashes soon after having
displayed all correctly.
The error XCode gives me is: EXEC BAD ACCESS
Can you tell me what am I doing wrong?
Thank you very much.
--
Sanri Parov
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.