NSObject+FBKVOController.h 880 B

1234567891011121314151617181920212223
  1. /**
  2. Copyright (c) 2014-present, Facebook, Inc.
  3. All rights reserved.
  4. This source code is licensed under the BSD-style license found in the
  5. LICENSE file in the root directory of this source tree. An additional grant
  6. of patent rights can be found in the PATENTS file in the same directory.
  7. */
  8. #import <Foundation/Foundation.h>
  9. #import "FBKVOController.h"
  10. @interface NSObject (FBKVOController)
  11. /**
  12. @abstract Lazy-loaded FBKVOController for use with any object
  13. @return FBKVOController associated with this object, creating one if necessary
  14. @discussion This makes it convenient to simply create and forget a FBKVOController, and when this object gets dealloc'd, so will the associated controller and the observation info.
  15. */
  16. @property (nonatomic, strong) FBKVOController *KVOController;
  17. @property (nonatomic, strong) FBKVOController *KVOControllerNonRetaining;
  18. @end