Post

Swift+RealmでMacアプリケーション (2015.7 Realm Meetup Japan 1/2)

Swift+RealmでMacアプリケーション

古林俊祐さん (@econa77) @ 株式会社ドワンゴ

株式会社ドワンゴ古林俊祐さん (@econa77)Clipyというクリップボードを拡張するMacアプリケーションをRealmを使って開発した際の知見を話していただきました。Clipyはクリップボードを拡張して履歴を扱えるようにしたり、スニペットを管理する機能などを追加することができるアプリケーションで、ClipMenuという同様のアプリケーションが前身になっています。ClipMenuが最近のOSではうまく動かないところが出てきてしまったので、オープンソース化されたClipMenuを参考にSwiftとRealmを使って新たに書き直したものがClipyとなります。現在は前身のClipMenuに機能的に及びませんが、いずれはスニペットのマーケット機能なども追加したいとのことです。

記事の更新情報を受け取る

Realmを利用しようと考えたきっかけは、勤め先のドワンゴのプロジェクトで導入を検討していたので、まず個人のプロジェクトでノウハウを蓄積するためです。Realmは非常にうまく活用でき、今後も使い続けていきたいと考えています。

Tipsとして話された、RLMResultsオブジェクトが常に最新の状態を反映する点や、RLMArrayが順序を保存する点をうまく活用する方法や、SwiftのEnumをキレイに扱う方法などがたいへん参考になります。

About the content

This content has been published here with the express permission of the author.

Realm Team

At Realm, our mission is to help developers build better apps faster. We provide a unique set of tools and platform technologies designed to make it easy for developers to build apps with sophisticated, powerful features — things like realtime collaboration, augmented reality, live data synchronization, offline experiences, messaging, and more.

Everything we build is developed with an eye toward enabling developers for what we believe the mobile internet evolves into — an open network of billions of users and trillions of devices, and realtime interactivity across them all.

4 design patterns for a RESTless mobile integration »

close