Skip to content
Browse files

Update to version 1.1.10

  • Loading branch information...
1 parent edb18d9 commit 1fb1c8f74bf2d80624960f8b1180c3e9860ce678 @gonecoding committed Oct 2, 2012
Showing with 5,524 additions and 320 deletions.
  1. +0 −142 Parse.framework/Versions/1.0.58/Headers/PF_FBRequest.h
  2. BIN Parse.framework/Versions/1.0.58/Parse
  3. 0 Parse.framework/Versions/{1.0.58 → 1.1.10}/Headers/PFACL.h
  4. 0 Parse.framework/Versions/{1.0.58 → 1.1.10}/Headers/PFAnonymousUtils.h
  5. +47 −0 Parse.framework/Versions/1.1.10/Headers/PFCloud.h
  6. +20 −1 Parse.framework/Versions/{1.0.58 → 1.1.10}/Headers/PFConstants.h
  7. +69 −24 Parse.framework/Versions/{1.0.58 → 1.1.10}/Headers/PFFacebookUtils.h
  8. 0 Parse.framework/Versions/{1.0.58 → 1.1.10}/Headers/PFFile.h
  9. 0 Parse.framework/Versions/{1.0.58 → 1.1.10}/Headers/PFGeoPoint.h
  10. 0 Parse.framework/Versions/{1.0.58 → 1.1.10}/Headers/PFImageView.h
  11. +22 −4 Parse.framework/Versions/{1.0.58 → 1.1.10}/Headers/PFInstallation.h
  12. +6 −0 Parse.framework/Versions/{1.0.58 → 1.1.10}/Headers/PFLogInView.h
  13. 0 Parse.framework/Versions/{1.0.58 → 1.1.10}/Headers/PFLogInViewController.h
  14. +30 −16 Parse.framework/Versions/{1.0.58 → 1.1.10}/Headers/PFObject.h
  15. +60 −0 Parse.framework/Versions/1.1.10/Headers/PFProduct.h
  16. +22 −0 Parse.framework/Versions/1.1.10/Headers/PFProductTableViewController.h
  17. +61 −0 Parse.framework/Versions/1.1.10/Headers/PFPurchase.h
  18. +22 −0 Parse.framework/Versions/1.1.10/Headers/PFPurchaseTableViewCell.h
  19. +76 −0 Parse.framework/Versions/{1.0.58 → 1.1.10}/Headers/PFPush.h
  20. +2 −2 Parse.framework/Versions/{1.0.58 → 1.1.10}/Headers/PFQuery.h
  21. +4 −23 Parse.framework/Versions/{1.0.58 → 1.1.10}/Headers/PFQueryTableViewController.h
  22. +0 −4 Parse.framework/Versions/{1.0.58 → 1.1.10}/Headers/PFRelation.h
  23. 0 Parse.framework/Versions/{1.0.58 → 1.1.10}/Headers/PFRole.h
  24. 0 Parse.framework/Versions/{1.0.58 → 1.1.10}/Headers/PFSignUpView.h
  25. 0 Parse.framework/Versions/{1.0.58 → 1.1.10}/Headers/PFSignUpViewController.h
  26. 0 Parse.framework/Versions/{1.0.58 → 1.1.10}/Headers/PFTableViewCell.h
  27. 0 Parse.framework/Versions/{1.0.58 → 1.1.10}/Headers/PFTwitterUtils.h
  28. +0 −77 Parse.framework/Versions/{1.0.58 → 1.1.10}/Headers/PFUser.h
  29. 0 Parse.framework/Versions/{1.0.58 → 1.1.10}/Headers/PF_EGORefreshTableHeaderView.h
  30. +42 −0 Parse.framework/Versions/1.1.10/Headers/PF_FBCacheDescriptor.h
  31. +73 −0 Parse.framework/Versions/1.1.10/Headers/PF_FBCacheIndex.h
  32. +1 −1 Parse.framework/Versions/{1.0.58 → 1.1.10}/Headers/PF_FBConnect.h
  33. +29 −0 Parse.framework/Versions/1.1.10/Headers/PF_FBContentLink.h
  34. +44 −0 Parse.framework/Versions/1.1.10/Headers/PF_FBDataDiskCache.h
  35. 0 Parse.framework/Versions/{1.0.58 → 1.1.10}/Headers/PF_FBDialog.h
  36. +123 −0 Parse.framework/Versions/1.1.10/Headers/PF_FBError.h
  37. +1 −1 Parse.framework/Versions/{1.0.58 → 1.1.10}/Headers/PF_FBFrictionlessRequestSettings.h
  38. +91 −0 Parse.framework/Versions/1.1.10/Headers/PF_FBFriendPickerCacheDescriptor.h
  39. +33 −0 Parse.framework/Versions/1.1.10/Headers/PF_FBFriendPickerViewController+Internal.h
  40. +290 −0 Parse.framework/Versions/1.1.10/Headers/PF_FBFriendPickerViewController.h
  41. +77 −0 Parse.framework/Versions/1.1.10/Headers/PF_FBGraphLocation.h
  42. +224 −0 Parse.framework/Versions/1.1.10/Headers/PF_FBGraphObject.h
  43. +63 −0 Parse.framework/Versions/1.1.10/Headers/PF_FBGraphObjectPagingLoader.h
  44. +36 −0 Parse.framework/Versions/1.1.10/Headers/PF_FBGraphObjectTableCell.h
  45. +101 −0 Parse.framework/Versions/1.1.10/Headers/PF_FBGraphObjectTableDataSource.h
  46. +38 −0 Parse.framework/Versions/1.1.10/Headers/PF_FBGraphObjectTableSelection.h
  47. +60 −0 Parse.framework/Versions/1.1.10/Headers/PF_FBGraphPlace.h
  48. +90 −0 Parse.framework/Versions/1.1.10/Headers/PF_FBGraphUser.h
  49. +86 −0 Parse.framework/Versions/1.1.10/Headers/PF_FBLogger.h
  50. 0 Parse.framework/Versions/{1.0.58 → 1.1.10}/Headers/PF_FBLoginDialog.h
  51. +160 −0 Parse.framework/Versions/1.1.10/Headers/PF_FBLoginView.h
  52. +170 −0 Parse.framework/Versions/1.1.10/Headers/PF_FBNativeDialogs.h
  53. +127 −0 Parse.framework/Versions/1.1.10/Headers/PF_FBOpenGraphAction.h
  54. +36 −0 Parse.framework/Versions/1.1.10/Headers/PF_FBPlacePickerCacheDescriptor.h
  55. +38 −0 Parse.framework/Versions/1.1.10/Headers/PF_FBPlacePickerViewController+Internal.h
  56. +247 −0 Parse.framework/Versions/1.1.10/Headers/PF_FBPlacePickerViewController.h
  57. +80 −0 Parse.framework/Versions/1.1.10/Headers/PF_FBProfilePictureView.h
  58. +504 −0 Parse.framework/Versions/1.1.10/Headers/PF_FBRequest.h
  59. +41 −0 Parse.framework/Versions/1.1.10/Headers/PF_FBRequestBody.h
  60. +26 −0 Parse.framework/Versions/1.1.10/Headers/PF_FBRequestConnection+Internal.h
  61. +389 −0 Parse.framework/Versions/1.1.10/Headers/PF_FBRequestConnection.h
  62. +2 −0 Parse.framework/Versions/1.1.10/Headers/PF_FBSDKVersion.h
  63. +29 −0 Parse.framework/Versions/1.1.10/Headers/PF_FBSession+Internal.h
  64. +43 −0 Parse.framework/Versions/1.1.10/Headers/PF_FBSession+Protected.h
  65. +617 −0 Parse.framework/Versions/1.1.10/Headers/PF_FBSession.h
  66. +32 −0 Parse.framework/Versions/1.1.10/Headers/PF_FBSessionManualTokenCachingStrategy.h
  67. +121 −0 Parse.framework/Versions/1.1.10/Headers/PF_FBSessionTokenCachingStrategy.h
  68. +23 −0 Parse.framework/Versions/1.1.10/Headers/PF_FBSettings+Internal.h
  69. +84 −0 Parse.framework/Versions/1.1.10/Headers/PF_FBSettings.h
  70. +25 −0 Parse.framework/Versions/1.1.10/Headers/PF_FBTestSession+Internal.h
  71. +135 −0 Parse.framework/Versions/1.1.10/Headers/PF_FBTestSession.h
  72. +36 −0 Parse.framework/Versions/1.1.10/Headers/PF_FBURLConnection.h
  73. +125 −0 Parse.framework/Versions/1.1.10/Headers/PF_FBUserSettingsViewController.h
  74. +55 −0 Parse.framework/Versions/1.1.10/Headers/PF_FBUtility.h
  75. +22 −0 Parse.framework/Versions/1.1.10/Headers/PF_FBViewController+Internal.h
  76. +123 −0 Parse.framework/Versions/1.1.10/Headers/PF_FBViewController.h
  77. +135 −7 Parse.framework/Versions/{1.0.58 → 1.1.10}/Headers/PF_Facebook.h
  78. +134 −0 Parse.framework/Versions/1.1.10/Headers/PF_FacebookSDK.h
  79. 0 Parse.framework/Versions/{1.0.58 → 1.1.10}/Headers/PF_MBProgressHUD.h
  80. 0 Parse.framework/Versions/{1.0.58 → 1.1.10}/Headers/PF_Twitter.h
  81. +14 −10 Parse.framework/Versions/{1.0.58 → 1.1.10}/Headers/Parse.h
  82. BIN Parse.framework/Versions/1.1.10/Parse
  83. 0 Parse.framework/Versions/{1.0.58 → 1.1.10}/Resources/Info.plist
  84. BIN Parse.framework/Versions/1.1.10/Resources/Localizable.strings
  85. +1 −1 Parse.framework/Versions/Current
  86. +6 −6 Parse.podspec
  87. +1 −1 README.md
View
142 Parse.framework/Versions/1.0.58/Headers/PF_FBRequest.h
@@ -1,142 +0,0 @@
-/*
- * Copyright 2010 Facebook
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
-
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#import <Foundation/Foundation.h>
-#import <UIKit/UIKit.h>
-
-@protocol PF_FBRequestDelegate;
-
-enum {
- PF_kFBRequestStateReady,
- PF_kFBRequestStateLoading,
- PF_kFBRequestStateComplete,
- PF_kFBRequestStateError
-};
-typedef NSUInteger PF_FBRequestState;
-
-/**
- * Do not use this interface directly, instead, use method in Facebook.h
- */
-@interface PF_FBRequest : NSObject {
- id<PF_FBRequestDelegate> _delegate;
- NSString* _url;
- NSString* _httpMethod;
- NSMutableDictionary* _params;
- NSURLConnection* _connection;
- NSMutableData* _responseText;
- PF_FBRequestState _state;
- NSError* _error;
- BOOL _sessionDidExpire;
-}
-
-
-@property(nonatomic,assign) id<PF_FBRequestDelegate> delegate;
-
-/**
- * The URL which will be contacted to execute the request.
- */
-@property(nonatomic,copy) NSString* url;
-
-/**
- * The API method which will be called.
- */
-@property(nonatomic,copy) NSString* httpMethod;
-
-/**
- * The dictionary of parameters to pass to the method.
- *
- * These values in the dictionary will be converted to strings using the
- * standard Objective-C object-to-string conversion facilities.
- */
-@property(nonatomic,retain) NSMutableDictionary* params;
-@property(nonatomic,retain) NSURLConnection* connection;
-@property(nonatomic,retain) NSMutableData* responseText;
-@property(nonatomic,readonly) PF_FBRequestState state;
-@property(nonatomic,readonly) BOOL sessionDidExpire;
-
-/**
- * Error returned by the server in case of request's failure (or nil otherwise).
- */
-@property(nonatomic,retain) NSError* error;
-
-
-+ (NSString*)serializeURL:(NSString *)baseUrl
- params:(NSDictionary *)params;
-
-+ (NSString*)serializeURL:(NSString *)baseUrl
- params:(NSDictionary *)params
- httpMethod:(NSString *)httpMethod;
-
-+ (PF_FBRequest*)getRequestWithParams:(NSMutableDictionary *) params
- httpMethod:(NSString *) httpMethod
- delegate:(id<PF_FBRequestDelegate>)delegate
- requestURL:(NSString *) url;
-- (BOOL) loading;
-
-- (void) connect;
-
-@end
-
-////////////////////////////////////////////////////////////////////////////////
-
-/*
- *Your application should implement this delegate
- */
-@protocol PF_FBRequestDelegate <NSObject>
-
-@optional
-
-/**
- * Called just before the request is sent to the server.
- */
-- (void)requestLoading:(PF_FBRequest *)request;
-
-/**
- * Called when the Facebook API request has returned a response.
- *
- * This callback gives you access to the raw response. It's called before
- * (void)request:(FBRequest *)request didLoad:(id)result,
- * which is passed the parsed response object.
- */
-- (void)request:(PF_FBRequest *)request didReceiveResponse:(NSURLResponse *)response;
-
-/**
- * Called when an error prevents the request from completing successfully.
- */
-- (void)request:(PF_FBRequest *)request didFailWithError:(NSError *)error;
-
-/**
- * Called when a request returns and its response has been parsed into
- * an object.
- *
- * The resulting object may be a dictionary, an array or a string, depending
- * on the format of the API response. If you need access to the raw response,
- * use:
- *
- * (void)request:(FBRequest *)request
- * didReceiveResponse:(NSURLResponse *)response
- */
-- (void)request:(PF_FBRequest *)request didLoad:(id)result;
-
-/**
- * Called when a request returns a response.
- *
- * The result object is the raw response from the server of type NSData
- */
-- (void)request:(PF_FBRequest *)request didLoadRawResponse:(NSData *)data;
-
-@end
-
View
BIN Parse.framework/Versions/1.0.58/Parse
Binary file not shown.
View
0 ...framework/Versions/1.0.58/Headers/PFACL.h → ...framework/Versions/1.1.10/Headers/PFACL.h
File renamed without changes.
View
0 ...ersions/1.0.58/Headers/PFAnonymousUtils.h → ...ersions/1.1.10/Headers/PFAnonymousUtils.h
File renamed without changes.
View
47 Parse.framework/Versions/1.1.10/Headers/PFCloud.h
@@ -0,0 +1,47 @@
+//
+// PFCloud.h
+// Parse
+//
+// Created by Shyam Jayaraman on 8/20/12.
+// Copyright (c) 2012 Parse Inc. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+#import "PFConstants.h"
+
+@interface PFCloud : NSObject
+
+/*!
+ Calls the given cloud function with the parameters passed in.
+ @param function The function name to call.
+ @param parameters The parameters to send to the function.
+ @result The response from the cloud function.
+ */
++ (id)callFunction:(NSString *)function withParameters:(NSDictionary *)parameters;
+
+/*!
+ Calls the given cloud function with the parameters passed in and sets the error if there is one.
+ @param function The function name to call.
+ @param parameters The parameters to send to the function.
+ @param error Pointer to an NSError that will be set if necessary.
+ @result The response from the cloud function. This result could be a NSDictionary, an NSArray, NSInteger or NSString.
+ */
++ (id)callFunction:(NSString *)function withParameters:(NSDictionary *)parameters error:(NSError **)error;
+
+/*!
+ Calls the given cloud function with the parameters provided asynchronously and calls the given block when it is done.
+ @param function The function name to call.
+ @param parameters The parameters to send to the function.
+ @param block The block to execute. The block should have the following argument signature:(id result, NSError *error).
+ */
++ (void)callFunctionInBackground:(NSString *)function withParameters:(NSDictionary *)parameters block:(PFIdResultBlock)block;
+
+/*!
+ Calls the given cloud function with the parameters provided asynchronously and runs the callback when it is done.
+ @param function The function name to call.
+ @param parameters The parameters to send to the function.
+ @param target The object to call the selector on.
+ @param selector The selector to call. It should have the following signature: (void)callbackWithResult:(id) result error:(NSError *)error. result will be nil if error is set and vice versa.
+ */
++ (void)callFunctionInBackground:(NSString *)function withParameters:(NSDictionary *)parameters target:(id)target selector:(SEL)selector;
+@end
View
21 ...ork/Versions/1.0.58/Headers/PFConstants.h → ...ork/Versions/1.1.10/Headers/PFConstants.h
@@ -6,7 +6,7 @@
@class PFUser;
// Version
-#define PARSE_VERSION @"1.0.58"
+#define PARSE_VERSION @"1.1.10"
extern NSInteger const PARSE_API_VERSION;
@@ -76,6 +76,24 @@ extern NSInteger const kPFErrorDuplicateValue;
extern NSInteger const kPFErrorInvalidRoleName;
/*! @abstract 140: Exceeded an application quota. Upgrade to resolve. */
extern NSInteger const kPFErrorExceededQuota;
+/*! @abstract 141: Cloud Code script had an error. */
+extern NSInteger const kPFScriptError;
+/*! @abstract 142: Cloud Code validation failed. */
+extern NSInteger const kPFValidationError;
+/*! @abstract 143: Product purchase receipt is missing */
+extern NSInteger const kPFErrorReceiptMissing;
+/*! @abstract 144: Product purchase receipt is invalid */
+extern NSInteger const kPFErrorInvalidPurchaseReceipt;
+/*! @abstract 145: Payment is disabled on this device */
+extern NSInteger const kPFErrorPaymentDisabled;
+/*! @abstract 146: The product identifier is invalid */
+extern NSInteger const kPFErrorInvalidProductIdentifier;
+/*! @abstract 147: The product is not found in the App Store */
+extern NSInteger const kPFErrorProductNotFoundInAppStore;
+/*! @abstract 148: The Apple server response is not valid */
+extern NSInteger const kPFErrorInvalidServerResponse;
+/*! @abstract 149: Product fails to download due to file system error */
+extern NSInteger const kPFErrorProductDownloadFileSystemFailure;
/*! @abstract 150: Fail to convert data to image. */
extern NSInteger const kPFErrorInvalidImageData;
/*! @abstract 151: Unsaved file. */
@@ -120,5 +138,6 @@ typedef void (^PFSetResultBlock)(NSSet *channels, NSError *error);
typedef void (^PFUserResultBlock)(PFUser *user, NSError *error);
typedef void (^PFDataResultBlock)(NSData *data, NSError *error);
typedef void (^PFDataStreamResultBlock)(NSInputStream *stream, NSError *error);
+typedef void (^PFStringResultBlock)(NSString *string, NSError *error);
typedef void (^PFIdResultBlock)(id object, NSError *error);
typedef void (^PFProgressBlock)(int percentDone);
View
93 ...Versions/1.0.58/Headers/PFFacebookUtils.h → ...Versions/1.1.10/Headers/PFFacebookUtils.h
@@ -16,23 +16,23 @@
/** @name Interacting With Facebook */
/*!
- Gets the instance of the Facebook object (from the Facebook SDK) that Parse uses.
- @result The Facebook instance.
+ Gets the Facebook session for the current user.
*/
-+ (PF_Facebook *)facebook;
++ (PF_FBSession *)session;
/*!
- Gets the instance of the Facebook object (from the Facebook SDK) that Parse uses.
- @param delegate Specify your own delegate for the Facebook object.
- @result The Facebook instance
+ Initializes the Facebook singleton. You must invoke this in order to use the Facebook functionality in Parse.
+ @param appId The Facebook application id that you are using with your Parse application.
*/
-+ (PF_Facebook *)facebookWithDelegate:(NSObject<PF_FBSessionDelegate> *)delegate;
++ (void)initializeWithApplicationId:(NSString *)appId;
/*!
Initializes the Facebook singleton. You must invoke this in order to use the Facebook functionality in Parse.
@param appId The Facebook application id that you are using with your Parse application.
+ @param urlSchemeSuffix The URL suffix for this application - used when multiple applications with the same
+ Facebook application ID may be on the same device.
*/
-+ (void)initializeWithApplicationId:(NSString *)appId;
++ (void)initializeWithApplicationId:(NSString *)appId urlSchemeSuffix:(NSString *)urlSchemeSuffix;
/*!
Whether the user has their account linked to Facebook.
@@ -201,14 +201,69 @@
*/
+ (void)unlinkUserInBackground:(PFUser *)user target:(id)target selector:(SEL)selector;
-/** @name Extending Facebook Access Tokens */
+/** @name Obtaining new permissions */
+
+/*!
+ Requests new Facebook publish permissions for the given user. This may prompt the user to
+ reauthorize the application. The user will be saved as part of this operation.
+ @param user User to request new permissions for. The user must be linked to Facebook.
+ @param permissions The new publishing permissions to request.
+ @param audience The default audience for publishing permissions to request.
+ @param block The block to execute. The block should have the following argument signature: (BOOL succeeded, NSError *error)
+ */
++ (void)reauthorizeUser:(PFUser *)user
+ withPublishPermissions:(NSArray *)permissions
+ audience:(PF_FBSessionDefaultAudience)audience
+ block:(PFBooleanResultBlock)block;
+
+/*!
+ Requests new Facebook publish permissions for the given user. This may prompt the user to
+ reauthorize the application. The user will be saved as part of this operation.
+ @param user User to request new permissions for. The user must be linked to Facebook.
+ @param permissions The new publishing permissions to request.
+ @param audience The default audience for publishing permissions to request.
+ @param target Target object for the selector
+ @param selector The selector that will be called when the asynchronous request is complete.
+ */
++ (void)reauthorizeUser:(PFUser *)user
+ withPublishPermissions:(NSArray *)permissions
+ audience:(PF_FBSessionDefaultAudience)audience
+ target:(id)target
+ selector:(SEL)selector;
+
+/** @name Delegating URL Actions */
+
+/*!
+ Handles URLs being opened by your AppDelegate. Invoke and return this from application:handleOpenURL:
+ or application:openURL:sourceApplication:annotation in your AppDelegate.
+ @param url URL being opened by your application.
+ @result True if Facebook will handle this URL.
+ */
++ (BOOL)handleOpenURL:(NSURL *)url;
+
+/** @name Interacting With Facebook (Deprecated) */
+
+/*!
+ Gets the instance of the Facebook object (from the Facebook SDK) that Parse uses.
+ @result The Facebook instance.
+ */
++ (PF_Facebook *)facebook __attribute__ ((deprecated));
+
+/*!
+ Gets the instance of the Facebook object (from the Facebook SDK) that Parse uses.
+ @param delegate Specify your own delegate for the Facebook object.
+ @result The Facebook instance
+ */
++ (PF_Facebook *)facebookWithDelegate:(NSObject<PF_FBSessionDelegate> *)delegate __attribute__ ((deprecated));
+
+/** @name Extending Facebook Access Tokens (Deprecated) */
/*!
Whether the user has a Facebook access token that needs to be extended.
@param user User that is linked to Facebook and should be checked for access token extension.
@result True if the access token needs to be extended.
*/
-+ (BOOL)shouldExtendAccessTokenForUser:(PFUser *)user;
++ (BOOL)shouldExtendAccessTokenForUser:(PFUser *)user __attribute__ ((deprecated));
/*!
Extends the access token for a user using Facebook, and saves the refreshed access token back to the PFUser.
@@ -217,15 +272,15 @@
@param target Target object for the selector
@param selector The selector that will be called when the asynchronous request is complete.
*/
-+ (void)extendAccessTokenForUser:(PFUser *)user target:(id)target selector:(SEL)selector;
++ (void)extendAccessTokenForUser:(PFUser *)user target:(id)target selector:(SEL)selector __attribute__ ((deprecated));
/*!
Extends the access token for a user using Facebook, and saves the refreshed access token back to the PFUser.
@param user User whose access token should be extended
@param block The block to execute. The block should have the following argument signature:
(BOOL success, NSError *error)
*/
-+ (void)extendAccessTokenForUser:(PFUser *)user block:(PFBooleanResultBlock)block;
++ (void)extendAccessTokenForUser:(PFUser *)user block:(PFBooleanResultBlock)block __attribute__ ((deprecated));
/*!
If necessary, extends the access token for a user using Facebook, and saves the refreshed
@@ -236,7 +291,7 @@
@param selector The selector that will be called when the asynchronous request is complete.
@result True if the access token needed to be extended.
*/
-+ (BOOL)extendAccessTokenIfNeededForUser:(PFUser *)user target:(id)target selector:(SEL)selector;
++ (BOOL)extendAccessTokenIfNeededForUser:(PFUser *)user target:(id)target selector:(SEL)selector __attribute__ ((deprecated));
/*!
If necessary, extends the access token for a user using Facebook, and saves the refreshed
@@ -246,16 +301,6 @@
(BOOL success, NSError *error)
@result True if the access token needed to be extended.
*/
-+ (BOOL)extendAccessTokenIfNeededForUser:(PFUser *)user block:(PFBooleanResultBlock)block;
-
-/** @name Delegating URL Actions */
-
-/*!
- Handles URLs being opened by your AppDelegate. Invoke and return this from application:handleOpenURL:
- or application:openURL:sourceApplication:annotation in your AppDelegate.
- @param url URL being opened by your application.
- @result True if Facebook will handle this URL.
- */
-+ (BOOL)handleOpenURL:(NSURL *)url;
++ (BOOL)extendAccessTokenIfNeededForUser:(PFUser *)user block:(PFBooleanResultBlock)block __attribute__ ((deprecated));
@end
View
0 ...ramework/Versions/1.0.58/Headers/PFFile.h → ...ramework/Versions/1.1.10/Headers/PFFile.h
File renamed without changes.
View
0 ...work/Versions/1.0.58/Headers/PFGeoPoint.h → ...work/Versions/1.1.10/Headers/PFGeoPoint.h
File renamed without changes.
View
0 ...ork/Versions/1.0.58/Headers/PFImageView.h → ...ork/Versions/1.1.10/Headers/PFImageView.h
File renamed without changes.
View
26 .../Versions/1.0.58/Headers/PFInstallation.h → .../Versions/1.1.10/Headers/PFInstallation.h
@@ -8,15 +8,21 @@
#import <Foundation/Foundation.h>
#import "PFObject.h"
+#import "PFQuery.h"
/*!
A Parse Framework Installation Object that is a local representation of an
installation persisted to the Parse cloud. This class is a subclass of a
PFObject, and retains the same functionality of a PFObject, but also extends
it with installation-specific fields and related immutability and validity
- checks. A valid PFInstallation can only be instantiated via
- [PFInstallation currentInstallation], because the required identifier fields
- are readonly.
+ checks.
+
+ A valid PFInstallation can only be instantiated via
+ [PFInstallation currentInstallation] because the required identifier fields
+ are readonly. The timeZone and badge fields are also readonly properties which
+ are automatically updated to match the device's time zone and application badge
+ when the PFInstallation is saved, thus these fields might not reflect the
+ latest device state if the installation has not recently been saved.
PFInstallation objects which have a valid deviceToken and are saved to
the Parse cloud can be used to target push notifications.
@@ -30,7 +36,7 @@
/*!
Gets the currently-running installation from disk and returns an instance of
it. If this installation is not stored on disk, returns a PFInstallation
- with deviceType, installationId, and timeZone fields set to those of the
+ with deviceType and installationId fields set to those of the
current installation, and a deviceToken field set to the value stored by
[PFPush storeDeviceToken:]. In the latter case, if this installation matches
one in the Parse cloud, then calling save will fill in this installation's
@@ -40,6 +46,15 @@
*/
+ (PFInstallation *)currentInstallation;
+/** @name Targeting Installations */
+
+/*!
+ Creates a query for PFInstallation objects. The resulting query can only
+ be used for targeting a PFPush. Calling find methods on the resulting query
+ will raise an exception.
+ */
++ (PFQuery *)query;
+
/// The device type for the PFInstallation.
@property (nonatomic, readonly, retain) NSString *deviceType;
@@ -49,6 +64,9 @@
/// The device token for the PFInstallation.
@property (nonatomic, readonly, retain) NSString *deviceToken;
+/// The badge for the PFInstallation.
+@property (nonatomic, assign) NSInteger badge;
+
/// The timeZone for the PFInstallation.
@property (nonatomic, readonly, retain) NSString *timeZone;
View
6 ...ork/Versions/1.0.58/Headers/PFLogInView.h → ...ork/Versions/1.1.10/Headers/PFLogInView.h
@@ -67,6 +67,12 @@ typedef enum {
/// The dismiss button. It is nil if the element is not enabled.
@property (nonatomic, readonly, retain) UIButton *dismissButton;
+/// The facebook/twitter login label. It is only shown if the external login is enabled.
+@property (nonatomic, readonly, retain) UILabel *externalLogInLabel;
+
+/// The sign up label. It is only shown if sign up button is enabled.
+@property (nonatomic, readonly, retain) UILabel *signUpLabel;
+
@end
View
0 ...ns/1.0.58/Headers/PFLogInViewController.h → ...ns/1.1.10/Headers/PFLogInViewController.h
File renamed without changes.
View
46 ...mework/Versions/1.0.58/Headers/PFObject.h → ...mework/Versions/1.1.10/Headers/PFObject.h
@@ -9,31 +9,45 @@
A Parse Framework Object that is a local representation of data persisted to the Parse cloud. This is the
main class that is used to interact with objects in your app.
*/
-@class PFCommand;
+@class PFOperation;
@class PFRelation;
+
@interface PFObject : NSObject {
BOOL dirty;
BOOL hasBeenFetched;
-
- PFCommand *currentCommand;
-
+
+ PFOperation *currentOperation;
+
NSString *objectId;
NSString *className;
-
+
NSMutableDictionary *dataAvailability;
-
- NSMutableDictionary *data;
- NSMutableDictionary *operations;
-
+
+ // The data as it was known the last time it was fetched from the server.
+ // If the object has never been fetched, some keys on the server may not
+ // be present in this dictionary, while others may be known because of the
+ // result of a save.
+ NSMutableDictionary *serverData;
+
+ // An array of NSDictionary of NSString -> PFFieldOperation.
+ // Each dictionary has a subset of the object's keys as keys, and the
+ // changes to the value for that key as its value.
+ // There is always at least one dictionary of pending operations.
+ // Every time a save is started, a new dictionary is added to the end.
+ // Whenever a save completes, the new data is put into fetchedData, and
+ // a dictionary is removed from the start.
+ NSMutableArray *operationSetQueue;
+
+ // Our best estimate as to what the current data is, based on
+ // the last fetch from the server, and the set of pending operations.
+ NSMutableDictionary *estimatedData;
+
// A dictionary that maps id (objects) => PFJSONCache
NSMutableDictionary *hashedObjectsCache;
-
- // A set of dirty keys (strings)
- NSMutableSet *dirtyKeys;
-
+
NSDate *updatedAt;
NSDate *createdAt;
-
+
// Whether there is a save in progress.
BOOL isSaving;
}
@@ -80,12 +94,12 @@
/*!
When the object was last updated.
*/
-@property (readonly) NSDate *updatedAt;
+@property (nonatomic, retain, readonly) NSDate *updatedAt;
/*!
When the object was created.
*/
-@property (readonly) NSDate *createdAt;
+@property (nonatomic, retain, readonly) NSDate *createdAt;
/*!
The class name of the object.
View
60 Parse.framework/Versions/1.1.10/Headers/PFProduct.h
@@ -0,0 +1,60 @@
+//
+// PFProduct.h
+// Parse
+//
+// Created by Qian Wang on 6/7/12.
+// Copyright (c) 2012 Parse Inc. All rights reserved.
+//
+
+#import "PFObject.h"
+#import "PFFile.h"
+
+/*!
+ Represents an in-app purchase product on the Parse server.
+ By default, products can only be created via the data browser; saving a PFProduct
+ will result in error. However, the products' metadata information can be queried
+ and viewed.
+ */
+@interface PFProduct : PFObject
+
+/** @name Querying for Products */
+/*!
+ A query that fetches all product instances registered on Parse's server.
+ */
++ (PFQuery *)query;
+
+/** @name Accessing Product-specific Properties */
+/*!
+ The product identifier of the product.
+ This should match the product identifier in iTunes Connect exactly.
+ */
+@property (nonatomic, retain) NSString *productIdentifier;
+
+/*!
+ The icon of the product.
+ */
+@property (nonatomic, retain) PFFile *icon;
+
+/*!
+ The title of the product.
+ */
+@property (nonatomic, retain) NSString *title;
+
+/*!
+ The subtitle of the product.
+ */
+@property (nonatomic, retain) NSString *subtitle;
+
+/*!
+ The order in which the product information is displayed in PFProductTableViewController.
+ The product with a smaller order is displayed earlier in the PFProductTableViewController.
+ */
+@property (nonatomic, retain) NSNumber *order;
+
+/*!
+ The name of the associated download. If there is no downloadable asset, it should be nil.
+ */
+@property (nonatomic, readonly) NSString *downloadName;
+
+
+@end
View
22 Parse.framework/Versions/1.1.10/Headers/PFProductTableViewController.h
@@ -0,0 +1,22 @@
+//
+// PFProductsTableViewController.h
+// Parse
+//
+// Created by Qian Wang on 5/15/12.
+// Copyright (c) 2012 Parse Inc. All rights reserved.
+//
+
+#import "PFQueryTableViewController.h"
+
+/*!
+ PFProductTableViewController displays in-app purchase products stored on Parse.
+ In addition to setting up in-app purchases in iTunesConnect, the app developer needs
+ to register product information on Parse, in the Product class.
+ */
+@interface PFProductTableViewController : PFQueryTableViewController
+
+/*!
+ Initializes a product table view controller.
+ */
+- (id)init;
+@end
View
61 Parse.framework/Versions/1.1.10/Headers/PFPurchase.h
@@ -0,0 +1,61 @@
+//
+// PFPurchase.h
+// Parse
+//
+// Created by Qian Wang on 5/2/12.
+// Copyright (c) 2012 Parse Inc. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+#import <StoreKit/StoreKit.h>
+#import "PFConstants.h"
+
+/*!
+ PFPurchase provides a set of APIs for working with in-app purchases.
+ */
+@interface PFPurchase : NSObject
+
+/*!
+ Use this method to add application logic block which is run when buying a product.
+ This method should be called once for each product, and should be called before
+ calling buyProduct:block. All invocations to addObserverForProduct:block: should happen within
+ the same method, and on the main thread. It is recommended to place all invocations of this method
+ in application:didFinishLaunchingWithOptions:.
+ @param productIdentifier the product identifier
+ @param completion the completion block
+ */
++ (void)addObserverForProduct:(NSString *)productIdentifier block:(void(^)(SKPaymentTransaction *transaction))block;
+
+/*!
+ Asynchronously initiates the purchase for the product.
+ @param productIdentifier the product identifier
+ @param block the completion block.
+ */
++ (void)buyProduct:(NSString *)productIdentifier block:(void(^)(NSError *error))block;
+
+/*!
+ Asynchronously download the purchased asset, which is stored on Parse's server.
+ Parse verifies the receipt with Apple and delivers the content only if the receipt is valid.
+ @param transaction the transaction, which contains the receipt.
+ @param completion the completion block.
+ */
++ (void)downloadAssetForTransaction:(SKPaymentTransaction *)transaction completion:(void(^)(NSString *filePath, NSError *error))completion;
+
+/*!
+ Asynchronously download the purchased asset, which is stored on Parse's server.
+ Parse verifies the receipt with Apple and delivers the content only if the receipt is valid.
+ @param transaction the transaction, which contains the receipt.
+ @param completion the completion block.
+ @param progress the progress block, which is called multiple times to reveal progress of the download.
+ */
++ (void)downloadAssetForTransaction:(SKPaymentTransaction *)transaction completion:(void(^)(NSString *filePath, NSError *error))completion progress:(PFProgressBlock)progress;
+
+/*!
+ Asynchronously restore completed transactions for the current user.
+ Note: This method is only important to developers who want to preserve purchase states across
+ different installations of the same app.
+ Only nonconsumable purchases are restored. If observers for the products have been added before
+ calling this method, invoking the method reruns the application logic associated with the purchase.
+ */
++ (void)restore;
+@end
View
22 Parse.framework/Versions/1.1.10/Headers/PFPurchaseTableViewCell.h
@@ -0,0 +1,22 @@
+//
+// PFPurchaseTableViewCell.h
+// Parse
+//
+// Created by Qian Wang on 5/21/12.
+// Copyright (c) 2012 Parse Inc. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+#import "PFTableViewCell.h"
+
+typedef enum {
+ PFPurchaseTableViewCellStateNormal,
+ PFPurchaseTableViewCellStateDownloading,
+ PFPurchaseTableViewCellStateDownloaded
+} PFPurchaseTableViewCellState;
+
+@interface PFPurchaseTableViewCell : PFTableViewCell
+@property (nonatomic, assign) PFPurchaseTableViewCellState state;
+@property (nonatomic, retain, readonly) UILabel *priceLabel;
+@property (nonatomic, retain, readonly) UIProgressView *progressView;
+@end
View
76 ...ramework/Versions/1.0.58/Headers/PFPush.h → ...ramework/Versions/1.1.10/Headers/PFPush.h
@@ -9,6 +9,7 @@
#import <Foundation/Foundation.h>
#import <AudioToolbox/AudioToolbox.h>
#import "PFConstants.h"
+#import "PFQuery.h"
/*!
A class which defines a push notification that can be sent from
@@ -19,6 +20,9 @@
*/
@interface PFPush : NSObject
+/*! @name Creating a Push Notification */
++ (PFPush *)push;
+
/*! @name Configuring a Push Notification */
/*!
@@ -37,6 +41,14 @@
- (void)setChannels:(NSArray *)channels;
/*!
+ Sets an installation query to which this push notification will be sent. The
+ query should be created via [PFInstallation query] and should not specify a
+ skip, limit, or order.
+ @param query The installation query to set for this push.
+ */
+- (void)setQuery:(PFQuery *)query;
+
+/*!
Sets an alert message for this push notification. This will overwrite
any data specified in setData.
@param message The message to send in this push.
@@ -136,6 +148,38 @@
selector:(SEL)selector;
/*!
+ Send a push message to a query.
+ @param query The query to send to. The query must be a PFInstallation query
+ created with [PFInstallation query].
+ @param message The message to send.
+ @param error Pointer to an NSError that will be set if necessary.
+ @result Returns whether the send succeeded.
+ */
++ (BOOL)sendPushMessageToQuery:(PFQuery *)query
+ withMessage:(NSString *)message
+ error:(NSError **)error;
+
+/*!
+ Asynchronously send a push message to a query.
+ @param query The query to send to. The query must be a PFInstallation query
+ created with [PFInstallation query].
+ @param message The message to send.
+ */
++ (void)sendPushMessageToQueryInBackground:(PFQuery *)query
+ withMessage:(NSString *)message;
+
+/*!
+ Asynchronously sends a push message to a query and calls the given block.
+ @param query The query to send to. The query must be a PFInstallation query
+ created with [PFInstallation query].
+ @param message The message to send.
+ @param block The block to execute. The block should have the following argument signature: (BOOL succeeded, NSError *error)
+ */
++ (void)sendPushMessageToQueryInBackground:(PFQuery *)query
+ withMessage:(NSString *)message
+ block:(PFBooleanResultBlock)block;
+
+/*!
Send this push message.
@param error Pointer to an NSError that will be set if necessary.
@result Returns whether the send succeeded.
@@ -205,6 +249,38 @@
target:(id)target
selector:(SEL)selector;
+/*!
+ Send a push message with arbitrary data to a query. See the guide for information about the dictionary structure.
+ @param query The query to send to. The query must be a PFInstallation query
+ created with [PFInstallation query].
+ @param data The data to send.
+ @param error Pointer to an NSError that will be set if necessary.
+ @result Returns whether the send succeeded.
+ */
++ (BOOL)sendPushDataToQuery:(PFQuery *)query
+ withData:(NSDictionary *)data
+ error:(NSError **)error;
+
+/*!
+ Asynchronously send a push message with arbitrary data to a query. See the guide for information about the dictionary structure.
+ @param query The query to send to. The query must be a PFInstallation query
+ created with [PFInstallation query].
+ @param data The data to send.
+ */
++ (void)sendPushDataToQueryInBackground:(PFQuery *)query
+ withData:(NSDictionary *)data;
+
+/*!
+ Asynchronously sends a push message with arbitrary data to a query and calls the given block. See the guide for information about the dictionary structure.
+ @param query The query to send to. The query must be a PFInstallation query
+ created with [PFInstallation query].
+ @param data The data to send.
+ @param block The block to execute. The block should have the following argument signature: (BOOL succeeded, NSError *error)
+ */
++ (void)sendPushDataToQueryInBackground:(PFQuery *)query
+ withData:(NSDictionary *)data
+ block:(PFBooleanResultBlock)block;
+
/*! @name Handling Notifications */
/*!
View
4 ...amework/Versions/1.0.58/Headers/PFQuery.h → ...amework/Versions/1.1.10/Headers/PFQuery.h
@@ -9,9 +9,9 @@
/*!
A class that defines a query that is used to query for PFObjects.
*/
-@class PFCommand;
+@class PFOperation;
@interface PFQuery : NSObject {
- PFCommand *currentCommand;
+ PFOperation *currentOperation;
NSString *className;
NSMutableDictionary *where;
View
27 ...0.58/Headers/PFQueryTableViewController.h → ...1.10/Headers/PFQueryTableViewController.h
@@ -7,22 +7,15 @@
//
#import <UIKit/UIKit.h>
-#import "Parse.h"
-#import "PF_EGORefreshTableHeaderView.h"
+#import "PFQuery.h"
#import "PFTableViewCell.h"
+#import "PF_EGORefreshTableHeaderView.h"
-@interface PFQueryTableViewController : UIViewController <UITableViewDataSource, UITableViewDelegate, PF_EGORefreshTableHeaderDelegate>
+@interface PFQueryTableViewController : UITableViewController <UITableViewDataSource, UITableViewDelegate, PF_EGORefreshTableHeaderDelegate>
/*! @name Creating a PFQueryTableViewController */
/*!
- Initializes a query table view controller with the given style.
- @param style The UITableViewStyle for the table
- @result The initialized PFQueryTableViewController
- */
-- (id)initWithStyle:(UITableViewStyle)otherStyle;
-
-/*!
The designated initializer.
Initializes with a class name of the PFObjects that will be associated with this table.
@param style The UITableViewStyle for the table
@@ -40,9 +33,6 @@
/*! @name Configuring Behavior */
-/// The table view managed by the controller object
-@property (nonatomic, retain) UITableView *tableView;
-
/// The class of the PFObject this table will use as a datasource
@property (nonatomic, retain) NSString *className;
@@ -70,15 +60,6 @@
/// Whether the table is actively loading new data from the server
@property (nonatomic, assign) BOOL isLoading;
-/**
- A Boolean value indicating if the controller clears the selection when the table appears.
-
- The default value of this property is YES. When YES, the table view controller clears the table's
- current selection when it receives a viewWillAppear: message. Setting this property to `NO`
- preserves the selection.
- */
-@property (nonatomic) BOOL clearsSelectionOnViewWillAppear;
-
/*! @name Responding to Events */
/*!
@@ -106,7 +87,7 @@
@param indexPath The indexPath
@result The object at the specified index
*/
-- (PFObject *)objectAtIndex:(NSIndexPath *)indexPath;
+- (PFObject *)objectAtIndexPath:(NSIndexPath *)indexPath;
/*! @name Querying */
View
4 ...work/Versions/1.0.58/Headers/PFRelation.h → ...work/Versions/1.1.10/Headers/PFRelation.h
@@ -18,13 +18,9 @@
PFObject *parent;
NSString *key;
NSString *targetClass;
- NSMutableSet *relationsToAdd;
- NSMutableSet *relationsToRemove;
}
@property (nonatomic, retain) NSString *targetClass;
-@property (nonatomic, retain, readonly) NSString *key;
-
#pragma mark Accessing objects
View
0 ...ramework/Versions/1.0.58/Headers/PFRole.h → ...ramework/Versions/1.1.10/Headers/PFRole.h
File renamed without changes.
View
0 ...rk/Versions/1.0.58/Headers/PFSignUpView.h → ...rk/Versions/1.1.10/Headers/PFSignUpView.h
File renamed without changes.
View
0 ...s/1.0.58/Headers/PFSignUpViewController.h → ...s/1.1.10/Headers/PFSignUpViewController.h
File renamed without changes.
View
0 ...Versions/1.0.58/Headers/PFTableViewCell.h → ...Versions/1.1.10/Headers/PFTableViewCell.h
File renamed without changes.
View
0 .../Versions/1.0.58/Headers/PFTwitterUtils.h → .../Versions/1.1.10/Headers/PFTwitterUtils.h
File renamed without changes.
View
77 ...ramework/Versions/1.0.58/Headers/PFUser.h → ...ramework/Versions/1.1.10/Headers/PFUser.h
@@ -21,8 +21,6 @@ A Parse Framework User Object that is a local representation of a user persisted
NSString *password;
NSString *sessionToken;
BOOL isNew;
-@private
- BOOL isCurrentUser;
}
/** @name Accessing the Current User */
@@ -234,80 +232,5 @@ A Parse Framework User Object that is a local representation of a user persisted
*/
+ (PFQuery *)query;
-/** @name Deprecated */
-
-/*!
- Deprecated. Please see [PFFacebookUtils facebook].
- */
-+ (PF_Facebook *)facebook __attribute__ ((deprecated));
-
-/*!
- Deprecated. Please see [PFFacebookUtils facebookWithDelegate:].
- */
-+ (PF_Facebook *)facebookWithDelegate:(id<PF_FBSessionDelegate>)delegate __attribute__ ((deprecated));
-
-/*!
- Deprecated. Please see [PFFacebookUtils logInWithPermissions:block:].
- */
-+ (void)logInWithFacebook:(NSArray *)permissions block:(PFUserResultBlock)block __attribute__ ((deprecated));
-
-/*!
- Deprecated. Please see [PFFacebookUtils logInWithPermissions:target:selector:].
- */
-+ (void)logInWithFacebook:(NSArray *)permissions target:(id)target selector:(SEL)selector __attribute__ ((deprecated));
-
-/*!
- Deprecated. Please see [PFFacebookUtils isLinkedWithUser:]
- */
-- (BOOL)hasFacebook __attribute__ ((deprecated));
-
-/*!
- Deprecated. Please see PF_Facebook.accessToken
- */
-- (NSString *)facebookAccessToken __attribute__ ((deprecated));
-
-/*!
- Deprecated. Please see PF_Facebook.expirationDate
- */
-- (NSDate *)facebookExpirationDate __attribute__ ((deprecated));
-
-/*!
- Deprecated. Please use PF_Facebook to make a graph call to "me"
- */
-- (NSString *)facebookId __attribute__ ((deprecated));
-
-/*!
- Deprecated. Please see [PFFacebookUtils linkUser:permissions:block:].
- */
-- (void)linkToFacebook:(NSArray *)permissions
- block:(PFBooleanResultBlock)block __attribute__ ((deprecated));
-
-/*!
- Deprecated. Please see [PFFacebookUtils linkUser:permissions:target:selector:].
- */
-- (void)linkToFacebook:(NSArray *)permissions
- target:(id)target
- selector:(SEL)selector __attribute__ ((deprecated));
-
-/*!
- Deprecated. Please see [PFFacebookUtils unlinkUser:].
- */
-- (BOOL)unlinkFromFacebook __attribute__ ((deprecated));
-
-/*!
- Deprecated. Please see [PFFacebookUtils unlinkUser:error:].
- */
-- (BOOL)unlinkFromFacebookWithError:(NSError **)error __attribute__ ((deprecated));
-
-/*!
- Deprecated. Please see [PFFacebookUtils unlinkUserInBackground:block:].
- */
-- (void)unlinkFromFacebookWithBlock:(PFBooleanResultBlock)block __attribute__ ((deprecated));
-
-/*!
- Deprecated. Please see [PFFacebookUtils unlinkUserInBackground:target:selector:].
- */
-- (void)unlinkFromFacebookInBackgroundWithTarget:(id)target
- selector:(SEL)selector __attribute__ ((deprecated));
@end
View
0 ...58/Headers/PF_EGORefreshTableHeaderView.h → ...10/Headers/PF_EGORefreshTableHeaderView.h
File renamed without changes.
View
42 Parse.framework/Versions/1.1.10/Headers/PF_FBCacheDescriptor.h
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2012 Facebook
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#import <Foundation/Foundation.h>
+#import "PF_FBSession.h"
+
+/*!
+ @class
+
+ @abstract
+ Base class from which CacheDescriptors derive, provides a method to fetch data for later use
+
+ @discussion
+ Cache descriptors allow your application to specify the arguments that will be
+ later used with another object, such as the PF_FBFriendPickerViewController. By using a cache descriptor
+ instance, an application can choose to fetch data ahead of the point in time where the data is needed.
+ */
+@interface PF_FBCacheDescriptor : NSObject
+
+/*!
+ @method
+ @abstract
+ Fetches and caches the data described by the cache descriptor instance, for the given session.
+
+ @param session the <PF_FBSession> to use for fetching data
+ */
+- (void)prefetchAndCacheForSession:(PF_FBSession*)session;
+
+@end
View
73 Parse.framework/Versions/1.1.10/Headers/PF_FBCacheIndex.h
@@ -0,0 +1,73 @@
+/*
+ * Copyright 2010 Facebook
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#import <Foundation/Foundation.h>
+#import <sqlite3.h>
+
+@class PF_FBCacheIndex;
+
+@protocol PF_FBCacheIndexFileDelegate <NSObject>
+
+@required
+// Informs the disk cache to write contents to the specified file. The callback
+// should not block and should be executed in order.
+- (void) cacheIndex:(PF_FBCacheIndex*)cacheIndex
+ writeFileWithName:(NSString*)name
+ data:(NSData*)data;
+// Informs the disk cache to delete the specified file.
+- (void) cacheIndex:(PF_FBCacheIndex*)cacheIndex
+ deleteFileWithName:(NSString*)name;
+
+@end
+
+@interface PF_FBCacheIndex : NSObject
+{
+@private
+ id <PF_FBCacheIndexFileDelegate> _delegate;
+
+ NSCache* _cachedEntries;
+
+ NSUInteger _currentDiskUsage;
+ NSUInteger _diskCapacity;
+
+ sqlite3* _database;
+ sqlite3_stmt* _insertStatement;
+ sqlite3_stmt* _removeByKeyStatement;
+ sqlite3_stmt* _selectByKeyStatement;
+ sqlite3_stmt* _selectByKeyFragmentStatement;
+ sqlite3_stmt* _selectExcludingKeyFragmentStatement;
+ sqlite3_stmt* _trimStatement;
+ sqlite3_stmt* _updateStatement;
+
+ dispatch_queue_t _databaseQueue;
+}
+
+- (id)initWithCacheFolder:(NSString*)folderPath;
+
+@property (assign) id delegate;
+@property (nonatomic, readonly) NSUInteger currentDiskUsage;
+@property (nonatomic, assign) NSUInteger diskCapacity;
+@property (nonatomic, assign) NSUInteger entryCacheCountLimit;
+@property (nonatomic, readonly) dispatch_queue_t databaseQueue;
+
+- (NSString*)fileNameForKey:(NSString*)key;
+- (NSString*)storeFileForKey:(NSString*)key withData:(NSData*)data;
+- (void)removeEntryForKey:(NSString*)key;
+- (void)removeEntries:(NSString*)keyFragment excludingFragment:(BOOL)exclude;
+
+@end
+
+
View
2 ...rk/Versions/1.0.58/Headers/PF_FBConnect.h → ...rk/Versions/1.1.10/Headers/PF_FBConnect.h 100644 → 100755
@@ -18,4 +18,4 @@
#include "PF_Facebook.h"
#include "PF_FBDialog.h"
#include "PF_FBLoginDialog.h"
-#include "PF_FBRequest.h"
+#include "PF_FBRequest.h"
View
29 Parse.framework/Versions/1.1.10/Headers/PF_FBContentLink.h
@@ -0,0 +1,29 @@
+/*
+ * Copyright 2012 Facebook
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#import <Foundation/Foundation.h>
+
+@interface PF_FBContentLink : NSObject
+
+@property (readonly, copy) NSURL *targetURL;
+@property (readonly, copy) NSArray *actionTypes;
+@property (readonly, copy) NSString *source;
+@property (readonly, copy) NSArray *ref;
+@property (readonly, copy) NSDictionary *originalQueryParameters;
+
+- (id)initWithURL:(NSURL*)url;
+
+@end
View
44 Parse.framework/Versions/1.1.10/Headers/PF_FBDataDiskCache.h
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2010 Facebook
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#import <Foundation/Foundation.h>
+#import <UIKit/UIKit.h>
+#import "PF_FBSession.h"
+
+@class PF_FBCacheIndex;
+
+// This is a Disk based cache used internally by Facebook SDK
+@interface PF_FBDataDiskCache : NSObject
+{
+@private
+ NSCache* _inMemoryCache;
+ PF_FBCacheIndex* _cacheIndex;
+ NSString* _dataCachePath;
+
+ dispatch_queue_t _fileQueue;
+}
+
++ (PF_FBDataDiskCache*)sharedCache;
+
+@property (nonatomic, assign) NSUInteger cacheSizeMemory;
+@property (nonatomic, readonly) dispatch_queue_t fileQueue;
+
+- (NSData*)dataForURL:(NSURL*)dataURL;
+- (void)setData:(NSData*)data forURL:(NSURL*)url;
+- (void)removeDataForUrl:(NSURL*)url;
+- (void)removeDataForSession:(PF_FBSession*)session;
+
+@end
View
0 ...ork/Versions/1.0.58/Headers/PF_FBDialog.h → ...ork/Versions/1.1.10/Headers/PF_FBDialog.h 100644 → 100755
File renamed without changes.
View
123 Parse.framework/Versions/1.1.10/Headers/PF_FBError.h
@@ -0,0 +1,123 @@
+/*
+ * Copyright 2012 Facebook
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#import <Foundation/Foundation.h>
+
+/// The error domain of all error codes returned by the Facebook SDK
+extern NSString *const PF_FacebookSDKDomain;
+
+// ----------------------------------------------------------------------------
+// Keys in the userInfo NSDictionary of NSError where you can find additional
+// information about the error. All are optional.
+
+/// The key for an inner NSError.
+extern NSString *const PF_FBErrorInnerErrorKey;
+
+/// The key for parsed JSON response from the server. In case of a batch,
+/// includes the JSON for a single PF_FBRequest.
+extern NSString *const PF_FBErrorParsedJSONResponseKey;
+
+/// The key for HTTP status code.
+extern NSString *const PF_FBErrorHTTPStatusCodeKey;
+
+// ----------------------------------------------------------------------------
+/*!
+ @abstract Error codes returned by the Facebook SDK in NSError.
+
+ @discussion
+ These are valid only in the scope of FacebookSDKDomain.
+ */
+typedef enum PF_FBErrorCode {
+ /*!
+ Like nil for PF_FBErrorCode values, represents an error code that
+ has not been initialized yet.
+ */
+ PF_FBErrorInvalid = 0,
+
+ /// The operation failed because it was cancelled.
+ PF_FBErrorOperationCancelled,
+
+ /// A login attempt failed
+ PF_FBErrorLoginFailedOrCancelled,
+
+ /// The graph API returned an error for this operation.
+ PF_FBErrorRequestConnectionApi,
+
+ /*!
+ The operation failed because the server returned an unexpected
+ response. You can get this error if you are not using the most
+ recent SDK, or if you set your application's migration settings
+ incorrectly for the version of the SDK you are using.
+
+ If this occurs on the current SDK with proper app migration
+ settings, you may need to try changing to one request per batch.
+ */
+ PF_FBErrorProtocolMismatch,
+
+ /// Non-success HTTP status code was returned from the operation.
+ PF_FBErrorHTTPError,
+
+ /// An endpoint that returns a binary response was used with PF_FBRequestConnection;
+ /// endpoints that return image/jpg, etc. should be accessed using NSURLRequest
+ PF_FBErrorNonTextMimeTypeReturned,
+
+ // An error occurred while trying to display a native dialog
+ PF_FBErrorNativeDialog,
+} PF_FBErrorCode;
+
+/*!
+ The key in the userInfo NSDictionary of NSError where you can find
+ the inner NSError (if any).
+ */
+extern NSString *const PF_FBErrorInnerErrorKey;
+
+/// The NSError key used by session to capture login failure reason
+extern NSString *const PF_FBErrorLoginFailedReason;
+
+/// the NSError key used by session to capture login failure error code
+extern NSString *const PF_FBErrorLoginFailedOriginalErrorCode;
+
+/// used by session when an inline dialog fails
+extern NSString *const PF_FBErrorLoginFailedReasonInlineCancelledValue;
+extern NSString *const PF_FBErrorLoginFailedReasonInlineNotCancelledValue;
+extern NSString *const PF_FBErrorLoginFailedReasonUnitTestResponseUnrecognized;
+
+/// used by session when a reauthorize fails
+extern NSString *const PF_FBErrorReauthorizeFailedReasonSessionClosed;
+extern NSString *const PF_FBErrorReauthorizeFailedReasonUserCancelled;
+extern NSString *const PF_FBErrorReauthorizeFailedReasonWrongUser;
+
+/// The key to retrieve the reason for a native dialog error
+extern NSString *const PF_FBErrorNativeDialogReasonKey;
+
+/// indicates that a native dialog is not supported in the current OS
+extern NSString *const PF_FBErrorNativeDialogNotSupported;
+/// indicates that a native dialog can't be displayed because it is not appropriate for the current session
+extern NSString *const PF_FBErrorNativeDialogInvalidForSession;
+/// indicates that a native dialog can't be displayed for some other reason
+extern NSString *const PF_FBErrorNativeDialogCantBeDisplayed;
+
+// Exception strings raised by the Facebook SDK
+
+/*!
+ This exception is raised by methods in the Facebook SDK to indicate
+ that an attempted operation is invalid
+ */
+extern NSString *const PF_FBInvalidOperationException;
+
+// Facebook SDK also raises exceptions the following common exceptions:
+// NSInvalidArgumentException
+
View
2 ...eaders/PF_FBFrictionlessRequestSettings.h → ...eaders/PF_FBFrictionlessRequestSettings.h 100644 → 100755
@@ -24,7 +24,7 @@
* Handles frictionless interaction and recipient-caching by the SDK,
* see https://developers.facebook.com/docs/reference/dialogs/requests/
*/
-@interface PF_FBFrictionlessRequestSettings : NSObject<PF_FBRequestDelegate> {
+@interface PF_FBFrictionlessRequestSettings : NSObject {
@private
NSArray* _allowedRecipients;
PF_FBRequest* _activeRequest;
View
91 Parse.framework/Versions/1.1.10/Headers/PF_FBFriendPickerCacheDescriptor.h
@@ -0,0 +1,91 @@
+/*
+ * Copyright 2012 Facebook
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#import <Foundation/Foundation.h>
+#import "PF_FBCacheDescriptor.h"
+
+/*
+ @class
+
+ @abstract
+ Represents the data needed by an PF_FBFriendPickerViewController, in order to construct
+ the necessary request to populate the view; instances of PF_FBFriendPickerCacheDescriptor
+ are used to fetch data ahead of the point when the data is used to populate a display.
+
+ @discussion
+ A common use of an PF_FBFriendPickerCacheDescriptor instance, is to allocate an instance
+ at the point when a session is opened, and then call prefetchAndCacheForSession. This
+ causes the API to fetch and cache the data needed by the PF_FBFriendPickerViewController.
+ If at some point the user goes to select friends, the PF_FBFriendPickerViewController
+ will first check the cache for a copy of the friends list, and then after displaying
+ whatever cached data is available, then it will fetch a fresh copy of the friends list.
+
+ @unsorted
+ */
+@interface PF_FBFriendPickerCacheDescriptor : PF_FBCacheDescriptor
+
+/*
+ @method
+
+ @abstract
+ Initializes an instance with default values for populating
+ a PF_FBFriendPickerViewController, at some later point.
+*/
+- (id)init;
+
+/*
+ @method
+
+ @abstract
+ Initializes an instance specifying the userID to use for populating
+ a PF_FBFriendPickerViewController, at some later point.
+*/
+- (id)initWithUserID:(NSString*)userID;
+
+/*
+ @method
+
+ @abstract
+ Initializes an instance specifying the fields to use for populating
+ a PF_FBFriendPickerViewController, at some later point.
+*/
+- (id)initWithFieldsForRequest:(NSSet*)fieldsForRequest;
+
+/*
+ @method
+
+ @abstract
+ Initializes an instance specifying the userID and fields to use for populating
+ a PF_FBFriendPickerViewController, at some later point.
+
+ @param userID fbid of the user whose friends we wish to display; nil='me'
+ @param fieldsForRequest set of additional fields to include in request for friends
+ */
+- (id)initWithUserID:(NSString*)userID fieldsForRequest:(NSSet*)fieldsForRequest;
+
+/*
+ @abstract
+ Fields to use when fetching data for the view
+ */
+@property (nonatomic, readonly, copy) NSSet *fieldsForRequest;
+
+/*
+ @abstract
+ Indicates the fbid of the user whose friends are being viewed
+ */
+@property (nonatomic, readonly, copy) NSString *userID;
+
+@end
View
33 Parse.framework/Versions/1.1.10/Headers/PF_FBFriendPickerViewController+Internal.h
@@ -0,0 +1,33 @@
+/*
+ * Copyright 2012 Facebook
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#import <Foundation/Foundation.h>
+#import "PF_FBFriendPickerViewController.h"
+#import "PF_FBRequest.h"
+#import "PF_FBGraphObjectTableDataSource.h"
+#import "PF_FBSession.h"
+
+// This is the cache identity used by both the view controller and cache descriptor objects
+extern NSString *const PF_FBFriendPickerCacheIdentity;
+
+@interface PF_FBFriendPickerViewController (Internal)
+
++ (PF_FBRequest*)requestWithUserID:(NSString*)userID
+ fields:(NSSet*)fields
+ dataSource:(PF_FBGraphObjectTableDataSource*)datasource
+ session:(PF_FBSession*)session;
+
+@end
View
290 Parse.framework/Versions/1.1.10/Headers/PF_FBFriendPickerViewController.h
@@ -0,0 +1,290 @@
+/*
+ * Copyright 2012 Facebook
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#import <UIKit/UIKit.h>
+#import "PF_FBGraphUser.h"
+#import "PF_FBSession.h"
+#import "PF_FBCacheDescriptor.h"
+#import "PF_FBViewController.h"
+
+@protocol PF_FBFriendPickerDelegate;
+@class PF_FBFriendPickerCacheDescriptor;
+
+/*!
+ @typedef PF_FBFriendSortOrdering enum
+
+ @abstract Indicates the order in which friends should be listed in the friend picker.
+
+ @discussion
+ */
+typedef enum {
+ /*! Sort friends by first, middle, last names. */
+ PF_FBFriendSortByFirstName,
+ /*! Sort friends by last, first, middle names. */
+ PF_FBFriendSortByLastName
+} PF_FBFriendSortOrdering;
+
+/*!
+ @typedef PF_FBFriendDisplayOrdering enum
+
+ @abstract Indicates whether friends should be displayed first-name-first or last-name-first.
+
+ @discussion
+ */
+typedef enum {
+ /*! Display friends as First Middle Last. */
+ PF_FBFriendDisplayByFirstName,
+ /*! Display friends as Last First Middle. */
+ PF_FBFriendDisplayByLastName,
+} PF_FBFriendDisplayOrdering;
+
+
+/*!
+ @class
+
+ @abstract
+ The `PF_FBFriendPickerViewController` class creates a controller object that manages
+ the user interface for displaying and selecting Facebook friends.
+
+ @discussion
+ When the `PF_FBFriendPickerViewController` view loads it creates a `UITableView` object
+ where the friends will be displayed. You can access this view through the `tableView`
+ property. The friend display can be sorted by first name or last name. Friends'
+ names can be displayed with the first name first or the last name first.
+
+ The friend data can be pre-fetched and cached prior to using the view controller. The
+ cache is setup using an <PF_FBCacheDescriptor> object that can trigger the
+ data fetch. Any friend data requests will first check the cache and use that data.
+ If the friend picker is being displayed cached data will initially be shown before
+ a fresh copy is retrieved.
+
+ The `delegate` property may be set to an object that conforms to the <PF_FBFriendPickerDelegate>
+ protocol. The `delegate` object will receive updates related to friend selection and
+ data changes. The delegate can also be used to filter the friends to display in the
+ picker.
+ */
+@interface PF_FBFriendPickerViewController : PF_FBViewController
+
+/*!
+ @abstract
+ Returns an outlet for the spinner used in the view controller.
+ */
+@property (nonatomic, retain) IBOutlet UIActivityIndicatorView *spinner;
+
+/*!
+ @abstract
+ Returns an outlet for the table view managed by the view controller.
+ */
+@property (nonatomic, retain) IBOutlet UITableView *tableView;
+
+/*!
+ @abstract
+ A Boolean value that specifies whether multi-select is enabled.
+ */
+@property (nonatomic) BOOL allowsMultipleSelection;
+
+/*!
+ @abstract
+ A Boolean value that indicates whether friend profile pictures are displayed.
+ */
+@property (nonatomic) BOOL itemPicturesEnabled;
+
+/*!
+ @abstract
+ Addtional fields to fetch when making the Graph API call to get friend data.
+ */
+@property (nonatomic, copy) NSSet *fieldsForRequest;
+
+/*!
+ @abstract
+ The session that is used in the request for friend data.
+ */
+@property (nonatomic, retain) PF_FBSession *session;
+
+/*!
+ @abstract
+ The profile ID of the user whose friends are being viewed.
+ */
+@property (nonatomic, copy) NSString *userID;
+
+/*!
+ @abstract
+ The list of friends that are currently selected in the veiw.
+ The items in the array are <PF_FBGraphUser> objects.
+ */
+@property (nonatomic, retain, readonly) NSArray *selection;
+
+/*!
+ @abstract
+ The order in which friends are sorted in the display.
+ */
+@property (nonatomic) PF_FBFriendSortOrdering sortOrdering;
+
+/*!
+ @abstract
+ The order in which friends' names are displayed.
+ */
+@property (nonatomic) PF_FBFriendDisplayOrdering displayOrdering;
+
+/*!
+ @abstract
+ Initializes a friend picker view controller.
+ */
+- (id)init;
+
+/*!
+ @abstract
+ Initializes a friend picker view controller.
+
+ @param aDecoder An unarchiver object.
+ */
+- (id)initWithCoder:(NSCoder *)aDecoder;
+
+/*!
+ @abstract
+ Used to initialize the object
+
+ @param nibNameOrNil The name of the nib file to associate with the view controller. The nib file name should not contain any leading path information. If you specify nil, the nibName property is set to nil.
+ @param nibBundleOrNil The bundle in which to search for the nib file. This method looks for the nib file in the bundle's language-specific project directories first, followed by the Resources directory. If nil, this method looks for the nib file in the main bundle.
+ */
+- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil;
+
+/*!
+ @abstract
+ Configures the properties used in the caching data queries.
+
+ @discussion
+ Cache descriptors are used to fetch and cache the data used by the view controller.
+ If the view controller finds a cached copy of the data, it will
+ first display the cached content then fetch a fresh copy from the server.
+
+ @param cacheDescriptor The <PF_FBCacheDescriptor> containing the cache query properties.
+ */
+- (void)configureUsingCachedDescriptor:(PF_FBCacheDescriptor*)cacheDescriptor;
+
+/*!
+ @abstract
+ Initiates a query to get friend data.
+
+ @discussion
+ A cached copy will be returned if available. The cached view is temporary until a fresh copy is
+ retrieved from the server. It is legal to call this more than once.
+ */
+- (void)loadData;
+
+/*!
+ @abstract
+ Updates the view locally without fetching data from the server or from cache.
+
+ @discussion
+ Use this if the filter or sort properties change. This may affect the order or
+ display of friend information but should not need require new data.
+ */
+- (void)updateView;
+
+/*!
+ @abstract
+ Clears the current selection, so the picker is ready for a fresh use.
+ */
+- (void)clearSelection;
+
+/*!
+ @method
+
+ @abstract
+ Creates a cache descriptor based on default settings of the `PF_FBFriendPickerViewController` object.
+
+ @discussion
+ An `PF_FBCacheDescriptor` object may be used to pre-fetch data before it is used by
+ the view controller. It may also be used to configure the `PF_FBFriendPickerViewController`
+ object.
+ */
++ (PF_FBCacheDescriptor*)cacheDescriptor;
+
+/*!
+ @method
+
+ @abstract
+ Creates a cache descriptor with additional fields and a profile ID for use with the `PF_FBFriendPickerViewController` object.
+
+ @discussion
+ An `PF_FBCacheDescriptor` object may be used to pre-fetch data before it is used by
+ the view controller. It may also be used to configure the `PF_FBFriendPickerViewController`
+ object.
+
+ @param userID The profile ID of the user whose friends will be displayed. A nil value implies a "me" alias.
+ @param fieldsForRequest The set of additional fields to include in the request for friend data.
+ */
++ (PF_FBCacheDescriptor*)cacheDescriptorWithUserID:(NSString*)userID fieldsForRequest:(NSSet*)fieldsForRequest;
+
+@end
+
+/*!
+ @protocol
+
+ @abstract
+ The `PF_FBFriendPickerDelegate` protocol defines the methods used to receive event
+ notifications and allow for deeper control of the <PF_FBFriendPickerViewController>
+ view.
+ */
+@protocol PF_FBFriendPickerDelegate <PF_FBViewControllerDelegate>
+@optional
+
+/*!
+ @abstract
+ Tells the delegate that data has been loaded.
+
+ @discussion
+ The <PF_FBFriendPickerViewController> object's `tableView` property is automatically
+ reloaded when this happens. However, if another table view, for example the
+ `UISearchBar` is showing data, then it may also need to be reloaded.
+
+ @param friendPicker The friend picker view controller whose data changed.
+ */
+- (void)friendPickerViewControllerDataDidChange:(PF_FBFriendPickerViewController *)friendPicker;
+
+/*!
+ @abstract
+ Tells the delegate that the selection has changed.
+
+ @param friendPicker The friend picker view controller whose selection changed.
+ */
+- (void)friendPickerViewControllerSelectionDidChange:(PF_FBFriendPickerViewController *)friendPicker;
+
+/*!
+ @abstract
+ Asks the delegate whether to include a friend in the list.
+
+ @discussion
+ This can be used to implement a search bar that filters the friend list.
+
+ @param friendPicker The friend picker view controller that is requesting this information.
+ @param user An <PF_FBGraphUser> object representing the friend.
+ */
+- (BOOL)friendPickerViewController:(PF_FBFriendPickerViewController *)friendPicker
+ shouldIncludeUser:(id <PF_FBGraphUser>)user;
+
+/*!
+ @abstract
+ Tells the delegate that there is a communication error.
+
+ @param friendPicker The friend picker view controller that encountered the error.
+ @param error An error object containing details of the error.
+ */
+- (void)friendPickerViewController:(PF_FBFriendPickerViewController *)friendPicker
+ handleError:(NSError *)error;
+
+@end
View
77 Parse.framework/Versions/1.1.10/Headers/PF_FBGraphLocation.h
@@ -0,0 +1,77 @@
+/*
+ * Copyright 2012 Facebook
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#import <Foundation/Foundation.h>
+#import "PF_FBGraphObject.h"
+
+/*!
+ @protocol
+
+ @abstract
+ The `PF_FBGraphLocation` protocol enables typed access to the `location` property
+ of a Facebook place object.
+
+
+ @discussion
+ The `PF_FBGraphLocation` protocol represents the most commonly used properties of a
+ location object. It may be used to access an `NSDictionary` object that has
+ been wrapped with an <PF_FBGraphObject> facade.
+ */
+@protocol PF_FBGraphLocation<PF_FBGraphObject>
+
+/*!
+ @property
+ @abstract Typed access to a location's street.
+ */
+@property (retain, nonatomic) NSString *street;
+
+/*!
+ @property
+ @abstract Typed access to a location's city.
+ */
+@property (retain, nonatomic) NSString *city;
+
+/*!
+ @property
+ @abstract Typed access to a location's state.
+ */
+@property (retain, nonatomic) NSString *state;
+
+/*!
+ @property
+ @abstract Typed access to a location's country.
+ */
+@property (retain, nonatomic) NSString *country;
+
+/*!
+ @property
+ @abstract Typed access to a location's zip code.
+ */
+@property (retain, nonatomic) NSString *zip;
+
+/*!
+ @property
+ @abstract Typed access to a location's latitude.
+ */
+@property (retain, nonatomic) NSNumber *latitude;
+
+/*!
+ @property
+ @abstract Typed access to a location's longitude.
+ */
+@property (retain, nonatomic) NSNumber *longitude;
+
+@end
View
224 Parse.framework/Versions/1.1.10/Headers/PF_FBGraphObject.h
@@ -0,0 +1,224 @@
+/*
+ * Copyright 2012 Facebook
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#import <Foundation/Foundation.h>
+
+/*!
+ @protocol
+
+ @abstract
+ The `PF_FBGraphObject` protocol is the base protocol which enables typed access to graph objects and
+ open graph objects. Inherit from this protocol or a sub-protocol in order to introduce custom types
+ for typed access to Facebook objects.
+
+ @discussion
+ The `PF_FBGraphObject` protocol is the core type used by the Facebook SDK for iOS to
+ represent objects in the Facebook Social Graph and the Facebook Open Graph (OG).
+ The `PF_FBGraphObject` class implements useful default functionality, but is rarely
+ used directly by applications. The `PF_FBGraphObject` protocol, in contrast is the
+ base protocol for all graph object access via the SDK.
+
+ Goals of the PF_FBGraphObject types:
+ <ul>
+ <li> Lightweight/maintainable/robust </li>
+ <li> Extensible and resilient to change, both by Facebook and third party (OG) </li>
+ <li> Simple and natural extension to Objective-C </li>
+ </ul>
+
+ The PF_FBGraphObject at its core is a duck typed (if it walks/swims/quacks...
+ its a duck) model which supports an optional static facade. Duck-typing achieves
+ the flexibility necessary for Social Graph and OG uses, and the static facade
+ increases discoverability, maintainability, robustness and simplicity.
+ The following excerpt from the PlacePickerSample shows a simple use of the
+ a facade protocol `PF_FBGraphPlace` by an application:
+
+ <pre>
+ &dash; (void)placePickerViewControllerSelectionDidChange:(PF_FBPlacePickerViewController *)placePicker
+ {
+ id&#060;PF_FBGraphPlace&#062; place = placePicker.selection;
+
+ // we'll use logging to show the simple typed property access to place and location info
+ NSLog(@"place=%@, city=%@, state=%@, lat long=%@ %@",
+ place.name,
+ place.location.city,
+ place.location.state,
+ place.location.latitude,
+ place.location.longitude);
+ }
+ </pre>
+
+ Note that in this example, access to common place information is available through typed property
+ syntax. But if at some point places in the Social Graph supported additional fields "foo" and "bar", not
+ reflected in the `PF_FBGraphPlace` protocol, the application could still access the values like so:
+
+ <pre>
+ NSString *foo = [place objectForKey:@"foo"]; // perhaps located at the ... in the preceding example
+ NSNumber *bar = [place objectForKey:@"bar"]; // extensibility applies to Social and Open graph uses
+ </pre>
+
+ In addition to untyped access, applications and future revisions of the SDK may add facade protocols by
+ declaring a protocol inheriting the `PF_FBGraphObject` protocol, like so:
+
+ <pre>
+ &#064;protocol MyGraphThing&#060;PF_FBGraphObject&#062;
+ &#064;property (copy, nonatomic) NSString *id;
+ &#064;property (copy, nonatomic) NSString *name;
+ &#064;end
+ </pre>
+
+ Important: facade implementations are inferred by graph objects returned by the methods of the SDK. This
+ means that no explicit implementation is required by application or SDK code. Any `PF_FBGraphObject` instance
+ may be cast to any `PF_FBGraphObject` facade protocol, and accessed via properties. If a field is not present
+ for a given facade property, the property will return nil.
+
+ The following layer diagram depicts some of the concepts discussed thus far:
+
+ <pre>
+ *-------------* *------------* *-------------**--------------------------*
+ Facade --> | PF_FBGraphUser | |PF_FBGraphPlace| | MyGraphThing|| MyGraphPersonExtentension| ...
+ *-------------* *------------* *-------------**--------------------------*
+ *------------------------------------* *--------------------------------------*
+ Transparent impl --> | PF_FBGraphObject (instances) | | CustomClass&#060;PF_FBGraphObject&#062; |
+ *------------------------------------* *--------------------------------------*
+ *-------------------**------------------------* *-----------------------------*
+ Apparent impl --> |NSMutableDictionary||PF_FBGraphObject (protocol)| |PF_FBGraphObject (class methods)|
+ *-------------------**------------------------* *-----------------------------*
+ </pre>
+
+ The *Facade* layer is meant for typed access to graph objects. The *Transparent impl* layer (more
+ specifically, the instance capabilities of `PF_FBGraphObject`) are used by the SDK and app logic
+ internally, but are not part of the public interface between application and SDK. The *Apparent impl*
+ layer represents the lower-level "duck-typed" use of graph objects.
+
+ Implementation note: the SDK returns `NSMutableDictionary` derived instances with types declared like
+ one of the following:
+
+ <pre>
+ NSMutableDictionary&#060;PF_FBGraphObject&#062; *obj; // no facade specified (still castable by app)
+ NSMutableDictionary&#060;PF_FBGraphPlace&#062; *person; // facade specified when possible
+ </pre>
+
+ However, when passing a graph object to the SDK, `NSMutableDictionary` is not assumed; only the
+ PF_FBGraphObject protocol is assumed, like so:
+
+ <pre>
+ id&#060;PF_FBGraphObject&#062; anyGraphObj;
+ </pre>
+
+ As such, the methods declared on the `PF_FBGraphObject` protocol represent the methods used by the SDK to
+ consume graph objects. While the `PF_FBGraphObject` class implements the full `NSMutableDictionary` and KVC
+ interfaces, these are not consumed directly by the SDK, and are optional for custom implementations.
+ */
+@protocol PF_FBGraphObject<NSObject>
+
+/*!
+ @method
+ @abstract
+ Returns the number of properties on this `PF_FBGraphObject`.
+ */
+- (NSUInteger)count;
+/*!
+ @method
+ @abstract
+ Returns a property on this `PF_FBGraphObject`.
+
+ @param aKey name of the property to return
+ */
+- (id)objectForKey:(id)aKey;
+/*!
+ @method
+ @abstract
+ Returns an enumerator of the property naems on this `PF_FBGraphObject`.
+ */
+- (NSEnumerator *)keyEnumerator;
+/*!
+ @method
+ @abstract
+ Removes a property on this `PF_FBGraphObject`.
+
+ @param aKey name of the property to remove
+ */
+- (void)removeObjectForKey:(id)aKey;
+/*!
+ @method
+ @abstract
+ Sets the value of a property on this `PF_FBGraphObject`.
+
+ @param anObject the new value of the property
+ @param aKey name of the property to set
+ */
+- (void)setObject:(id)anObject forKey:(id)aKey;
+
+@end
+
+/*!
+ @class
+
+ @abstract
+ Static class with helpers for use with graph objects
+
+ @discussion
+ The public interface of this class is useful for creating objects that have the same graph characteristics
+ of those returned by methods of the SDK. This class also represents the internal implementation of the
+ `PF_FBGraphObject` protocol, used by the Facebook SDK. Application code should not use the `PF_FBGraphObject` class to
+ access instances and instance members, favoring the protocol.
+ */
+@interface PF_FBGraphObject : NSMutableDictionary<PF_FBGraphObject>
+
+/*!
+ @method
+ @abstract
+ Used to create a graph object for, usually for use in posting a new graph object or action
+ */
++ (NSMutableDictionary<PF_FBGraphObject>*)graphObject;
+
+/*!
+ @method
+ @abstract
+ Used to wrap an existing dictionary with a `PF_FBGraphObject` facade
+
+ @discussion
+ Normally you will not need to call this method, as the Facebook SDK already "PF_FBGraphObject-ifys" json objects
+ fetch via `PF_FBRequest` and `PF_FBRequestConnection`. However, you may have other reasons to create json objects in your
+ application, which you would like to treat as a graph object. The pattern for doing this is that you pass the root
+ node of the json to this method, to retrieve a wrapper. From this point, if you traverse the graph, any other objects
+ deeper in the hierarchy will be wrapped as `PF_FBGraphObject`'s in a lazy fashion.
+
+ This method is designed to avoid unnecessary memory allocations, and object copying. Due to this, the method does
+ not copy the source object if it can be avoided, but rather wraps and uses it as is. The returned object derives
+ callers shoudl use the returned object after calls to this method, rather than continue to call methods on the original
+ object.
+
+ @param jsonDictionary the dictionary representing the underlying object to wrap
+ */
++ (NSMutableDictionary<PF_FBGraphObject>*)graphObjectWrappingDictionary:(NSDictionary*)jsonDictionary;
+
+/*!
+ @method
+ @abstract
+ Used to compare two `PF_FBGraphObject`s to determine if represent the same object. We do not overload
+ the concept of equality as there are various types of equality that may be important for an `PF_FBGraphObject`
+ (for instance, two different `PF_FBGraphObject`s could represent the same object, but contain different
+ subsets of fields).
+
+ @param anObject an `PF_FBGraphObject` to test
+
+ @param anotherObject the `PF_FBGraphObject` to compare it against
+ */
++ (BOOL)isGraphObjectID:(id<PF_FBGraphObject>)anObject sameAs:(id<PF_FBGraphObject>)anotherObject;
+
+
+@end
View
63 Parse.framework/Versions/1.1.10/Headers/PF_FBGraphObjectPagingLoader.h
@@ -0,0 +1,63 @@
+/*
+ * Copyright 2012 Facebook
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+