Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

Update interface of ASViewController to use lightweight generics. #1029

Merged
appleguy merged 1 commit intofacebookarchive:masterfrom
rahul-malik:rmalik-asviewcontroller-generics
Jan 4, 2016
Merged

Update interface of ASViewController to use lightweight generics. #1029
appleguy merged 1 commit intofacebookarchive:masterfrom
rahul-malik:rmalik-asviewcontroller-generics

Conversation

@rahul-malik
Copy link
Copy Markdown
Contributor

This pull request allows subclasses of ASViewController to specify the type of ASDisplayNode it
contains which allows for stronger type-checking and auto-completion against
the specified display node type.

Example Subclass Declaration:

@interface MyASViewController : ASViewController<MyASDisplayNodeSubclass *>
@end

…s allows

subclasses of ASViewController to specify the type of ASDisplayNode it
contains which allows for stronger type-checking and auto-completion against
the specified type.

Example Subclass Declaration:
@interface MyASViewController : ASViewController<MyASDisplayNodeSubclass *>
@EnD
@appleguy
Copy link
Copy Markdown
Contributor

appleguy commented Jan 4, 2016

Awesome! Thanks @rahul-malik :)

@appleguy appleguy added this to the 1.9.5 milestone Jan 4, 2016
appleguy added a commit that referenced this pull request Jan 4, 2016
…erics

[ASViewController] Update interface to use lightweight generics (covariant node type).
@appleguy appleguy merged commit 5737f31 into facebookarchive:master Jan 4, 2016
@rahul-malik rahul-malik deleted the rmalik-asviewcontroller-generics branch January 4, 2016 17:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants