Asset Catalog Asset Calalog は Xcode 5 で新しく追加された、画像を一括管理できる機能です。 これまで Asset Catalog を使ったアプリ開発をいくつか行ってきましたが、ハマったところや、これは便利だな〜と思ったところがありました。ということで、Asset Catalog を使いこなすための Tips を少しですがまとめてみました。 ちなみに本稿は ヤフー vs クラスメソッド の2戦目で話たネタです。 Launch Image をソースコードから参照する Launch Image とはアプリ起動時に表示される画像(スプラッシュ画像)のことです。Asset Catalog では Launch Image という特別な種類で定義されています。 この Launch Image ですが、UIImage として扱うために imageNamed: で取ってこ
2月22 zlib.js 0.2.0 をリリースしました 更新が必要な人 今回は Inflate のアルゴリズム部分のバグ修正となるので、過去のバージョンで Inflate を利用している方は更新する必要があります。 バグ詳細 このコミットの解説となります。 Deflate では、リテラルと長さ・距離符号(LZSS)をハフマン符号化して圧縮します。 ハフマン符号も辞書をそのまま格納するのではなく、符号の長さだけを格納することで更なるサイズ節約を行っています。 さらに、符号の長さもランレングス符号化を行って格納されます。 リテラルと長さ符号、距離符号は別々にハフマン符号化し、それぞれ RFC1951 では HLIT, HDIST と呼ばれています。 このように、別々の辞書を使ってハフマン符号化されるため、ランレングス符号化もそれぞれ別のコンテキストで行われるものだとおもっていたのですが、 ど
OS X 10.7 and iOS 5 introduced new features to Core Data. Initially these feature seemed like it would smooth out some of the pain points that have arisen as the use cases for Core Data have evolved. Specifically, it seemed that they would make concurrency simpler. Unfortunately this hasn’t transpire and over 2 years after their introduction there is still confusion surrounding how these features
A new kind of editor Features User-friendly XML editor (no brackets!) Live validiation against rulesets (RelaxNG or W3C Schema) occuring in the browser Turn text selections into XML elements See document structure at a glance Code completion and contextural help (from schema) Optional keyboard-only interface It should be pretty fast too Screenshot Demo Latest Chrome or Firefox needed Doctored.js 1
やっはろー。これは、iOS Advent Calendar 2013の23日目の記事です。進捗ダメです。 進捗テロや進捗ハラスメントが声高々に叫ばれる昨今、ついに OS X/iOS にも進捗モデルが導入されました。名前を NSProgress と言います。 機能はごく単純で、合計の値と現在の値を渡すと現在の進捗を返します。 const NSInteger totalCount = 100; NSProgress* progress = [NSProgress progressWithTotalUnitCount:totalCount]; for (NSInteger count = 0; count < totalCount; ++count) { [progress setCompletedUnitCount:count]; NSLog(@"%f", [progress fraction
Introduction to Javascript promises Callbacks: a classic approach to async Callbacks are Javascript classic approach to collaborative asynchronous programming. A callback is a function object that is passed to another function as a parameter and that later on must be invoked under some circumstances: for example when an asynchronous function successfully completes a task, it invokes the callback
overview Fez is an über fast, highly configurable, extremely powerful, and somewhat weird general purpose build tool written in JavaScript. Build specs are created with a simple JavaScript-based DSL. The set of rules defined in the spec is used to construct a build graph which is efficiently traversable, enabling Fez to do only the work which needs to be done, and to do work in parallel when it ca
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く