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
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
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
lityGetFlags(reachability, &flags);
>>_isDataSourceAvailable = success && (flags &
>> kSCNetworkFlagsReachable) && !(flags & kSCNetworkFlagsConnectionRequired);
>>}
>>return _isDataSourceAvailable;
>> }
>>
>> HTHs. Michael.
&g
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
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
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