Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xcode 15 - fixing build import foundation #1

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions MGTemplateEngine.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#define BLOCK_VARIABLES_KEY @"vars" // NSDictionary of variables

#define TEMPLATE_ENGINE_ERROR_DOMAIN @"MGTemplateEngineErrorDomain"
#import <Foundation/Foundation.h>

@class MGTemplateEngine;
@protocol MGTemplateEngineDelegate <NSObject>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?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>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
2 changes: 2 additions & 0 deletions MGTemplateFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
*
*/

#import <Foundation/Foundation.h>

@protocol MGTemplateFilter <NSObject>

- (NSArray *)filters;
Expand Down
2 changes: 1 addition & 1 deletion MGTemplateStandardFilters.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//

#import "MGTemplateFilter.h"

#import <Foundation/Foundation.h>

@interface MGTemplateStandardFilters : NSObject <MGTemplateFilter> {

Expand Down
5 changes: 3 additions & 2 deletions MGTemplateStandardFilters.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
//

#import "MGTemplateStandardFilters.h"

#import <Foundation/Foundation.h>
#import <AppKit/NSColor.h>

#define UPPERCASE @"uppercase"
#define LOWERCASE @"lowercase"
Expand Down Expand Up @@ -84,7 +85,7 @@ - (id)filterInvoked:(NSString *)filter withArguments:(NSArray *)args onValue:(id
(unsigned int)(components[2] * 255)];
return colorHex;
#else
NSColor *color = [(NSColor *)value colorUsingColorSpaceName:NSCalibratedRGBColorSpace];
NSColor *color = [(NSColor *)value colorUsingColorSpace:NSColorSpace.genericRGBColorSpace];
if (!color) { // happens if the colorspace couldn't be converted
return @"000000"; // black
} else {
Expand Down
2 changes: 1 addition & 1 deletion MGTemplateStandardMarkers.m
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@

@implementation MGTemplateStandardMarkers
{
__weak MGTemplateEngine *engine; // weak ref
MGTemplateEngine *engine; // weak ref
NSMutableArray *forStack;
NSMutableArray *sectionStack;
NSMutableArray *ifStack;
Expand Down
2 changes: 2 additions & 0 deletions NSArray_DeepMutableCopy.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// Copyright 2008 Instinctive Code. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSArray (DeepMutableCopy)

- (NSMutableArray *)deepMutableCopy;
Expand Down
2 changes: 1 addition & 1 deletion NSArray_DeepMutableCopy.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//

#import "NSArray_DeepMutableCopy.h"

#import <Foundation/Foundation.h>

@implementation NSArray (DeepMutableCopy)

Expand Down
2 changes: 2 additions & 0 deletions NSDictionary_DeepMutableCopy.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// Copyright 2008 Instinctive Code. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSDictionary (DeepMutableCopy)

- (NSMutableDictionary *)deepMutableCopy;
Expand Down