nssortdescriptor Questions
3
Solved
I'm aware of the limitations of generics in Swift and why they exist so this is not a question about compiler errors. Rather, I occasionally run into situations that seem as though they should be p...
Guernica asked 16/2, 2018 at 2:27
7
Solved
I have created a sort descriptor to sort a plist response coming from my server. This works well with sort key having values upto 9. With more than 10 items I see abrupt results with sort key arran...
Evade asked 12/3, 2012 at 20:58
2
I am sorting an NSMutableArray as follows:
NSSortDescriptor *sortDescriptor;
sortDescriptor = [[[NSSortDescriptor alloc] initWithKey:str_key ascending:bool_asc_desc] autorelease];
NSArray *sort...
Bikaner asked 20/6, 2012 at 7:13
3
Solved
App has contentid coming in as a number string from a json file:
let contentid: AnyObject! = jsonFeed["contentid"]
let stream:Dictionary = [
"contentId": contentid as! String,
]
It is later sa...
Oliveolivegreen asked 13/5, 2015 at 12:58
5
Solved
I have an NSArrayController and I would like to sort the contents so that anything with English alphabets are sorted first and then anything with numbers and non English characters are sorted last....
Dickens asked 23/11, 2011 at 13:10
4
Solved
Does anyone know how to fetch some results sorting them alphabetically but ignoring case?
Tithable asked 6/1, 2010 at 13:23
3
Solved
We cannot use NSFetchRequest without providing NSSortDescriptor(s). All i want to do is fetch the results and show them in the order in which they were created. Is there a built-in way to do that?,...
Selfstarter asked 3/8, 2010 at 14:46
2
Solved
I want to show a formatted date in the section header of a table view..
I used the following code.but its throwing an exception *** Terminating app due to uncaught exception 'NSInvalidArgumentExce...
Minutiae asked 12/4, 2013 at 12:57
2
Solved
This is a pretty straightforward problem.
I have a CoreData database that gets initialized with a local file.
The CoreData schema that looks like this:
Category -->> Objections -->> ...
Alek asked 24/2, 2014 at 18:33
4
Solved
In my Xcode project I have the following classes:
Address
@interface LDAddress : NSObject{
NSString *street;
NSString *zip;
NSString *city;
float latitude;
float longitude;
}
@property (non...
Hensel asked 1/6, 2012 at 15:41
2
Solved
I have a set of entity objects in my iOS Core Data database that describe something at a location. Let's call the entity Location. I have implemented this by having two attributes on Location that ...
Abba asked 6/12, 2012 at 19:31
2
Setup: I have a collection of parent objects, call them ObjectA. Each ObjectA has a one-to-many relation to ObjectB. So, one ObjectA may contain 0..n ObjectB-s, and each ObjectB has a specific Obje...
Tillo asked 5/10, 2012 at 14:55
1
Solved
How would I sort a NSFetchRequest with that the date property of the managed object. So that it creates a array with the dates going in order?
Here is my code so far...
var request : NSFetchRequ...
Psychosis asked 11/10, 2014 at 14:23
1
Solved
I have a UITableView fed from Core Data with an NSFetchedResultsController returning the Location entities. The default sorting (and section headers) is via the first letter of the entity's name. T...
Placate asked 5/9, 2014 at 10:33
2
Solved
In fetchedResultsController while setting the NSSortDescriptor iam getting this error unsupported NSSortDescriptor (comparator blocks are not supported).
NSFetchRequest *fetchRequest = [[NSFetchR...
Disarmament asked 18/2, 2013 at 14:31
2
Solved
I have three sections in my tableView:
Today
Upcoming
Past
When the app launches, the view controller that's launched has an NSFetchedResultsController. If I delete the app and relaunch it in ...
Catercornered asked 30/6, 2014 at 3:7
2
Solved
Lets suppose I have an array like this
NSArray* arr = @[@"1",@"4",@"2",@"8",@"11",@"10",@"14",@"9"]; //note: strings containing numbers
and I want to sort them like this: [1,2,4,8,9,10,11...
Felly asked 20/6, 2014 at 16:14
3
Solved
I got stuck in another problem again but after a long time.
This time I have database (Core Data), having an attribute of numbers which contains integer numbers like 213879,123,4,345,56567 and so....
Yokoyama asked 14/12, 2012 at 7:12
2
Solved
I have a array with 10 elements called products which is sorted by default, this is the current log now.
for (int i=0;i<products.count; i++)
{
NSLog(@"%@",products[i]);
}
The Output:
...
Fabiolafabiolas asked 24/12, 2013 at 9:43
5
I'm writing an iOS app which has store of person records, and needs to display lists them sorted in particular ways. There are a variable number of these orderings, and they are generated on the fl...
Vulgate asked 6/2, 2011 at 20:29
1
Solved
It's a long standing problem when using Core Data to-many-relationships that it is very hard to sort a fetch request using NSSortDescriptor on a Parent entity based on the number of children are in...
Deflocculate asked 21/3, 2013 at 14:52
1
Solved
Ok, I initially wanted to make NSSortDescriptor of a request for NSFetchedResultsController to sort based on the property in my NSManagedObject subclass, but It obviously won't do it, because NSFet...
Halcomb asked 25/7, 2013 at 9:2
0
I have a database of Cards and Printings that I have in one store (reference data) and my user's data of Containers and CardInstances in another store (as Apple suggests). Each user's card is a tab...
Eighty asked 6/5, 2013 at 2:36
4
Solved
I have an array of class A objects, let it be detailsArray.
Class A has date, name as properties.
Can any one suggest a good method to sort this array based on date?
How can I use NSSortDe...
Dispraise asked 21/3, 2013 at 6:26
1
Solved
I have a Word : NSManagedObject subclass that I'm trying to group by the first letter of the word. In each section I'm then trying to sort by the length property while maintain the alphanumeric sor...
Guanaco asked 29/1, 2013 at 3:27
1 Next >
© 2022 - 2024 — McMap. All rights reserved.