• 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
Binding crashing while drag and droping into NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Binding crashing while drag and droping into NSTableView


  • Subject: Binding crashing while drag and droping into NSTableView
  • From: Tristan Jehan <email@hidden>
  • Date: Mon, 8 Jan 2007 14:27:36 -0500

I'm displaying iTunes tracks that I drag and drop in my own NSTableView. The first drag and drop works fine. If I do it again, the binding setup crashes on me when I set the new track array. I use safe selectors (see below) and an NSArrayController / NSObjectController standard binding setup. I tried putting the calls in a separate thread, without success. But I don't get that kind of crash when I update the array programatically. So I figured it has to do with the drag and drop... Any suggestions? I've been fighting this for a while and there's no easy pointers on the list... Thanks,

Tristan

______________________________

- (NSMutableArray *) selectedTracks {
	return _selectedTracks;
}

- (void) setSelectedTracks: (NSMutableArray *)newSelectedTracks {
if (_selectedTracks != newSelectedTracks) {
[_selectedTracks autorelease];
_selectedTracks = [[NSMutableArray alloc] initWithArray: newSelectedTracks];
}
}


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: showing a symbol on NSTextField
  • Next by Date: Tab view with icons in tabs?
  • Previous by thread: MEETING: Chicago CocoaHeads / CAWUG, Tues. Jan 9th @ 6:00
  • Next by thread: Tab view with icons in tabs?
  • Index(es):
    • Date
    • Thread