![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mac os
文章平均质量分 88
helmsgao
这个作者很懒,什么都没留下…
展开
-
Examining Driver Personality Information
Examining Driver Personality Information Another way to get the keys and values you need to describe a device is to examine the driver personality information in a device’s on-disk driver. B原创 2012-11-02 13:49:54 · 769 阅读 · 0 评论 -
SCNetworkInterface.c
SCNetworkInterface.c [plain text] /* * Copyright (c) 2004-2009 Apple Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * * This file contains Original Code and/or Modifications o原创 2012-11-04 21:29:30 · 2195 阅读 · 0 评论 -
24种语言执行外部命令的方法
在这个例子中展示用不同语言调用外部命令的方法。觉得这个挺有意思,转来给大家看看,也许某一天你会觉得有用。 这些语言包括 Ada AppleScript C C++ C# E Forth Haskell IDL J Java Logo MAXScript Objective-C OCaml Perl PHP Pop11 Python Raven Ruby原创 2012-11-06 17:38:26 · 1234 阅读 · 0 评论 -
通过NSTask用Cocoa执行perl脚本
本文将用一个例子帮助你理解如何使用NSTask,例子通过在Cocoa中执行一个perl脚本,实现去掉给定NSString中的所有HTML标签。 这里是一个简单的perl脚本,文件名是stripper.pl,功能是去掉所有HTML标签。 #!/usr/bin/perl while ( $_ =~ s/[^>]*>//gs; print $_; }转载 2012-11-06 17:40:43 · 1541 阅读 · 0 评论