Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix warnings

  • Loading branch information...
commit 12f265febc63d80ea332e57de2dfb52110b9c8e0 1 parent f4ce048
@robin authored
View
6 BookmarkController.m
@@ -147,7 +147,7 @@ - (void)addBookmarkDidEnd:(NSWindow *)sheet returnCode:(int)returnCode contextIn
[chmFile setTitle:[doc docTitle]];
[context save:&error];
if ( ![context save:&error] )
- NSLog(@"Can not fetch file info: %d",error );
+ NSLog(@"Can not fetch file info: %@",error );
}
CHMBookmark *bookmark = [CHMBookmark bookmarkByURL:[doc currentURL] withContext:[self managedObjectContext]];
@@ -164,7 +164,7 @@ - (void)addBookmarkDidEnd:(NSWindow *)sheet returnCode:(int)returnCode contextIn
[bookmark setTagsString:[tagField stringValue]];
if ( ![context save:&error] )
{
- NSLog(@"Can not fetch file info: %d",error );
+ NSLog(@"Can not fetch file info: %@",error );
return;
}
}
@@ -363,7 +363,7 @@ - (void)menuNeedsUpdate:(NSMenu *)menu
NSArray *array = [context executeFetchRequest:request error:&error];
if (array == nil)
{
- NSLog(@"Can not fetch file info: %d",error );
+ NSLog(@"Can not fetch file info: %@",error );
return;
}
for (CHMBookmark* bm in array) {
View
2  CHMDocument.h
@@ -17,7 +17,7 @@
@class CHMConsole;
struct chmFile;
-@interface CHMDocument : NSDocument {
+@interface CHMDocument : NSDocument <NSToolbarDelegate> {
IBOutlet PSMTabBarControl *tabBar;
IBOutlet NSTabView *docTabView;
IBOutlet NSOutlineView *tocView;
View
2  CHMTableOfContent.h
@@ -9,7 +9,7 @@
#import <Cocoa/Cocoa.h>
@class LinkItem;
-@interface CHMTableOfContent : NSObject {
+@interface CHMTableOfContent : NSObject <NSOutlineViewDataSource> {
LinkItem *rootItems;
NSMutableArray *itemStack;
View
2  CHMTextEncodingMenu.m
@@ -51,7 +51,7 @@ - (void)initEncodingMenu
errorDescription:&error];
if(!plist)
{
- NSLog(error);
+ NSLog(@"%@",error);
[error release];
return;
}
View
7 ichm.xcodeproj/project.pbxproj
@@ -352,6 +352,7 @@
isa = PBXProject;
buildConfigurationList = C05733CB08A9546B00998B17 /* Build configuration list for PBXProject "ichm" */;
compatibilityVersion = "Xcode 3.1";
+ developmentRegion = English;
hasScannedForEncodings = 1;
knownRegions = (
English,
@@ -586,9 +587,10 @@
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
HEADER_SEARCH_PATHS = "";
+ MACOSX_DEPLOYMENT_TARGET = 10.5;
ONLY_ACTIVE_ARCH = YES;
PREBINDING = NO;
- SDKROOT = macosx10.5;
+ SDKROOT = macosx10.6;
};
name = Debug;
};
@@ -600,8 +602,9 @@
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
HEADER_SEARCH_PATHS = "";
+ MACOSX_DEPLOYMENT_TARGET = 10.5;
PREBINDING = NO;
- SDKROOT = macosx10.5;
+ SDKROOT = macosx10.6;
};
name = Release;
};
Please sign in to comment.
Something went wrong with that request. Please try again.