Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

removed redundant, unused, outdated and inefficient file that handled…

… errors
  • Loading branch information...
commit 33f5ce7925d5bfc435b36070ee61fd187c3604b9 1 parent 3db8a99
authored February 04, 2010
2  BookmarksController.m
@@ -403,7 +403,7 @@ - (NSRect)windowWillUseStandardFrame:(NSWindow *)sender defaultFrame:(NSRect)def
403 403
 	NSRect newFrame = [sender frame];
404 404
 	NSSize intercellSpacing = [bookmarksTableView intercellSpacing];
405 405
 	
406  
-	newHeight = [bookmarksTableView numberOfRows] * ([bookmarksTableView rowHeight] + intercellSpacing.height);	
  406
+	newHeight = MAX(1, [bookmarksTableView numberOfRows]) * ([bookmarksTableView rowHeight] + intercellSpacing.height);
407 407
 	oldHeight = [[[bookmarksTableView enclosingScrollView] contentView] frame].size.height;
408 408
 	newHeight = [sender frame].size.height - oldHeight + newHeight;
409 409
 	
1  BufferUtils.c
@@ -9,7 +9,6 @@
9 9
 
10 10
 #include "BufferUtils.h"
11 11
 #include <string.h>
12  
-//#include "CarbonFSErrorStrings.h"
13 12
 
14 13
 static const unsigned char gsToLowerMap[256] = {
15 14
 '\0', 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, '\t',
46  CarbonFSErrorStrings.h
... ...
@@ -1,46 +0,0 @@
1  
-/*
2  
- *  CarbonFSErrorStrings.h
3  
- *  Notation
4  
- *
5  
- *  Created by Zachary Schneirov on 4/22/06.
6  
- *  Copyright 2006 __MyCompanyName__. All rights reserved.
7  
- *
8  
- */
9  
-
10  
-#include <Carbon/Carbon.h>
11  
-
12  
-static OSStatus errorCodes[] = { dirFulErr, dskFulErr, nsvErr, ioErr, bdNamErr, fnOpnErr, eofErr, posErr, mFulErr, tmfoErr, fnfErr, wPrErr, 
13  
-    fLckdErr, vLckdErr, fBsyErr, dupFNErr, opWrErr, paramErr, rfNumErr, gfpErr, volOffLinErr, permErr, volOnLinErr, nsDrvErr, 
14  
-    noMacDskErr, extFSErr, fsRnErr, badMDBErr, wrPermErr, noDriveErr, dirNFErr, tmwdoErr, badMovErr, wrgVolTypErr, volGoneErr, 
15  
-    fsDSIntErr, userCanceledErr, kCoderErr, kJournalingError, kWriteJournalErr, kNoAuthErr, kCompressionErr, kPassCanceledErr, 
16  
-	fidNotFound, fidExists, notAFileErr, diffVolErr, catChangedErr, sameFileErr, 
17  
-	badFidErr, notARemountErr, fileBoundsErr, fsDataTooBigErr, volVMBusyErr, badFCBErr, errFSUnknownCall, errFSBadFSRef, errFSBadForkName, 
18  
-	errFSBadBuffer, errFSBadForkRef, errFSBadInfoBitmap, errFSMissingCatInfo, errFSNotAFolder, errFSForkNotFound, errFSNameTooLong, 
19  
-    errFSMissingName, errFSBadPosMode, errFSBadAllocFlags, errFSNoMoreItems, errFSBadItemCount, errFSBadSearchParams, errFSRefsDifferent, 
20  
-	errFSForkExists, errFSBadIteratorFlags, errFSIteratorNotFound, errFSIteratorNotSupported, errFSQuotaExceeded, afpAccessDenied };
21  
-
22  
-//implied "because"
23  
-//this is about 1 VM page of data
24  
-static char *errorStrings[] = { "the directory is full", "the disk is full", "the volume does not exist", "there was a problem accessing the disk media", 
25  
-    "the name was bad", "the file is not open", "the end of the file was reached", "a negative file position offset was specified", 
26  
-    "the file won't fit in memory", "there are too many open files", "the file wasn't found", "the media is write-protected", "the file is locked", 
27  
-    "the volume is locked", "the file is still in use", "a file with the same name already exists", "the file is already open for writing", 
28  
-    "a parameter was invalid", "the file reference number is invalid", "the file position offset couldn't be obtained", 
29  
-    "the volume is no longer present", "the file is locked", "the disk is already mounted", "a non-existent drive was referenced", 
30  
-    "the disk is not mac-formatted", "the volume's file system type is not handled", "there was a problem in the middle of renaming", 
31  
-    "the master directory block is bad", "the file's permissions prevent you from writing", "the drive is not installed", 
32  
-    "the directory was not found", "there are too many open working directories", "folders cannot be moved into folders that they contain", 
33  
-    "the volume is of the wrong type", "the server volume disconnected", "there was a problem with the file system driver software", "the operation was cancelled",
34  
-    "the data could not be unserialized", "the write-ahead log file could not be initialized", "the write-ahead log couldn't be appended-to", 
35  
-	"authentication failed", "the data couldn't be decompressed", "you did not enter a passphrase", "the specified file ID was not found on the file system", 
36  
-	"the file ID already exists on the file system", "a file was in fact a folder", "the files are on different volumes", "the catalog changed unexpectedly", 
37  
-	"the file's contents were attempted to be exchanged with itself", "the file doesn't match the file ID number", "the volume was improperly remounted", 
38  
-	"the file was accessed outside of its bounds", "the file or volume is too large", "the volume is in use by the virtual memory subsystem", 
39  
-	"the file control block table was improperly accessed", "the file system call is unknown", "the file system reference is no longer valid", 
40  
-	"an invalid fork name was specified", "a buffer was uninitialized", "an invalid fork number was specified", "invalid file catalog information was requested", 
41  
-	"the catalog information buffer was uninitialized", "a folder was in fact a file", "the file's requested fork doesn't exist", 
42  
-	"the requested name is too long to be valid", "the file doesn't have a name", "an invalid positioning mode was specified for accessing the file", 
43  
-	"the file was improperly allocated", "the were no more items to find", "no items were requested to be read from the directory", 
44  
-	"the search parameters are invalid", "the file system references are different", "the file already has a fork", 
45  
-	"invalid parameters were passed when iterating over the directory", "the specified directory iterator is invalid", "the directory iterator was used improperly",
46  
-	"you have exceeded your disk quota", "your account lacks permission to access the directory" };
303  English.lproj/Preferences.nib/classes.nib 100755 → 100644
... ...
@@ -1,55 +1,248 @@
1  
-{
2  
-    IBClasses = (
3  
-        {
4  
-            ACTIONS = {"" = id; }; 
5  
-            CLASS = FirstResponder; 
6  
-            LANGUAGE = ObjC; 
7  
-            SUPERCLASS = NSObject; 
8  
-        }, 
9  
-        {CLASS = NSDatePicker; LANGUAGE = ObjC; SUPERCLASS = NSControl; }, 
10  
-        {
11  
-            ACTIONS = {
12  
-                changeBodyFont = id; 
13  
-                changedAutoSuggestLinks = id; 
14  
-                changedMakeURLsClickable = id; 
15  
-                changedNoteDeletion = id; 
16  
-                changedNotesFolderLocation = id; 
17  
-                changedQuitBehavior = id; 
18  
-                changedSearchHighlightColorWell = id; 
19  
-                changedSoftTabs = id; 
20  
-                changedSpellChecking = id; 
21  
-                changedStyledTextBehavior = id; 
22  
-                changedTabBehavior = id; 
23  
-                changedTableText = id; 
24  
-                changedTitleCompletion = id; 
25  
-                setAppShortcut = id; 
26  
-            }; 
27  
-            CLASS = PrefsWindowController; 
28  
-            LANGUAGE = ObjC; 
29  
-            OUTLETS = {
30  
-                appShortcutField = NSView; 
31  
-                autoSuggestLinksButton = NSButton; 
32  
-                bodyTextFontField = NSTextField; 
33  
-                checkSpellingButton = NSButton; 
34  
-                completeNoteTitlesButton = NSButton; 
35  
-                confirmDeletionButton = NSButton; 
36  
-                databaseView = NSView; 
37  
-                editingView = id; 
38  
-                folderLocationsMenuButton = NSButton; 
39  
-                generalView = NSView; 
40  
-                makeURLsClickable = NSButton; 
41  
-                notationPrefsView = NSView; 
42  
-                quitWhenClosingButton = NSButton; 
43  
-                searchHighlightColorWell = NSColorWell; 
44  
-                softTabsButton = NSButton; 
45  
-                styledTextButton = NSButton; 
46  
-                tabKeyRadioMatrix = NSMatrix; 
47  
-                tableTextMenuButton = NSPopUpButton; 
48  
-                tableTextSizeField = NSTextField; 
49  
-                window = NSWindow; 
50  
-            }; 
51  
-            SUPERCLASS = NSObject; 
52  
-        }
53  
-    ); 
54  
-    IBVersion = 1; 
55  
-}
  1
+<?xml version="1.0" encoding="UTF-8"?>
  2
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3
+<plist version="1.0">
  4
+<dict>
  5
+	<key>IBClasses</key>
  6
+	<array>
  7
+		<dict>
  8
+			<key>ACTIONS</key>
  9
+			<dict>
  10
+				<key>addedExtension</key>
  11
+				<string>id</string>
  12
+				<key>addedType</key>
  13
+				<string>id</string>
  14
+				<key>changePassphrase</key>
  15
+				<string>id</string>
  16
+				<key>changedFileDeletionWarningSettings</key>
  17
+				<string>id</string>
  18
+				<key>changedFileStorageFormat</key>
  19
+				<string>id</string>
  20
+				<key>changedKeyLength</key>
  21
+				<string>id</string>
  22
+				<key>changedKeychainSettings</key>
  23
+				<string>id</string>
  24
+				<key>changedSecureTextEntry</key>
  25
+				<string>id</string>
  26
+				<key>removeFromKeychain</key>
  27
+				<string>id</string>
  28
+				<key>removedExtension</key>
  29
+				<string>id</string>
  30
+				<key>removedType</key>
  31
+				<string>id</string>
  32
+				<key>syncFrequencyChange</key>
  33
+				<string>id</string>
  34
+				<key>toggledEncryption</key>
  35
+				<string>id</string>
  36
+				<key>toggledSyncing</key>
  37
+				<string>id</string>
  38
+				<key>visitSimplenoteSite</key>
  39
+				<string>id</string>
  40
+			</dict>
  41
+			<key>CLASS</key>
  42
+			<string>NotationPrefsViewController</string>
  43
+			<key>LANGUAGE</key>
  44
+			<string>ObjC</string>
  45
+			<key>OUTLETS</key>
  46
+			<dict>
  47
+				<key>allowedExtensionsTable</key>
  48
+				<string>NSTableView</string>
  49
+				<key>allowedTypesTable</key>
  50
+				<string>NSTableView</string>
  51
+				<key>changePasswordButton</key>
  52
+				<string>NSButton</string>
  53
+				<key>confirmFileDeletionButton</key>
  54
+				<string>NSButton</string>
  55
+				<key>enableEncryptionButton</key>
  56
+				<string>NSButton</string>
  57
+				<key>enabledSyncButton</key>
  58
+				<string>NSButton</string>
  59
+				<key>fileAttributesHelpText</key>
  60
+				<string>NSTextField</string>
  61
+				<key>keyLengthField</key>
  62
+				<string>NSTextField</string>
  63
+				<key>keyLengthStepper</key>
  64
+				<string>NSStepper</string>
  65
+				<key>newExtensionButton</key>
  66
+				<string>NSButton</string>
  67
+				<key>newTypeButton</key>
  68
+				<string>NSButton</string>
  69
+				<key>passwordSettingsMatrix</key>
  70
+				<string>NSMatrix</string>
  71
+				<key>removeExtensionButton</key>
  72
+				<string>NSButton</string>
  73
+				<key>removeFromKeychainButton</key>
  74
+				<string>NSButton</string>
  75
+				<key>removeTypeButton</key>
  76
+				<string>NSButton</string>
  77
+				<key>secureTextEntryButton</key>
  78
+				<string>NSButton</string>
  79
+				<key>storageFormatPopupButton</key>
  80
+				<string>NSPopUpButton</string>
  81
+				<key>syncAccountField</key>
  82
+				<string>NSTextField</string>
  83
+				<key>syncEncAlertField</key>
  84
+				<string>NSTextField</string>
  85
+				<key>syncEncAlertView</key>
  86
+				<string>NSImageView</string>
  87
+				<key>syncPasswordField</key>
  88
+				<string>NSTextField</string>
  89
+				<key>syncingFrequency</key>
  90
+				<string>NSPopUpButton</string>
  91
+				<key>verifyStatusField</key>
  92
+				<string>NSTextField</string>
  93
+				<key>verifyStatusImageView</key>
  94
+				<string>NSImageView</string>
  95
+				<key>view</key>
  96
+				<string>NSView</string>
  97
+				<key>webOptionsWindow</key>
  98
+				<string>NSWindow</string>
  99
+			</dict>
  100
+			<key>SUPERCLASS</key>
  101
+			<string>NSObject</string>
  102
+		</dict>
  103
+		<dict>
  104
+			<key>CLASS</key>
  105
+			<string>RBSplitView</string>
  106
+			<key>LANGUAGE</key>
  107
+			<string>ObjC</string>
  108
+			<key>OUTLETS</key>
  109
+			<dict>
  110
+				<key>delegate</key>
  111
+				<string>id</string>
  112
+			</dict>
  113
+			<key>SUPERCLASS</key>
  114
+			<string>RBSplitSubview</string>
  115
+		</dict>
  116
+		<dict>
  117
+			<key>CLASS</key>
  118
+			<string>RBSplitSubview</string>
  119
+			<key>LANGUAGE</key>
  120
+			<string>ObjC</string>
  121
+			<key>SUPERCLASS</key>
  122
+			<string>NSView</string>
  123
+		</dict>
  124
+		<dict>
  125
+			<key>ACTIONS</key>
  126
+			<dict>
  127
+				<key>didAdjustSubviews</key>
  128
+				<string>RBSplitView</string>
  129
+				<key>willAdjustSubviews</key>
  130
+				<string>RBSplitView</string>
  131
+			</dict>
  132
+			<key>CLASS</key>
  133
+			<string>NSObject</string>
  134
+			<key>LANGUAGE</key>
  135
+			<string>ObjC</string>
  136
+		</dict>
  137
+		<dict>
  138
+			<key>ACTIONS</key>
  139
+			<dict>
  140
+				<key>changeBodyFont</key>
  141
+				<string>id</string>
  142
+				<key>changedAutoSuggestLinks</key>
  143
+				<string>id</string>
  144
+				<key>changedMakeURLsClickable</key>
  145
+				<string>id</string>
  146
+				<key>changedNoteDeletion</key>
  147
+				<string>id</string>
  148
+				<key>changedNotesFolderLocation</key>
  149
+				<string>id</string>
  150
+				<key>changedQuitBehavior</key>
  151
+				<string>id</string>
  152
+				<key>changedSearchHighlightColorWell</key>
  153
+				<string>id</string>
  154
+				<key>changedSoftTabs</key>
  155
+				<string>id</string>
  156
+				<key>changedSpellChecking</key>
  157
+				<string>id</string>
  158
+				<key>changedStyledTextBehavior</key>
  159
+				<string>id</string>
  160
+				<key>changedTabBehavior</key>
  161
+				<string>id</string>
  162
+				<key>changedTableText</key>
  163
+				<string>id</string>
  164
+				<key>changedTitleCompletion</key>
  165
+				<string>id</string>
  166
+				<key>setAppShortcut</key>
  167
+				<string>id</string>
  168
+				<key>showWindow</key>
  169
+				<string>id</string>
  170
+			</dict>
  171
+			<key>CLASS</key>
  172
+			<string>PrefsWindowController</string>
  173
+			<key>LANGUAGE</key>
  174
+			<string>ObjC</string>
  175
+			<key>OUTLETS</key>
  176
+			<dict>
  177
+				<key>appShortcutField</key>
  178
+				<string>NSTextField</string>
  179
+				<key>autoSuggestLinksButton</key>
  180
+				<string>NSButton</string>
  181
+				<key>bodyTextFontField</key>
  182
+				<string>NSTextField</string>
  183
+				<key>checkSpellingButton</key>
  184
+				<string>NSButton</string>
  185
+				<key>completeNoteTitlesButton</key>
  186
+				<string>NSButton</string>
  187
+				<key>confirmDeletionButton</key>
  188
+				<string>NSButton</string>
  189
+				<key>databaseView</key>
  190
+				<string>NSView</string>
  191
+				<key>editingView</key>
  192
+				<string>NSView</string>
  193
+				<key>folderLocationsMenuButton</key>
  194
+				<string>NSPopUpButton</string>
  195
+				<key>generalView</key>
  196
+				<string>NSView</string>
  197
+				<key>makeURLsClickable</key>
  198
+				<string>NSButton</string>
  199
+				<key>notationPrefsView</key>
  200
+				<string>NSView</string>
  201
+				<key>notationPrefsViewController</key>
  202
+				<string>NotationPrefsViewController</string>
  203
+				<key>quitWhenClosingButton</key>
  204
+				<string>NSButton</string>
  205
+				<key>searchHighlightColorWell</key>
  206
+				<string>NSColorWell</string>
  207
+				<key>softTabsButton</key>
  208
+				<string>NSButton</string>
  209
+				<key>styledTextButton</key>
  210
+				<string>NSButton</string>
  211
+				<key>tabKeyRadioMatrix</key>
  212
+				<string>NSMatrix</string>
  213
+				<key>tableTextMenuButton</key>
  214
+				<string>NSPopUpButton</string>
  215
+				<key>tableTextSizeField</key>
  216
+				<string>NSTextField</string>
  217
+				<key>window</key>
  218
+				<string>NSWindow</string>
  219
+			</dict>
  220
+			<key>SUPERCLASS</key>
  221
+			<string>NSObject</string>
  222
+		</dict>
  223
+		<dict>
  224
+			<key>ACTIONS</key>
  225
+			<dict>
  226
+				<key></key>
  227
+				<string>id</string>
  228
+			</dict>
  229
+			<key>CLASS</key>
  230
+			<string>FirstResponder</string>
  231
+			<key>LANGUAGE</key>
  232
+			<string>ObjC</string>
  233
+			<key>SUPERCLASS</key>
  234
+			<string>NSObject</string>
  235
+		</dict>
  236
+		<dict>
  237
+			<key>CLASS</key>
  238
+			<string>NSTableView</string>
  239
+			<key>LANGUAGE</key>
  240
+			<string>ObjC</string>
  241
+			<key>SUPERCLASS</key>
  242
+			<string>NSControl</string>
  243
+		</dict>
  244
+	</array>
  245
+	<key>IBVersion</key>
  246
+	<string>1</string>
  247
+</dict>
  248
+</plist>
28  English.lproj/Preferences.nib/info.nib 100755 → 100644
... ...
@@ -1,29 +1,21 @@
1 1
 <?xml version="1.0" encoding="UTF-8"?>
2  
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  2
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3 3
 <plist version="1.0">
4 4
 <dict>
5  
-	<key>IBDocumentLocation</key>
6  
-	<string>456 120 356 240 0 0 1920 1178 </string>
7  
-	<key>IBEditorPositions</key>
8  
-	<dict>
9  
-		<key>155</key>
10  
-		<string>766 648 388 314 0 0 1920 1178 </string>
11  
-		<key>250</key>
12  
-		<string>766 579 388 448 0 0 1920 1178 </string>
13  
-		<key>268</key>
14  
-		<string>766 651 388 304 0 0 1920 1178 </string>
15  
-	</dict>
16 5
 	<key>IBFramework Version</key>
17  
-	<string>446.1</string>
18  
-	<key>IBLockedTabItems</key>
19  
-	<array>
20  
-		<integer>10</integer>
21  
-	</array>
  6
+	<string>680</string>
  7
+	<key>IBLastKnownRelativeProjectPath</key>
  8
+	<string>../Notation.xcodeproj</string>
  9
+	<key>IBOldestOS</key>
  10
+	<integer>5</integer>
22 11
 	<key>IBOpenObjects</key>
23 12
 	<array>
  13
+		<integer>250</integer>
24 14
 		<integer>155</integer>
25 15
 	</array>
26 16
 	<key>IBSystem Version</key>
27  
-	<string>8P2137</string>
  17
+	<string>9L31a</string>
  18
+	<key>targetFramework</key>
  19
+	<string>IBCocoaFramework</string>
28 20
 </dict>
29 21
 </plist>
BIN  English.lproj/Preferences.nib/keyedobjects.nib 100755 → 100644
Binary file not shown

0 notes on commit 33f5ce7

Please sign in to comment.
Something went wrong with that request. Please try again.