ReactiveCocoa 2.xを使ったサンプルアプリでのフロー制御例を紹介します。
先週の土曜日にReactiveCocoa (以下RAC)というOSX / iOSで使うリアクティブプログラミング(RP)フレームワークの勉強会を開催しました。 当日の資料 当日の資料のうち、見つけられたものは以下にまとめました。 はじめてのReacitveCocoa @tinpayさん はじめてのReactiveCocoa from Shohei Fukui https://github.com/tinpay/RACWarikan ReactiveCocoa勉強会に参加してきました #rac_kansai . ゆるやかなReactiveCocoaの導入 @ninjinkun 実践!Twitter API+ReactiveCocoa @atsusy さん var RAC3 = ReactiveCocoa + Swift @ikesyo さん var RAC3 = ReactiveCocoa
Around one month ago my two-part tutorial series on how to use the MVVM pattern with ReactiveCocoa was published on Ray Wenderlich’s website. Unfortunately just before the publication date Apple launched the Swift beta, a language which is much better suited to functional programming than Objective-C. I’ve ported the app to Swift, and the code looks much more elegant as a result. This blog post sh
We build brilliant digital products and teach others to do the same. Services From startups to mature giants, we partner with companies to transform their vision to a reality. Learn More Training Engineers & designers trust our instructors because they are best-selling authors who work on Fortune 100 projects. Learn More
Ever wanted to learn about functional programming, but didn't know where to start? Grab this book to learn about applied, real-world use of functional reactive programming with Objective-C using ReactiveCocoa. Note: This book relied upon the 500px API, which is no longer accessible. I have retired the book. If you recently purchased a copy, please request a refund. Thanks! 1. Functional Philosophy
EngineeringReactiveCocoa for a better worldNative apps spend a lot of time waiting and then reacting. We wait for the user to do something in the UI. Wait for a network call to respond. Wait… Native apps spend a lot of time waiting and then reacting. We wait for the user to do something in the UI. Wait for a network call to respond. Wait for an asynchronous operation to complete. Wait for some dep
前提知識 Functional Programing Functional JavaScript Functional Reactive Programing elm言語 reactive programming リアクティブプログラミング iOSにおけるMVVM M: Model V: View VM: View Model Apple推奨のMVCは、CがVに依存しているため、Cを再利用しにくい。 V <- C -> M MVVMの場合、VMはCの役割に相当するが、Vに依存しない。 V -> VM -> M VはVMを持ち、VMはMを持つ。 MからVMへ、またはVMからVへの通知はシグナルで行う。 例えばローディングスピナーを表示する場合、VMはスピナーを表示すべきかどうかのBOOL値を持つ。VはVMのBOOL値の変更のシグナルに合わせて表示、非表示を切り替える。 MVVMのメリット 宣
StreamとかSignalなどの用語の意味はReactiveCocoa/Documentation/FrameworkOverview.md at master · ReactiveCocoa/ReactiveCocoa · GitHubに書いてある. 以下それらの用語まとめ Stream (RACStream) 変化する一連の値(オブジェクト)を表す.値が変化する順番にしか取れない. HaskellのモノイドとかMonadZipのような型クラスと同等のものを実装している. Stream自体を直接使うことは少なく(RACStreamは抽象クラス),signalsやsequencesとして使うことが多い. Signal (RACSignal) push-drivenなstream. 処理が実行されたりデータを受け取ると,シグナルにより値が送られる(? 原文: "values are sen
iOS Advent Calendar 2013 14日目担当の @ikesyo です。 Function Reactive Programming Framework - Reactive Cocoa | Cocoaの日々情報局 iOS - ReactiveCocoaについて - Qiita [キータ] ReactiveCocoaのまとめ資料 - Qiita [キータ] Objective-C - ReactiveCocoaに出てくる用語の整理 - Qiita [キータ] [iOS]ReactiveCocoaFramework入門 | アドカレ2013 : SP #11 といった感じで今年1年で大分有名になってきた感がある ReactiveCocoa というリアクティブプログラミングライブラリーがあります。 このエントリーではその中でもObjective-CのランタイムAPIの利用箇所に
この記事ではXcode5とARCを使用することを前提にしています。 はじめに iOSやMacOSで提供されるOSのフレームワークでは UIイベントをキャッチする インスタンスのプロパティ等を監視する サーバにリクエストを投げてレスポンスが待つ 非同期で何か重たい処理を行う といった外部で起こる時々刻々の変化を捉えるために様々な方法が提供されています。 Delegate Selector Key Value Observing Notification Center Grand Central Dispatch アプリに要求されるパフォーマンス等と相談しながらこれらの仕組みを使い分けるのも非常に重要ですが、 これら時々刻々の値の流れを捉え、一括して管理しやすく扱うための包括的なフレームワークがあります。 それがReactiveCocoaFrameworkです。 ReactiveCocoaの導
Note: This is going to be a slightly more technical post geared toward our friends in the iOS developer community. In my previous post, I covered high-level aspects of ReactiveCocoa, the Objective-C framework that allows developers to write apps declaratively. Now I’d like to introduce some patterns in ReactiveCocoa, discuss a few best practices, and outline common gotchas to be on the lookout for
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く