• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
james1207

博客园    首页    新随笔    联系   管理    订阅  订阅
上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 223 下一页
2013年10月8日
objective-C 自定义对象归档的实现
摘要: 自定义对象要实现归档必须实现NSCoding协议NSCoding协议有两个方法,encodeWithCoder方法对对象的属性数据做编码处理,initWithCoder解码归档数据来初始化对象。#import @interface user : NSObject @property(nonatomic,retain)NSString *name;@property(nonatomic,retain)NSString *email;@property(nonatomic,retain)NSString *pwd;@property(nonatomic,assign)int age;@end#i. 阅读全文
posted @ 2013-10-08 21:52 Class Xman 阅读(208) 评论(0) 推荐(0)
再谈 retain,copy,mutableCopy(官方SDK,声明NSString都用copy非retain)
摘要: 之前一直以为retain就是简单的计数器+1,copy就是重新开辟内存复制对象; 其实不是这样,原来之前的自己独自徘徊于糊涂之中。 (官方SDK,对NSString属性的定义都是用copy,而不是retain) 在明了的原因是,怕你赋值的是一个MutableString,而MutableString是可变了,如果只是retain,那么当你在外面改变了这个值的时候,你的属性的值也改变了 代码: 定义一个属性: @property (copy,nonatomic)NSString *myTest; @synthesize myTest; NSMutableSt... 阅读全文
posted @ 2013-10-08 21:48 Class Xman 阅读(152) 评论(0) 推荐(0)
D3D游戏编程系列(一):DXLib的介绍
摘要: 这篇文章里我准备向大家介绍下我封装的一个基础D3D库:DXLib。有了这样一个类库,可以减少很多无用功以及繁琐的工作,使我们的效率大大提高。DXLib.h#define DIRECTINPUT_VERSION 0x0800#pragma warning(disable:4786)#pragma warning(disable:4244)#pragma warning(disable:4995)#pragma warning(disable:4996)#include #include #include #include #include #include #include #in... 阅读全文
posted @ 2013-10-08 21:48 Class Xman 阅读(1914) 评论(0) 推荐(0)
uva 11292 Dragon of Loowater (勇者斗恶龙)
摘要: Problem C: The Dragon of LoowaterOnce upon a time, in the Kingdom of Loowater, a minor nuisance turned into a major problem.The shores of Rellau Creek in central Loowater had always been a prime breeding ground for geese. Due to the lack of predators, the geese population was out of control. The peo 阅读全文
posted @ 2013-10-08 21:44 Class Xman 阅读(232) 评论(0) 推荐(0)
【iOS开发】iOS7 兼容及部分细节
摘要: 1:statusBar字体为白色在plist里面设置View controller-based status bar appearance 为 NO;设置statusBarStyle 为UIStatusBarStyleLightContent 2:设置statusBar和navigationbar为一体[nav.navigationBar setBackgroundImage:[UIImage imageNamed:@"bg_navbar.png"] forBarPosition:UIBarPositionTopAttached barMetrics:UIBarMetric 阅读全文
posted @ 2013-10-08 21:42 Class Xman 阅读(428) 评论(0) 推荐(0)
QMenu的个性化定制
摘要: 经常使用菜单,菜单的定制相当重要,普通的样式设置不难,一般需求足以实现(QMenu + QAction)。如果要足够个性,则需要进行一定的定制。 说起定制,其实也是利用Qt中现成的组件进行组装而已,使用QMenu + QWidgetAction + QAction ,再加上QSS美化就可实现个性的QMenu。 先看效果(模仿酷狗所做的一个托盘菜单): 主要代码如下: SystemTray::SystemTray() : QSystemTrayIcon() { this->createActio... 阅读全文
posted @ 2013-10-08 21:40 Class Xman 阅读(1053) 评论(0) 推荐(0)
退出myeclipse 8.5配置中心
摘要: 用myeclipse 8.5没多久,进入软件中心下载插件,找不到退出按钮,唉,木想到就是一图标。 阅读全文
posted @ 2013-10-08 21:40 Class Xman 阅读(134) 评论(0) 推荐(0)
HBase Shell输入命令无法删除问题解决技巧
摘要: 一、引言:HBase shell使用过程中,使用CRT客户端,命令输入后无法删除一直困绕着我,今天终于受不了,几番度娘,谷哥之后,终于有了解决方法,特共享给大家。二、操作步骤secureCRT中,点击【选项】【回话选项】【终端】【仿真】,右边的终端选择linux英文版本请对应选择输入:三、删除操作执行删除操作时,需要使用组合键:Ctrl+Back Space同时按下,不妨现在就开始尝试一下吧。四、遗憾我一直比较喜欢黄色字体,黑色背景,设置Linux后原来的背景色不起作用了。也不知道是什么原因导致的,希望下一步能找到答案。 阅读全文
posted @ 2013-10-08 21:36 Class Xman 阅读(198) 评论(0) 推荐(0)
“WIZnet杯”以太网技术竞赛即将开始!
摘要: 阅读全文
posted @ 2013-10-08 21:34 Class Xman 阅读(89) 评论(0) 推荐(0)
python 简单示例说明os.walk和os.path.walk的不同
摘要: import os,os.pathdef func(arg,dirname,names): for filespath in names: print os.path.join(dirname,filespath)if __name__=="__main__": print "==========os.walk================" index = 1 for root,subdirs,files in os.walk("c:\\test"): print "第",index,"层" 阅读全文
posted @ 2013-10-08 21:34 Class Xman 阅读(348) 评论(0) 推荐(0)
上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 223 下一页
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3