自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(367)
  • 收藏
  • 关注

原创 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 503

原创 Mac OS X Xcode的Connection没有反应?

在GUI设置事件的时候,Ctrl从FileOwner连到

2014-08-08 13:35:16 597

原创 Mac SavePanel 保存文件的GUI代码

Mac OS X Save Panel 使用代码亲测可用

2014-08-07 16:30:29 1095

原创 LLDB~expr

expr (表达式)就会输出结果

2014-07-30 11:07:15 586

原创 BSD Socket~TCP~Example Code

可运行与Mac上的 TCP协议的 BSD Socket 代码记录下,以便以后用到

2014-07-30 08:44:14 1295

原创 BSD Socket~UDP~Code examples

在Mac机器上 BSD Socket UDP协议实现代码可模拟QQ信息发送

2014-07-30 08:38:35 1182

转载 Socket编程 链接

http://goodcandle.cnblogs.com/archive/2005/12/10/294652.aspx

2014-07-28 19:17:30 609

原创 Passing address of non-local object to __autoreleasing parameter for write-back

Returning a Result as the Argument在希望通过函数的参数返回Objective-C 对象

2014-07-28 11:46:11 2742

原创 ARC between Foundation and Core Foundation

A bridged cast is a C-style cast annotated with one of three keywords:(__bridge T) op casts the operand to the destination type T. If T is a retainable object pointer type, then op must have a n

2014-07-25 10:53:52 521

原创 Domain Name System (DNS)

IPv4 addresses are hard to remember, and IPv6 addresses are quadruply hard (because they are four times as long). To make it easier to describe a particular host, the domain name system (DNS) was inve

2014-07-22 11:57:12 608

原创 Networking Layers

The TCP/IP networking model consists of four basic layers: the link layer, theIP layer (short for Internet protocol), the transport layer, and the application layer.

2014-07-22 09:36:59 537

原创 Networking Terminology

In networking terminology, a host is any device that is connected to a network and provides an endpoint for networked communication. A host might be a desktop computer, a server, an iOS device, a vi

2014-07-22 08:59:29 510

原创 Code Sign outside Xcode

Pre requisition:

2014-07-17 14:20:18 443

原创 运行(Command Line Tool)Terminal App,并且返回输出结果

- (NSString *)runCommand:(NSString *)commandToRun{ NSTask *task; task = [[NSTask alloc] init]; [task setLaunchPath: @"/bin/sh"]; NSArray *arguments = [NSArray arrayWithObjects:

2014-07-16 13:13:14 1855

转载 iOS的 static library (.a)/ Framework Tutorial

http://www.raywenderlich.com/65964/create-a-framework-for-ios

2014-07-14 16:18:25 511

原创 编码规范Link

https://github.com/macmade/XS-Labs-Style-Guide

2014-07-08 14:17:47 445

转载 dynamic-table-view-cell-height-auto-layout

http://www.raywenderlich.com/73602/dynamic-table-view-cell-height-auto-layout

2014-07-03 22:30:48 611

原创 Mac OS X 获取Root权限代码

OSStatus myStatus; AuthorizationFlags myFlags = kAuthorizationFlagDefaults; AuthorizationRef myAuthorizationRef; myStatus = AuthorizationCreate(NULL, kAuthorizationEmptyEnvironment, myFlags, &myAut

2014-07-01 13:27:57 2067

原创 Swift: Memory Management -> Weak, Unowned, Strong

Weak 和Objective-C的很像 (auto niled)Weak

2014-06-29 23:22:25 1136

原创 Swift:Optional KeyNote

OptionalsUse optionals to safely working with possibly missing values

2014-06-29 20:46:51 463

原创 Swift 调用 Objective-C代码 1)

1. InitializationFor example, where in Objective-C you would do this:SWIFTlet myTableView: UITableView = UITableView(frame: CGRectZero, style: .Grouped)”

2014-06-25 11:04:55 1097

原创 swift 易忽略的笔记 12): Miscellaneous

1. Curried Functions and MethodsCurried functions and methods have the following form: func function name(parameters)(parameters) -> return type { statements}A function declared this

2014-06-24 20:35:10 524

原创 swift 易忽略的笔记 11):Operator Functions

1.  @infixstruct Vector2D { var x = 0.0, y = 0.0}@infix func + (left: Vector2D, right: Vector2D) -> Vector2D { return Vector2D(x: left.x + right.x, y: left.y + right.y)}let vector = Vec

2014-06-24 15:38:30 595

原创 swift 易忽略的笔记 10):Generic

1. Generic Functionsfunc swapTwoValues(inout a: T, inout b: T) { let temporaryA = a a = b b = temporaryA}

2014-06-24 14:27:47 618

原创 Swift 易忽略的笔记 9):Protocol

Protocols“A protocol defines a blueprint of methods, properties, and other requirements that suit a particular task or piece of functionality.”1. Property Requirements

2014-06-24 11:35:32 975

原创 Swift 易忽略的笔记 8):Extensions

1. ExtensionsExtensions add new functionality to an existing class, structure, or enumeration type. This includes the ability to extend types for which you do not have access to the original sou

2014-06-24 10:31:54 625

原创 Swift 易忽略的笔记 7):Type Casting & Nested Type

1. Type CastingChecking Type

2014-06-24 09:57:36 646

原创 Swift 易忽略的笔记 6):Methods & Subscripts

1。 Methods分为instance method 和 type methods

2014-06-23 18:34:45 595

原创 Swift 易忽略的笔记 5):Enumeration & Classes and Structs & Properties总结

1. Enumerationlet somePlanet = Planet.Earthswitch somePlanet {case .Earth: println("Mostly harmless")default: println("Not a safe place for humans")}// prints "Mostly harmless”

2014-06-23 13:20:01 1004

原创 Mac OS X进程隐藏后 关机卡住问题

实现进程隐藏后,关机的时候,有一定概率会出现卡住死机,关不了现象

2014-06-23 08:45:11 1360

原创 Swift 易忽略的笔记 4):Function & Closure

1. funcfunc join(string s1: String, toString s2: String, withJoiner joiner: String) -> String { return s1 + joiner + s2}

2014-06-23 07:50:47 645

原创 Swift 易忽略的笔记 3): Array & Dictionary

1. Arrayfor item in shoppingList { println(item)}// Six eggsfor (index, value) in enumerate(shoppingList) { println("Item \(index + 1): \(value)")}// Item 1: Six eggs// Item 2: Milk/

2014-06-22 11:29:26 474

原创 Swift 易忽略的笔记 2):String

1. String“Swift’s String type is a value type. If you create a new String value, that String value is copied when it is passed to a function or method, or when it is assigned to a constant or variab

2014-06-22 10:57:05 567

原创 Swift 易忽略的笔记 1)

1. 一条语句结尾没有分号;

2014-06-21 10:44:37 545

转载 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 1115

转载 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 577

转载 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 641

转载 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 477

转载 Xcode 看变量2进制内存值

在  debug 模式下如何在断点处,查看字符指针变量内存中的值,像vs2008的调试工具一样的内存查看器,现在只能查看第一个内存中的值可以在输出窗口采用gdb命令:x /nfu n表示要显示的内存单元的个数-----------------------------------------f表示显示方式, 可取如下值:x 按十六进制格式显示变量d 按十进制格式显示变量

2014-06-12 14:07:32 729

转载 Cocoa2d-x 3.0 Release 版本 配置Mac

http://www.cocoachina.com/bbs/read.php?tid=199238

2014-05-20 18:23:28 485

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除