Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ステータス メニューがクリックされたときに関数を呼び出すようにします。そのアクションを割り当てる方法は何ですか? 以下のようなものですが、メニュー自体です。
NSMenuItem* item = [[NSMenuItem alloc] initWithTitle:@"Title" action:@selector(doX) keyEquivalent:@""];
メニューのデリゲートを設定し、指定したデリゲートにプロトコル メソッドを実装することで、メニュー オープニング イベントにフックできます-[<NSMenuDelegate> menuWillOpen:]。
-[<NSMenuDelegate> menuWillOpen:]
約2000ファイルのテキストのブロックを置き換え、include('myText.php');に置き換える必要があります。
ここでの問題は、それがhtmlファイルにあるということです。その場合、私もphpタグを入れる必要がありますが、それを行う方法が見つかりません。
これが私のコードです<