Revision: 4731
          http://skim-app.svn.sourceforge.net/skim-app/?rev=4731&view=rev
Author:   hofman
Date:     2008-10-03 13:22:03 +0000 (Fri, 03 Oct 2008)

Log Message:
-----------
Hide extra cell in note type sheet in nib

Modified Paths:
--------------
    trunk/Dutch.lproj/NoteTypeSheet.nib/classes.nib
    trunk/Dutch.lproj/NoteTypeSheet.nib/info.nib
    trunk/Dutch.lproj/NoteTypeSheet.nib/keyedobjects.nib
    trunk/English.lproj/NoteTypeSheet.nib/info.nib
    trunk/English.lproj/NoteTypeSheet.nib/keyedobjects.nib
    trunk/SKNoteOutlineView.m

Modified: trunk/Dutch.lproj/NoteTypeSheet.nib/classes.nib
===================================================================
--- trunk/Dutch.lproj/NoteTypeSheet.nib/classes.nib     2008-10-03 13:08:19 UTC 
(rev 4730)
+++ trunk/Dutch.lproj/NoteTypeSheet.nib/classes.nib     2008-10-03 13:22:03 UTC 
(rev 4731)
@@ -32,14 +32,6 @@
                </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>NSMenu</string>
                        <key>LANGUAGE</key>
                        <string>ObjC</string>
@@ -47,14 +39,6 @@
                        <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>ACTIONS</key>
                        <dict>
                                <key>changeDashPattern</key>
@@ -75,21 +59,37 @@
                </dict>
                <dict>
                        <key>CLASS</key>
-                       <string>NSCell</string>
+                       <string>NSWindow</string>
                        <key>LANGUAGE</key>
                        <string>ObjC</string>
                        <key>SUPERCLASS</key>
-                       <string>NSObject</string>
+                       <string>NSResponder</string>
                </dict>
                <dict>
                        <key>CLASS</key>
-                       <string>NSWindow</string>
+                       <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>ACTIONS</key>
                        <dict>
                                <key>copy</key>

Modified: trunk/Dutch.lproj/NoteTypeSheet.nib/info.nib
===================================================================
--- trunk/Dutch.lproj/NoteTypeSheet.nib/info.nib        2008-10-03 13:08:19 UTC 
(rev 4730)
+++ trunk/Dutch.lproj/NoteTypeSheet.nib/info.nib        2008-10-03 13:22:03 UTC 
(rev 4731)
@@ -10,7 +10,7 @@
        <integer>5</integer>
        <key>IBOpenObjects</key>
        <array>
-               <integer>5</integer>
+               <integer>7</integer>
        </array>
        <key>IBSystem Version</key>
        <string>9F33</string>

Modified: trunk/English.lproj/NoteTypeSheet.nib/info.nib
===================================================================
--- trunk/English.lproj/NoteTypeSheet.nib/info.nib      2008-10-03 13:08:19 UTC 
(rev 4730)
+++ trunk/English.lproj/NoteTypeSheet.nib/info.nib      2008-10-03 13:22:03 UTC 
(rev 4731)
@@ -7,7 +7,7 @@
        <key>IBLastKnownRelativeProjectPath</key>
        <string>../Skim.xcodeproj</string>
        <key>IBOldestOS</key>
-       <integer>5</integer>
+       <integer>4</integer>
        <key>IBOpenObjects</key>
        <array>
                <integer>6</integer>

Modified: trunk/SKNoteOutlineView.m
===================================================================
--- trunk/SKNoteOutlineView.m   2008-10-03 13:08:19 UTC (rev 4730)
+++ trunk/SKNoteOutlineView.m   2008-10-03 13:22:03 UTC (rev 4731)
@@ -53,12 +53,7 @@
 }
 
 - (void)awakeFromNib {
-    if (noteTypeMatrix) {
-        id cell = [[[NSActionCell alloc] init] autorelease];
-        [cell setTag:-1];
-        [cell setEnabled:NO];
-        [noteTypeMatrix putCell:cell atRow:4 column:0];
-    } else {
+    if (noteTypeMatrix == nil) {
         [self noteTypeMenu]; // this sets the menu for the header view
         NSNumber *fontSize = [[NSUserDefaults standardUserDefaults] 
objectForKey:SKTableFontSizeKey];
         if (fontSize)


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