OS X Yosemite introducedJavaScript for Automation. This makesit possible to access native OS X frameworks withJavaScript. I’ve been digging in to this new world and putting together examples along the way. In this post I’ll explain the basics and step throughbuilding a small example app. WWDC 2014 included asession onJavaScript for Automation. Thesession explained that you would be able to


README.md Cupertino.js - CompileJavascript toCocoa Cupertino.js is a implementation of theJavascriptprogramming language designed withCocoa support as a primary consideration.It includes a static compiler and uber dynamic runtime that sits atop of the Objective-C runtime.It exposes asimple interface to Objective-C:Javascript code is statically compiled to Objective-C. Objects and functio

In your project, under Info > Localizations, add a new language. Replace with the strings file generated. Plural Support New in Foundation, you can have a .stringsdict file alongside the .strings. Refer to the section on Localized Property List File. The dict looks like this: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/Prop
The document discusses the development and features ofMacRuby andRubyMotion, two projects by Laurent Sansonetti that leverage LLVM forRuby compilation.RubyMotion provides a command-line toolchain for developing iOS and OS X applications with a unifiedRuby runtime, while also incorporating Objective-C and enabling static compilation for different architectures. Additionally, the document highl
One of the most rewarding experiences you can have as a developer is to teach young people how to program. If you ever grow jaded by how fundamentally broken all software is, there’s nothing like watching a concept like recursion click for the first time to offset your world-weariness. My favorite way to introduce the concept ofprogramming is to set out all the ingredients for a peanut butter and

https://github.com/laiso/CocoaWSSE 特になんの変哲もない感じのやつです。なかったので作りました。 クライアント向けにユーザー/パスワードからヘッダーの文字列を生成します。 NSMutableURLRequest* req = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"http://..."]]; [req setValue:[CocoaWSSE headerWithUsername:@"sample" password:@"passwd"] forHTTPHeaderField:@"X-WSSE"]; [NSURLConnection sendAsynchronousRequest:req queue:[NSOperationQueue mainQueue] completionH
[Video] http://www.youtube.com/watch?v=s1dhXamEAKQ TildのYehuda KatzのGolden GateRuby Conference 2013での講演。Ruby onRailsのクリエーターであるDavid Heinemeier Hanssonが、「JavaScript勢はダブルMVCで苦しんでいる。サーバとクライアント両方にMVCが必要で複雑すぎる。」とTwitterで発言したのに対して、Yehudaは、それでは誤解を与えると危惧し、GUIプログラミングが歴史的にどのようにMVCに発展してきたかを紹介することで、ダブルMVCが本当に意味するところを解説しています。 DHHの発言は、盛り上がってきたMeteor / Node.js勢に対する単なる批判っぽいですが、それに対してYehudaはロジカルに話をまとめてます。 スライドを
CocoaPodsでのライブラリ公開 Objective-CなライブラリはCocoaPodsにてインストールする事が殆どですが、CocoaPods でライブラリを公開するにはライブラリの定義ファイルであるpodspecを、CocoaPods/SpecsにPullRequestして取り込んで貰う必要があります。 Contributing to the master repo ·CocoaPods/CocoaPods Wiki の手順に乗っ取って普通に手動でやっても問題無いですが、更新の度にやるのは結構面倒です。 そこで、CocoaPodsのサブコマンドの pod push をつかってやる手順についての記事です。 pod push 必要なものCocoaPodsgithub/hub pod help push で見るとわかりますが、pod push は単純に指定したspecファイルをl
OSX Leopard以降のバージョンから、OSX標準でバンドルされている辞書アプリケーションのAPIであるDictionary Servies*1が公開されていて、Dictionary Services Referenceのページでリファレンスを閲覧することが出来る。今まで辞書的な資源を利用する場合はWebをスクレイピングする等していたが、OSXローカルで用いるツールならばDictionary Serviesを用いても良い気がしたのでとりあえず単純に辞書を引くだけのアプリケーションを実装してみた。 #import <Foundation/Foundation.h> #import <CoreServices/CoreServices.h> int dict(NSString*word){ NSString*result = (NSString*)DCSCopyTextDefinition
TemperatureConverter 以下は、Mac OS X 10.4.11 上の Xcode 2.5 で説明しています。 1 README.rtf の日本語訳 異なる表現の間でデータを自動的に変換するために NSValueTransformer を使う単純なサンプルです。このサンプルの目的は、独自の NSValueTransformer のサブクラスを作成して使用する方法を示すことです。そうしないなら、より少ないコード行を使って、「通常の間に入るコード (regular glue code)」を使って、温度変換機を作成することは可能です。Temperature Converter は、ユーザーが 4 つの異なる単位のどれかで温度値を入力できる単純なユーザーインターフェイスを提示し、アプリケーションは他の 3 つの単位における温度を自動的に変換し表示することになります。4 つの単位
Written by Mattt October 17th, 2018 (revised) This article has been translated into: 中文 Of all the Foundation classes, ValueTransformer is perhaps the one that fared the worst in the shift frommacOS to iOS. Why? Here are two reasons: First, ValueTransformer was used primarily in AppKit withCocoa bindings. There, they could automatically transform values from one property to another, like for neg

リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く