stackmob

Getting a 501 error

你离开我真会死。 提交于 2019-12-24 08:55:41
问题 I am getting the following error when I am trying to run this code on the browser. "Error response Error code: 501 Message: Unsupported method ('POST'). Error code explanation: 501 - Server does not support this operation." The following errors were in the browser console: "1. Failed to load resource: the server responded with a status of 404 (File not found) 'http://localhost:8002/js/jquery-1.3.2.min.js' Resource interpreted as Script but transferred with MIME type text/plain: pquery-0.0.1

How to get the sm_owner User object using StackMob as backend

蓝咒 提交于 2019-12-13 06:49:48
问题 I find out the User has a sm_owner field. But how do I get the user using sm_owner. My code is like this: [self.client getLoggedInUserOnSuccess:^(NSDictionary *result) { NSString *currentLogginedUser = [result valueForKey:@"sm_owner"]; NSFetchRequest *request = [[NSFetchRequest alloc] init]; NSEntityDescription *entity = [NSEntityDescription entityForName:@"User" inManagedObjectContext:self.managedOjbectContext]; [request setEntity:entity]; NSPredicate *predicate = [NSPredicate

Markers not showing on map after stackmob query

强颜欢笑 提交于 2019-12-11 19:55:40
问题 i'm trying to add markers to my map, the coordinates and names are contained in a stop object that i'm getting through a query to a stackmob database, the program runs fine displays the map, but for some reason it looks like its not executing the addmarker instruction, won't even loop through the for in the addMarkers method. Also i'm not getting errors or messages of any kind in the console or LogCat, i'm running out of ideas to solve this. public class MainActivity extends Activity {

can't Find location within milesof using stackmob as backend

孤街醉人 提交于 2019-12-11 17:58:51
问题 I am trying to find the locations, but I am getting a empty array returned. It succeeded, but got nothing back. In the object brower, i can say there are values in the "location". I have saved several locations using my current location. Will this work? - (void)geoQuery { MKCoordinateRegion region; region = MKCoordinateRegionMakeWithDistance(locationController.locationManager.location.coordinate, 5000, 5000); [self.mapView setRegion:region animated:YES]; SMQuery *query = [[SMQuery alloc]

iOS Stackmob SDK(2.0.0) (relationships) Bug

坚强是说给别人听的谎言 提交于 2019-12-11 10:39:27
问题 I have found a critical bug with relationships. I try to set relationship for my SMUserManagedObject after saving in the block "saveOnSuccess" and have a crash with a log: * Terminating app due to uncaught exception 'SMExceptionIncompatibleObject', reason: 'No Attribute found for entity User which maps to the primary key on StackMob. The Attribute name should match one of the following formats: lowercasedEntityNameId or lowercasedEntityName_id. If the managed object subclass for User inherits

NSPredicate traversing relationship (StackMob)

放肆的年华 提交于 2019-12-01 08:15:26
I have been scouring Apple's Predicate Programming Guide and SO as well, trying to determine the correct way to write a predicate for a certain fetch request. It seems like the way I am attempting to use dot notation to traverse a relationship is not being respected by the request. NSEntityDescription *entity = [NSEntityDescription entityForName:@"Task" inManagedObjectContext:context]; [fetchRequest setEntity:entity]; NSPredicate *predicate = [NSPredicate predicateWithFormat:@"project.user == %@", self.user]; [fetchRequest setPredicate:predicate]; User, Project, and Task are all core data

NSPredicate traversing relationship (StackMob)

百般思念 提交于 2019-12-01 05:56:28
问题 I have been scouring Apple's Predicate Programming Guide and SO as well, trying to determine the correct way to write a predicate for a certain fetch request. It seems like the way I am attempting to use dot notation to traverse a relationship is not being respected by the request. NSEntityDescription *entity = [NSEntityDescription entityForName:@"Task" inManagedObjectContext:context]; [fetchRequest setEntity:entity]; NSPredicate *predicate = [NSPredicate predicateWithFormat:@"project.user ==