Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jun 17, 2009, 03:21 AM   #1
xiaohuli170
macrumors newbie
 
Join Date: Jan 2009
Why I canít get the message after showing a swf file in a html?

Using

* (NSString *)webScriptNameForSelectorSEL)sel

{

if (sel == @selector(JSWriteCocoaAppLog)
return @"WriteCocoaAppLog";
return nil;

}

* (BOOL)isSelectorExcludedFromWebScriptSEL)selector

{

if (selector == @selector(JSWriteCocoaAppLog)
return NO;

return YES;

}

*

(void)awakeFromNib { WebScriptObject* m_winScriptObject = [self windowScriptObject];

if (m_winScriptObject != nil) [m_winScriptObject setValue:self forKey:@"cocoaApp"];

}

methods I can received message from the javascript. just like cocoaApp.WriteCocoaAppLog("JSCommand"); in console can write the JSCommand. but after showing a swf file , I didn't receive the message from the javascript , I didn't know the reason.
xiaohuli170 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
how to view html file from the terminal hajime Mac Basics and Help 1 Nov 4, 2013 10:57 AM
Mail Showing 1 Unread Message, but Nothing is there aheying7 iOS 7 23 Oct 30, 2013 04:43 PM
iPhone Message Preview Not Showing Cyb3r iPhone Tips, Help and Troubleshooting 0 Feb 24, 2013 06:45 PM
Text showing message... cherokeexj iPhone Tips, Help and Troubleshooting 1 Nov 26, 2012 07:18 PM
Message banner showing while in messages jerrylmansfield iOS 6 0 Sep 19, 2012 04:46 PM

Forum Jump

All times are GMT -5. The time now is 03:01 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC