Binding crashing while drag and droping into NSTableView
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