README.md:
The Parse Cloud Code job queue. Define, queue, and process work on a constant basis.
First, you'll want to define some jobs:
// The before save handler will pass information to the after save handler to disable the | |
// after save handler from creating a loop. | |
// It also prevents client side code from triggering the silent change, by using a different flag | |
// that the client should never see. | |
// It should only be visible in the data browser, won't be sent to a client in an undefined state. | |
Parse.Cloud.beforeSave('TestObject', function(request, response) { | |
handleComingFromTask(request.object); | |
response.success(); | |
}); |
using UnityEngine; | |
using System.Collections; | |
using Parse; | |
public class PushBehaviorScript : MonoBehaviour { | |
bool tokenSent = false; | |
public ParseObject currentInstallation = null; | |
void Start () { |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using MonoTouch.Foundation; | |
using MonoTouch.UIKit; | |
using Xamarin.Forms; | |
using Parse; |
var moment = require('moment'); | |
TestObjectMeta = Parse.Object.extend("TestObject_meta"); | |
Parse.Cloud.beforeSave("TestObject", function(request, response) { | |
var obj = request.object; | |
if (obj.isNew()) { | |
var at = moment(); | |
var metadata = new TestObjectMeta(); | |
metadata.set('year', at.year()); |
// cclocal | |
Parse = require('parse'); | |
Parse.Cloud = {}; | |
Parse.Cloud.Functions = {}; | |
Parse.Cloud.define = function(funcName,func) { | |
Parse.Cloud.Functions[funcName] = func; |
- Open Xcode | |
- CMD+ALT+SHIFT+K | |
- Answer "Yes" | |
- Build again | |
Cleaning derived data folder is a common scenario. | |
Oh - one more thing... | |
Do not override Parse.framework folder, but delete-add it. |
// Add these two method declarations to the Parse.framework/Headers/PFObject.h header file in your Xcode project: | |
- (void)serializeToDataFile:(NSString *)filename; | |
+ (id)objectFromDataFile:(NSString *)filename; | |
// and you can start saving and loading PFObject on disk | |
PFObject *object = [PFObject objectWithClassName:@"Todo"]; | |
[object setObject:@"Sample Text" forKey:@"text"]; |