平素よりQA@ITをご利用いただき、誠にありがとうございます。 QA@ITは「質問や回答を『共有』し『編集』していくことでベストなQAを蓄積できる、ITエンジニアのための問題解決コミュニティー」として約7年間運営をしてきました。これまでサービスを続けることができたのは、QA@ITのコンセプトに共感をいただき、適切な質問や回答をお寄せいただいた皆さまのご支援があったからこそと考えております。重ねて御礼申し上げます。 しかしながら、エンジニアの情報入手方法の多様化やQAサービス市場の状況、@ITの今後のメディア運営方針などを検討した結果、2020年2月28日(金)15:00をもちましてQA@ITのサービスを終了することにしました。 これまでご利用をいただきました皆さまには残念なお知らせとなり、誠に心苦しく思っております。何とぞ、ご理解をいただけますと幸いです。 QA@ITの7年間で皆さまの知識
NSArray *array = @[@"Apple", @"cocoa", @"apple", @"beta", @"Xcode", @"2013", @"35", @"Beta", @"0.9", @"70.4"]; ※以降のサンプルコードは次の環境で作成しています。 Xcode 4.6.3 iOS SDK 6.1 文字コード順に取得したい [NSArray sortedArrayUsingSelector:]でいけるみたい。 NSArray *array = @[@"Apple", @"cocoa", @"apple", @"beta", @"Xcode", @"2013", @"35", @"Beta", @"0.9", @"70.4"]; array = [array sortedArrayUsingSelector:@selector(compare:)]; NSLog(@"%
Objective-C でシングルトンパターンのクラスを作成するメモです。 シングルトンパターンとは、クラスのインスタンスがひとつしか生成されないことを保証するデザインパターンです。NSUserDefaults などがシングルトンなクラスです。 シングルトンなクラスを作成するときのポイントです。 静的インスタンスを生成して、ひとつだけ作成したインスタンスを入れておく アップルが推奨しているクラスファクトリーメソッド名(sharedInstance や sharedManager) を使用して、インスタンス未生成時のみインスタンスを生成する インスタンスがひとつしか生成されないことを保証するために [[Hoge alloc] init] とされた場合の対策をしておく retain, retainCount, copyWithZone, release, autorelease をオーバライド
This may seem like an easy problem, but I honestly can't figure out how to solve it. Whenever I launch my application, The first row of my NSTableView is always selected. I want the default behavior of the table view to be no selected rows. How can I accomplish this in the Interface Builder portion of Xcode4?
Your Mac has a fully-fledged version of UNIX as its operating system, which means it has a massive amount of pre-installed command line utilities and scripting languages. Swift, Perl, Python, Bash, Ruby, plus anything you can install. Wouldn’t it be nice to use to that power to create awesome apps? NSTask allows you to execute another program on your machine as a subprocess and monitor its executi
テーブル列ヘッダを選択すると、その列のセル全てが選択されるかをセットします -(void)setAllowsColumnSelection:(BOOL)flag: 解説 テーブル列ヘッダを選択すると、その列のセル全てが選択されるかをセットします。 YESをセットすると、テーブル列ヘッダを選択することでその列のセル全てが選択されます。 NOをセットするとテーブル列ヘッダを選択しても、セルは選択されません。 この設定に関係なくプログラム上でテーブル列を選ぶことはできます。 返り値 ( void ) なし 引数 ( BOOL )flag YES/NO フレームワーク ApplicationKit クラス NSTableView Instance Methods 使用可能 10.0 参照 - selectColumn:byExtendingSelection: - setAllowsColumnR
I need completely close my application when a user closes the document window using the applications at runtime. Currently when they click the window, the application stays open and is displaying its menu bar. I read this article for iOS and to add an entry into the plist file: http://developer.appcelerator.com/question/40081/ios4---make-app-not-run-in-background What is the easiest way for me to
OS Xアプリケーションの振る舞い等を設定するときに用いる環境設定ウィンドウを作る。 環境設定ウィンドウについて 環境設定ウィンドウの特徴は、 Escapeキィ(もしくはCommand-.)で閉じられる アクティヴ時にはメインウィンドウになっている ツールバーを持ち、そのツールバー項目をクリックすることでヴューを切り替える ヴューを切り替える際にウィンドウのサイズがアニメーションを伴って変化する ここでは、上記のような特徴を持つ環境設定ウィンドウの、ウィンドウとしての振る舞いを実装する。実際にアプリケーションの設定をする方法は別論(NSUserDefaults等を用いる)。 今回作成したプロジェクトはGenjiApp/PrefWindowApp - GitHubで公開するので参照のこと。 なお、Xcodeはヴァージョン4.5.1を用いた。 Xcodeプロジェクトの作成 Xcodeを起動し、
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く