- 博客(16)
- 资源 (1)
- 收藏
- 关注
转载 How to Run a Custom Shell Script During an XCODE Build
Right click on the specific target in XCODE You can enter your shell script like this, here is a sample script to list available variables. Build and Run and come open build results to s
2012-07-31 16:47:11 1731
转载 OpenGLES2.0 Iphone开发指引:第二部分,纹理贴图
转自:http://www.cnblogs.com/zilongshanren/archive/2011/09/02/2155061.html 免责申明(必读!):本博客提供的所有教程的翻译原稿均来自于互联网,仅供学习交流之用,切勿进行商业传播。同时,转载时不要移除本申明。如产生任何纠纷,均与本博客所有人、发表该翻译稿之人无任何关系。谢谢合作! 原文链接地址:http
2012-07-27 13:03:16 1801
转载 OpenGL ES2.0 – Iphone开发指引
转自:http://www.cnblogs.com/andyque/archive/2011/08/08/2131019.html 原文链接地址:http://www.raywenderlich.com/3664/opengl-es-2-0-for-iphone-tutorial 免责申明(必读!):本博客提供的所有教程的翻译原稿均来自于互联网,仅供学习交流之用,切勿进行商业传播。同时
2012-07-27 12:59:45 896
转载 hostent结构介绍
转自:http://blog.csdn.net/leewenjin/article/details/7394613 struct hostent结构体 这个数据结构是这样的: struct hostent { const char *h_name; // 地址的正式名称。 char **h_aliases; // 空字节-地
2012-07-23 11:58:25 710
转载 NSButtonCell inside custom NSCell
转自:http://stackoverflow.com/questions/2280317/nsbuttoncell-inside-custom-nscell The minimal requirements are: After left mouse down on the button, it must appear pressed whenever the mouse i
2012-07-16 10:25:50 1037
转载 Re: HTTPS streams through a proxy
转自: http://lists.apple.com/archives/macnetworkprog/2004/May/msg00040.html Re: HTTPS streams through a proxy Subject: Re: HTTPS streams through a proxyFrom: Becky Willrich email@hidden>Date:
2012-07-15 11:07:26 1218
转载 典型 cloning, copy, copyWithZone:, NSCopyObject()
转自: http://hi.baidu.com/yezehui2002/blog/item/8c328299f0c3631e6e068c8b.html 在 C++ 中,定义复制运算符和相关的操作是很重要的。在 Objective-C 中,运算法是不允许重定义的,所能做的就是要求提供一个正确的复制函数。 克隆操作在 Cocoa 中要求使用 NSCopying 协议实现。该协议要求一个实现函数
2012-07-13 10:06:08 1296
原创 NSGeometry.h 里面的方法详解
1,NSDivideRect(NSRect inRect, NSRect *slice, NSRect *rem, CGFloat amount, NSRectEdge edge); 的意思是把按amount把inRect分成两块。直接看代码结果 NSRect aRect = [sender frame]; NSRect popUpRect, textRect;
2012-07-12 16:44:38 1332
原创 NSView 的 mouse 移动事件
如果直接重写 -(void)mouseMoved:(NSEvent *)theEvent和-(void)mouseExited:(NSEvent *)theEvent是没有用的,需要给NSView添加一个NSTrackingArea,像下面这样: _trackingArea = [[NSTrackingArea alloc] initWithRect:[self frame]
2012-07-11 16:00:33 3291
原创 “Unknown class <MyClass> in Interface Builder file” error at runtime
发生这种错误一般都是在xib文件里调用Framework或者是静态库存的Class, 这样直接调用是会出错的,需要在目标Target的Build Settings里设置"Other Linker Flags"成"-all_load" "-ObjC",如果还是出错查看一下Build Phases -> Link Binary With Libraies里是否引入了Framework。 详见
2012-07-10 15:56:37 1234 1
转载 CFHTTPMessageRef Example
1, Build a CFHTTPMessageRef -(CFHTTPMessageRef)buildMessage { NSURL *myURL = [NSURL URLWithString:@"http://myurl.com"]; NSData *dataToPost = [[NSString stringWithString:@"POST Data It Doesn't M
2012-07-09 11:32:02 1545
转载 Different cells on each row in an NSTableView or NSOutlineView
转自: http://www.corbinstreehouse.com/blog/archives/2005/06/different_cells.html June 30, 2005 Different cells on each row in an NSTableView or NSOutlineView Some people have asked me how to dyna
2012-07-06 18:09:02 1067
原创 RunLoop例子
A CFRunLoopSource object is an abstraction of an input source that can be put into a run loop. Input sources typically generate asynchronous events, such as messages arriving on a network port or acti
2012-07-04 14:18:16 1591
转载 [iOS] CFRunLoop示例总结
首先看两个runloop的示例 第一个: #include static void _perform(void *info __unused) { printf("hello\n"); } static void _timer(CFRunLoopTimerRef timer __unused, vo
2012-07-04 13:57:03 1048
转载 Run Loop
学习过程中,将Threading PG中的Run Loops翻译了下,权当是做为笔记。原文见 Run Loops。 20110526 转载请注明,谢谢。 http://www.cnblogs.com/scorpiozj/ Run loops是线程的基础架构部分。一个run loop就是一个事件处理循环,用来不停的调配工作以及处理输入事件。使用run loop的目的是使你
2012-07-04 13:20:54 1233
转载 10个迷惑新手的Cocoa,Objective-c开发难点和问题
Keefo 14 September, 2011 8:01:52 AM PDT Last update on 09 Fri Mar, 2012 17:36:24 AM PDT 因为有自己的软件要开发,所以我只能忙里偷闲过来接着写这篇教程。大家莫怪。请按上面的最后更新时间算。 原文地址 http://lianxu.me/blog/2011/11/14/10-cocoa
2012-07-04 11:45:42 2086
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人