Swift : iterating over NSArrayController arrangedObjects
Swift : iterating over NSArrayController arrangedObjects
- Subject: Swift : iterating over NSArrayController arrangedObjects
- From: Devarshi Kulshreshtha <email@hidden>
- Date: Sun, 21 Jun 2015 19:14:52 +0530
I have an array controller which stores managed objects of entity
'Student', I am trying to iterate over its content using below code:
for (index, element) in downloadingFilesArrayController.arrangedObjects{
// want to do some useful things on element
}
for some reasons it is showing compilation error:
'Type AnyObject does not conform to protocol SequenceType'
Any ideas on how can fix it?
--
Thanks,
Devarshi
_______________________________________________
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