Skip to content

Commit

Permalink
fix dispatch_source_t on array
Browse files Browse the repository at this point in the history
  • Loading branch information
priore committed Dec 13, 2015
1 parent 71faff6 commit 64a0923
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions SnowFalling/Classes/SnowFalling.m
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,12 @@ - (void)removeAllFlakesWithAnimation:(BOOL)animated;
@end

@interface DispatchTimeObject : NSObject

@property (nonatomic) dispatch_source_t source;
{
dispatch_source_t _source;
}

- (instancetype)initWithSource:(dispatch_source_t)source;
- (dispatch_source_t)source;

@end

Expand Down Expand Up @@ -498,11 +500,16 @@ @implementation DispatchTimeObject
- (instancetype)initWithSource:(dispatch_source_t)source
{
if (self = [super init]) {
self.source = source;
_source = source;
}

return self;
}

- (dispatch_source_t)source
{
return _source;
}

@end

0 comments on commit 64a0923

Please sign in to comment.