这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@ryanlntn
Copy link
Member

No description provided.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of implementing this, could we alias?

alias_method :max_left_width, :maximumLeftDrawerWidth
alias_method :max_left_width=, : setMaximumLeftDrawerWidth

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd be cool with that. RubyMotion automatically aliases setX methods to x=, so you could do:

alias_method :max_left_width, :maximumLeftDrawerWidth
alias_method :max_left_width=, :maximumLeftDrawerWidth=

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's true, so I'm fine with either syntax.

@macfanatic
Copy link
Contributor

I'd vote to rebase this into 1 commit, and then I'd love to merge it in.

Update README

Switch to alias and move to Drawer

Move back into Visibility using class_eval
@ryanlntn
Copy link
Member Author

Rebased!

macfanatic added a commit that referenced this pull request Aug 31, 2014
Add ability to set maximum drawer width
@macfanatic macfanatic merged commit 239a5f5 into infinitered:master Aug 31, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants