Changeset 3784
- Timestamp:
- 06/01/08 00:56:44 (3 months ago)
- Files:
-
- trunk/Panels/JVDirectChatPanel.m (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Panels/JVDirectChatPanel.m
r3758 r3784 1816 1816 1817 1817 @implementation NSApplication (NSApplicationActivePanelScripting) 1818 - ( id) sendMessageScriptCommand:(NSScriptCommand *) command {1818 - (void) sendMessageScriptCommand:(NSScriptCommand *) command { 1819 1819 // if there is a subject or target parameter, perform the default implementation 1820 1820 if( [command subjectSpecifier] || [[command evaluatedArguments] objectForKey:@"target"] ) { 1821 1821 [command performDefaultImplementation]; 1822 return nil;1822 return; 1823 1823 } 1824 1824 … … 1826 1826 id classDescription = [NSClassDescription classDescriptionForClass:[NSApplication class]]; 1827 1827 id container = [[[NSIndexSpecifier alloc] initWithContainerClassDescription:classDescription containerSpecifier:nil key:@"orderedWindows" index:0] autorelease]; 1828 if( ! container ) return nil;1828 if( ! container ) return; 1829 1829 1830 1830 classDescription = [NSClassDescription classDescriptionForClass:[NSWindow class]]; 1831 1831 id specifier = [[[NSPropertySpecifier alloc] initWithContainerClassDescription:classDescription containerSpecifier:container key:@"activeChatViewController"] autorelease]; 1832 if( ! specifier ) return nil;1832 if( ! specifier ) return; 1833 1833 1834 1834 [command setSubjectSpecifier:specifier]; 1835 1835 [command performDefaultImplementation]; 1836 return nil;1837 1836 } 1838 1837 … … 1862 1861 1863 1862 @implementation JVDirectChatPanel (JVDirectChatScripting) 1864 - ( id) sendMessageScriptCommand:(NSScriptCommand *) command {1863 - (void) sendMessageScriptCommand:(NSScriptCommand *) command { 1865 1864 NSDictionary *args = [command evaluatedArguments]; 1866 1865 id message = [command evaluatedDirectParameter]; … … 1874 1873 [command setScriptErrorNumber:-1715]; // errAEParamMissed 1875 1874 [command setScriptErrorString:@"The message was missing."]; 1876 return nil;1875 return; 1877 1876 } 1878 1877 … … 1882 1881 [command setScriptErrorNumber:-1700]; // errAECoercionFail 1883 1882 [command setScriptErrorString:@"The message was not a string value and coercion failed."]; 1884 return nil;1883 return; 1885 1884 } 1886 1885 } … … 1889 1888 [command setScriptErrorNumber:-1715]; // errAEParamMissed 1890 1889 [command setScriptErrorString:@"The message can't be blank."]; 1891 return nil;1890 return; 1892 1891 } 1893 1892 … … 1897 1896 [command setScriptErrorNumber:-1700]; // errAECoercionFail 1898 1897 [command setScriptErrorString:@"The action tense parameter was not a boolean value and coercion failed."]; 1899 return nil;1898 return; 1900 1899 } 1901 1900 } … … 1906 1905 [command setScriptErrorNumber:-1700]; // errAECoercionFail 1907 1906 [command setScriptErrorString:@"The local echo parameter was not a boolean value and coercion failed."]; 1908 return nil;1907 return; 1909 1908 } 1910 1909 } … … 1921 1920 1922 1921 [cmessage release]; 1923 return nil;1922 return; 1924 1923 } 1925 1924
