• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Sudden exit from NSBrowser deleg.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Sudden exit from NSBrowser deleg.
      • From: Public Look <email@hidden>
  • Prev by Date: Answer: What NSTextField has cursor in it?
  • Next by Date: Re: Sudden exit from NSBrowser deleg.
  • Previous by thread: Answer: What NSTextField has cursor in it?
  • Next by thread: Re: Sudden exit from NSBrowser deleg.
  • Index(es):
    • Date
    • Thread