diff --git a/Cocoa/Plug-Ins/Font Editor/FontWindowController.h b/Cocoa/Plug-Ins/Font Editor/FontWindowController.h index 707ff65..c2094d7 100644 --- a/Cocoa/Plug-Ins/Font Editor/FontWindowController.h +++ b/Cocoa/Plug-Ins/Font Editor/FontWindowController.h @@ -17,7 +17,7 @@ } - (void)loadFontFromResource; - (IBAction)saveResource:(id)sender; -- (void)setTableData:(id)tableResource; +- (void)setTableData:(id )tableResource; - (void)openTable:(NSDictionary *)table inEditor:(BOOL)editor; @end diff --git a/Cocoa/Plug-Ins/Font Editor/FontWindowController.mm b/Cocoa/Plug-Ins/Font Editor/FontWindowController.mm index e8da019..56ae8e1 100644 --- a/Cocoa/Plug-Ins/Font Editor/FontWindowController.mm +++ b/Cocoa/Plug-Ins/Font Editor/FontWindowController.mm @@ -1,5 +1,6 @@ #import "FontWindowController.h" #import "NGSCategories.h" +#import "ResourceDocument.h" #import UInt32 TableChecksum(UInt32 *table, UInt32 length) @@ -252,7 +253,7 @@ UInt32 TableChecksum(UInt32 *table, UInt32 length) [self setTableData:[notification object]]; } -- (void)setTableData:(id)tableResource +- (void)setTableData:(id )tableResource { NSDictionary *table = [headerTable firstObjectReturningValue:[tableResource type] forKey:@"name"]; if(!table) diff --git a/Cocoa/Plug-Ins/ResKnifeResourceProtocol.h b/Cocoa/Plug-Ins/ResKnifeResourceProtocol.h index 5377a9a..d5068e8 100644 --- a/Cocoa/Plug-Ins/ResKnifeResourceProtocol.h +++ b/Cocoa/Plug-Ins/ResKnifeResourceProtocol.h @@ -40,6 +40,9 @@ - (NSData *)data; - (void)setData:(NSData *)newData; +// Prevent a warning +- (id)copy; + - (NSString *)defaultWindowTitle; - (NSDocument *)document; // Owner of this resource. Useful for looking for resources in same file as yours. diff --git a/NovaTools/DataSource.h b/NovaTools/DataSource.h index 5e7b6a9..a10aeb5 100755 --- a/NovaTools/DataSource.h +++ b/NovaTools/DataSource.h @@ -1,6 +1,6 @@ #import -@interface DataSource : NSObject +@interface DataSource : NSObject { NSString *type; NSMutableDictionary *data; diff --git a/NovaTools/boom/BoomWindowController.m b/NovaTools/boom/BoomWindowController.m index 0076b62..c23e29e 100644 --- a/NovaTools/boom/BoomWindowController.m +++ b/NovaTools/boom/BoomWindowController.m @@ -125,8 +125,10 @@ NSData *data = [(id )[NSClassFromString(@"Resource") resourceOfType:[plugBundle localizedStringForKey:@"snd" value:@"" table:@"Resource Types"] andID:sound inDocument:nil] data]; if( data && [data length] != 0 ) { - SndListPtr sndPtr = (SndListPtr) [data bytes]; - SndPlay( nil, &sndPtr, false ); +// SndListPtr sndPtr = (SndListPtr) [data bytes]; +// SndPlay( nil, &sndPtr, false ); + NSSound *nssound = [[[NSSound alloc] initWithData:data] autorelease]; + [nssound play]; } else NSBeep(); }