Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

Commit

Permalink
Specify PROViewModel's parentViewModel property is nil by default
Browse files Browse the repository at this point in the history
  • Loading branch information
joshvera committed Apr 10, 2012
1 parent 24315c6 commit b0f505c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Proton/PROViewModel.h
Expand Up @@ -103,14 +103,16 @@ typedef enum {
/**
* The immediate parent view model of the receiver. Returns `nil` if the
* receiver is the <rootViewModel> for its hierarchy.
*
* This property is `nil` by default.
*/
@property (nonatomic, weak) PROViewModel *parentViewModel;

/**
* The root view model of the receiver.
*
* This returns the <[PROViewModel rootViewModel]> of the receiver's
* <parentViewModel>.
* Returns the <[PROViewModel rootViewModel]> of the receiver's <parentViewModel>
* or the receiver if no <parentViewModel> is `nil`.
*/
@property (nonatomic, weak, readonly) PROViewModel *rootViewModel;

Expand Down

0 comments on commit b0f505c

Please sign in to comment.