Changeset 2543

Show
Ignore:
Timestamp:
04/16/05 19:14:54 (4 years ago)
Author:
timothy
Message:
  • Transparant chat areas make a return now that 10.3.9 is out and Safari 1.3 is final. Set the alpha on the background color in your variants to use transparancy.
  • Attempts to fix the AppleScript? by removed depricated commands, and ditchign the buggy .r file.
  • Other stuff I'm sure...
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Colloquy.xcode/project.pbxproj

    r2542 r2543  
    15381538                        sourceTree = "<group>"; 
    15391539                }; 
     1540                1C7B83370810A6D100B1C1E9 = { 
     1541                        fileRef = 1C7C77DF07DBD49F00FB5F83; 
     1542                        isa = PBXBuildFile; 
     1543                        settings = { 
     1544                        }; 
     1545                }; 
    15401546                1C7B83C50668D732004F1EFE = { 
    15411547                        fileEncoding = 4; 
     
    16181624                        buildActionMask = 2147483647; 
    16191625                        files = ( 
    1620                                 1C7C77E307DBD4C300FB5F83, 
    1621                                 1C7C77E507DBD4E600FB5F83, 
     1626                                1C7B83370810A6D100B1C1E9, 
    16221627                        ); 
    16231628                        isa = PBXRezBuildPhase; 
     
    16621667                        refType = 4; 
    16631668                        sourceTree = "<group>"; 
    1664                 }; 
    1665                 1C7C77E307DBD4C300FB5F83 = { 
    1666                         fileRef = 1C7C77DF07DBD49F00FB5F83; 
    1667                         isa = PBXBuildFile; 
    1668                         settings = { 
    1669                         }; 
    1670                 }; 
    1671                 1C7C77E507DBD4E600FB5F83 = { 
    1672                         fileRef = 1C7C76ED07DBA1D000FB5F83; 
    1673                         isa = PBXBuildFile; 
    1674                         settings = { 
    1675                         }; 
    16761669                }; 
    16771670                1C7EF53D06B341890037F173 = { 
  • trunk/JVAppearancePreferences.h

    r2308 r2543  
    33@class JVFontPreviewField; 
    44@class JVStyle; 
     5@class JVStyleView; 
    56 
    67@interface JVAppearancePreferences : NSPreferencesModule { 
    7         IBOutlet WebView *preview; 
     8        IBOutlet JVStyleView *preview; 
    89        IBOutlet NSPopUpButton *styles; 
    910        IBOutlet NSPopUpButton *emoticons; 
  • trunk/JVAppearancePreferences.m

    r2535 r2543  
    44#import "JVAppearancePreferences.h" 
    55#import "JVStyle.h" 
     6#import "JVStyleView.h" 
    67#import "JVEmoticonSet.h" 
    78#import "JVFontPreviewField.h" 
     
    8182        [_style setDefaultEmoticonSet:[JVEmoticonSet emoticonSetWithIdentifier:identifier]]; 
    8283        [self updateEmoticonsMenu]; 
    83         [self updatePreview]; 
    8484} 
    8585 
     
    9090        _style = [style retain]; 
    9191 
     92        JVChatTranscript *transcript = [JVChatTranscript chatTranscriptWithContentsOfFile:[_style previewTranscriptFilePath]]; 
     93        [preview setTranscript:transcript]; 
     94 
     95        [preview setEmoticons:[_style defaultEmoticonSet]]; 
     96        [preview setStyle:_style]; 
     97 
    9298        [[NSNotificationCenter defaultCenter] removeObserver:self name:JVStyleVariantChangedNotification object:nil]; 
    9399        [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector( updateVariant ) name:JVStyleVariantChangedNotification object:_style]; 
     
    96102#pragma mark - 
    97103 
    98 - (void) willBeDisplayed
    99         if( [preview respondsToSelector:@selector( setDrawsBackground: )] ) 
    100                [preview setDrawsBackground:NO]; // allows rgba backgrounds to see through to the Desktop 
     104- (void) awakeFromNib
     105        [(NSClipView *)[preview superview] setBackgroundColor:[NSColor clearColor]]; // allows rgba backgrounds to see through to the Desktop 
     106        [(NSScrollView *)[(NSClipView *)[preview superview] superview] setBackgroundColor:[NSColor clearColor]]; 
    101107} 
    102108 
    103109- (void) initializeFromDefaults { 
    104110        [preview setPolicyDelegate:self]; 
    105         [preview setFrameLoadDelegate:self]; 
    106111        [preview setUIDelegate:self]; 
    107112        [optionsTable setRefusesFirstResponder:YES]; 
     
    189194        if( _variantLocked ) [optionsTable deselectAll:nil]; 
    190195 
    191         [self updatePreview]; 
    192196        [self parseStyleOptions]; 
    193197 
    194         [preview displayIfNeeded]; 
    195198        [[preview window] enableFlushWindow]; 
    196199} 
     
    301304} 
    302305 
    303 - (void) updatePreview { 
    304         JVEmoticonSet *emoticon = [_style defaultEmoticonSet]; 
    305  
    306         NSURL *resources = [NSURL fileURLWithPath:[[NSBundle mainBundle] resourcePath]]; 
    307         NSURL *defaultStyleSheetLocation = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"default" ofType:@"css"]]; 
    308         NSString *variantStyleSheetLocation = [[_style variantStyleSheetLocationWithName:[_style defaultVariantName]] absoluteString]; 
    309         if( ! variantStyleSheetLocation ) variantStyleSheetLocation = @""; 
    310         NSString *shell = [NSString stringWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"template" ofType:@"html"]]; 
    311         NSString *html = [_style transformXML:[NSString stringWithContentsOfFile:[_style previewTranscriptFilePath]] withParameters:nil]; 
    312         html = [NSString stringWithFormat:shell, @"Preview", [resources absoluteString], [defaultStyleSheetLocation absoluteString], [[emoticon styleSheetLocation] absoluteString], [[_style mainStyleSheetLocation] absoluteString], variantStyleSheetLocation, [[_style baseLocation] absoluteString], [_style contentsOfHeaderFile], html]; 
    313  
    314         [WebCoreCache empty]; 
    315  
    316         [[preview window] disableFlushWindow]; 
    317         [[preview mainFrame] loadHTMLString:html baseURL:nil]; 
    318 } 
    319  
    320306- (void) updateVariant { 
    321         [WebCoreCache empty]; 
    322         [preview stringByEvaluatingJavaScriptFromString:[NSString stringWithFormat:@"setStylesheet( \"variantStyle\", \"%@\" );", [[_style variantStyleSheetLocationWithName:[_style defaultVariantName]] absoluteString]]];     
     307        [preview setStyleVariant:[_style defaultVariantName]]; 
    323308} 
    324309 
     
    330315        [[preview preferences] setSerifFontFamily:[font fontName]]; 
    331316        [[preview preferences] setSansSerifFontFamily:[font fontName]]; 
    332         [self updatePreview]; 
    333317} 
    334318 
     
    345329                [listener ignore]; 
    346330        } 
    347 } 
    348  
    349 - (void) webView:(WebView *) sender didFinishLoadForFrame:(WebFrame *) frame { 
    350         [preview displayIfNeeded]; 
    351         if( [[preview window] isFlushWindowDisabled] ) 
    352                 [[preview window] enableFlushWindow]; 
    353331} 
    354332 
  • trunk/JVChatWindowController.h

    r2409 r2543  
    1717        IBOutlet MVMenuButton *viewActionButton; 
    1818        IBOutlet MVMenuButton *favoritesButton; 
    19         NSToolbarItem *_activityToolbarItem; 
    20         NSView *_placeHolder; 
    2119        NSMutableArray *_views; 
    2220        id <JVChatViewController> _activeViewController; 
  • trunk/JVChatWindowController.m

    r2500 r2543  
    4949                viewActionButton = nil; 
    5050                favoritesButton = nil; 
    51                 _activityToolbarItem = nil; 
    5251                _activeViewController = nil; 
    5352                _views = [[NSMutableArray array] retain]; 
     
    5857 
    5958- (void) windowDidLoad { 
    60         _placeHolder = [[[self window] contentView] retain]; 
    61  
    6259        NSTableColumn *column = [chatViewsOutlineView outlineTableColumn]; 
    6360        JVDetailCell *prototypeCell = [[JVDetailCell new] autorelease]; 
     
    9087        [[self window] setDelegate:nil]; 
    9188        [[self window] setToolbar:nil]; 
    92         [[self window] setContentView:_placeHolder]; 
    9389 
    9490        [viewsDrawer setDelegate:nil]; 
     
    104100                [controller setWindowController:nil]; 
    105101 
    106         [_placeHolder release]; 
    107102        [_activeViewController release]; 
    108         [_activityToolbarItem release]; 
    109103        [_views release]; 
    110104 
    111         _placeHolder = nil; 
    112         _activityToolbarItem = nil; 
    113105        _activeViewController = nil; 
    114106        _views = nil; 
     
    825817                        [(NSObject *)_activeViewController didSelect]; 
    826818        } else if( ! [_views count] || ! _activeViewController ) { 
    827                 [[self window] setContentView:_placeHolder]; 
     819                [[self window] setContentView:[[[NSView alloc] initWithFrame:[[[self window] contentView] frame]] autorelease]]; 
    828820                [[[self window] toolbar] setDelegate:nil]; 
    829821                [[self window] setToolbar:nil]; 
  • trunk/JVDirectChatPanel.m

    r2522 r2543  
    229229        JVEmoticonSet *emoticon = nil; 
    230230 
     231        [(NSClipView *)[display superview] setBackgroundColor:[NSColor clearColor]]; // allows rgba backgrounds to see through to the Desktop 
     232        [(NSScrollView *)[(NSClipView *)[display superview] superview] setBackgroundColor:[NSColor clearColor]]; 
     233 
    231234        [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector( _refreshIcon: ) name:MVChatConnectionDidConnectNotification object:[self connection]]; 
    232235        [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector( _refreshIcon: ) name:MVChatConnectionDidDisconnectNotification object:[self connection]]; 
  • trunk/JVStyleView.m

    r2534 r2543  
    1313@interface WebCoreCache 
    1414+ (void) empty; 
     15+ (id)statistics; 
    1516@end 
    1617 
     
    169170 
    170171        if( _webViewReady ) { 
     172                [WebCoreCache empty]; 
     173 
    171174#ifdef WebKitVersion146 
    172175                if( [self respondsToSelector:@selector( windowScriptObject )] ) { 
    173176                        NSString *styleSheetLocation = [[[self style] variantStyleSheetLocationWithName:_styleVariant] absoluteString]; 
    174                         if( ! styleSheetLocation ) styleSheetLocation = @""; 
    175                         [[self windowScriptObject] callWebScriptMethod:@"setStylesheet" withArguments:[NSArray arrayWithObjects:@"variantStyle", styleSheetLocation, nil]]; 
     177                        DOMHTMLLinkElement *element = (DOMHTMLLinkElement *)[[[self mainFrame] DOMDocument] getElementById:@"variantStyle"]; 
     178                        if( ! styleSheetLocation ) [element setHref:@""]; 
     179                        else [element setHref:styleSheetLocation]; 
    176180                } else 
    177181#endif 
     
    202206 
    203207        if( _webViewReady ) 
     208                [WebCoreCache empty]; 
     209 
    204210#ifdef WebKitVersion146 
    205211                if( [self respondsToSelector:@selector( webScriptObject )] ) { 
    206212                        NSString *styleSheetLocation = [[[self emoticons] styleSheetLocation] absoluteString]; 
    207                         if( ! styleSheetLocation ) styleSheetLocation = @""; 
    208                         [[self windowScriptObject] callWebScriptMethod:@"setStylesheet" withArguments:[NSArray arrayWithObjects:@"emoticonStyle", styleSheetLocation, nil]]; 
     213                        DOMHTMLLinkElement *element = (DOMHTMLLinkElement *)[[[self mainFrame] DOMDocument] getElementById:@"emoticonStyle"]; 
     214                        NSLog( @"%@", element ); 
     215                        if( ! styleSheetLocation ) [element setHref:@""]; 
     216                        else [element setHref:styleSheetLocation]; 
    209217                } else 
    210218#endif 
     
    231239        _switchingStyles = YES; 
    232240        _requiresFullMessage = YES; 
     241 
     242        [WebCoreCache empty]; 
     243 
    233244        [self _resetDisplay]; 
    234245} 
     
    452463        _webViewReady = NO; 
    453464        [[self class] cancelPreviousPerformRequestsWithTarget:self selector:_cmd object:nil]; 
    454          
     465 
    455466        [self stopLoading:nil]; 
    456467        [self clearScrollbarMarks]; 
  • trunk/JVTabbedChatWindowController.h

    r1823 r2543  
    66        IBOutlet AICustomTabsView *customTabsView; 
    77        IBOutlet NSTabView *tabView; 
    8         IBOutlet NSImageView *icon; 
    98        NSMutableArray *_tabItems; 
    109    BOOL _supressHiding; 
  • trunk/JVTabbedChatWindowController.m

    r2470 r2543  
    6868        NSAssert( index >= 0 && index <= [_tabItems count], @"Index is beyond bounds." ); 
    6969 
    70         [icon setImage:nil]; 
    71  
    7270        [super insertChatViewController:controller atIndex:index]; 
    7371 
     
    8482        [_tabItems removeObjectAtIndex:index]; 
    8583        [tabView removeTabViewItem:[tabView tabViewItemAtIndex:index]]; 
    86         if( ! [_tabItems count] ) [icon setImage:[NSImage imageNamed:@"colloquy-alpha"]]; 
    8784        [super removeChatViewController:controller]; 
    8885} 
    8986 
    9087- (void) removeAllChatViewControllers { 
    91         [icon setImage:[NSImage imageNamed:@"colloquy-alpha"]]; 
    9288        [_tabItems removeAllObjects]; 
    9389        while( [tabView numberOfTabViewItems] > 0 ) 
     
    531527                        [(NSObject *)_activeViewController didSelect]; 
    532528        } else if( ! [_views count] || ! _activeViewController ) { 
    533                 [[self window] setContentView:_placeHolder]; 
     529                [[self window] setContentView:[[[NSView alloc] initWithFrame:[[[self window] contentView] frame]] autorelease]]; 
    534530                [[[self window] toolbar] setDelegate:nil]; 
    535531                [[self window] setToolbar:nil]; 
  • trunk/Languages/English.lproj/JVAppearancePreferences.nib/classes.nib

    r1615 r2543  
    4141        },  
    4242        {CLASS = JVMixedTableColumn; LANGUAGE = ObjC; SUPERCLASS = NSTableColumn; },  
     43        { 
     44            ACTIONS = {jumpToNextHighlight = id; jumpToPreviousHighlight = id; };  
     45            CLASS = JVStyleView;  
     46            LANGUAGE = ObjC;  
     47            OUTLETS = {nextTextView = NSTextView; };  
     48            SUPERCLASS = WebView;  
     49        },  
    4350        {CLASS = NSObject; LANGUAGE = ObjC; },  
    4451        { 
  • trunk/Languages/English.lproj/JVAppearancePreferences.nib/info.nib

    r1615 r2543  
    1010                <string>505 398 270 342 0 0 1280 832 </string> 
    1111                <key>5</key> 
    12                 <string>405 357 470 399 0 0 1280 832 </string> 
     12                <string>405 370 470 399 0 0 1280 832 </string> 
    1313        </dict> 
    1414        <key>IBFramework Version</key> 
     
    3939        </array> 
    4040        <key>IBSystem Version</key> 
    41         <string>7H63</string> 
     41        <string>7W77</string> 
    4242</dict> 
    4343</plist> 
  • trunk/Resources/ChatCore.scriptSuite

    r2448 r2543  
    114114                                <key>ChatCore.Disconnect</key> 
    115115                                <string>disconnectScriptCommand:</string> 
    116                                 <key>ChatCore.sendMsgToRoom</key> 
    117                                 <string> </string> 
    118                                 <key>ChatCore.sendMsgToUser</key> 
    119                                 <string> </string> 
    120116                        </dict> 
    121117                        <key>ToManyRelationships</key> 
     
    678674                                <key>Type</key> 
    679675                                <string>NSString</string> 
    680                         </dict> 
    681                 </dict> 
    682                 <key>SendSubcodeCommand</key> 
    683                 <dict> 
    684                         <key>AppleEventClassCode</key> 
    685                         <string>ccoR</string> 
    686                         <key>AppleEventCode</key> 
    687                         <string>sSrX</string> 
    688                         <key>Arguments</key> 
    689                         <dict> 
    690                                 <key>arguments</key> 
    691                                 <dict> 
    692                                         <key>AppleEventCode</key> 
    693                                         <string>sSr2</string> 
    694                                         <key>Optional</key> 
    695                                         <string>YES</string> 
    696                                         <key>Type</key> 
    697                                         <string>NSString</string> 
    698                                 </dict> 
    699                                 <key>command</key> 
    700                                 <dict> 
    701                                         <key>AppleEventCode</key> 
    702                                         <string>sSr1</string> 
    703                                         <key>Optional</key> 
    704                                         <string>YES</string> 
    705                                         <key>Type</key> 
    706                                         <string>NSString</string> 
    707                                 </dict> 
    708                                 <key>type</key> 
    709                                 <dict> 
    710                                         <key>AppleEventCode</key> 
    711                                         <string>sSr3</string> 
    712                                         <key>Optional</key> 
    713                                         <string>YES</string> 
    714                                         <key>Type</key> 
    715                                         <string>NSNumber&lt;ChatCore.SubcodeType&gt;</string> 
    716                                 </dict> 
    717                                 <key>user</key> 
    718                                 <dict> 
    719                                         <key>AppleEventCode</key> 
    720                                         <string>sSr4</string> 
    721                                         <key>Optional</key> 
    722                                         <string>YES</string> 
    723                                         <key>Type</key> 
    724                                         <string>NSObject</string> 
    725                                 </dict> 
    726                         </dict> 
    727                         <key>CommandClass</key> 
    728                         <string>NSScriptCommand</string> 
    729                         <key>UnnamedArgument</key> 
    730                         <dict> 
    731                                 <key>Type</key> 
    732                                 <string>NSString</string> 
    733                         </dict> 
    734                 </dict> 
    735                 <key>TransferFile</key> 
    736                 <dict> 
    737                         <key>AppleEventClassCode</key> 
    738                         <string>ccoR</string> 
    739                         <key>AppleEventCode</key> 
    740                         <string>sFiX</string> 
    741                         <key>Arguments</key> 
    742                         <dict> 
    743                                 <key>path</key> 
    744                                 <dict> 
    745                                         <key>AppleEventCode</key> 
    746                                         <string>sFi1</string> 
    747                                         <key>Optional</key> 
    748                                         <string>YES</string> 
    749                                         <key>Type</key> 
    750                                         <string>NSString&lt;FilePath&gt;</string> 
    751                                 </dict> 
    752                                 <key>user</key> 
    753                                 <dict> 
    754                                         <key>AppleEventCode</key> 
    755                                         <string>sFi2</string> 
    756                                         <key>Optional</key> 
    757                                         <string>YES</string> 
    758                                         <key>Type</key> 
    759                                         <string>ChatCore.MVChatUser</string> 
    760                                 </dict> 
    761                         </dict> 
    762                         <key>CommandClass</key> 
    763                         <string>NSScriptCommand</string> 
    764                         <key>UnnamedArgument</key> 
    765                         <dict> 
    766                                 <key>Type</key> 
    767                                 <string>NSString&lt;FilePath&gt;</string> 
    768                         </dict> 
    769                 </dict> 
    770                 <key>sendMsgToRoom</key> 
    771                 <dict> 
    772                         <key>AppleEventClassCode</key> 
    773                         <string>ccoR</string> 
    774                         <key>AppleEventCode</key> 
    775                         <string>smrX</string> 
    776                         <key>Arguments</key> 
    777                         <dict> 
    778                                 <key>action</key> 
    779                                 <dict> 
    780                                         <key>AppleEventCode</key> 
    781                                         <string>actA</string> 
    782                                         <key>Optional</key> 
    783                                         <string>YES</string> 
    784                                         <key>Type</key> 
    785                                         <string>NSNumber&lt;Bool&gt;</string> 
    786                                 </dict> 
    787                                 <key>encoding</key> 
    788                                 <dict> 
    789                                         <key>AppleEventCode</key> 
    790                                         <string>encE</string> 
    791                                         <key>Optional</key> 
    792                                         <string>YES</string> 
    793                                         <key>Type</key> 
    794                                         <string>NSNumber&lt;ChatCore.Encoding&gt;</string> 
    795                                 </dict> 
    796                                 <key>message</key> 
    797                                 <dict> 
    798                                         <key>AppleEventCode</key> 
    799                                         <string>meSA</string> 
    800                                         <key>Type</key> 
    801                                         <string>NSString</string> 
    802                                 </dict> 
    803                                 <key>target</key> 
    804                                 <dict> 
    805                                         <key>AppleEventCode</key> 
    806                                         <string>usRA</string> 
    807                                         <key>Type</key> 
    808                                         <string>NSString</string> 
    809                                 </dict> 
    810                         </dict> 
    811                         <key>CommandClass</key> 
    812                         <string>MVSendMessageScriptCommand</string> 
    813                         <key>UnnamedArgument</key> 
    814                         <dict> 
    815                                 <key>Type</key> 
    816                                 <string>ChatCore.MVChatConnection</string> 
    817                         </dict> 
    818                 </dict> 
    819                 <key>sendMsgToUser</key> 
    820                 <dict> 
    821                         <key>AppleEventClassCode</key> 
    822                         <string>ccoR</string> 
    823                         <key>AppleEventCode</key> 
    824                         <string>smuX</string> 
    825                         <key>Arguments</key> 
    826                         <dict> 
    827                                 <key>action</key> 
    828                                 <dict> 
    829                                         <key>AppleEventCode</key> 
    830                                         <string>actA</string> 
    831                                         <key>Optional</key> 
    832                                         <string>YES</string> 
    833                                         <key>Type</key> 
    834                                         <string>NSNumber&lt;Bool&gt;</string> 
    835                                 </dict> 
    836                                 <key>encoding</key> 
    837                                 <dict> 
    838                                         <key>AppleEventCode</key> 
    839                                         <string>encE</string> 
    840                                         <key>Optional</key> 
    841                                         <string>YES</string> 
    842                                         <key>Type</key> 
    843                                         <string>NSNumber&lt;ChatCore.Encoding&gt;</string> 
    844                                 </dict> 
    845                                 <key>message</key> 
    846                                 <dict> 
    847                                         <key>AppleEventCode</key> 
    848                                         <string>meSA</string> 
    849                                         <key>Type</key> 
    850                                         <string>NSString</string> 
    851                                 </dict> 
    852                                 <key>target</key> 
    853                                 <dict> 
    854                                         <key>AppleEventCode</key> 
    855                                         <string>usRA</string> 
    856                                         <key>Type</key> 
    857                                         <string>NSString</string> 
    858                                 </dict> 
    859                         </dict> 
    860                         <key>CommandClass</key> 
    861                         <string>MVSendMessageScriptCommand</string> 
    862                         <key>UnnamedArgument</key> 
    863                         <dict> 
    864                                 <key>Type</key> 
    865                                 <string>ChatCore.MVChatConnection</string> 
    866676                        </dict> 
    867677                </dict> 
  • trunk/Resources/Colloquy.r

    r2411 r2543  
    22 
    33resource 'scsz' (0, "Scripting Size", purgeable) { 
    4         dontLaunchToGetTerminology, 
     4        launchToGetTerminology, 
    55        findAppBySignature, 
    66        alwaysSendSubject, 
  • trunk/Resources/Colloquy.scriptSuite

    r2448 r2543  
    405405                                <string>sendMessageScriptCommand:</string> 
    406406                                <key>Colloquy.AddEventMessage</key> 
    407                                 <string> </string> 
    408                                 <key>Colloquy.Send</key> 
    409                                 <string>sendMessageScriptCommand:</string> 
     407                                <string></string> 
    410408                        </dict> 
    411409                </dict> 
     
    10131011                        <string>Colloquy.JVDirectChatPanel</string> 
    10141012                </dict> 
    1015                 <key>Send</key> 
    1016                 <dict> 
    1017                         <key>AppleEventClassCode</key> 
    1018                         <string>coRC</string> 
    1019                         <key>AppleEventCode</key> 
    1020                         <string>sNdX</string> 
    1021                         <key>Arguments</key> 
    1022                         <dict> 
    1023                                 <key>action</key> 
    1024                                 <dict> 
    1025                                         <key>AppleEventCode</key> 
    1026                                         <string>sNd2</string> 
    1027                                         <key>Optional</key> 
    1028                                         <string>YES</string> 
    1029                                         <key>Type</key> 
    1030                                         <string>NSNumber&lt;Bool&gt;</string> 
    1031                                 </dict> 
    1032                                 <key>echo</key> 
    1033                                 <dict> 
    1034                                         <key>AppleEventCode</key> 
    1035                                         <string>sNd3</string> 
    1036                                         <key>Optional</key> 
    1037                                         <string>YES</string> 
    1038                                         <key>Type</key> 
    1039                                         <string>NSNumber&lt;Bool&gt;</string> 
    1040                                 </dict> 
    1041                                 <key>message</key> 
    1042                                 <dict> 
    1043                                         <key>AppleEventCode</key> 
    1044                                         <string>sNd1</string> 
    1045                                         <key>Type</key> 
    1046                                         <string>NSString</string> 
    1047                                 </dict> 
    1048                         </dict> 
    1049                         <key>CommandClass</key> 
    1050                         <string>NSScriptCommand</string> 
    1051                         <key>UnnamedArgument</key> 
    1052                         <dict> 
    1053                                 <key>Type</key> 
    1054                                 <string>NSObject</string> 
    1055                         </dict> 
    1056                 </dict> 
    10571013                <key>newConnection</key> 
    10581014                <dict> 
  • trunk/Resources/Colloquy.sdef

    r2509 r2543  
    408408                                </properties> 
    409409                                <responds-to-commands> 
    410                                         <responds-to name="send" hidden="hidden"> 
    411                                                 <cocoa method="sendMessageScriptCommand:"/> 
    412                                         </responds-to> 
    413410                                        <responds-to name="send message"> 
    414411                                                <cocoa method="sendMessageScriptCommand:"/> 
     
    536533                </classes> 
    537534                <commands> 
    538                         <command name="send" code="coRCsNdX" hidden="hidden" description="Send message to chat room or user that is represented by a panel. This command is deprecated, use send chat message defined in the Chat Core Suite."> 
    539                                 <direct-parameter type="chat room panel | direct chat panel" description="Chat room panel or direct chat panel to send through."/> 
    540                                 <parameter name="message" code="sNd1" description="Message to send. Can include HTML formatting." type="string"> 
    541                                         <cocoa key="message"/> 
    542                                 </parameter> 
    543                                 <parameter name="action tense" code="sNd2" description="Send as an action?" type="boolean" optional="optional"> 
    544                                         <cocoa key="action"/> 
    545                                 </parameter> 
    546                                 <parameter name="local echo" code="sNd3" description="Show message in conversation? (Defaults on.)" type="boolean" optional="optional"> 
    547                                         <cocoa key="echo"/> 
    548                                 </parameter> 
    549                         </command> 
    550535                        <command name="add event message" code="coRCaEvX" description="Add an event message to a chat room panel or direct chat panel. This will add a line to the display that is only visible to the local user. Defaults to the active panel of the front window if no other tell block specifies the target."> 
    551536                                <cocoa class="JVAddEventMessageScriptCommand"/> 
     
    806791                                                <cocoa method="disconnectScriptCommand:"/> 
    807792                                        </responds-to> 
    808                                         <responds-to name="send private" hidden="hidden"> 
    809                                                 <cocoa method=" "/> 
    810                                         </responds-to> 
    811                                         <responds-to name="send public" hidden="hidden"> 
    812                                                 <cocoa method=" "/> 
    813                                         </responds-to> 
    814793                                </responds-to-commands> 
    815794                        </class> 
     
    862841