Revision: 4334
          http://skim-app.svn.sourceforge.net/skim-app/?rev=4334&view=rev
Author:   hofman
Date:     2008-07-31 17:27:13 +0000 (Thu, 31 Jul 2008)

Log Message:
-----------
Bind through controller so we get NSEditorRegistration for free.

Modified Paths:
--------------
    trunk/English.lproj/FindPanel.nib/classes.nib
    trunk/English.lproj/FindPanel.nib/info.nib
    trunk/English.lproj/FindPanel.nib/keyedobjects.nib
    trunk/English.lproj/NoteWindow.nib/classes.nib
    trunk/English.lproj/NoteWindow.nib/info.nib
    trunk/English.lproj/NoteWindow.nib/keyedobjects.nib
    trunk/Italian.lproj/FindPanel.nib/classes.nib
    trunk/Italian.lproj/FindPanel.nib/info.nib
    trunk/Italian.lproj/FindPanel.nib/keyedobjects.nib
    trunk/Italian.lproj/NoteWindow.nib/classes.nib
    trunk/Italian.lproj/NoteWindow.nib/info.nib
    trunk/Italian.lproj/NoteWindow.nib/keyedobjects.nib
    trunk/SKFindController.h
    trunk/SKFindController.m
    trunk/SKNoteWindowController.h
    trunk/SKNoteWindowController.m

Modified: trunk/English.lproj/FindPanel.nib/classes.nib
===================================================================
--- trunk/English.lproj/FindPanel.nib/classes.nib       2008-07-31 13:52:52 UTC 
(rev 4333)
+++ trunk/English.lproj/FindPanel.nib/classes.nib       2008-07-31 17:27:13 UTC 
(rev 4334)
@@ -1,25 +1,116 @@
-{
-    IBClasses =     (
-                {
-            CLASS = FirstResponder;
-            LANGUAGE = ObjC;
-            SUPERCLASS = NSObject;
-        },
-                {
-            ACTIONS =             {
-                findNext = id;
-                findNextAndOrderOutFindPanel = id;
-                findPrevious = id;
-                performFindPanelAction = id;
-            };
-            CLASS = SKFindController;
-            LANGUAGE = ObjC;
-            OUTLETS =             {
-                findField = NSTextField;
-                ignoreCaseCheckbox = NSButton;
-            };
-            SUPERCLASS = NSWindowController;
-        }
-    );
-    IBVersion = 1;
-}
\ No newline at end of file
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" 
"http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
+<plist version="1.0">
+<dict>
+       <key>IBClasses</key>
+       <array>
+               <dict>
+                       <key>ACTIONS</key>
+                       <dict>
+                               <key>findNext</key>
+                               <string>id</string>
+                               <key>findNextAndOrderOutFindPanel</key>
+                               <string>id</string>
+                               <key>findPrevious</key>
+                               <string>id</string>
+                               <key>performFindPanelAction</key>
+                               <string>id</string>
+                               <key>pickFindString</key>
+                               <string>id</string>
+                       </dict>
+                       <key>CLASS</key>
+                       <string>SKFindController</string>
+                       <key>LANGUAGE</key>
+                       <string>ObjC</string>
+                       <key>OUTLETS</key>
+                       <dict>
+                               <key>findField</key>
+                               <string>NSTextField</string>
+                               <key>ignoreCaseCheckbox</key>
+                               <string>NSButton</string>
+                               <key>ownerController</key>
+                               <string>NSObjectController</string>
+                       </dict>
+                       <key>SUPERCLASS</key>
+                       <string>NSWindowController</string>
+               </dict>
+               <dict>
+                       <key>CLASS</key>
+                       <string>NSMenu</string>
+                       <key>LANGUAGE</key>
+                       <string>ObjC</string>
+                       <key>SUPERCLASS</key>
+                       <string>NSObject</string>
+               </dict>
+               <dict>
+                       <key>CLASS</key>
+                       <string>NSWindowController</string>
+                       <key>LANGUAGE</key>
+                       <string>ObjC</string>
+                       <key>SUPERCLASS</key>
+                       <string>NSResponder</string>
+               </dict>
+               <dict>
+                       <key>ACTIONS</key>
+                       <dict>
+                               <key>changeDashPattern</key>
+                               <string>id</string>
+                               <key>changeEndLineStyle</key>
+                               <string>id</string>
+                               <key>changeLineStyle</key>
+                               <string>id</string>
+                               <key>changeLineWidth</key>
+                               <string>id</string>
+                               <key>changeStartLineStyle</key>
+                               <string>id</string>
+                       </dict>
+                       <key>CLASS</key>
+                       <string>NSObject</string>
+                       <key>LANGUAGE</key>
+                       <string>ObjC</string>
+               </dict>
+               <dict>
+                       <key>CLASS</key>
+                       <string>NSWindow</string>
+                       <key>LANGUAGE</key>
+                       <string>ObjC</string>
+                       <key>SUPERCLASS</key>
+                       <string>NSResponder</string>
+               </dict>
+               <dict>
+                       <key>CLASS</key>
+                       <string>NSView</string>
+                       <key>LANGUAGE</key>
+                       <string>ObjC</string>
+                       <key>SUPERCLASS</key>
+                       <string>NSResponder</string>
+               </dict>
+               <dict>
+                       <key>CLASS</key>
+                       <string>FirstResponder</string>
+                       <key>LANGUAGE</key>
+                       <string>ObjC</string>
+                       <key>SUPERCLASS</key>
+                       <string>NSObject</string>
+               </dict>
+               <dict>
+                       <key>CLASS</key>
+                       <string>NSCell</string>
+                       <key>LANGUAGE</key>
+                       <string>ObjC</string>
+                       <key>SUPERCLASS</key>
+                       <string>NSObject</string>
+               </dict>
+               <dict>
+                       <key>CLASS</key>
+                       <string>NSResponder</string>
+                       <key>LANGUAGE</key>
+                       <string>ObjC</string>
+                       <key>SUPERCLASS</key>
+                       <string>NSObject</string>
+               </dict>
+       </array>
+       <key>IBVersion</key>
+       <string>1</string>
+</dict>
+</plist>

Modified: trunk/English.lproj/FindPanel.nib/info.nib
===================================================================
--- trunk/English.lproj/FindPanel.nib/info.nib  2008-07-31 13:52:52 UTC (rev 
4333)
+++ trunk/English.lproj/FindPanel.nib/info.nib  2008-07-31 17:27:13 UTC (rev 
4334)
@@ -2,15 +2,19 @@
 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" 
"http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
 <plist version="1.0">
 <dict>
-       <key>IBDocumentLocation</key>
-       <string>69 58 356 240 0 0 1440 938 </string>
        <key>IBFramework Version</key>
-       <string>489.0</string>
+       <string>670</string>
+       <key>IBLastKnownRelativeProjectPath</key>
+       <string>../Skim.xcodeproj</string>
+       <key>IBOldestOS</key>
+       <integer>5</integer>
        <key>IBOpenObjects</key>
        <array>
-               <integer>5</integer>
+               <integer>6</integer>
        </array>
        <key>IBSystem Version</key>
-       <string>9C7010</string>
+       <string>9E17</string>
+       <key>targetFramework</key>
+       <string>IBCocoaFramework</string>
 </dict>
 </plist>

Modified: trunk/English.lproj/NoteWindow.nib/classes.nib
===================================================================
--- trunk/English.lproj/NoteWindow.nib/classes.nib      2008-07-31 13:52:52 UTC 
(rev 4333)
+++ trunk/English.lproj/NoteWindow.nib/classes.nib      2008-07-31 17:27:13 UTC 
(rev 4334)
@@ -1,57 +1,182 @@
-{
-    IBClasses =     (
-                {
-            ACTIONS =             {
-                copy = id;
-                delete = id;
-                paste = id;
-                show = id;
-            };
-            CLASS = BDSKDragImageView;
-            LANGUAGE = ObjC;
-            OUTLETS =             {
-                delegate = id;
-            };
-            SUPERCLASS = NSImageView;
-        },
-                {
-            CLASS = BDSKGradientView;
-            LANGUAGE = ObjC;
-            SUPERCLASS = NSView;
-        },
-                {
-            CLASS = FirstResponder;
-            LANGUAGE = ObjC;
-            SUPERCLASS = NSObject;
-        },
-                {
-            CLASS = NSObject;
-            LANGUAGE = ObjC;
-        },
-                {
-            CLASS = SKNoteWindowController;
-            LANGUAGE = ObjC;
-            OUTLETS =             {
-                iconTypePopUpButton = NSPopUpButton;
-                imageView = BDSKDragImageView;
-                statusBar = SKStatusBar;
-                textView = NSTextView;
-            };
-            SUPERCLASS = NSWindowController;
-        },
-                {
-            ACTIONS =             {
-                startAnimation = id;
-                stopAnimation = id;
-            };
-            CLASS = SKStatusBar;
-            LANGUAGE = ObjC;
-            OUTLETS =             {
-                leftCell = id;
-                rightCell = id;
-            };
-            SUPERCLASS = NSControl;
-        }
-    );
-    IBVersion = 1;
-}
\ No newline at end of file
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" 
"http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
+<plist version="1.0">
+<dict>
+       <key>IBClasses</key>
+       <array>
+               <dict>
+                       <key>CLASS</key>
+                       <string>BDSKGradientView</string>
+                       <key>LANGUAGE</key>
+                       <string>ObjC</string>
+                       <key>SUPERCLASS</key>
+                       <string>NSView</string>
+               </dict>
+               <dict>
+                       <key>CLASS</key>
+                       <string>NSMenu</string>
+                       <key>LANGUAGE</key>
+                       <string>ObjC</string>
+                       <key>SUPERCLASS</key>
+                       <string>NSObject</string>
+               </dict>
+               <dict>
+                       <key>CLASS</key>
+                       <string>NSWindowController</string>
+                       <key>LANGUAGE</key>
+                       <string>ObjC</string>
+                       <key>SUPERCLASS</key>
+                       <string>NSResponder</string>
+               </dict>
+               <dict>
+                       <key>ACTIONS</key>
+                       <dict>
+                               <key>changeDashPattern</key>
+                               <string>id</string>
+                               <key>changeEndLineStyle</key>
+                               <string>id</string>
+                               <key>changeLineStyle</key>
+                               <string>id</string>
+                               <key>changeLineWidth</key>
+                               <string>id</string>
+                               <key>changeStartLineStyle</key>
+                               <string>id</string>
+                       </dict>
+                       <key>CLASS</key>
+                       <string>NSObject</string>
+                       <key>LANGUAGE</key>
+                       <string>ObjC</string>
+               </dict>
+               <dict>
+                       <key>ACTIONS</key>
+                       <dict>
+                               <key>startAnimation</key>
+                               <string>id</string>
+                               <key>stopAnimation</key>
+                               <string>id</string>
+                       </dict>
+                       <key>CLASS</key>
+                       <string>SKStatusBar</string>
+                       <key>LANGUAGE</key>
+                       <string>ObjC</string>
+                       <key>OUTLETS</key>
+                       <dict>
+                               <key>leftCell</key>
+                               <string>id</string>
+                               <key>rightCell</key>
+                               <string>id</string>
+                       </dict>
+                       <key>SUPERCLASS</key>
+                       <string>NSControl</string>
+               </dict>
+               <dict>
+                       <key>CLASS</key>
+                       <string>NSWindow</string>
+                       <key>LANGUAGE</key>
+                       <string>ObjC</string>
+                       <key>SUPERCLASS</key>
+                       <string>NSResponder</string>
+               </dict>
+               <dict>
+                       <key>CLASS</key>
+                       <string>NSScrollView</string>
+                       <key>LANGUAGE</key>
+                       <string>ObjC</string>
+                       <key>SUPERCLASS</key>
+                       <string>NSView</string>
+               </dict>
+               <dict>
+                       <key>ACTIONS</key>
+                       <dict>
+                               <key>copy</key>
+                               <string>id</string>
+                               <key>delete</key>
+                               <string>id</string>
+                               <key>paste</key>
+                               <string>id</string>
+                               <key>show</key>
+                               <string>id</string>
+                       </dict>
+                       <key>CLASS</key>
+                       <string>BDSKDragImageView</string>
+                       <key>LANGUAGE</key>
+                       <string>ObjC</string>
+                       <key>OUTLETS</key>
+                       <dict>
+                               <key>delegate</key>
+                               <string>id</string>
+                       </dict>
+                       <key>SUPERCLASS</key>
+                       <string>NSImageView</string>
+               </dict>
+               <dict>
+                       <key>CLASS</key>
+                       <string>NSView</string>
+                       <key>LANGUAGE</key>
+                       <string>ObjC</string>
+                       <key>SUPERCLASS</key>
+                       <string>NSResponder</string>
+               </dict>
+               <dict>
+                       <key>CLASS</key>
+                       <string>NSMenuItem</string>
+                       <key>LANGUAGE</key>
+                       <string>ObjC</string>
+                       <key>SUPERCLASS</key>
+                       <string>NSObject</string>
+               </dict>
+               <dict>
+                       <key>CLASS</key>
+                       <string>FirstResponder</string>
+                       <key>LANGUAGE</key>
+                       <string>ObjC</string>
+                       <key>SUPERCLASS</key>
+                       <string>NSObject</string>
+               </dict>
+               <dict>
+                       <key>CLASS</key>
+                       <string>NSCell</string>
+                       <key>LANGUAGE</key>
+                       <string>ObjC</string>
+                       <key>SUPERCLASS</key>
+                       <string>NSObject</string>
+               </dict>
+               <dict>
+                       <key>CLASS</key>
+                       <string>NSResponder</string>
+                       <key>LANGUAGE</key>
+                       <string>ObjC</string>
+                       <key>SUPERCLASS</key>
+                       <string>NSObject</string>
+               </dict>
+               <dict>
+                       <key>ACTIONS</key>
+                       <dict>
+                               <key>statusBarClicked</key>
+                               <string>id</string>
+                       </dict>
+                       <key>CLASS</key>
+                       <string>SKNoteWindowController</string>
+                       <key>LANGUAGE</key>
+                       <string>ObjC</string>
+                       <key>OUTLETS</key>
+                       <dict>
+                               <key>iconTypePopUpButton</key>
+                               <string>NSPopUpButton</string>
+                               <key>imageView</key>
+                               <string>BDSKDragImageView</string>
+                               <key>ownerController</key>
+                               <string>NSObjectController</string>
+                               <key>statusBar</key>
+                               <string>SKStatusBar</string>
+                               <key>textView</key>
+                               <string>NSTextView</string>
+                       </dict>
+                       <key>SUPERCLASS</key>
+                       <string>NSWindowController</string>
+               </dict>
+       </array>
+       <key>IBVersion</key>
+       <string>1</string>
+</dict>
+</plist>

Modified: trunk/English.lproj/NoteWindow.nib/info.nib
===================================================================
--- trunk/English.lproj/NoteWindow.nib/info.nib 2008-07-31 13:52:52 UTC (rev 
4333)
+++ trunk/English.lproj/NoteWindow.nib/info.nib 2008-07-31 17:27:13 UTC (rev 
4334)
@@ -2,21 +2,20 @@
 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" 
"http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
 <plist version="1.0">
 <dict>
-       <key>IBDocumentLocation</key>
-       <string>69 58 356 240 0 0 1440 938 </string>
-       <key>IBEditorPositions</key>
-       <dict>
-               <key>114</key>
-               <string>69 303 79 122 0 0 1440 938 </string>
-       </dict>
        <key>IBFramework Version</key>
-       <string>489.0</string>
+       <string>670</string>
+       <key>IBLastKnownRelativeProjectPath</key>
+       <string>../Skim.xcodeproj</string>
+       <key>IBOldestOS</key>
+       <integer>4</integer>
        <key>IBOpenObjects</key>
        <array>
-               <integer>7</integer>
+               <integer>113</integer>
                <integer>114</integer>
        </array>
        <key>IBSystem Version</key>
-       <string>9C7010</string>
+       <string>9E17</string>
+       <key>targetFramework</key>
+       <string>IBCocoaFramework</string>
 </dict>
 </plist>

Modified: trunk/Italian.lproj/FindPanel.nib/classes.nib
===================================================================
--- trunk/Italian.lproj/FindPanel.nib/classes.nib       2008-07-31 13:52:52 UTC 
(rev 4333)
+++ trunk/Italian.lproj/FindPanel.nib/classes.nib       2008-07-31 17:27:13 UTC 
(rev 4334)
@@ -1,18 +1,116 @@
-{
-    IBClasses = (
-        {CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; }, 
-        {
-            ACTIONS = {
-                findNext = id; 
-                findNextAndOrderOutFindPanel = id; 
-                findPrevious = id; 
-                performFindPanelAction = id; 
-            }; 
-            CLASS = SKFindController; 
-            LANGUAGE = ObjC; 
-            OUTLETS = {findField = NSTextField; ignoreCaseCheckbox = NSButton; 
}; 
-            SUPERCLASS = NSWindowController; 
-        }
-    ); 
-    IBVersion = 1; 
-}
\ No newline at end of file
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" 
"http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
+<plist version="1.0">
+<dict>
+       <key>IBClasses</key>
+       <array>
+               <dict>
+                       <key>ACTIONS</key>
+                       <dict>
+                               <key>findNext</key>
+                               <string>id</string>
+                               <key>findNextAndOrderOutFindPanel</key>
+                               <string>id</string>
+                               <key>findPrevious</key>
+                               <string>id</string>
+                               <key>performFindPanelAction</key>
+                               <string>id</string>
+                               <key>pickFindString</key>
+                               <string>id</string>
+                       </dict>
+                       <key>CLASS</key>
+                       <string>SKFindController</string>
+                       <key>LANGUAGE</key>
+                       <string>ObjC</string>
+                       <key>OUTLETS</key>
+                       <dict>
+                               <key>findField</key>
+                               <string>NSTextField</string>
+                               <key>ignoreCaseCheckbox</key>
+                               <string>NSButton</string>
+                               <key>ownerController</key>
+                               <string>NSObjectController</string>
+                       </dict>
+                       <key>SUPERCLASS</key>
+                       <string>NSWindowController</string>
+               </dict>
+               <dict>
+                       <key>CLASS</key>
+                       <string>NSMenu</string>
+                       <key>LANGUAGE</key>
+                       <string>ObjC</string>
+                       <key>SUPERCLASS</key>
+                       <string>NSObject</string>
+               </dict>
+               <dict>
+                       <key>CLASS</key>
+                       <string>NSWindowController</string>
+                       <key>LANGUAGE</key>
+                       <string>ObjC</string>
+                       <key>SUPERCLASS</key>
+                       <string>NSResponder</string>
+               </dict>
+               <dict>
+                       <key>ACTIONS</key>
+                       <dict>
+                               <key>changeDashPattern</key>
+                               <string>id</string>
+                               <key>changeEndLineStyle</key>
+                               <string>id</string>
+                               <key>changeLineStyle</key>
+                               <string>id</string>
+                               <key>changeLineWidth</key>
+                               <string>id</string>
+                               <key>changeStartLineStyle</key>
+                               <string>id</string>
+                       </dict>
+                       <key>CLASS</key>
+                       <string>NSObject</string>
+                       <key>LANGUAGE</key>
+                       <string>ObjC</string>
+               </dict>
+               <dict>
+                       <key>CLASS</key>
+                       <string>NSWindow</string>
+                       <key>LANGUAGE</key>
+                       <string>ObjC</string>
+                       <key>SUPERCLASS</key>
+                       <string>NSResponder</string>
+               </dict>
+               <dict>
+                       <key>CLASS</key>
+                       <string>NSView</string>
+                       <key>LANGUAGE</key>
+                       <string>ObjC</string>
+                       <key>SUPERCLASS</key>
+                       <string>NSResponder</string>
+               </dict>
+               <dict>
+                       <key>CLASS</key>
+                       <string>FirstResponder</string>
+                       <key>LANGUAGE</key>
+                       <string>ObjC</string>
+                       <key>SUPERCLASS</key>
+                       <string>NSObject</string>
+               </dict>
+               <dict>
+                       <key>CLASS</key>
+                       <string>NSCell</string>
+                       <key>LANGUAGE</key>
+                       <string>ObjC</string>
+                       <key>SUPERCLASS</key>
+                       <string>NSObject</string>
+               </dict>
+               <dict>
+                       <key>CLASS</key>
+                       <string>NSResponder</string>
+                       <key>LANGUAGE</key>
+                       <string>ObjC</string>
+                       <key>SUPERCLASS</key>
+                       <string>NSObject</string>
+               </dict>
+       </array>
+       <key>IBVersion</key>
+       <string>1</string>
+</dict>
+</plist>

Modified: trunk/Italian.lproj/FindPanel.nib/info.nib
===================================================================
--- trunk/Italian.lproj/FindPanel.nib/info.nib  2008-07-31 13:52:52 UTC (rev 
4333)
+++ trunk/Italian.lproj/FindPanel.nib/info.nib  2008-07-31 17:27:13 UTC (rev 
4334)
@@ -1,16 +1,20 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" 
"http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" 
"http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
 <plist version="1.0">
 <dict>
-       <key>IBDocumentLocation</key>
-       <string>70 139 356 240 0 0 1440 938 </string>
        <key>IBFramework Version</key>
-       <string>446.1</string>
+       <string>670</string>
+       <key>IBLastKnownRelativeProjectPath</key>
+       <string>../Skim.xcodeproj</string>
+       <key>IBOldestOS</key>
+       <integer>4</integer>
        <key>IBOpenObjects</key>
        <array>
-               <integer>5</integer>
+               <integer>6</integer>
        </array>
        <key>IBSystem Version</key>
-       <string>8R218</string>
+       <string>9E17</string>
+       <key>targetFramework</key>
+       <string>IBCocoaFramework</string>
 </dict>
 </plist>

Modified: trunk/Italian.lproj/NoteWindow.nib/classes.nib
===================================================================
--- trunk/Italian.lproj/NoteWindow.nib/classes.nib      2008-07-31 13:52:52 UTC 
(rev 4333)
+++ trunk/Italian.lproj/NoteWindow.nib/classes.nib      2008-07-31 17:27:13 UTC 
(rev 4334)
@@ -1,57 +1,182 @@
-{
-    IBClasses =     (
-                {
-            ACTIONS =             {
-                copy = id;
-                delete = id;
-                paste = id;
-                show = id;
-            };
-            CLASS = BDSKDragImageView;
-            LANGUAGE = ObjC;
-            OUTLETS =             {
-                delegate = id;
-            };
-            SUPERCLASS = NSImageView;
-        },
-                {
-            CLASS = BDSKGradientView;
-            LANGUAGE = ObjC;
-            SUPERCLASS = NSView;
-        },
-                {
-            CLASS = FirstResponder;
-            LANGUAGE = ObjC;
-            SUPERCLASS = NSObject;
-        },
-                {
-            CLASS = NSObject;
-            LANGUAGE = ObjC;
-        },
-                {
-            CLASS = SKNoteWindowController;
-            LANGUAGE = ObjC;
-            OUTLETS =             {
-                iconTypePopUpButton = NSPopUpButton;
-                imageView = BDSKDragImageView;
-                statusBar = SKStatusBar;
-                textView = NSTextView;
-            };
-            SUPERCLASS = NSWindowController;
-        },
-                {
-            ACTIONS =             {
-                startAnimation = id;
-                stopAnimation = id;
-            };
-            CLASS = SKStatusBar;
-            LANGUAGE = ObjC;
-            OUTLETS =             {
-                leftCell = id;
-                rightCell = id;
-            };
-            SUPERCLASS = NSControl;
-        }
-    );
-    IBVersion = 1;
-}
\ No newline at end of file
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" 
"http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
+<plist version="1.0">
+<dict>
+       <key>IBClasses</key>
+       <array>
+               <dict>
+                       <key>CLASS</key>
+                       <string>BDSKGradientView</string>
+                       <key>LANGUAGE</key>
+                       <string>ObjC</string>
+                       <key>SUPERCLASS</key>
+                       <string>NSView</string>
+               </dict>
+               <dict>
+                       <key>CLASS</key>
+                       <string>NSWindowController</string>
+                       <key>LANGUAGE</key>
+                       <string>ObjC</string>
+                       <key>SUPERCLASS</key>
+                       <string>NSResponder</string>
+               </dict>
+               <dict>
+                       <key>CLASS</key>
+                       <string>NSMenu</string>
+                       <key>LANGUAGE</key>
+                       <string>ObjC</string>
+                       <key>SUPERCLASS</key>
+                       <string>NSObject</string>
+               </dict>
+               <dict>
+                       <key>ACTIONS</key>
+                       <dict>
+                               <key>changeDashPattern</key>
+                               <string>id</string>
+                               <key>changeEndLineStyle</key>
+                               <string>id</string>
+                               <key>changeLineStyle</key>
+                               <string>id</string>
+                               <key>changeLineWidth</key>
+                               <string>id</string>
+                               <key>changeStartLineStyle</key>
+                               <string>id</string>
+                       </dict>
+                       <key>CLASS</key>
+                       <string>NSObject</string>
+                       <key>LANGUAGE</key>
+                       <string>ObjC</string>
+               </dict>
+               <dict>
+                       <key>ACTIONS</key>
+                       <dict>
+                               <key>startAnimation</key>
+                               <string>id</string>
+                               <key>stopAnimation</key>
+                               <string>id</string>
+                       </dict>
+                       <key>CLASS</key>
+                       <string>SKStatusBar</string>
+                       <key>LANGUAGE</key>
+                       <string>ObjC</string>
+                       <key>OUTLETS</key>
+                       <dict>
+                               <key>leftCell</key>
+                               <string>id</string>
+                               <key>rightCell</key>
+                               <string>id</string>
+                       </dict>
+                       <key>SUPERCLASS</key>
+                       <string>NSControl</string>
+               </dict>
+               <dict>
+                       <key>CLASS</key>
+                       <string>NSWindow</string>
+                       <key>LANGUAGE</key>
+                       <string>ObjC</string>
+                       <key>SUPERCLASS</key>
+                       <string>NSResponder</string>
+               </dict>
+               <dict>
+                       <key>CLASS</key>
+                       <string>NSScrollView</string>
+                       <key>LANGUAGE</key>
+                       <string>ObjC</string>
+                       <key>SUPERCLASS</key>
+                       <string>NSView</string>
+               </dict>
+               <dict>
+                       <key>ACTIONS</key>
+                       <dict>
+                               <key>copy</key>
+                               <string>id</string>
+                               <key>delete</key>
+                               <string>id</string>
+                               <key>paste</key>
+                               <string>id</string>
+                               <key>show</key>
+                               <string>id</string>
+                       </dict>
+                       <key>CLASS</key>
+                       <string>BDSKDragImageView</string>
+                       <key>LANGUAGE</key>
+                       <string>ObjC</string>
+                       <key>OUTLETS</key>
+                       <dict>
+                               <key>delegate</key>
+                               <string>id</string>
+                       </dict>
+                       <key>SUPERCLASS</key>
+                       <string>NSImageView</string>
+               </dict>
+               <dict>
+                       <key>CLASS</key>
+                       <string>NSView</string>
+                       <key>LANGUAGE</key>
+                       <string>ObjC</string>
+                       <key>SUPERCLASS</key>
+                       <string>NSResponder</string>
+               </dict>
+               <dict>
+                       <key>CLASS</key>
+                       <string>NSMenuItem</string>
+                       <key>LANGUAGE</key>
+                       <string>ObjC</string>
+                       <key>SUPERCLASS</key>
+                       <string>NSObject</string>
+               </dict>
+               <dict>
+                       <key>CLASS</key>
+                       <string>FirstResponder</string>
+                       <key>LANGUAGE</key>
+                       <string>ObjC</string>
+                       <key>SUPERCLASS</key>
+                       <string>NSObject</string>
+               </dict>
+               <dict>
+                       <key>CLASS</key>
+                       <string>NSCell</string>
+                       <key>LANGUAGE</key>
+                       <string>ObjC</string>
+                       <key>SUPERCLASS</key>
+                       <string>NSObject</string>
+               </dict>
+               <dict>
+                       <key>CLASS</key>
+                       <string>NSResponder</string>
+                       <key>LANGUAGE</key>
+                       <string>ObjC</string>
+                       <key>SUPERCLASS</key>
+                       <string>NSObject</string>
+               </dict>
+               <dict>
+                       <key>ACTIONS</key>
+                       <dict>
+                               <key>statusBarClicked</key>
+                               <string>id</string>
+                       </dict>
+                       <key>CLASS</key>
+                       <string>SKNoteWindowController</string>
+                       <key>LANGUAGE</key>
+                       <string>ObjC</string>
+                       <key>OUTLETS</key>
+                       <dict>
+                               <key>iconTypePopUpButton</key>
+                               <string>NSPopUpButton</string>
+                               <key>imageView</key>
+                               <string>BDSKDragImageView</string>
+                               <key>ownerController</key>
+                               <string>NSObjectController</string>
+                               <key>statusBar</key>
+                               <string>SKStatusBar</string>
+                               <key>textView</key>
+                               <string>NSTextView</string>
+                       </dict>
+                       <key>SUPERCLASS</key>
+                       <string>NSWindowController</string>
+               </dict>
+       </array>
+       <key>IBVersion</key>
+       <string>1</string>
+</dict>
+</plist>

Modified: trunk/Italian.lproj/NoteWindow.nib/info.nib
===================================================================
--- trunk/Italian.lproj/NoteWindow.nib/info.nib 2008-07-31 13:52:52 UTC (rev 
4333)
+++ trunk/Italian.lproj/NoteWindow.nib/info.nib 2008-07-31 17:27:13 UTC (rev 
4334)
@@ -2,21 +2,20 @@
 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" 
"http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
 <plist version="1.0">
 <dict>
-       <key>IBDocumentLocation</key>
-       <string>70 108 356 240 0 0 1440 938 </string>
-       <key>IBEditorPositions</key>
-       <dict>
-               <key>114</key>
-               <string>70 300 85 122 0 0 1440 938 </string>
-       </dict>
        <key>IBFramework Version</key>
-       <string>489.0</string>
+       <string>670</string>
+       <key>IBLastKnownRelativeProjectPath</key>
+       <string>../Skim.xcodeproj</string>
+       <key>IBOldestOS</key>
+       <integer>4</integer>
        <key>IBOpenObjects</key>
        <array>
-               <integer>7</integer>
                <integer>114</integer>
+               <integer>112</integer>
        </array>
        <key>IBSystem Version</key>
-       <string>9C7010</string>
+       <string>9E17</string>
+       <key>targetFramework</key>
+       <string>IBCocoaFramework</string>
 </dict>
 </plist>

Modified: trunk/SKFindController.h
===================================================================
--- trunk/SKFindController.h    2008-07-31 13:52:52 UTC (rev 4333)
+++ trunk/SKFindController.h    2008-07-31 17:27:13 UTC (rev 4334)
@@ -43,11 +43,11 @@
 @interface SKFindController : NSWindowController {
     IBOutlet NSTextField *findField;
     IBOutlet NSButton *ignoreCaseCheckbox;
+    IBOutlet NSObjectController *ownerController;
     NSString *findString;
     int lastChangeCount;
     BOOL ignoreCase;
     BDSKFindFieldEditor *fieldEditor;
-    CFArrayRef editors;
 }
 
 + (id)sharedFindController;
@@ -69,8 +69,6 @@
 - (id)target;
 - (id)selectionSource;
 
-- (BOOL)commitEditing;
-
 @end
 
 

Modified: trunk/SKFindController.m
===================================================================
--- trunk/SKFindController.m    2008-07-31 13:52:52 UTC (rev 4333)
+++ trunk/SKFindController.m    2008-07-31 17:27:13 UTC (rev 4334)
@@ -58,13 +58,11 @@
 - (id)init {
     if (sharedFindController == nil && (sharedFindController = self = [super 
init])) {
         ignoreCase = YES;
-        editors = CFArrayCreateMutable(kCFAllocatorMallocZone, 0, NULL);
     }
     return sharedFindController;
 }
 
 - (void)dealloc {
-    CFRelease(editors);
     [fieldEditor release];
     [super dealloc];
 }
@@ -127,7 +125,7 @@
 }
 
 - (IBAction)findNext:(id)sender {
-    [self commitEditing];
+    [ownerController commitEditing];
     if ([findString length]) {
         [[self target] findString:findString options:[self findOptions] & 
~NSBackwardsSearch];
         [self updateFindPboard];
@@ -140,7 +138,7 @@
 }
 
 - (IBAction)findPrevious:(id)sender {
-    [self commitEditing];
+    [ownerController commitEditing];
     if ([findString length]) {
         [[self target] findString:findString options:[self findOptions] | 
NSBackwardsSearch];
         [self updateFindPboard];
@@ -242,25 +240,4 @@
     return fieldEditor;
 }
 
-- (void)objectDidBeginEditing:(id)editor {
-    if (CFArrayGetFirstIndexOfValue(editors, CFRangeMake(0, 
CFArrayGetCount(editors)), editor) == -1)
-               CFArrayAppendValue((CFMutableArrayRef)editors, editor);         
-}
-
-- (void)objectDidEndEditing:(id)editor {
-    CFIndex idx = CFArrayGetFirstIndexOfValue(editors, CFRangeMake(0, 
CFArrayGetCount(editors)), editor);
-    if (idx != -1)
-               CFArrayRemoveValueAtIndex((CFMutableArrayRef)editors, idx);     
        
-}
-
-- (BOOL)commitEditing {
-    CFIndex idx = CFArrayGetCount(editors);
-    
-       while (idx--)
-               if([(NSObject *)(CFArrayGetValueAtIndex(editors, idx)) 
commitEditing] == NO)
-                       return NO;
-    
-    return YES;
-}
-
 @end

Modified: trunk/SKNoteWindowController.h
===================================================================
--- trunk/SKNoteWindowController.h      2008-07-31 13:52:52 UTC (rev 4333)
+++ trunk/SKNoteWindowController.h      2008-07-31 17:27:13 UTC (rev 4334)
@@ -46,6 +46,7 @@
     IBOutlet BDSKDragImageView *imageView;
     IBOutlet SKStatusBar *statusBar;
     IBOutlet NSPopUpButton *iconTypePopUpButton;
+    IBOutlet NSObjectController *ownerController;
     
     PDFAnnotation *note;
     
@@ -53,8 +54,6 @@
     BOOL forceOnTop;
     
     NSUndoManager *textViewUndoManager;
-    
-    CFArrayRef editors;
 }
 
 - (id)initWithNote:(PDFAnnotation *)aNote;
@@ -72,7 +71,6 @@
 
 - (void)statusBarClicked:(id)sender;
 
-- (BOOL)commitEditing;
 - (void)handleDocumentWillSaveNotification:(NSNotification *)notification;
 
 @end

Modified: trunk/SKNoteWindowController.m
===================================================================
--- trunk/SKNoteWindowController.m      2008-07-31 13:52:52 UTC (rev 4333)
+++ trunk/SKNoteWindowController.m      2008-07-31 17:27:13 UTC (rev 4334)
@@ -96,7 +96,6 @@
 - (id)initWithNote:(PDFAnnotation *)aNote {
     if (self = [super init]) {
         note = [aNote retain];
-        editors = CFArrayCreateMutable(kCFAllocatorMallocZone, 0, NULL);
         
         keepOnTop = [[NSUserDefaults standardUserDefaults] 
boolForKey:SKKeepNoteWindowsOnTopKey];
         forceOnTop = NO;
@@ -113,7 +112,6 @@
     [note removeObserver:self forKeyPath:SKNPDFAnnotationBoundsKey];
     [[NSUserDefaultsController sharedUserDefaultsController] 
removeObserver:self forKeys:[NSArray 
arrayWithObjects:SKAnchoredNoteFontNameKey, SKAnchoredNoteFontSizeKey, nil]];
     [[NSNotificationCenter defaultCenter] removeObserver:self];
-    CFRelease(editors);
     [textViewUndoManager release];
     [note release];
     [super dealloc];
@@ -159,7 +157,7 @@
 }
 
 - (void)windowWillClose:(NSNotification *)aNotification {
-    [self commitEditing];
+    [ownerController commitEditing];
     if ([note respondsToSelector:@selector(setWindowIsOpen:)])
         [(PDFAnnotationText *)note setWindowIsOpen:NO];
 }
@@ -219,29 +217,8 @@
     [pdfView setActiveAnnotation:note];
 }
 
-- (void)objectDidBeginEditing:(id)editor {
-    if (CFArrayGetFirstIndexOfValue(editors, CFRangeMake(0, 
CFArrayGetCount(editors)), editor) == -1)
-               CFArrayAppendValue((CFMutableArrayRef)editors, editor);         
-}
-
-- (void)objectDidEndEditing:(id)editor {
-    CFIndex idx = CFArrayGetFirstIndexOfValue(editors, CFRangeMake(0, 
CFArrayGetCount(editors)), editor);
-    if (idx != -1)
-               CFArrayRemoveValueAtIndex((CFMutableArrayRef)editors, idx);     
        
-}
-
-- (BOOL)commitEditing {
-    CFIndex idx = CFArrayGetCount(editors);
-    
-       while (idx--)
-               if([(NSObject *)(CFArrayGetValueAtIndex(editors, idx)) 
commitEditing] == NO)
-                       return NO;
-    
-    return YES;
-}
-
 - (void)handleDocumentWillSaveNotification:(NSNotification *)notification {
-    [self commitEditing];
+    [ownerController commitEditing];
 }
 
 - (NSUndoManager *)undoManagerForTextView:(NSTextView *)aTextView {


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to