Re: About NSAppleScriptErrorNumber = -2709

2008-12-09 Thread xiaobin
urity Framework refuse to run an AppleScript or not. I don't know. 2008/12/9 Rob Keniger <[EMAIL PROTECTED]>: > > On 09/12/2008, at 4:55 PM, xiaobin wrote: > >> But I only want to know why it doesn't work by using the apple script. >> My old applications writin

Re: About NSAppleScriptErrorNumber = -2709

2008-12-08 Thread xiaobin
or may be have influence on my other Apps. So anyone can give me a hit about the error. Thanks 2008/12/9 Rob Keniger <[EMAIL PROTECTED]>: > > On 09/12/2008, at 11:54 AM, xiaobin wrote: > >> I am writing application A and application B using Object-C++ and >> Object-C. &g

About NSAppleScriptErrorNumber = -2709

2008-12-08 Thread xiaobin
hi, I am writing application A and application B using Object-C++ and Object-C. A include restart OS code by using apple script to tell finder to restart os. the code is following : NSDictionary *error = nil; NSAppleScript *script = [[[NSAppleScript alloc] initWithSource:@"tell application \"Fin

Re: how to get the status of network when the network is set disable.

2008-07-12 Thread xiaobin
lityGetFlags(reachability, &flags); >>_isDataSourceAvailable = success && (flags & >> kSCNetworkFlagsReachable) && !(flags & kSCNetworkFlagsConnectionRequired); >>} >>return _isDataSourceAvailable; >> } >> >> HTHs. Michael. &g

top most window question when it is launched by another app

2008-07-09 Thread xiaobin
n. (And I also found if I use [[NSWorkspace sharedApplication] launchApplication:@"TextEdit.app"]; to launch TextEdit application, the TextEdit winodw become the top most.) Would anyone can help me? Thank you for any help. -- xiaobin ___ Co

how to get the status of network when the network is set disable.

2008-07-09 Thread xiaobin
Hello, I am writing a program to detect the status of network. In my program, I need get the status of network when the connection is set disable. here it is not by connecting the network to get the status. which API or method can work for it? for example, if my lan cable is unpluged or the net

how to wait the finish of NSURLDownload

2008-04-16 Thread xiaobin
want to finish the download automatically when the download finished. anyone can help me? thank you -- xiaobin ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the