Microsoft Word - MDOnline 2001.

Similar documents
Microsoft Word - MDOnline 2001.

TextSystemOverview



カメラ操作のプログラミング(iOS用)について (TP )

NSDate NSCalendarDate NSObject NSDate NSCalendarDate NSDate NSCalendarDate NSDate NSCalendar NSDate date NSDate *d = [ NSDate date ]; // NSDate : + (i

UI コントロール機能一覧通常の記録機能でコントロールが Unknown と記録された場合 UI コントロールをご使用頂くと動作可能となります 命令や例を参考に 行いたい操作に合う UI コントロール機能をご使用ください また 行いたい操作が一覧にない場合は お問い合わせください 注意 通常の記録機

piyo0704b.rtfd

ボタンイベントアプリイベント処理を含むアプリとして, ボタンをもち, ボタンを押すと文字列を表示するアプリを作る. このアプリは,HelloWorld アプリを改造して作成するため, アプリ作成の途中からの手順を示す. 1. ボタンの設置 (1) レイアウトにボタンを追加するパレットの フォーム ウ

ファイルを直接編集する画面を切り替えることができる. 図 3 標準のレイアウトを削除する (2) グラフィカル レイアウト画面で LinearLayout(Vertical) を追加するパレットウィンドウの レイアウト の中にある LinearLayout(Vertical) をドラッグして, 編集

Publication Finder( 出版物検索インターフェイス ) の設定 1.Customize Services Branding をクリックして下さい 2. 画面が下図のものに切り替わります この画面の設定が実際のインターフェイスに反映されます General Settings: 基本設定

) CoreImage 2013/5/25 iphone

mazec テクニカルガイド第5版(Android版)

Java言語 第1回

GUIプログラムⅣ

Lecture 2 Slides (January 7, 2010)

ラベルを管理するクラス Label ラベルはクラス Label により管理され 各種設定を行うメソッドが準備されています ラベルの生成 new Label("1. 通常のラベルです "); ラベルのサイズ setprefsize(200,100); ラベル文字が 1. 通常のラベルです で横 200

VB.NETコーディング標準

Blue Asterisk template

intra-mart Accel Platform — イベントナビゲータ 開発ガイド   初版  

intra-mart Accel Platform — IM-Repository拡張プログラミングガイド   初版  

TEL ,3300 FAX ( ) 14 ( ) 7 ( ) 16 ( ) 16 ( ) 23 ( ) (%) 1 ( ) 1 ( ) 2 ( ) 7 ( ) 7 ( ) 22 ( ) 8 ( ) 22 ( ) 30 ( ) or 31( )

Network Computing の基礎

JavaScriptCore

Condition DAQ condition condition 2 3 XML key value

Table of Contents 1. ページに透かしを入れる 各ページに透かしを入れるには 段落に対して透かしを入れるには クレジット ライセンス

Q&A集

Object MenuComponent MenuBar MenuItem Menu CheckboxMenuItem

1: Preference Display 1 package sample. pref ; 2 3 import android. app. Activity ; 4 import android. content. Intent ; 5 import android. content. Shar

Taro-korattsu.jtd

Microsoft PowerPoint - uniCMS操作マニュアル.ppt

untitled

セゾン保険_PDF用.indd

fp.gby

Java演習(4) -- 変数と型 --

r07.dvi

ohp07.dvi

TestDesign for Web

MyEventHandler actionhandler = new MyEventHandler(); m.addeventhandler(actionevent.any, actionhandler); // レイアウト BorderPane を生成 / 設定します BorderPane bp

lifedesign_contest_No3

橡07第1章1_H160203_.PDF

untitled

注意 : ネットワークカメラの画像を回転させて表示した場合 モーション検知ウインドウは回転しないまま表示されますが 検知ウインドウは被写体に対して 指定した場所通りに動作します モーション検知ウインドウの縦横のサイズは 8 ピクセルで割り切れるサイズに自動調整されます モーション検知ウインドウを作成

Objective-C Objective-C C Toolbox API Cocoa Objective-C Java Carbon API C API Objective-C Java Pure Java Java AppleScript Java Objective-C Project Bui

MENU 키를 누르면 아래의 화면이 나타납니다

Oracle JDeveloper 10g ADF Creation Date: Jul 07, 2004 Last Update: Jul 08, 2004 Version 1.0


AirPrintPublic

1 138

Microsoft PowerPoint - CSS(Cascading Style Sheets)の基本.pptx

Microsoft PowerPoint _秀英体の取組み素材(予稿集).ppt

Exam : 1z1-809-JPN Title : Java SE 8 Programmer II Vendor : Oracle Version : DEMO Get Latest & Valid 1z1-809-JPN Exam's Question and Answers 1 from Ac

(Java/FX ) Java CD Java version Java VC++ Python Ruby Java Java Eclipse Java Java 3 Java for Everyone 2 10 Java Midi Java JavaFX Shape Canvas C

1 142

ProVisionaire Control V3.0セットアップガイド

SVG資料第6回目(その3) SVGとHTMLの間でデータを交換する

Copyright SATO International All rights reserved. This software is based in part on the work of the Independen

とても使いやすい Boost の serialization

Microsoft Word - colors

EnSight 10.1の新機能


public class MyFrame { private JPanel panel1; private JPanel panel2; private JPanel panel3; private JPanel panel4; private JLabel label1; private JTex

intra-mart Accel Platform — イベントナビゲータ 開発ガイド   初版   None

インターネットマガジン1995年8月号―INTERNET magazine No.7

橡Taro9-生徒の活動.PDF

超簡単にWebページを作成

intra-mart マスカット連携ガイド

G mcd

untitled

HA8000シリーズ ユーザーズガイド ~BIOS編~ HA8000/RS110/TS10 2013年6月~モデル

3 top#index 1 web router.ex web/router.ex 12 scope "/", NanoPlanner do 13 pipe_through browser get "/", TopController, index 16 end URL / to

NSBitmapImageRep NSBitmapImageRep *brep = ; int inumframe = [ [ brep valueforproperty : NSImageFrameCount ] intvalue ]; NSBitmapImageRep valueforprope

# let st1 = {name = "Taro Yamada"; id = };; val st1 : student = {name="taro Yamada"; id=123456} { 1 = 1 ;...; n = n } # let string_of_student {n

人工知能入門

Assignment9_1.java

Microsoft PowerPoint - OOP.pptx



目 次 Java GUI 3 1 概要 クラス構成 ソースコード例 課題...7 i

PYTHON 資料 電脳梁山泊烏賊塾 PYTHON 入門 ゲームプログラミング スプライトの衝突判定 スプライトの衝突判定 スプライトの衝突判定の例として インベーダーゲームのコードを 下記に示す PYTHON3 #coding: utf-8 import pygame from pygame.lo

<4D F736F F D20694F538F5A91EE A20838A C >

2 下記は電子メールのサンプルです 閲覧 / 署名手順 合意書を閲覧するには [Review Document( 文書の表示 )] ボタンをクリックしてください DocuSign 電子署名プラットフォームに移動し [Continue( 続行 )] ボタンをクリックすると 合意書の閲覧ができます

WP_8021X Authentication_21MAY2012

Microsoft Word - sample_adv-programming.docx



piyo0704a.rtfd

合宿事前講座 Web 開発の基本編その 2 情報研究会モブ 薗田海樹 The. H.30 情報研究会 1

ブロックの 1 文字目のを変更する セレクタ : first-letter { 1 文字目のを指定するフォントや文字色 背景色 枠線などの ブロックの 1 文字目を字下げする text-indent: 字下げ幅段落の1 文字目の字下げ幅を指定する em( 標準 1em) px( ピクセル ) pt(

デジタル表現論・第4回

Prog2_15th

Assignment_.java /////////////////////////////////////////////////////////////////////// // 課題 星の画像がマウスカーソルを追従するコードを作成しなさい 次 ///////////////////

Applet java.lang.object java.awt.component java.awt.container java.awt.panel java.applet.applet

- 1 -

%

ID010-2

2

SJ-WA35T 2版


ohp03.dvi

Transcription:

NSToolbar NSToolbarItem - 1 -

Font Style Font Size セパレータ Blue Text Print : 文字修飾 ( Plain Text Bold Italic ) をメニューから変更する : 文字サイズをステッパーで変更する : 区切りを表示する : 文字色を青と黒に交互に切替える : テキストビューを印刷する NSTextView blueletter.tif - 2 -

Print : ( NSToolbarPrintItemIdentifier ) Colors : ( NSToolbarShowColorsItemIdentifier ) Fonts : ( NSToolbarShowFontsItemIdentifier ) Customize : ( NSToolbarCustomizeToolbarItemIdentifier ) Space : ( NSToolbarSpaceItemIdentifier ) Flexible Space : ( NSToolbarFlexibleSpaceItemIdentifier ) Separator : ( NSToolbarSeparatorItemIdentifier ) NSToolbar...ItemIdentifier - 3 -

- 4 -

NSToolbar - 5 -

Controller Controller.m toolbaralloweditemidentifiers : - 6 -

Controller.m > toolbaralloweditemidentifiers - (NSArray *) toolbaralloweditemidentifiers : (NSToolbar*) toolbar { return [ NSArray arraywithobjects : @"FontStyle", @"FontSize", NSToolbarSeparatorItemIdentifier, @"BlueLetter", NSToolbarSpaceItemIdentifier, NSToolbarFlexibleSpaceItemIdentifier, NSToolbarPrintItemIdentifier, nil ]; NSToolbar...ItemIdentifier toolbardefaultitemidentifiers : Controller.m > toolbardefaultitemidentifiers - (NSArray *) toolbardefaultitemidentifiers : (NSToolbar *) toolbar { return [ NSArray arraywithobjects : @"FontStyle", @"FontSize", NSToolbarSeparatorItemIdentifier, @"BlueLetter", NSToolbarPrintItemIdentifier, nil ]; - 7 -

NSToolbarDelegate : - (NSArray *) toolbaralloweditemidentifiers : (NSToolbar*) toolbar toolbar : : ( ) NSToolbar ( ) NSToolbarDelegate : - (NSArray *) toolbardefaultitemidentifiers : (NSToolbar*) toolbar toolbar : : ( ) NSToolbar ( ) - 8 -

Controller.m > toolbaralloweditemidentifiers - (NSArray *) toolbaralloweditemidentifiers : (NSToolbar*) toolbar { NSLog( @"toolbaralloweditemidentifiers" ); // 追加 return [ NSArray arraywithobjects : : 以下の3 行を追加 NSToolbarShowColorsItemIdentifier, NSToolbarShowFontsItemIdentifier, NSToolbarCustomizeToolbarItemIdentifier, nil ]; Controller.m > toolbardefaultitemidentifiers - (NSArray *) toolbardefaultitemidentifiers : (NSToolbar *) toolbar { NSLog( @"toolbardefaultitemidentifiers" ); // 追加 return [ NSArray arraywithobjects : : 以下の1 行を追加 NSToolbarCustomizeToolbarItemIdentifier, nil ]; NSLog NSLog - 9 -

toolbardefaultitemidentifiers : image label NSToolbarDelegate : - (NSToolbarItem *) toolbar : (NSToolbar *) toolbar itemforitemidentifier : (NSString *) itemidentifier willbeinsertedintotoolbar : (BOOL ) flag toolbar : itemidentifier : flag : : itemidentifier NSToolbar ( ) ( flag = YES ) ( ) ( flag = NO ) ( flag = YES ) NSMutableDictionaryController.m awakefromnib - 10 -

Controller.m > awakefromnib - (void) awakefromnib { : 省略 // アイテム辞書作成 toolbaritems = [ [ NSMutableDictionary dictionary ] retain ]; // ツールバーアイテムを辞書 (toolbaritems) に登録 addtoolbaritem( 省略 ); // Font Style addtoolbaritem( 省略 ); // Font Size addtoolbaritem( 省略 ); // Blue Text : 省略 Controller.m Controller.m > toolbar : itemforitemidentifier : willbeinsertedintotoolbar : - (NSToolbarItem *) toolbar : (NSToolbar *) toolbar itemforitemidentifier : (NSString *) itemidentifier willbeinsertedintotoolbar : (BOOL ) flag { NSToolbarItem *newitem = [ [ [ NSToolbarItem alloc ] initwithitemidentifier : itemidentifier ] autorelease ]; // アイテムを作成 // アイテム辞書から取り出し NSToolbarItem *item = [ toolbaritems objectforkey : itemidentifier ]; : 省略 ( アイテムのコピー処理 ) return newitem; alloc initwithitemidentifier : objectforkey : NSToolbarItem : - (id) initwithitemidentifier : (NSString *) itemidentifier itemidentifier : : NSToolbarItem - 11 -

Controller.m > toolbar : itemforitemidentifier : willbeinsertedintotoolbar : // メソッド中のどこかに追加 NSLog( @" toolbar : %@", [ toolbar identifier ] ); NSLog( @" itemforitemidentifier : %@", itemidentifier ); NSLog( @"willbeinsertedintotoolbar : %@", flag? @"YES" : @"NO" ); flag flag - 12 -

Controller fontstylemenu - 13 -

1 ( ) - 14 -

nib ( ) (nib) awakefromnib awakefromnib Controller.m > awakefromnib - (void) awakefromnib { : 省略 NSToolbar *toolbar = [ [ [ NSToolbar alloc ] initwithidentifier : @"mytoolbar" ] autorelease ]; // ツールバーを作成 // アイテム辞書作成 toolbaritems = [ [ NSMutableDictionary dictionary ] retain ]; // ツールバーアイテムを辞書 (toolbaritems) に登録 addtoolbaritem( 省略 ); // Font Style addtoolbaritem( 省略 ); // Font Size addtoolbaritem( 省略 ); // Blue Text // ツールバーの属性をセット [ toolbar setdelegate : self ]; // デリゲートをセット [ toolbar setallowsusercustomization : YES ]; // 設定パレットを使う [ toolbar setautosavesconfiguration : YES ]; // 設定の自動保存をする [ toolbar setdisplaymode : NSToolbarDisplayModeIconOnly ]; // 表示モード設定 [ thewindow settoolbar : toolbar ]; // ツールバーをウィンドウにセット : 省略 alloc initwithidentifier : - 15 -

NSToolbar *toolbar = [ [ [ NSToolbar alloc ] initwithidentifier : @"mytoolbar" ] autorelease ]; // ツールバーを作成 initwithidentifier : NSToolbar : - (id) initwithidentifier : (NSString *) identifier identifier : : NSToolbar toolbaritems addtoolbaritem addtoolbaritem NSToolbarItem toolbaritems addtoolbaritem // アイテム辞書作成 toolbaritems = [ [ NSMutableDictionary dictionary ] retain ]; // ツールバーアイテムを辞書 (toolbaritems) に登録 addtoolbaritem( 省略 ); // Font Style addtoolbaritem( 省略 ); // Font Size addtoolbaritem( 省略 ); // Blue Text setdelegate : setallowsusercustomization : NO YES setautosavesconfiguration : YES // ツールバーの属性をセット [ toolbar setdelegate : self ]; // デリゲートをセット [ toolbar setallowsusercustomization : YES ]; // 設定パレットを使う [ toolbar setautosavesconfiguration : YES ]; // 設定の自動保存をする [ toolbar setdisplaymode : NSToolbarDisplayModeIconOnly ]; // 表示モード設定 [ thewindow settoolbar : toolbar ]; // ツールバーをウィンドウにセット setdisplaymode : - 16 -

NSToolbar : typedef enum { NSToolbarDisplayModeDefault, NSToolbarDisplayModeIconAndLabel, // Icon & Text NSToolbarDisplayModeIconOnly, // Icon Only NSToolbarDisplayModeLabelOnly // Text Only NSToolbarDisplayMode; settoolbar : settoolbar : setautosavesconfiguration : YES /Users/<USERNAME>/Library/ToolbarSample.plist <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE plist SYSTEM "file://localhost/system/library/dtds/propertylist.dtd"> <plist version="0.9"> <dict> <key>nstoolbar Configuration mytoolbar</key> <dict> <key>tb Display Mode</key> <integer>1</integer> <key>tb Is Shown</key> <integer>1</integer> <key>tb Item Identifiers</key> <array> <string>fontstyle</string> <string>fontsize</string> <string>nstoolbarseparatoritem</string> <string>blueletter</string> <string>nstoolbarprintitem</string> </array> <key>tb Size Mode</key> <integer>1</integer> </dict> <key>nswindow Frame NSFontPanel</key> <string>603 269 300 221 0 0 1152 746 </string> </dict> </plist> - 17 -

addtoolbaritem addtoolbaritem Controller.m > addtoolbaritem static void addtoolbaritem ( NSMutableDictionary *thedict, // 登録先のツールバーアイテム辞書 NSString *identifier, // 識別子 NSString *label, // ラベル NSString *palettelabel, // パレットラベル NSString *tooltip, // ツールチップ id target, // イメージアイテム用のターゲット SEL settingselector, // ツールバーにセットする時のメソッド名 id itemcontent, // ツールバーにセットする画像かビュー SEL action, // イメージアイテム用のアクション NSMenu *menu // メニュー ) { thedict identifier tooltip target action itemcontent settingselector setimage : setview : menu addtoolbaritem - 18 -

Controller.m > awakefromnib // Font StyleとFont Sizeを辞書に登録 ( ビューアイテム ) addtoolbaritem( toolbaritems, @"FontStyle", @"Font Style", @"Font Style", @"Change your font style", self, @selector(setview:), popupview, NULL, fontstylemenu ); addtoolbaritem( 省略 ); // Blue Textを辞書に追加 ( イメージアイテム ) addtoolbaritem( toolbaritems, @"BlueLetter", @"Blue Text", @"Blue Text", @"This toggles blue text on/off", self, @selector(setimage:), [ NSImage imagenamed : @"blueletter.tif" ], @selector(bluetext:), fontsizemenu ); addtoolbaritem - 19 -

Controller.m > addtoolbaritem static void addtoolbaritem ( : 省略 ) { NSMenuItem *mitem; NSToolbarItem *item = [ [ [ NSToolbarItem alloc ] initwithitemidentifier : identifier ] autorelease ]; // ツールバーアイテム作成 [ item setlabel : label ]; // ラベルを設定 [ item setpalettelabel : palettelabel ]; // パレットラベルを設定 [ item settooltip : tooltip ]; // ツールチップを設定 [ item settarget : target ]; // ターゲットを設定 [ item performselector : settingselector withobject : itemcontent ]; // アイテムに画像かビューをセット [ item setaction : action ]; // アクションを設定 if ( menu!= NULL ) { // メニューを設定 mitem = [ [ [ NSMenuItem alloc ] init ] autorelease ]; [ mitem setsubmenu : menu ]; [ mitem settitle : [ menu title ] ]; [ item setmenuformrepresentation : mitem ]; [ thedict setobject : item forkey : identifier ]; // アイテム辞書に登録 alloc initwithitemidentifier : setxxx : performselector : withobject : [ item performselector : settingselector withobject : itemcontent ]; // アイテムに画像かビューをセット item settingselector itemcontent [ item setimage : itemcontent ]; - 20 -

[ item setview : itemcontent ]; setimage : setview : setmenuformrepresentation : NSMenuItem NSMenu NSMenuItem NSToolbarItem : - (NSString *) label : NSToolbarItem : - (void) setlabel : (NSString *) label label : NSToolbarItem : - (NSString *) palettelabel : NSToolbarItem : - (void) setpalettelabel : (NSString *) palettelabel palettelabel : - 21 -

NSToolbarItem : - (NSString *) tooltip : NSToolbarItem : - (void) settooltip : (NSString *) tooltip tooltip : NSToolbarItem : - (id) target : NSToolbarItem : - (void) settarget : (id) target target : NSToolbarItem : - (SEL) action : NSToolbarItem : - (void) setaction : (SEL) action action : - 22 -

NSToolbarItem : - (NSMenuItem *) menuformrepresentation : NSToolbarItem : - (void) semenuformrepresentation : (NSMenuItem *) menuitem menuitem : NSToolbarItem : - (NSImage *) image : NSToolbarItem : - (void) setimage : (NSImage *) image image : NSToolbarItem : - (NSView *) view : NSToolbarItem : - (void) setview : (NSView *) view image : - 23 -

toolbar : itemforitemidentifier : willbeinsertedintotoolbar : Controller.m > toolbar : itemforitemidentifier : willbeinsertedintotoolbar : - (NSToolbarItem *) toolbar : (NSToolbar *) toolbar itemforitemidentifier : (NSString *) itemidentifier willbeinsertedintotoolbar : (BOOL ) flag { NSToolbarItem *newitem = [ [ [ NSToolbarItem alloc ] initwithitemidentifier : itemidentifier ] autorelease ]; // アイテムを作成 // アイテム辞書から取り出し NSToolbarItem *item = [ toolbaritems objectforkey : itemidentifier ]; // 以降でコピーする [ newitem setlabel : [ item label ] ]; // ラベルをコピー [ newitem setpalettelabel : [ item palettelabel ] ]; // パレットラベルをコピー // ビューと画像をコピー if ( [ item view ]!= NULL ) { [ newitem setview : [ item view ] ]; else { [ newitem setimage : [ item image ] ]; [ newitem settooltip : [ item tooltip ] ]; // ツールチップをコピー [ newitem settarget : [ item target ] ]; // ターゲットをコピー [ newitem setaction : [ item action ] ]; // アクションをコピー // メニューをコピー [ newitem setmenuformrepresentation : [ item menuformrepresentation ] ]; if ( [ newitem view ]!= NULL ) { // ビューアイテムならサイズを設定 [ newitem setminsize : [ [ item view ] bounds ].size ]; [ newitem setmaxsize : [ [ item view ] bounds ].size ]; return newitem; - 24 -

- (NSToolbarItem *) toolbar : (NSToolbar *) toolbar itemforitemidentifier : (NSString *) itemidentifier willbeinsertedintotoolbar : (BOOL ) flag { return [ toolbaritems objectforkey : itemidentifier ]; setminsize : setmaxsize : NSToolbarItem : - (NSSize) maxsize : - 25 -

NSToolbarItem : - (void) setmaxsize : (NSSize) size size : NSToolbarItem : - (NSSize) minsize : NSToolbarItem : - (void) setminsize : (NSSize) size size : Controller.m toolbarwilladditem : toolbar : itemforitemidentifier : willbeinsertedtoolbar : NSNotification userinfo item NSToolbarItem settooltip : settarget : - 26 -

Controller.m > toolbarwilladditem - (void) toolbarwilladditem : (NSNotification *) notif { NSToolbarItem *addeditem = [ [ notif userinfo ] objectforkey : @"item" ]; if ( [ [ addeditem itemidentifier ] isequal : NSToolbarPrintItemIdentifier ] ) { // Printの場合 [ addeditem settooltip : @"Print your document" ]; // ツールチップ変更 [ addeditem settarget : self ]; // ターゲット変更 NSToolbarNotifications : - (void) toolbarwilladditem : (NSNotification *) notification notification : Controller.m > toolbardidremoveitem - (void) toolbardidremoveitem : (NSNotification *) notif { NSToolbarItem *removeditem = [ [ notif userinfo ] objectforkey : @"item" ]; : removeditem に対する終了処理 NSToolbarNotifications : - (void) toolbardidremoveitem : (NSNotification *) notification notification : validatetoolbaritem : - 27 -

Controller.m > validatetoolbaritem : - (BOOL) validatetoolbaritem : (NSToolbarItem *) theitem { // NSLog( @"validatetoolbaritem : %@", [ theitem label ] ); // 追加 return YES; // or NO YES NO NSLog NSToolbarItemValidation : - (BOOL) validatetoolbaritem : (NSToolbarItem *) theitem theitem: : = YES = NO validatemenuitem : Controller.m > validatemenuitem : - (BOOL) validatemenuitem : (NSMenuItem *) menuitem { if ( [ menuitem action ] == @selector( changefontstyle : ) ) { if ( [ menuitem tag ] == fontstylepicked ) [ menuitem setstate : NSOnState ]; // チェックをつける return YES; // or NO - 28 -

NSMenuValidation : - (BOOL) validatemenuitem : (id <NSMenuItem>) menuitem menuitem : : = YES = NO toggletoolbarshown : toggletoolbarshown : - 29 -

runtoolbarcustomizationpalette : - 30 -

awakefromnib Controller.m > awakefromnib // Blue Textを辞書に追加 ( イメージアイテム ) addtoolbaritem( toolbaritems, @"BlueLetter", NSLocalizedString( @"BlueLetter", @"" ), @"Blue Text", @"This toggles blue text on/off", self, @selector(setimage:), [ NSImage imagenamed : @"blueletter.tif" ], @selector(bluetext:), fontsizemenu ); NSLocalizedString Localizable.strings Localizable.strings > Japanese "BlueLetter" = " 文字を青くする "; - 31 -

toolbar : itemforitemidentifier : willbeinsertedintotoolbar : - 32 -

if MyDocument.m > toolbar : itemforitemidentifier : willbeinsertedintotoolbar : - (NSToolbarItem *) toolbar : (NSToolbar *) toolbar itemforitemidentifier : (NSString *) itemident willbeinsertedintotoolbar : (BOOL ) flag { : 省略 if ( [ itemident isequal : SaveDocToolbarItemIdentifier ] ) { else if (... ) { else if (... ) { : 省略 - 33 -