rendered paste body/* ClientSheetController */
#import <Cocoa/Cocoa.h>
@interface ClientSheetController : NSWindowController
{
IBOutlet id addClientSheet;
IBOutlet id mainPrefPane;
}
- (IBAction)AcceptNewClient:(id)sender;
- (IBAction)addClient:(id)sender;
@end
=======================
#import "ClientSheetController.h"
@implementation ClientSheetController
- (IBAction)AcceptNewClient:(id)sender
{
[NSApp beginSheet:addClientSheet modalForWindow:mainPrefPane
modalDelegate:self didEndSelector:NULL contextInfo:nil];
}
- (IBAction)addClient:(id)sender
{
[addClientSheet orderOut:nil];
[NSApp endSheet:addClientSheet];
}
@end
=============
cd /Volumes/home/twisted/synergy
/usr/bin/gcc-4.0 -o /Volumes/home/twisted/synergy/build/synergy.build/Release/synergy.build/Objects-normal/ppc/synergy -L/Volumes/home/twisted/synergy/build/Release -F/Volumes/home/twisted/synergy/build/Release -filelist /Volumes/home/twisted/synergy/build/synergy.build/Release/synergy.build/Objects-normal/ppc/synergy.LinkFileList -framework Cocoa -framework PreferencePanes -arch ppc -bundle -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
/usr/bin/ld: warning /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Cocoa.framework/Cocoa cputype (7, architecture i386) does not match cputype (18) for specified -arch flag: ppc (file not loaded)
/usr/bin/ld: warning /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/PreferencePanes.framework/PreferencePanes cputype (7, architecture i386) does not match cputype (18) for specified -arch flag: ppc (file not loaded)
/usr/bin/ld: warning /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libSystem.dylib cputype (7, architecture i386) does not match cputype (18) for specified -arch flag: ppc (file not loaded)
/usr/bin/ld: warning /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libSystem.B.dylib cputype (7, architecture i386) does not match cputype (18) for specified -arch flag: ppc (file not loaded)
/usr/bin/ld: Undefined symbols:
.objc_class_name_NSPreferencePane
.objc_class_name_NSWindowController
_NSApp
_objc_msgSend
collect2: ld returned 1 exit status
/usr/bin/ld: warning /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Cocoa.framework/Cocoa cputype (7, architecture i386) does not match cputype (18) for specified -arch flag: ppc (file not loaded)
/usr/bin/ld: warning /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/PreferencePanes.framework/PreferencePanes cputype (7, architecture i386) does not match cputype (18) for specified -arch flag: ppc (file not loaded)
/usr/bin/ld: warning /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libSystem.dylib cputype (7, architecture i386) does not match cputype (18) for specified -arch flag: ppc (file not loaded)
/usr/bin/ld: warning /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libSystem.B.dylib cputype (7, architecture i386) does not match cputype (18) for specified -arch flag: ppc (file not loaded)
/usr/bin/ld: Undefined symbols:
.objc_class_name_NSPreferencePane
.objc_class_name_NSWindowController
_NSApp
_objc_msgSend
collect2: ld returned 1 exit status