Skip to content

Commit

Permalink
Moved animationStyle to dedicated methods so they can be documented
Browse files Browse the repository at this point in the history
  • Loading branch information
aparajita committed Mar 23, 2012
1 parent 429b42d commit 7c807dd
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion AppKit/CPPopover.j
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ var CPPopoverDelegate_popover_willShow_ = 1 << 0,
@outlet id _delegate @accessors(getter=delegate);

BOOL _animates @accessors(property=animates);
int _animationStyle @accessors(property=animationStyle);
int _animationStyle;
BOOL _shown @accessors(getter=shown);
int _appearance @accessors(property=appearance);
int _behavior @accessors(getter=behavior);
Expand Down Expand Up @@ -178,6 +178,27 @@ Set the behaviour of the CPPopover. It can be:
_needsCompute = YES;
}

/*!
Returns the current animation style.
*/
- (int)animationStyle
{
return _animationStyle;
}

/*!
Set the animation style of the CPPopover. It can be:
- \c CPPopoverAnimationStyleLion: (DEFAULT) the popover will zoom open and fade out when closing
- \c CPPopoverAnimationStyleIOS: the popover appears instantly when opening and fades out when closing
@param style the desired animation style
*/
- (void)setAnimationStyle:(int)style
{
_animationStyle = style;
}


- (void)setDelegate:(id)aDelegate
{
Expand Down

0 comments on commit 7c807dd

Please sign in to comment.