Skip to content

Instantly share code, notes, and snippets.

@acoomans
Created November 21, 2013 23:55
Show Gist options
  • Save acoomans/7592169 to your computer and use it in GitHub Desktop.
Save acoomans/7592169 to your computer and use it in GitHub Desktop.
Headers of Facebook's internal frameworks: FBUIKit, FBBase, FBAppKit, FBFoundation
/** FBUIKit */
@interface UIImageView (FBUIKit)
+ (id)imageViewWithImageNamed:(id)arg1;
@end
@interface UITableView (FBUIKit)
- (id)indexPathForLastRowInSection:(int)arg1;
- (id)indexPathForLastRow;
@end
@interface UIViewController (FBUIKit)
- (id)fb_effectiveChildViewControllers;
- (id)fb_recursiveViewControllerDescription;
- (void)_fb_appendRecursiveViewControllerDescriptionToString:(id)arg1 prefix:(id)arg2 childPrefix:(id)arg3;
@property(readonly, nonatomic) BOOL fb_isApplicationPresentingModally;
- (BOOL)_fb_isModal;
- (id)_fb_viewControllerDescription;
@property(readonly, nonatomic) UIViewController *fb_presentedViewController;
- (void)fb_dismissViewControllerAnimated:(BOOL)arg1 completion:(id)arg2;
- (void)fb_presentViewController:(id)arg1 animated:(BOOL)arg2 completion:(id)arg3;
- (void)customizeNavigationBarWithCancelButton:(id)arg1 doneButton:(id)arg2;
- (void)unobserveKeyboardNotifications;
- (void)observeKeyboardNotifications;
@property(readonly, nonatomic) float fb_navigationSearchBarRightOffset;
@property(readonly, nonatomic) BOOL hasTrivialNavigationBar;
- (void)_keyboardDidChangeFrame:(id)arg1;
- (void)_keyboardWillChangeFrame:(id)arg1;
- (void)fb_keyboardWillHide:(id)arg1;
- (void)fb_keyboardWillShow:(id)arg1;
@property(readonly, nonatomic) id <FBViewControllerPresenter> fb_viewControllerPresenter;
@property(readonly, nonatomic) UIViewController<FBUINavigationController><FBNavigationController> *fb_navigationController;
@property(nonatomic) BOOL fb_showAuxiliaryViewController;
@property(readonly, nonatomic) BOOL fb_useDefaultSearchText;
@property(readonly, nonatomic) SEL fb_actionForTopNavComposerButton;
@property(readonly, nonatomic) SEL fb_actionForChatBarButton;
@property(readonly, nonatomic) BOOL fb_showNavBarSearchField;
@property(readonly, nonatomic) int fb_preferredPresentationStyle;
@property(readonly, nonatomic) BOOL fb_presentOverlaid;
@property(readonly, nonatomic) BOOL fb_hidesNavigationBar;
@property(readonly, nonatomic) float fb_immersionFraction;
@property(readonly, nonatomic) BOOL fb_showBackArrowButton;
@property(readonly, nonatomic) BOOL fb_swipeToOpenLeftNav;
@property(readonly, nonatomic) BOOL fb_deferSwipeToOpenLeftNav;
- (BOOL)fb_touchShouldPreventSwipeToOpenLeftNav:(id)arg1;
@property(readonly, nonatomic) NSArray *fb_supplementalLeftBarButtonItems;
@property(readonly, nonatomic) BOOL fb_showNavigationJewels;
@end
/** FBBase */
@interface NSString (FBBase)
+ (id)dataWithBase32String:(id)arg1;
+ (id)keyPathWithComponents:(id)arg1;
+ (BOOL)isNilOrWhiteSpace:(id)arg1;
- (id)fb_snakeCaseToCamelCaseWithSpaces:(BOOL)arg1 capitalizeFirstWord:(BOOL)arg2;
- (id)newStringByTrimmingWhitespace;
- (id)stringTruncatedToLength:(unsigned int)arg1;
- (id)stringByAddingQueryDictionary:(id)arg1;
- (id)sha1HexDigest;
- (id)md5HexDigest;
@end
/** FBAppKit */
@interface CALayer (FBAppKit)
@property(nonatomic) struct CGPoint center;
- (struct CGPoint)positionToCenterAtPoint:(struct CGPoint)arg1;
@end
/** FBFoundation */
@interface NSSet (FBFoundation)
- (id)dictionaryWithKeyBlock:(id)arg1;
- (id)dictionaryWithKeyPath:(id)arg1;
- (id)dictionaryWithKey:(id)arg1;
@end
@interface NSOrderedSet (FBFoundation)
- (void)enumerateObjectsInRange:(struct _NSRange)arg1 usingBlock:(id)arg2;
- (id)dictionaryWithKeyBlock:(id)arg1;
- (id)dictionaryWithKeyPath:(id)arg1;
- (id)dictionaryWithKey:(id)arg1;
- (id)setByPerformingBlock:(id)arg1;
@end
@interface NSCountedSet (FBFoundation)
- (id)descriptionWithCounts;
@end
@interface NSArray (FBFoundation)
- (void)enumerateObjectsInRange:(struct _NSRange)arg1 usingBlock:(id)arg2;
- (id)newArrayWithKeyBlock:(id)arg1;
- (id)newDictionaryWithKeyBlock:(id)arg1 valueBlock:(void)arg2;
- (id)newDictionaryWithKeyBlock:(id)arg1;
- (id)dictionaryByGroupingWithKey:(id)arg1;
- (id)dictionaryWithKeyPath:(id)arg1;
- (id)dictionaryWithKey:(id)arg1;
- (id)arrayByPerformingInRange:(struct _NSRange)arg1 block:(id)arg2;
- (id)arrayByPerformingBlock:(id)arg1;
- (id)arrayByPerformingSelector:(SEL)arg1;
- (id)setByPerformingBlock:(id)arg1;
- (id)setByPerformingSelector:(SEL)arg1;
- (id)indexesOfObjectsIdenticalTo:(id)arg1;
- (id)indexesOfObjects:(id)arg1;
@property(readonly, nonatomic) id firstObject;
@end
@interface NSDictionary (FBFoundation)
- (id)objectForKeys:(id)arg1;
- (id)objectForPointerKey:(void *)arg1;
- (id)objectForIntegerKey:(unsigned int)arg1;
@end
@interface NSMutableSet (FBFoundation)
- (void)removeObjects:(id)arg1;
- (void)addObjectIfNotNil:(id)arg1;
@end
@interface NSMutableArray (FBFoundation)
+ (id)newArrayWithCapacity:(unsigned int)arg1 retain:(BOOL)arg2;
+ (id)arrayWithSet:(id)arg1;
- (void)removeFirstObject;
- (void)moveObjectAtIndexToEnd:(unsigned int)arg1;
- (void)addObjectIfNotNil:(id)arg1;
@end
@interface NSMutableDictionary (FBFoundation)
- (void)removeIntegerForPointerKey:(void *)arg1;
- (void)setInteger:(int)arg1 forPointerKey:(void *)arg2;
- (void)removeObjectForPointerKey:(void *)arg1;
- (void)setObject:(id)arg1 forPointerKey:(void *)arg2;
- (void)removeIntegerForKey:(id)arg1;
- (void)setInteger:(int)arg1 forKey:(id)arg2;
- (void)removeObjectForIntegerKey:(unsigned int)arg1;
- (void)setObject:(id)arg1 forIntegerKey:(unsigned int)arg2;
- (void)updateObject:(id)arg1 forKey:(id)arg2;
@end
@interface NSData (FBFoundation)
- (BOOL)isPNG;
- (BOOL)isJPEG;
- (id)hexStringValue;
@end
// note: those calls are available in UIKit
@interface NSValue (FBFoundation)
- (struct UIEdgeInsets)edgeInsetsValue;
- (id)initWithUIEdgeInsets:(struct UIEdgeInsets)arg1;
- (id)initWithCGSize:(struct CGSize)arg1;
- (id)initWithCGPoint:(struct CGPoint)arg1;
- (id)initWithCGRect:(struct CGRect)arg1;
@end
@interface NSManagedObjectContext (FBFoundation) <FBPerforming>
- (BOOL)isCurrentPerformer;
- (void)deleteObjects:(id)arg1;
- (id)existingObjectsWithIDs:(id)arg1;
- (id)objectsWithIDs:(id)arg1;
- (id)objectsRegisteredForIDs:(id)arg1;
- (BOOL)saveIfNeeded:(id *)arg1;
- (id)fireBatchFaults:(id)arg1 relationshipKeyPathsForPrefetching:(id)arg2 onlyObservedObjects:(BOOL)arg3;
- (id)fetchObjectsWithIDs:(id)arg1 entity:(id)arg2;
- (id)fetchObjectsWithIDs:(id)arg1 entityName:(id)arg2;
- (id)fetchObjectsType:(id)arg1 withSortDescriptor:(id)arg2;
- (id)fetchObjectsType:(id)arg1 withPredicate:(id)arg2 sortDescriptor:(id)arg3 andFetchLimit:(unsigned int)arg4;
- (id)fetchObjectsType:(id)arg1 withPredicate:(id)arg2 sortDescriptor:(id)arg3;
- (id)fetchObjectsType:(id)arg1 withPredicate:(id)arg2;
- (id)fetchObjectsType:(id)arg1 withKey:(id)arg2 equalTo:(id)arg3;
- (id)fetchFirstObjectType:(id)arg1 withKey:(id)arg2 ascending:(BOOL)arg3;
- (id)fetchFirstObjectType:(id)arg1 withSortDescriptor:(id)arg2;
- (id)fetchObjectType:(id)arg1 withPredicate:(id)arg2;
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment