nssortdescriptor Questions

1

I have an NSScrollView wich is bound with an ArrayController. I need to sort the content alphabetically. I've tried to do this with bindings but I can't find the right thing to bind. I used the fol...

3

Solved

I'm doing some small work on sorting the date strings in the NSMutableArray, i'm getting the array from the sqlite db. If you print the array it is showing like this date strings are ( "2011-05-...
Campanula asked 2/12, 2012 at 7:26

2

I'm currently trying to sort my array of objects into day order so they can be grouped in the correct order i.e. Monday, Tuesday, Wednesday then by start time. Only problem is I can't figure out h...
Diaconicon asked 30/1, 2010 at 14:17

2

Solved

I have an custom object which contains time period based information, for instance the attributes endCalYear, endMonth and periodLength which indicate the end of each period and its length. I woul...
Honeyman asked 16/10, 2012 at 15:13

1

Solved

I have a table view that shows contacts sorted by alphabetic ordering and divide it to sections. i am using - NSSortDescriptor *sortDescriptor = [[NSSortDescriptor alloc] initWithKey:[dataSource ...
Masterstroke asked 30/1, 2011 at 7:52

3

I'm trying to sort my NSFetchRequest result using a NSSortdescriptor using a key pointing to a NSDate value. My fetch results come out totally random for no clear reason. The NSManagedObjectContex...
Bonnee asked 20/4, 2012 at 21:31

1

Solved

I'm trying to sort by date then start time. Start time is minutes from midnight. So if the start time is < 100 it will not sort properly. - (NSFetchedResultsController *)fetchedResultsControlle...
Immunology asked 27/3, 2012 at 22:13

1

Solved

I'm working on my first Core Data-backed app and am having trouble figuring out how to set up an NSFetchedResultsController properly. I have two entities: /-----------\ /-----------\ | List | | Li...
Geosyncline asked 19/12, 2011 at 21:37

2

Solved

I have successfully sorted the data I have by my sort key lastName, but I want to know how to sort by lastName, and then by firstName. Here is the code I used to sort by lastName NSSortDescriptor ...
Cory asked 7/12, 2011 at 5:4

2

Solved

Let's say I have objects with different statuses. Statuses are from 0 to 2. I need to sort them using NSSortDescriptor in this way: 1 2 0 Any suggestions?
Lafferty asked 24/8, 2011 at 15:54

6

Solved

I'm a bit of a NSSortDescriptor n00b. I think, though, it is the right tool for what I need to do: I have an NSArray consisting of objects with keys, say, "name" and "time". Instead of verbalizing...
Camber asked 3/2, 2010 at 7:16

2

Solved

I have a CoreData entity with two attributes. One called 'position' the other called 'positionChange'. Both of them are integers where the position attribute is the current position and the positio...
Gristmill asked 30/6, 2011 at 13:3

1

Solved

I'm building an open-source clone of iPhone's native Messages app called AcaniChat on GitHub. I have a Conversation entity and a Message entity with a sentDate attribute. Each Conversation can hav...
Jejune asked 24/4, 2011 at 1:44

1

Solved

I have an unordered array with instances of the following class: @interface Place : NSObject { } @property (nonatomic, copy) NSString *country; @property (nonatomic, copy) NSString *city; @prope...

1

Solved

I want to use a sortdescriptor with a custom comparator NSSortDescriptor *sortDescriptor = [[NSSortDescriptor alloc] initWithKey:@"object.dateTime" ascending:YES selector:@selector(compareOb...
Cryptozoite asked 15/3, 2011 at 9:11

1

Solved

I want to provide custom sorting using NSFetchedResultsController and NSSortDescriptor. As custom sorting via NSSortDescriptor message -(id)initWithKey:ascending:selector: is not possible (see her...

1

Solved

I'm using Core Data to cache a decent amount of information, and I have a To-Many relationship set up among my managed objects. Naturally I use an NSFetchRequest to fetch an array of the singular s...

1

Solved

I'm developing for iPhone iOS 4.0 and I have a list of birthday objects (date + name) stored using Core Data. I want to use the NSFetchedResultsController to retrieve this list sorted by the next b...
Higdon asked 11/8, 2010 at 5:30

© 2022 - 2024 — McMap. All rights reserved.