mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 02:04:20 +00:00
Fix compiling on MacOSX 10.1
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13274 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
9c277811c8
commit
cdf7d8d16c
3 changed files with 12 additions and 2 deletions
|
@ -926,7 +926,10 @@ void __dummy_GMAppKit_functionForLinking() {}
|
|||
/* OUCH! This code crashes the translator; probably we interfere somehow with
|
||||
the way NSPopUpButton is handled by the NeXT's NIB code. Sorry, the
|
||||
popup buttons cannot be handled by the convertor! */
|
||||
[archiver encodeArray:[self itemArray] withName:@"itemArray"];
|
||||
//[archiver encodeArray:[self itemArray] withName:@"itemArray"];
|
||||
NSLog(@"Cannot encode NSPopUpButton - please fix me");
|
||||
[archiver encodeArray: [NSArray array] withName: @"itemArray"];
|
||||
|
||||
//[archiver encodeString:[self titleOfSelectedItem] withName:@"selectedItem"];
|
||||
//[archiver encodeString:[self title] withName:@"selectedItem"];
|
||||
//[super encodeWithModelArchiver:archiver];
|
||||
|
|
|
@ -52,6 +52,13 @@
|
|||
{
|
||||
return [[[self allocWithZone:[unarchiver objectZone]] init] autorelease];
|
||||
}
|
||||
|
||||
/* Works around a bug in MacOSX 10.1.x?. [NSPatternColor -isEqual:] doesn't
|
||||
check if the object is a color before calling colorSpaceName on it */
|
||||
- (NSString *) colorSpaceName
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
@end
|
||||
|
||||
|
||||
|
|
|
@ -140,7 +140,7 @@
|
|||
#endif
|
||||
- (id)awakeAfterUsingCoder:(NSCoder*)aDecoder
|
||||
{
|
||||
#ifdef DEBUG
|
||||
#if defined(DEBUG) && !defined(__APPLE__)
|
||||
NSLog (@"%x awakeAfterUsingCoder %@: source = %@, destination = %@, label = %@",
|
||||
self, NSStringFromClass(isa), source, destination, label);
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue