![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
OS X
文章平均质量分 61
chuanyituoku
这个作者很懒,什么都没留下…
展开
-
Brief Intro to Archives and Serialization of Foundation Framework
Archives and SerializationThe Foundation Framework archives and serialization classes implement mechanisms for converting an object (i.e., an object graph) into an architecture-independent byte bu原创 2013-11-21 12:00:02 · 1451 阅读 · 0 评论 -
Mac OS X进程隐藏后 关机卡住问题
实现进程隐藏后,关机的时候,有一定概率会出现卡住死机,关不了现象原创 2014-06-23 08:45:11 · 1347 阅读 · 0 评论 -
Mac SavePanel 保存文件的GUI代码
Mac OS X Save Panel 使用代码亲测可用原创 2014-08-07 16:30:29 · 1084 阅读 · 0 评论 -
Mac OS X Xcode的Connection没有反应?
在GUI设置事件的时候,Ctrl从FileOwner连到原创 2014-08-08 13:35:16 · 584 阅读 · 0 评论 -
AFNetworking 2.0 编译不过的问题修复
Link: http://blog.csdn.net/zaitianaoxiang/article/details/22597785AFNetworking 2.0 当Deployment Target 低于6.0时,AFURLConnectionOperation.h,AFURLSessionManager.h@property (nonatomic, strong) dispa转载 2014-09-09 10:35:54 · 573 阅读 · 0 评论 -
Manage your team in iOS/OS X enterprise development:
Manage your team in iOS/OS X enterprise development:Link: WWDC2014: 705_hd_distributing_enterprise_apps.movSummary:Enroll in iOS Developer Enterprise Program;Agent and Admins sho原创 2014-08-12 15:23:42 · 492 阅读 · 0 评论 -
Reading the bytes from a text file using a dispatch I/O channel
- (void)readContentsOfFile:(NSURL*)anURL { // Open the channel for reading. NSString* filePath = [anURL path]; self.channel = dispatch_io_create_with_path(DISPATCH_IO_RANDOM,原创 2014-08-28 14:42:43 · 1191 阅读 · 0 评论 -
Looking for files that have been modified recently
NSString *directoryPath = ;NSDirectoryEnumerator *directoryEnumerator = [[NSFileManager defaultManager]enumeratorAtPath:directoryPath];NSDate *yesterday = [NSDate dateWithTimeIntervalSinceNow:(-60*原创 2014-08-28 11:18:03 · 744 阅读 · 0 评论 -
Retrieving the list of items in a directory all at once
NSURL *url = ;NSError *error = nil;NSArray *properties = [NSArray arrayWithObjects: NSURLLocalizedNameKey, NSURLCreationDateKey, NSURLLocalizedTypeDescriptionKey,nil];NSA原创 2014-08-28 11:24:31 · 531 阅读 · 0 评论 -
Presenting the open panel to the user
- (IBAction)openExistingDocument:(id)sender { NSOpenPanel* panel = [NSOpenPanel openPanel]; // This method displays the panel and returns immediately. // The completion handler is called when原创 2014-08-28 13:48:14 · 596 阅读 · 0 评论 -
How to create a custom directory for app files inside the ~/Library/Application Support directory.
- (NSURL*)applicationDirectory { NSString* bundleID = [[NSBundle mainBundle] bundleIdentifier];Managing Files and DirectoriesCreating New Files and Directories Programmatically NSFil原创 2014-08-28 14:03:35 · 961 阅读 · 0 评论 -
Reading the contents of a file using NSFileHandle
- (NSData*)readDataFromFileAtURL:(NSURL*)anURL { NSFileHandle* aHandle = [NSFileHandle fileHandleForReadingFromURL:anURLerror:nil]; NSData* fileContents = nil; if (aHandle) fileCo原创 2014-08-28 14:57:51 · 1025 阅读 · 0 评论 -
Reading the contents of a file using POSIX functions
- (NSData*)readDataFromFileAtURL:(NSURL*)anURL { NSString* filePath = [anURL path]; fd = open([filePath UTF8String], O_RDONLY); if (fd == -1)return nil; NSMutableData* theData = [[[NS原创 2014-08-28 15:12:58 · 673 阅读 · 0 评论 -
Saving a file with a new type
- (void)exportDocument:(NSString*)name toType:(NSString*)typeUTI{ NSWindow* window = [[[self windowControllers] objectAtIndex:0] window]; // Build a new name for the file using the curren原创 2014-08-28 13:54:13 · 755 阅读 · 0 评论 -
Filters Limit the File Types That the User Can Select
- (IBAction)askUserForImage:(id)sender { NSOpenPanel* panel = [NSOpenPanel openPanel]; // Let the user select any images supported by // the NSImage class. NSArray* imageTypes = [NSImag原创 2014-08-28 13:56:05 · 703 阅读 · 0 评论 -
BSD Socket~UDP~Code examples
在Mac机器上 BSD Socket UDP协议实现代码可模拟QQ信息发送原创 2014-07-30 08:38:35 · 1170 阅读 · 0 评论 -
BSD Socket~TCP~Example Code
可运行与Mac上的 TCP协议的 BSD Socket 代码记录下,以便以后用到原创 2014-07-30 08:44:14 · 1282 阅读 · 0 评论 -
Brief Intro to Notifications of Foundation Framework
刚开始看Coalescing部分的时候有点疑惑,下面这个链接可以解惑 ^^`http://stackoverflow.com/questions/4668372/coalescing-while-using-nsnotificationqueueNotificationsThe Foundation Framework includes a collecti原创 2013-11-20 16:34:00 · 921 阅读 · 0 评论 -
Brief Intro to Interprocess Communication of Foundation Framework
Interprocess CommunicationThe Foundation Framework includes a collection of classes that support process-to-process communication. Specifically, they provide facilities for creating and using comm原创 2013-11-20 11:13:41 · 1169 阅读 · 0 评论 -
(OS X) Loading Code at Runtime
To load dynamic libraries at runtime, apps should use a set of efficient and portable functions, calleddynamic loader compatibility functions. Using these functions ensures that dynamic libraries ar原创 2013-12-26 11:38:01 · 828 阅读 · 0 评论 -
Finding OS X Version and Darwin Kernel Version
Terminal: uname -a参考链接:http://thenubbyadmin.com/2012/05/02/finding-os-x-version-and-build-information-from-the-command-line/转载 2014-04-30 09:07:00 · 1511 阅读 · 0 评论 -
加载和卸载内核扩展 Mac
ddXcode在编写和构建内核扩展方面非常强大,但她却无法测试和调试内核扩展;Mac OS X上的内核扩展程序可以通过下列两种方式中的任意一种进行加载:A:将内核扩展程序包(如HwlloWorld.kext)复制到 /System/Library/Extensions 目录下自动加载(重启?或者硬件插入电脑时候)原创 2014-04-13 18:19:38 · 6689 阅读 · 1 评论 -
Understanding and Debugging Kernel Panics
https://developer.apple.com/library/mac/technotes/tn2063/_index.html转载 2014-04-24 09:07:40 · 991 阅读 · 0 评论 -
Run kextlibs on the Kernel Extension
NextPreviousCreating a Generic Kernel Extension with XcodeIn this tutorial, you learn how to create a generic kernel extension (kext) for OS X. You create a simple kext that prints messages原创 2014-04-24 11:07:23 · 564 阅读 · 0 评论 -
Set the Kernel Extension’s Permissions
An Easy Way:$ sudo cp -R MyKext.kext /tmpNow that the permissions of the kext’s temporary copy are correct, you are ready to runkextutil.原创 2014-04-24 11:14:34 · 459 阅读 · 0 评论 -
Mac OS X 隐藏进程相关资料
http://forensic.n0fate.com/wp-content/uploads/2012/12/Hunting-Mac-OS-X-rootkit-with-Memory-Forensics.pdf原创 2014-05-13 14:04:04 · 1602 阅读 · 0 评论 -
Code Sign outside Xcode
Pre requisition:原创 2014-07-17 14:20:18 · 436 阅读 · 0 评论 -
Logout Responsibilities (OS X)
Logout ResponsibilitiesThe procedures for logging out, restarting the system, or shutting down the system are similar. A typicallogout/restart/shutdown takes place as follows:The user selects转载 2014-06-13 08:55:49 · 567 阅读 · 0 评论 -
Adding Login Items (OS X)
Adding Login Items There are two ways to add a login item: using the Service Management framework, and using a shared file listLogin items installed using the Service Management framew转载 2014-06-13 09:21:09 · 1102 阅读 · 0 评论 -
Protocols for Communicating with Daemons (OS X)
Protocols for Communicating with DaemonsThere are four major communication mechanisms commonly used between daemons and their clients: XPC,traditional client-server communications (including Apple e转载 2014-06-13 08:40:42 · 629 阅读 · 0 评论 -
Types of Background Processes (OS X)
There are four types of background processes in OS X. The differences are summarized inTable 1-1(page 9)and described in detail in the following subsections. To select the appropriate type of back转载 2014-06-12 17:28:00 · 467 阅读 · 0 评论 -
Colorize Git Terminal Commands
Add the following to your ~/.gitconfig file to show the git command output in color when working in a terminal. This is really handy, give it a go.[color]ui = auto[color "branch"]current =转载 2014-09-03 10:03:41 · 584 阅读 · 0 评论