cocoa - Records in NSMutableArray not sorted -


i using nsarraycontroller display records in nstableview. reading selected record using [recordarray objectatindex:[tableview selectedrow]]. working fine when don't click of headers in table sort data. when click header sort data, data sorted on screen not in recordarray , order of recordarray not match order of data in table view anymore.

my recordarray of type nsmutablearray , contains records of type browserrecord. browserrecord contains fields name , type (both nsstring , readwrite).

i've followed guidelines , examples found in books , on internet , find confusing doesn't work me (my previous version of code without core-data working fine). must doing strange. hope can point me out right direction.

your array controller managing sorted contents. ask -arrangedobjects.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -