NSArrayController - Remove all objects?
NSArrayController - Remove all objects?
- Subject: NSArrayController - Remove all objects?
- From: Jean-Nicolas Jolivet <email@hidden>
- Date: Tue, 18 Nov 2008 22:23:02 -0500
I'm working on a custom NSArrayController (basically just a subclass
that allows drag and drop for a table view)...
So far it's working well however, when new files are dropped on my
table view, I need to remove all the current files... right now the
dropped files are only added to the list (i.e. added to my Array
Controller)...
Looking at NSArrayController's doc, I see methods for adding/selecting/
removing objects, but no method that removes all objects... I can't
even find how to get the amount of objects in my array...
Is there any way to remove all files from an array controlled by an
arraycontroller? Or at least a way to access the array from within my
custom ArrayController's code?? I tried [self setArrangedObjects:] but
the method doesn't exist....
Jean-Nicolas Jolivet
email@hidden
http://www.silverscripting.com
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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