aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPFieldEditorController.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2013-05-21 22:53:10 +0000
committerrowanbeentje <rowan@beent.je>2013-05-21 22:53:10 +0000
commit2737ac00c38513d976fda08104a5014221b0c99c (patch)
tree38829f7d5d9982b9648259cae0a269ef1640dd18 /Source/SPFieldEditorController.m
parent9432986de1d25527b133715ab12a8dffc2c5f6b6 (diff)
downloadsequelpro-2737ac00c38513d976fda08104a5014221b0c99c.tar.gz
sequelpro-2737ac00c38513d976fda08104a5014221b0c99c.tar.bz2
sequelpro-2737ac00c38513d976fda08104a5014221b0c99c.zip
- Fix all the Xcode 4.6.2 build warnings, and tweak warning settings to enable some more
Diffstat (limited to 'Source/SPFieldEditorController.m')
-rw-r--r--Source/SPFieldEditorController.m12
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/SPFieldEditorController.m b/Source/SPFieldEditorController.m
index 87d2025b..386cdd0a 100644
--- a/Source/SPFieldEditorController.m
+++ b/Source/SPFieldEditorController.m
@@ -222,7 +222,7 @@
if([fieldType length])
[label appendString:fieldType];
if(maxTextLength > 0)
- [label appendFormat:@"(%ld) ", maxTextLength];
+ [label appendFormat:@"(%lld) ", maxTextLength];
if(!_allowNULL)
[label appendString:@"NOT NULL "];
if([fieldEncoding length])
@@ -293,7 +293,7 @@
[hexTextView setFont:[NSFont fontWithName:SPDefaultMonospacedFontName size:[NSFont smallSystemFontSize]]];
- [editSheetFieldName setStringValue:[NSString stringWithFormat:@"%@: %@%", NSLocalizedString(@"Field", @"Field"), label]];
+ [editSheetFieldName setStringValue:[NSString stringWithFormat:@"%@: %@", NSLocalizedString(@"Field", @"Field"), label]];
// hide all views in editSheet
[hexTextView setHidden:YES];
@@ -809,7 +809,7 @@
// since QuickLook only works on files.
// Alternate the file name to suppress caching by using counter%2.
if (tmpFileName) [tmpFileName release];
- tmpFileName = [[NSString alloc] initWithFormat:@"%@SequelProQuickLook%d.%@", tmpDirPath, counter%2, type];
+ tmpFileName = [[NSString alloc] initWithFormat:@"%@SequelProQuickLook%ld.%@", tmpDirPath, counter%2, type];
// if data are binary
if ( [sheetEditData isKindOfClass:[NSData class]] && !isText) {
@@ -1153,7 +1153,7 @@
bitValue <<= 1;
}
[bitSheetIntegerTextField setStringValue:[[NSNumber numberWithUnsignedLongLong:intValue] stringValue]];
- [bitSheetHexTextField setStringValue:[NSString stringWithFormat:@"%qX", intValue]];
+ [bitSheetHexTextField setStringValue:[NSString stringWithFormat:@"%lX", (unsigned long)intValue]];
[bitSheetOctalTextField setStringValue:[NSString stringWithFormat:@"%jO", intValue]];
// free old data
if ( sheetEditData != nil ) {
@@ -1283,7 +1283,7 @@
for(i=0; i<maxBit; i++)
[[self valueForKeyPath:[NSString stringWithFormat:@"bitSheetBitButton%ld", i]] setState:NSOffState];
- [bitSheetHexTextField setStringValue:[NSString stringWithFormat:@"%qX", intValue]];
+ [bitSheetHexTextField setStringValue:[NSString stringWithFormat:@"%lX", (unsigned long)intValue]];
[bitSheetOctalTextField setStringValue:[NSString stringWithFormat:@"%jO", intValue]];
i = 0;
@@ -1308,7 +1308,7 @@
[[self valueForKeyPath:[NSString stringWithFormat:@"bitSheetBitButton%ld", i]] setState:NSOffState];
[bitSheetHexTextField setStringValue:[NSString stringWithFormat:@"%qX", intValue]];
- [bitSheetOctalTextField setStringValue:[NSString stringWithFormat:@"%jO", intValue]];
+ [bitSheetOctalTextField setStringValue:[NSString stringWithFormat:@"%llO", intValue]];
i = 0;
while( intValue && i < maxBit )