
Mac开发
ColorPaper
游侠
展开
-
苹果开发者账号注册、申请续费整个流程
一、注册Apple ID 注:申请Apple ID的时候,First Name与Last Name,要填写个人资料,不要填公司名,一定要填写正确 Personal Information First Name: San Last Name: Li Email Address:你的邮箱 Company / Organization:公司英文转载 2012-10-16 11:28:56 · 1318 阅读 · 0 评论 -
NSWorkspace
An NSWorkspace object responds to application requests to perform a variety of services:Opening, manipulating, and obtaining informa转载 2011-08-23 17:35:00 · 560 阅读 · 0 评论 -
Core Data是如何工作的
How Core Data WorksAlthough you have written no code, many objects will be created to make this work. Figure 11.14 is a diagram of som转载 2011-08-23 11:20:16 · 604 阅读 · 0 评论 -
Chapter 25. Sheets
Chapter 25. SheetsA sheet is simply an NSWindow instance that is attached to another window. The sheet comes down over the window, a转载 2011-08-22 18:16:39 · 724 阅读 · 0 评论 -
Cocoa Programming for Mac OS X 第十六章(Localization)摘录
If the application you create is useful, you will want to share it with all the people of the world. Unfortunately, we don't all speak the s转载 2011-08-22 15:17:54 · 871 阅读 · 0 评论 -
Cocoa Programming for Mac OS X 第十五章(Using Alert Panels)摘录
Using Alert PanelsOccasionally, you will want to warn the user about something by means of an Alert panel. Alert panels are easy to cr转载 2011-08-22 14:39:40 · 850 阅读 · 0 评论 -
Delegates and Notifications
Delegates and NotificationsAn object that has made itself the delegate of a standard Cocoa object is probably interested in receiving no转载 2011-08-22 14:20:45 · 586 阅读 · 0 评论 -
Cocoa Programming for Mac OS X 第十三章(User Defaults)摘录
Many applications have Preferences panels that allow the user to choose a preferred appearance or behavior. The user's choices go into the u转载 2011-08-22 13:38:53 · 951 阅读 · 0 评论 -
NSBundle是什么
NSBundleA bundle is a directory of resources that may be used by an application. Resources include such things as images, sounds, comp转载 2011-08-22 12:56:29 · 695 阅读 · 0 评论 -
File's Owner是什么
When a nib file is loaded into an application that has been running for a while, the objects that already exist need to establish some conne转载 2011-08-22 12:47:48 · 710 阅读 · 0 评论 -
Cocoa Programming for Mac OS X 第一章(What Is It?)摘录
A Little HistoryApple has made the source code to the Unix part of Mac OS X available under the name Darwin. A community of developers转载 2011-08-20 08:39:24 · 910 阅读 · 0 评论 -
Cocoa Programming for Mac OS X 第二章(Let's Get Started)摘录
1.Instance variables that are pointers to other objects are called outlets. Methods that can be triggered by user interface objects are ca转载 2011-08-20 10:05:58 · 658 阅读 · 0 评论 -
NSControl的继承图
To better understand NSControl, you should become acquainted with its ancestors: NSControl inherits from NSView, which inherits from NSR转载 2011-08-20 14:08:35 · 877 阅读 · 0 评论 -
Cocoa Programming for Mac OS X 第三章(Objective-C)摘录
一、A Foundation Tool has no graphical user interface and typically runs on the command line or in the background as a daemon. Unlike in a转载 2011-08-20 11:26:01 · 664 阅读 · 0 评论 -
NSImageScaling
NSImageScalingThese constants specify a cell’s image scaling behavior.enum { NSImageScaleProportionallyDown = 0, NSImageScaleAxe转载 2011-08-23 17:39:19 · 1140 阅读 · 0 评论 -
NSScreen
An NSScreen object describes the attributes of a computer’s monitor, or screen. An application may use anNSScreen object to retrieve infor转载 2011-08-23 17:32:17 · 1115 阅读 · 0 评论 -
xcode 4中的scheme的作用
In Xcode, before you build, you select a scheme, which specifies which targets to build, what build configuration to use, and the executab转载 2011-08-25 19:38:46 · 1204 阅读 · 0 评论 -
C++和Objective-C混编
Using C++ With Objective-C苹果的Objective-C编译器允许用户在同一个源文件里自由地混合使用C++和Objective-C,混编后的语言叫Objective-C++。有了它,你就可以在Objective-C应用程序中使用已有的C++类库。转载 2011-10-09 12:29:33 · 707 阅读 · 0 评论 -
如何获取年、月、日、时、分、秒、星期几等
使用类似下面的方法即可实现:NSCalendar *gregorian = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar];NSDateComponents *dateCompone转载 2011-10-17 16:01:25 · 701 阅读 · 0 评论 -
GPU-accelerated video processing on Mac and iOS
源自:http://www.sunsetlakesoftware.com/2010/10/22/gpu-accelerated-video-processing-mac-and-iosOctober 22, 2010I've been invited转载 2011-09-26 18:56:23 · 1334 阅读 · 0 评论 -
Xcode4中如何访问编译设置
Xcode 4: Accessing Build SettingsTo access build settings in Xcode 4, select the project file from the project navigator on the left sid转载 2011-10-15 11:38:25 · 757 阅读 · 0 评论 -
objective-c protocols详解
ProtocolsProtocols declare methods that can be implemented by any class. Protocols are useful in at least three situations:To转载 2011-10-13 21:39:46 · 1188 阅读 · 0 评论 -
Xcode4中如何设置Company Name
选择菜单View > Utilities > Show File Inspector [option + command + 1]. Organization entry is there available for each new project.转载 2011-10-12 20:47:52 · 948 阅读 · 0 评论 -
开发技巧: 利用lipo 编译合并iPhone模拟器和真机通用的静态类库
如何编译静态类库,大家已经比较熟悉了,而且现在网上也有很多教程,就不多罗唆了. 现在问题是, 我们编译好了会是两个版本的.a文件 分别用于模拟器和iPhone真机, 因为Mac和iPhone的CPU不同, 才造成了这样的情况. 有点像 PowerMac 和 Inter转载 2011-10-13 18:33:58 · 603 阅读 · 0 评论 -
How to “add existing frameworks” in Xcode 4?
In the project navigator, select your projectSelect your targetSelect the 'Build Phases' tabOpen 'Link Binaries With Libraries' expand转载 2011-09-28 14:24:35 · 700 阅读 · 0 评论 -
Main event loop
In the main event loop, an application continuously routes incoming events to objects for handling and, as a result of that handling, update转载 2011-08-27 08:35:01 · 805 阅读 · 0 评论 -
Cocoa (Touch)
Cocoa (Touch)Cocoa, which includes the Foundation and AppKit frameworks, is used for developing applications that run on Mac OS X.Co转载 2011-08-27 09:04:40 · 1045 阅读 · 0 评论 -
About NSCell
The NSCell class provides a mechanism for displaying text or images in an NSView without the overhead of a full NSView subclass. In particul转载 2011-08-26 20:19:08 · 811 阅读 · 0 评论 -
bingding简介
Cocoa bindings are a controller-layer mechanism used to synchronize the view and model layers of your Mac OS X application. Bindings establi转载 2011-08-25 17:39:16 · 878 阅读 · 0 评论 -
Initializing View Instances Created in Interface Builder
Initializing View Instances Created in Interface BuilderView instances that are created in Interface Builder don't call initWithFrame: w转载 2011-08-25 10:29:45 · 1145 阅读 · 0 评论 -
Cocoa Programming for Mac OS X 第四章(Memory Management)摘录
一 、打开和关闭垃圾搜集器Let's say that there are two instances of Person and that each has a favoriteColor, a pointer to a color object. If t转载 2011-08-20 10:27:55 · 715 阅读 · 0 评论 -
Cocoa Programming for Mac OS X 第七章(Key-Value Coding; Key-Value Observing)摘录
Key-value coding (KVC) is a mechanism that allows you to set and get the value of a variable by its name. The name is simply a string, but w转载 2011-08-20 17:10:45 · 851 阅读 · 0 评论 -
Using Keyboard Interface Control in Windows
Using Keyboard Interface Control in WindowsA window’s first responder is often a view object selected by the user clicking it. For text转载 2011-08-06 20:24:29 · 500 阅读 · 0 评论 -
Event Architecture
Event ArchitectureThe path taken by an event to the object in a Cocoa application that finally handles it can be a complicated one. This转载 2011-08-06 20:19:27 · 962 阅读 · 0 评论 -
Handling Events in Windows
Handling Events in WindowsAs described in NSResponder Class Reference, most events coming into an application make their way to a wind转载 2011-08-06 19:54:43 · 442 阅读 · 0 评论 -
Document-Based Application Architecture
Document-Based Application ArchitectureA document-based application is one of the more common types of applications. It provides a frame转载 2011-08-05 20:40:13 · 661 阅读 · 0 评论 -
How Window Controllers Work
How Window Controllers WorkA controller object (in this case, NSWindowController) manages a window; this object is usually stored in转载 2011-08-05 20:28:46 · 529 阅读 · 0 评论 -
How a Window is Displayed
How a Window is DisplayedDisplaying an NSWindow object begins with the drawing performed by its view objects, which accumulates in the转载 2011-08-05 19:58:37 · 638 阅读 · 0 评论 -
How Windows Work
How Windows WorkThe NSWindow class defines objects that manage and coordinate the windows an application displays on the screen. A sin转载 2011-08-05 19:50:55 · 580 阅读 · 0 评论 -
Callbacks When an NSScrollView is Scrolled?
问:I'm making a Mac app which needs to know when the user is scrolling the NSScrollView, however, I can't find any methods like UIScr转载 2011-09-03 18:53:55 · 734 阅读 · 0 评论