Skip to content

Commit

Permalink
Fix issue where some placeholder objects don't respond to NSCoding
Browse files Browse the repository at this point in the history
  • Loading branch information
gcasa committed Nov 6, 2024
1 parent e9be221 commit 57fa766
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions GormCore/GormDocument.m
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,22 @@
#import "GormDocumentController.h"
#import "GormXLIFFDocument.h"

@interface NSObject (GormPrivate)
@end

@implementation NSObject (GormPrivate)

- (instancetype) initWithCoder: (NSCoder *)coder
{
return [self init];
}

- (void) encodeWithCoder: (NSCoder *)coder
{
}

@end

@interface GormDisplayCell : NSButtonCell
@end

Expand Down Expand Up @@ -84,6 +100,7 @@ - (NSWindow *) _docWindow
@end

@implementation GormFirstResponder

- (NSImage*) imageForViewer
{
static NSImage *image = nil;
Expand Down

0 comments on commit 57fa766

Please sign in to comment.