• 移动QQ产品发展历程

    腾讯大讲堂之 移动QQ产品发展历程

    0
    72
    2.65MB
    2014-06-24
    1
  • PowerPoint97-2007BinaryFileFormat(ppt)Specification

    PowerPoint 97-2007 Binary File Format Specification

    0
    96
    1.04MB
    2014-06-24
    0
  • Cocoa Fundamentals Guide

    Introduction Introduction 11 Organization of This Document 11 See Also 12 Chapter 1 What Is Cocoa? 13 The Cocoa Environment 13 Introducing Cocoa 13 How Cocoa Fits into Mac OS X 14 How Cocoa Fits into iOS 16 Features of a Cocoa Application 18 The Development Environment 21 Platform SDKs 21 Overview of Development Workflows 21 Xcode 22 Interface Builder 24 The iOS Simulator Application 26 Performance Applications and Tools 27 The Cocoa Frameworks 29 Foundation 30 AppKit (Mac OS X) 38 UIKit (iOS) 44 Comparing AppKit and UIKit Classes 49 Core Data 50 Other Frameworks with a Cocoa API 52 A Bit of History 53 Chapter 2 Cocoa Objects 55 A Simple Cocoa Command-Line Tool 55 Object-Oriented Programming with Objective-C 56 The Objective-C Advantage 56 The Dynamism of Objective-C 57 Extensions to the Objective-C Language 58 Using Objective-C 64 The Root Class 66 NSObject 67 Root Class—and Protocol 67 Overview of Root-Class Methods 68 Interface Conventions 69 Instance and Class Methods 70 2010-12-13 | © 2010 Apple Inc. All Rights Reserved. 3 CONTENTS Object Retention and Disposal 70 How the Garbage Collector Works 71 How Memory Management Works 73 Object Creation 77 Allocating an Object 77 Initializing an Object 78 The dealloc and finalize Methods 85 Class Factory Methods 86 Introspection 87 Evaluating Inheritance Relationships 87 Method Implementation and Protocol Conformance 88 Object Comparison 89 Object Mutability 90 Why Mutable and Immutable Object Variants? 90 Programming with Mutable Objects 91 Class Clusters 95 Without Class Clusters: Simple Concept but Complex Interface 95 With Class Clusters: Simple Concept and Simple Interface 96 Creating Instances 96 Class Clusters with Multiple Public Superclasses 96 Creating Subclasses Within a Class Cluster 97 Toll-Free Bridging 102 Creating a Singleton Instance 104 Chapter 3 Adding Behavior to a Cocoa Program Starting Up 107 What Happens in the main Function 107 Using a Cocoa Framework 109 Kinds of Framework Classes 109 Cocoa API Conventions 110 Inheriting from a Cocoa Class 112 When to Override a Method 113 When to Make a Subclass 115 Basic Subclass Design 117 The Form of a Subclass Definition 117 Overriding Superclass Methods 119 Instance Variables 119 Entry and Exit Points 121 Initialize or Decode? 122 Storing and Accessing Properties 123 Key-Value Mechanisms 128 Object Infrastructure 129 Error Handling 130 Resource Management and Other Efficiencies Functions, Constants, and Other C Types 132 107 4 2010-12-13 | © 2010 Apple Inc. All Rights Reserved. 131 CONTENTS When the Class Is Public (Mac OS X) 132 Multithreaded Cocoa Programs 133 Multithreading and Multiprocessing Resources 133 Multithreading Guidelines for Cocoa Programs 135 Are the Cocoa Frameworks Thread Safe? 136 Chapter 4 Cocoa Design Patterns 137 What Is a Design Pattern? 137 A Solution to a Problem in a Context 137 An Example: The Command Pattern 138 How Cocoa Adapts Design Patterns 139 Abstract Factory 139 Adapter 140 Chain of Responsibility 141 Command 142 Composite 143 Decorator 145 Facade 147 Iterator 148 Mediator 148 Memento 151 Observer 153 Proxy 154 Receptionist 155 Singleton 158 Template Method 158 The Model-View-Controller Design Pattern 160 Roles and Relationships of MVC Objects 160 Types of Cocoa Controller Objects 162 MVC as a Compound Design Pattern 163 Design Guidelines for MVC Applications 165 Model-View-Controller in Cocoa (Mac OS X) 167 Object Modeling 167 Entities 168 Attributes 168 Relationships 169 Accessing Properties 170 Chapter 5 Communicating with Objects 175 Communication in Object-Oriented Programs 175 Outlets 175 Delegates and Data Sources 176 How Delegation Works 177 The Form of Delegation Messages 178 2010-12-13 | © 2010 Apple Inc. All Rights Reserved. 5 CONTENTS Delegation and the Cocoa Application Frameworks 179 Data Sources 180 Implementing a Delegate for a Custom Class 181 The Target-Action Mechanism 182 The Target 182 The Action 183 Target-Action in the AppKit Framework 183 Target-Action in UIKit 186 Bindings (Mac OS X) 187 How Bindings Work 187 How You Establish Bindings 188 Notifications 190 When and How to Use Notifications 191 The Notification Object 193 Notification Centers 193 Notification Queues 194 Ownership of Delegates, Observers, and Targets 196 Document Revision History 199 

    0
    118
    4.39MB
    2013-04-19
    0
  • Cocoa Programming for Mac OS X 3rd

    第一章:什么是 Cocoa....................................................................................................................6 第二章:起步.................................................................................................................................13 XCode ......................................................................................................................................13 Interface Builder......................................................................................................................18 回到 XCode..............................................................................................................................26 文档.........................................................................................................................................33 你做了什么? ........................................................................................................................... 33 第三章: Objective-C 语言...........................................................................................................36 创建,使用对象....................................................................................................................... 37 使用已有的类......................................................................................................................... 39 创建自己的类......................................................................................................................... 49 调试器.....................................................................................................................................60 你做了什么? ........................................................................................................................... 63 思考: 消息机制工作原理是什么?........................................................................................64 挑战.........................................................................................................................................65 第四章: 内存管理.........................................................................................................................66 开关 garbage collector......................................................................................................67 使用 Garbage Collection....................................................................................................68 使用 Retain 计数..................................................................................................................69 第五章: Target/Action...............................................................................................................78 一些常用的 NSControl 子类.................................................................................................80 开始 SpeakLine 例子.............................................................................................................83 布局界面 (nib file)...........................................................................................................84 挑战.........................................................................................................................................88 调试建议.................................................................................................................................89 第六章: 辅助(helper)对象..........................................................................................................91 代理 - Delegates.................................................................................................................91 NSTableView 和它的 dataSource.......................................................................................95 布局用户界面......................................................................................................................... 97 连接.........................................................................................................................................98 编辑 AppController.m........................................................................................................100 思考:代理是怎么工作的?...................................................................................................103 挑战: 生成一个 Delegate..................................................................................................104 挑战: 生成一个 Data Source............................................................................................105 第七章: Key-Value Coding. Key-Vaule Observing .................................................................106 Key-Value Coding...............................................................................................................106 绑定 (Binding)...................................................................................................................108 Key-Value Observing.........................................................................................................109 观察 key................................................................................................................................110 Properties 和它们的属性.................................................................................................111 Property 的属性..................................................................................................................112 思考: Key Path...................................................................................................................113 思考: Key-Value Observing.............................................................................................114 第八章:NSArrayController.......................................................................................................116 开始 RaiseMan 程序.............................................................................................................117 Key-Vaule Coding 和 nil.................................................................................................124 增加排序............................................................................................................................... 125 思考: 不使用 NSArrayController 来进行排序...............................................................126 挑战 1....................................................................................................................................126 挑战 2....................................................................................................................................127 第九章:NSUndoManager...............................................................................................................129 NSInvocation....................................................................................................................... 129 NSUndoManager 是怎样工作的............................................................................................129 为 RaiseMan 添加 Undo 功能...............................................................................................132 Key-Vaule Observing.........................................................................................................135 Undo 编辑..............................................................................................................................136 插入后开始编辑................................................................................................................... 138 思考: Windows 和 Undo Manager.......................................................................................140 第十章:Archiving....................................................................................................................... 142 NSCoder 和 NSCoding..........................................................................................................143 Document Architecture.....................................................................................................145 Saving 和 NSKeyedArchiver.............................................................................................149 Loading 和 NSKeyedUnarchiver.........................................................................................150 设置后缀名和图标...............................................................................................................151 思考:避免死循环.................................................................................................................153 思考: 创建 Protocol..........................................................................................................154 通用类型描述[UTI].............................................................................................................155 第十一章: Core Data 基本原理..................................................................................................157 NSManagedObjectModel.......................................................................................................157 Interface............................................................................................................................. 159 Core Data 是怎么工作的...................................................................................................165 第十二章: Nib 文件和 NSWindowController ............................................................................167 NSPanel.................................................................................................................................167 给程序添加一个 Panel........................................................................................................168 思考: NSBundle...................................................................................................................177 挑战.......................................................................................................................................177 第十三章: User Defaut...............................................................................................................178 NSDictionary 和 NSMutableDictionary.........................................................................178 NSUserDefaults................................................................................................................... 180 设置程序的 Identifier......................................................................................................182 给 Defaults Key 命名.........................................................................................................182 Registering Defaults.......................................................................................................183 让用户编辑 defaults..........................................................................................................184 使用 Defaults......................................................................................................................185 思考: NSUserDefaultsController...................................................................................187 思考:使用 Command line 来读写 Defaults......................................................................187 挑战.......................................................................................................................................188 第十四章: 使用 Notifications.................................................................................................189 什么是 Notification?........................................................................................................189 Notifications 不是什么...................................................................................................189 NSNotification 和 NSNotificationCenter...................................................................190 发送一个 Notification......................................................................................................192 注册成为 Observer..............................................................................................................192 处理 Notification..............................................................................................................193 userInfo Dictionary.........................................................................................................193 思考.......................................................................................................................................194 挑战.......................................................................................................................................195 第十五章: 使用 Alert Panels ....................................................................................................196 让用户确认删除................................................................................................................... 197 挑战.......................................................................................................................................199 第十六章: 本地化........................................................................................................................200 本地化 nib 文件...................................................................................................................201 String Tables.....................................................................................................................202 思考:ibtool....................................................................................................................... 205 思考:用格式化串标明 Token 的顺序...............................................................................206 第十七章: 自定义 View...............................................................................................................207 View 的层次..........................................................................................................................207 让一个 View 画自己.............................................................................................................209 使用 NSBezierPath 绘制.....................................................................................................213 NSScrollView....................................................................................................................... 215 通过程序创建 View..............................................................................................................217 思考:cells........................................................................................................................... 218 思考: isFlipped.................................................................................................................219 挑战.......................................................................................................................................220

    0
    80
    9.93MB
    2013-04-19
    0
  • 高质量 C++/C 编程指南

    高质量 C++/C 编程指南 林锐 第 1 章 文件结构............................................................................................................. 11 1.1 版权和版本的声明.................................................................................................. 11 1.2 头文件的结构......................................................................................................... 12 1.3 定义文件的结构 ..................................................................................................... 13 1.4 头文件的作用......................................................................................................... 13 1.5 目录结构 ................................................................................................................ 14 第 2 章 程序的版式 ......................................................................................................... 15 2.1 空行........................................................................................................................ 15 2.2 代码行 .................................................................................................................... 16 2.3 代码行内的空格 ..................................................................................................... 17 2.4 对齐........................................................................................................................ 18 2.5 长行拆分 ................................................................................................................ 19 2.6 修饰符的位置......................................................................................................... 19 2.7 注释........................................................................................................................ 20 2.8 类的版式 ................................................................................................................ 21 第 3 章 命名规则............................................................................................................. 22 3.1 共性规则 ................................................................................................................ 22 3.2 简单的 WINDOWS 应用程序命名规则..................................................................... 23 3.3 简单的 UN I X 应用程序命名规则 ............................................................................ 25 第 4 章 表达式和基本语句.............................................................................................. 26 4.1 运算符的优先级 ..................................................................................................... 26 4.2 复合表达式............................................................................................................. 27 4.3IF 语句....................................................................................................................27 4.4 循环语句的效率 ..................................................................................................... 29 4.5 FOR 语句的循环控制变量....................................................................................... 30 4.6 S W I T C H 语句............................................................................................................ 30 4.7 GOTO 语句............................................................................................................... 31 第 5 章 常量..................................................................................................................... 33 5.1 为什么需要常量 ..................................................................................................... 33 5.2CONST 与 #DEFINE的比较...................................................................................... 33 5.3 常量定义规则......................................................................................................... 33 5.4 类中的常量............................................................................................................. 34 第 6 章 函数设计............................................................................................................. 36 6.1 参数的规则............................................................................................................. 36 6.2 返回值的规则......................................................................................................... 37 6.3 函数内部实现的规则.............................................................................................. 39 6.4 其它建议 ................................................................................................................ 40 6.5 使用断言 ................................................................................................................ 41 6.6 引用与指针的比较.................................................................................................. 42 第 7 章 内存管理............................................................................................................. 44 7.1 内存分配方式.......................................................................................................... 44 7.2 常见的内存错误及其对策....................................................................................... 44 7.3 指针与数组的对比 .................................................................................................. 45 7.4 指针参数是如何传递内存的? ............................................................................... 47 7.5 FREE 和 DELETE 把指针怎么啦?............................................................................ 50 7.6 动态内存会被自动释放吗?................................................................................... 50 7.7 杜绝“野指针” ..................................................................................................... 51 7.8 有了MALLOC/FREE为什么还要NEW/DELETE ?..................................................52 7.9 内存耗尽怎么办?.................................................................................................. 53 7.10 MALLOC/FREE 的使用要点 ................................................................................... 54 7.11 NEW /DELETE 的使用要点...................................................................................... 55 7.12 一些心得体会 ....................................................................................................... 56 第8章 C++函数的高级特性...........................................................................................57 8.1 函数重载的概念 ..................................................................................................... 57 8.2 成员函数的重载、覆盖与隐藏............................................................................... 60 8.3 参数的缺省值......................................................................................................... 63 8.4 运算符重载............................................................................................................. 64 8.5 函数内联 ................................................................................................................ 65 8.6 一些心得体会......................................................................................................... 68 第 9 章 类的构造函数、析构函数与赋值函数................................................................ 69 9.1 构造函数与析构函数的起源................................................................................... 69 9.2 构造函数的初始化表.............................................................................................. 70 9.3 构造和析构的次序.................................................................................................. 72 9.4 示例:类 S TRING 的构造函数与析构函数 ............................................................. 72 9.5 不要轻视拷贝构造函数与赋值函数 ....................................................................... 73 9.6 示例:类 S TRING 的拷贝构造函数与赋值函数 ...................................................... 73 9.7 偷懒的办法处理拷贝构造函数与赋值函数 ............................................................ 75 9.8 如何在派生类中实现类的基本函数 ....................................................................... 75 9.9 一些心得体会......................................................................................................... 77 第 10 章 类的继承与组合................................................................................................ 78 10.1 继承 ...................................................................................................................... 78 10.2 组合 ...................................................................................................................... 80 第 11 章 其它编程经验.................................................................................................... 82 11.1 使用 C O N S T 提高函数的健壮性 ............................................................................ 82 11.2 提高程序的效率.................................................................................................... 84 11.3 一些有益的建议.................................................................................................... 85 参考文献 .......................................................................................................................... 87 附录 A :C++/C 代码审查表 .......................................................................................... 88 附录 B :C++/C 试题...................................................................................................... 93 附录 C :C++/C 试题的答案与评分标准 ....................................................................... 97

    0
    48
    259KB
    2013-04-19
    0
  • Objective-C 学习之路 使用 Xcode

    Objective-C 学习之路 使用 Xcode 介绍Xcode基本使用的文档

    5
    66
    2.42MB
    2013-04-19
    0
  • Cocoa--NSTableView中使用CheckBox,Popup,Image

    Mac开发之Cocoa NSTableView中使用CheckBox,Popup,Image

    5
    127
    49KB
    2013-02-06
    31
  • 百度移动互联网发展趋势报告_2011年Q2

    本季度《百度移动互联网发展趋势报告》以百度移动搜索数据为基础,易观智库作为应 用数据补充,围绕 “用户分布及网络接入”、“移动互联网终端”、“移动互联网终端平台”、 “手机浏览器”、“应用商店”五个主题展开分析,要点如下

    0
    22
    1.83MB
    2012-08-15
    0
  • 中国移动互联网盈利模式分析

    本文从中国移动互联网市场各参与方参与方式的视角进行研究,认为现存的移 动互联网盈利模式主要有四种:移动运营商门户网站模式;运营商自推“IM”业务模式; 终端手机厂商开发软件进军移动互联网模式和搜索引擎服务商开发手机终端模式。本文对以 上四种盈利模式的内容,应用情况,特点等,进行逐一分析。

    0
    26
    1.03MB
    2012-08-15
    10
  • 中文版Android程序员指南

    目 录 目 录 I 第一章 什么是Android 1 什么是Android - 嵌入式设备编程的历史-第一章(1) 1 开放手机联盟和Android-(2) 2 介绍Android 第一章(3) 3 Android示例 - 第四章(4) 4 Android的几个示例 - 第四章(5) 5 第二章 下载和安装Eclipse总则 6 下载和安装Eclipse总则 - 第二章(1) 6 下载和安装JRE - 第二章(2) 7 下载和安装Eclipse - 第二章(3) 8 第三章 下载和安装Android SDK 10 下载和安装Android SDK - 第三章(1) 10 下载Android SDK - 第三章(2) 10 为Eclipse配置Android Plugin - 第三章(3) 12 第四章 浏览Android SDK 14 浏览Android SDK - 第四章(1) 14 Android SDK是什么 - 第四章(2) 14 Android 文档 - 第四章(3) 15 Android示例 - 第四章(4) 15 Android的几个示例 - 第四章(5) 16 Android工具 - 第四章(6) 17 Android APIs - 第四章(7) 18 应用程序生命周期 - 第四章(8) 19 第五章Android程序:Hello World! 21 Android程序:Hello World! -第五章(1) 21 仔细查看Android创建的文件 - 第五章(2) 23 引用库和目录 - 第五章(3) 24 Hello World!自动产生文件的详解 - 第五章(4) 25 Hellow World! 再来一次 - 第五章(5) 28 Hello World! 使用一个图形 - 第五章(6) 30 Hello World!代码为基的UI-第五章(7) 31 Hello World! XML为基的UI - 第五章(8) 33 第六章 使用命令行工具和Android模拟器 35 使用命令行工具和Android模拟器 - 第六章(1) 35 利用Windows CLI创建一个壳活动 - 第六章(2) 35 运行ActivityCreator.bat - 第六章(3) 35 项目结构 - 第六章(4) 38 在Windows CLI下创建Hello World!活动 - 第六章(5) 42 增加JAVA_HOME 第六章 (6) 43 编译并安装应用程序 第六章(7) 44 如果运行ANT时出错该怎么办? 第六章(8) 44 用adb安装你的应用程序 第六章(9) 48 运行应用程序产生了一个错误怎么办 - 第六章(10) 49 卸载一个较早的活动 - 第六章(11) 49 重新安装并启动应用程序 - 第六章(12) 50 Linux上的Hello World! 第六章(13) 50 在CLI中创建一个图片基础的Hello World! 第六章(14) 52 第七章 使用Intents 和电话拨号盘 53 使用Intents 和电话拨号盘 第七章(1) 53 Intents是什么? 第七章(2) 53 使用拨号盘 第七章(3) 58 从你的活动中打出电话 第七章(4) 60 编辑活动许可 第七章(5) 62 修改AndroidPhoneDialer 第七章(6) 64 执行一个EditText View 第七章(7) 68 试试这个:修改AndoridPhoneDialer项目 第七章(8) 71 第八章 列表,菜单和其它Views 74 列表,菜单和其它Views 第八章(1) 74 修改AndroidManifest.xml文件 第八章(2) 76 使用菜单 第八章(3) 78 为AutoComplete创建一个活动 第八章(4) 82 按钮 第八章(5) 89 CheckBox 第八章(6) 93 EditText 第八章(7) 98 RadioGroup 第八章(8) 102 Spinner 第八章(9) 107 试试这个:修改更多的View属性 第八章(10) 112 第九章 使用手机的GPS功能 112 使用手机的GPS功能 第九章(1) 112 什么是轨迹文件 第九章(2) 115 使用Android位置基础API读取GPS 第九章(3) 116 书写代码来允许活动 第九章(4) 120 传递坐标到Google地图 第九章(5) 122 增加缩放控制 第九章(6) 125 试试这个:在MapView之间转换 第九章(7) 130 第十章 使用Google API的Gtalk 134 使用Google API的GTalk 第十章(1) 134 在Android中执行GTalk 第十章(2) 136 编译并运行GoogleAPI 第十章(3) 143 试试这个:为GoogleAPI活动增加设置特性 第十章(4) 145 第十一章 应用程序:找一个朋友 145 应用程序:找一个朋友 第十一章(1) 145 创建一个SQLite数据库 第十一章(2) 146 创建一个定制的Content Provider 第十一章(3) 148 创建Content Provider 第十一章(4) 150 创建FindAFriend活动 第十一章(5) 160 创建NameEditor活动 第十一章(6) 162 创建LocationEditor活动 第十一章(7) 166 创建FriendsMap活动 第十一章(8) 175 创建FindAFriend活动 第十一章(9) 181 运行FindAFriend活动 第十一章(10) 184 Android SDK 工具参考 第十二章 (完) 185 Android SDK 工具参考 第十二章 (完) 185 Android SDK 1.5 - 包装索引 191

    0
    21
    1.11MB
    2012-04-10
    4
wfu
码龄22年
暂无认证
  • 笔耕不辍

    累计2年每年原创文章数量>=20篇
关注 私信
上传资源赚积分or赚钱