今天在实现play gif功能的时候,看到有两个类比较陌生,就在此记录下看到的东西:
NSSet和NSDictionary是两个常用的类,但是他们默认假定了其中对象的内存行为。对于NSSet,object是强引用的,和NSDictionary中的value是一样的。而NSDictionary中的key则是copy的,因此当开发者想要使NSSet的objects或者NSDictionary的v...
分类:
其他好文 时间:
2014-10-10 19:16:34
阅读次数:
242
前两次分别讲述了Java关于jvm、jdk、jre、collection、classLoader和一些Design Pattern的自我理解。这次仍然不准备开始过渡到j2ee中,因为觉得还有一些琐碎的j2se的问题没有总结完毕。 1. 关于Object类理解 大家都知道Object是所有Ja...
分类:
编程语言 时间:
2014-10-10 17:45:44
阅读次数:
173
An object is an unordered collection of properties, each of witch has a name and value.An object is more than a simple string-to-value map, in additio...
分类:
其他好文 时间:
2014-10-10 16:34:34
阅读次数:
145
-(id)performSelector:(SEL)aSelector withObject:(id)anObjectDescription[说明]Sends a message to the receiver with an object as the argument. (required)[将...
分类:
其他好文 时间:
2014-10-10 16:28:10
阅读次数:
146
-(id)performSelector:(SEL)aSelector withObject:(id)anObject withObject:(id)anotherObjectDescription[说明]Sends a message to the receiver with two object...
分类:
其他好文 时间:
2014-10-10 16:00:50
阅读次数:
223
private void butCF_Click(object sender, RoutedEventArgs e) { if (DatagridDatatable != null && DatagridDatatable.Rows.Count > 0) ...
分类:
其他好文 时间:
2014-10-10 15:02:30
阅读次数:
132
ScenarioEntityManager.persistEntityManager.mergeSessionManager.saveOrUpdateObject passed was never persisted1. Object added to persistence context as ...
分类:
其他好文 时间:
2014-10-10 14:50:34
阅读次数:
182
Polymorphism is often referred to as the third pillar of object-oriented programming, after encapsulation and inheritance. It has two distinct aspects:
At run time, objects of a derived class may...
分类:
其他好文 时间:
2014-10-10 14:05:54
阅读次数:
158
一、各种旋转、改变大小注意:先要添加画图相关的using引用。//向右旋转图像90°代码如下:private void Form1_Paint(object sender, System.Windows.Forms.PaintEventArgs e){Graphics g = e.Graphics;...
分类:
其他好文 时间:
2014-10-10 10:44:54
阅读次数:
392
对于开发板实现显示矢量字体,同样PC机一样,我需要字体文件,这里选择simsun.ttc(新宋体)。1)初始化库 FT_Init_FreeType( &library ); /* initialize library */2)create face object FT_New_Face( lib.....
分类:
其他好文 时间:
2014-10-10 02:33:03
阅读次数:
200