??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲国产综合91精品麻豆 ,欧美日韩免费一区二区三区,欧美一级日韩一级http://www.aygfsteel.com/CrackRen/zh-cnTue, 17 Jun 2025 01:31:18 GMTTue, 17 Jun 2025 01:31:18 GMT60屏蔽CCMenu按钮响应http://www.aygfsteel.com/CrackRen/archive/2012/10/20/389913.htmlCrackRenCrackRenSat, 20 Oct 2012 04:07:00 GMThttp://www.aygfsteel.com/CrackRen/archive/2012/10/20/389913.htmlhttp://www.aygfsteel.com/CrackRen/comments/389913.htmlhttp://www.aygfsteel.com/CrackRen/archive/2012/10/20/389913.html#Feedback0http://www.aygfsteel.com/CrackRen/comments/commentRss/389913.htmlhttp://www.aygfsteel.com/CrackRen/services/trackbacks/389913.html

屏蔽Ҏ:

 

q入新的CCLayer?

[[CCDirector sharedDirector].touchDispatcher addTargetedDelegate:self priority:kCCMenuHandlerPriority swallowsTouches:YES];

 

d此CCLayer时调?/p>

[[CCDirector sharedDirector].touchDispatcher removeDelegate:self];

 

重写Ҏ

- (BOOL)ccTouchBegan:(UITouch *)touch withEvent:(UIEvent *)event;

 

解释:

׃CCMenu 按钮接受按键的优先?128(D优先񔭑高)Q所有不论处在那一层都会接收到点击 

[[CCDirector sharedDirector].touchDispatcher addTargetedDelegate:self priority:kCCMenuHandlerPriority swallowsTouches:YES];

priority: 优先U?kCCMenuHandlerPriority(-128)

swallowsToucher: 是否吃掉按钮不叫其他层再接收?nbsp; 如果为NO其他层还是一样会接收到Touch数据

 

注意d此CCLayer时一定要调用

[[CCDirector sharedDirector].touchDispatcher removeDelegate:self];

否则下面层将不再接收按键



CrackRen 2012-10-20 12:07 发表评论
]]>
Commons-IO 功能?/title><link>http://www.aygfsteel.com/CrackRen/archive/2012/10/20/389912.html</link><dc:creator>CrackRen</dc:creator><author>CrackRen</author><pubDate>Sat, 20 Oct 2012 04:06:00 GMT</pubDate><guid>http://www.aygfsteel.com/CrackRen/archive/2012/10/20/389912.html</guid><wfw:comment>http://www.aygfsteel.com/CrackRen/comments/389912.html</wfw:comment><comments>http://www.aygfsteel.com/CrackRen/archive/2012/10/20/389912.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/CrackRen/comments/commentRss/389912.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/CrackRen/services/trackbacks/389912.html</trackback:ping><description><![CDATA[<br /> <div class="wmqeeuq" id="xunlei_com_thunder_helper_plugin_d462f475-c18e-46be-bd10-327458d045bd"></div><div class="wmqeeuq" id="blog_content" class="blog_content"> <p><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">Class FileUtils</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">此类包含了一般的通用文g操作工具?/span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">    ● 诅R写文g</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">    ● 创徏一个目录,如果其上U的各父目录不存在Q也会创建它?/span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">    ● 拯文g和目?/span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">    ● 删除文g和目?/span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">    ● URL转换成文?/span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">    ● 通过qo器或者扩展名列出文g</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">    ● 比较文g内容</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">    ● 修改文g最后修Ҏ?/span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">    ● 计算校验?/span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">累了Q去L优休息一下下,QQI间Q美文,非主,|络日记Q搞W短信,福短信Q热门短信,有意思啊   </span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">Class IOUtils</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">此类包含了一般的IO操作工兗?/span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">    ● closeQuietly – 忽略 nulls和错误而关闭一个流</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">    ● toXxx/read – q些cM一个流d数据</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">    ● write – q些Ҏ写数据到一个流</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">    ● copy – q些Ҏ从一个流到另一个流拯数据</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">    ● contentEquals – q些Ҏ比较两个的数据</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">Class FilenameUtils</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">此类包含了文件和路径的操作工兗?/span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">当你在Windows下开发的JavaE序转移到UnixpȝӞ你可能遇到文件\径的问题Q这个类的目标帮你解册个问题。注? 你完全可以不用这个类Q而用JDK提供的两个构造参数的Filec,File(File,String)?/span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">大多数方法识别两个分隔符(/ ?\), 和两个前~集合?/span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">q个cd一个文件名U定义成六部?例如 C:\dev\project\file.txt):</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">    ● 前缀 – C:\</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">    ● 路径 – dev\project\</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">    ● 全\?– C:\dev\project\</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">    ● 文g名称 – file.txt</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">    ● 基本名称 – file</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">    ● 扩展?– txt</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">q个c能够处理以分隔W结目录文g。如果你忽略了最后一个分隔符Q它也能识别其是文gq是目录。这个类仅支持UNIX和Windows样式的名Uͼ前缀匚w方式如下Q?/span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">Windows:</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">a\b\c.txt           –> ""          –> 相对</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">\a\b\c.txt          –> "\"         –> 当前的绝寚w动器</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">C:a\b\c.txt         –> "C:"        –> 相对的驱动器</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">C:\a\b\c.txt        –> "C:\"       –> l对</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">\\server\a\b\c.txt  –> "\\server\" –> UNC</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">Unix:</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">a/b/c.txt           –> ""          –> 相对</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">/a/b/c.txt          –> "/"         –> l对</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">~/a/b/c.txt         –> "~/"        –> 当前用户</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">~                   –> "~/"        –> 当前用户 (slash added)</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">~user/a/b/c.txt     –> "~user/"    –> 命名用户</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">~user               –> "~user/"    –> 命名用户 (slash added)</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">   </span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">org.apache.commons.io.filefilter </span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">此包中包含了大量的文件名U过滤器?/span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">DirectoryFilter  仅接受目?/span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">PrefixFileFilter Z前缀</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">SuffixFileFilter Z后缀</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">NameFileFilter Z文g名称</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">WildcardFileFilter Z通配W?/span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">AgeFileFilter Z最后修Ҏ?/span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">SizeFileFilter Z文g寸</span></p> <p> </p> <p>下蝲地址Q?/p> <p><a >http://commons.apache.org/io/</a> </p> </div><img src ="http://www.aygfsteel.com/CrackRen/aggbug/389912.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/CrackRen/" target="_blank">CrackRen</a> 2012-10-20 12:06 <a href="http://www.aygfsteel.com/CrackRen/archive/2012/10/20/389912.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>JSplitPane 默认展开/折叠分隔?http://www.aygfsteel.com/CrackRen/archive/2011/11/24/364716.htmlCrackRenCrackRenThu, 24 Nov 2011 04:02:00 GMThttp://www.aygfsteel.com/CrackRen/archive/2011/11/24/364716.htmlhttp://www.aygfsteel.com/CrackRen/comments/364716.htmlhttp://www.aygfsteel.com/CrackRen/archive/2011/11/24/364716.html#Feedback0http://www.aygfsteel.com/CrackRen/comments/commentRss/364716.htmlhttp://www.aygfsteel.com/CrackRen/services/trackbacks/364716.html

当用JSplitpane分隔面板?/span>

可以通过 splitPaneMain.setOneTouchExpandable(true);

讄 oneTouchExpandable 属性的|要 JSplitPane 在分隔条上提供一?UI 部件来快速展开/折叠分隔?/span>

 

但是如果要初始化旉认就折叠一边的?|上搜烦d下面几句可以了Q但是验证了下只有在一Ҏ加控件时才行

// Hide left or top 
splitPaneMain.getLeftComponent().setMinimumSize(new Dimension());
splitPaneMain.setDividerLocation(0.0d);

// Hide right or bottom
splitPaneMain.getRightComponent().setMinimumSize(new Dimension());
splitPaneMain.setDividerLocation(1.0d);


CrackRen 2011-11-24 12:02 发表评论
]]>
MD5的?/title><link>http://www.aygfsteel.com/CrackRen/archive/2011/10/25/362032.html</link><dc:creator>CrackRen</dc:creator><author>CrackRen</author><pubDate>Tue, 25 Oct 2011 09:37:00 GMT</pubDate><guid>http://www.aygfsteel.com/CrackRen/archive/2011/10/25/362032.html</guid><wfw:comment>http://www.aygfsteel.com/CrackRen/comments/362032.html</wfw:comment><comments>http://www.aygfsteel.com/CrackRen/archive/2011/10/25/362032.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/CrackRen/comments/commentRss/362032.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/CrackRen/services/trackbacks/362032.html</trackback:ping><description><![CDATA[写个工具把不同文件夹下的文g拯C个文件夹下去Q碰到格问题Q需要考虑到生成唯一文g名,x惛_q是使用MD5计算?br /><br /><div><span style="font-size: 13px; background-color: #eeeeee; color: #0000ff; ">import</span><span style="font-size: 13px; background-color: #eeeeee; "> java.security.MessageDigest;<br /><br /></span><span style="font-size: 13px; background-color: #eeeeee; color: #008000; ">/**</span><span style="font-size: 13px; background-color: #eeeeee; color: #008000; "><br /> *<br /> * </span><span style="font-size: 13px; background-color: #eeeeee; color: #808080; ">@author</span><span style="font-size: 13px; background-color: #eeeeee; color: #008000; "> apple<br /> </span><span style="font-size: 13px; background-color: #eeeeee; color: #008000; ">*/</span><span style="font-size: 13px; background-color: #eeeeee; "><br /></span><span style="font-size: 13px; background-color: #eeeeee; color: #0000ff; ">public</span> <span style="font-size: 13px; background-color: #eeeeee; color: #0000ff; ">class</span><span style="font-size: 13px; background-color: #eeeeee; "> xMD5 {<br />    <br />    </span><span style="font-size: 13px; background-color: #eeeeee; color: #0000ff; ">public</span> <span style="font-size: 13px; background-color: #eeeeee; color: #0000ff; ">final</span> <span style="font-size: 13px; background-color: #eeeeee; color: #0000ff; ">static</span><span style="font-size: 13px; background-color: #eeeeee; "> String MD5(String s) {<br />        </span><span style="font-size: 13px; background-color: #eeeeee; color: #0000ff; ">char</span><span style="font-size: 13px; background-color: #eeeeee; "> hexDigits[] </span><span style="font-size: 13px; background-color: #eeeeee; ">=</span><span style="font-size: 13px; background-color: #eeeeee; "> {</span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">0</span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">, </span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">1</span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">, </span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">2</span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">, </span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">3</span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">, </span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">4</span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">, </span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">5</span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">, </span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">6</span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">, </span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">7</span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">, </span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">8</span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">, </span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">9</span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">,<br />            </span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">A</span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">, </span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">B</span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">, </span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">C</span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">, </span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">D</span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">, </span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">E</span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">, </span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">F</span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">};<br />        </span><span style="font-size: 13px; background-color: #eeeeee; color: #0000ff; ">try</span><span style="font-size: 13px; background-color: #eeeeee; "> {<br />            </span><span style="font-size: 13px; background-color: #eeeeee; color: #0000ff; ">byte</span><span style="font-size: 13px; background-color: #eeeeee; ">[] strTemp </span><span style="font-size: 13px; background-color: #eeeeee; ">=</span><span style="font-size: 13px; background-color: #eeeeee; "> s.getBytes();<br />            </span><span style="font-size: 13px; background-color: #eeeeee; color: #008000; ">//</span><span style="font-size: 13px; background-color: #eeeeee; color: #008000; ">使用MD5创徏MessageDigest对象</span><span style="font-size: 13px; background-color: #eeeeee; color: #008000; "><br /></span><span style="font-size: 13px; background-color: #eeeeee; ">            MessageDigest mdTemp </span><span style="font-size: 13px; background-color: #eeeeee; ">=</span><span style="font-size: 13px; background-color: #eeeeee; "> MessageDigest.getInstance(</span><span style="font-size: 13px; background-color: #eeeeee; ">"</span><span style="font-size: 13px; background-color: #eeeeee; ">MD5</span><span style="font-size: 13px; background-color: #eeeeee; ">"</span><span style="font-size: 13px; background-color: #eeeeee; ">);<br />            mdTemp.update(strTemp);<br />            </span><span style="font-size: 13px; background-color: #eeeeee; color: #0000ff; ">byte</span><span style="font-size: 13px; background-color: #eeeeee; ">[] md </span><span style="font-size: 13px; background-color: #eeeeee; ">=</span><span style="font-size: 13px; background-color: #eeeeee; "> mdTemp.digest();<br />            </span><span style="font-size: 13px; background-color: #eeeeee; color: #0000ff; ">int</span><span style="font-size: 13px; background-color: #eeeeee; "> j </span><span style="font-size: 13px; background-color: #eeeeee; ">=</span><span style="font-size: 13px; background-color: #eeeeee; "> md.length;<br />            </span><span style="font-size: 13px; background-color: #eeeeee; color: #0000ff; ">char</span><span style="font-size: 13px; background-color: #eeeeee; "> str[] </span><span style="font-size: 13px; background-color: #eeeeee; ">=</span> <span style="font-size: 13px; background-color: #eeeeee; color: #0000ff; ">new</span> <span style="font-size: 13px; background-color: #eeeeee; color: #0000ff; ">char</span><span style="font-size: 13px; background-color: #eeeeee; ">[j </span><span style="font-size: 13px; background-color: #eeeeee; ">*</span> <span style="font-size: 13px; background-color: #eeeeee; ">2</span><span style="font-size: 13px; background-color: #eeeeee; ">];<br />            </span><span style="font-size: 13px; background-color: #eeeeee; color: #0000ff; ">int</span><span style="font-size: 13px; background-color: #eeeeee; "> k </span><span style="font-size: 13px; background-color: #eeeeee; ">=</span> <span style="font-size: 13px; background-color: #eeeeee; ">0</span><span style="font-size: 13px; background-color: #eeeeee; ">;<br />            </span><span style="font-size: 13px; background-color: #eeeeee; color: #0000ff; ">for</span><span style="font-size: 13px; background-color: #eeeeee; "> (</span><span style="font-size: 13px; background-color: #eeeeee; color: #0000ff; ">int</span><span style="font-size: 13px; background-color: #eeeeee; "> i </span><span style="font-size: 13px; background-color: #eeeeee; ">=</span> <span style="font-size: 13px; background-color: #eeeeee; ">0</span><span style="font-size: 13px; background-color: #eeeeee; ">; i </span><span style="font-size: 13px; background-color: #eeeeee; "><</span><span style="font-size: 13px; background-color: #eeeeee; "> j; i</span><span style="font-size: 13px; background-color: #eeeeee; ">++</span><span style="font-size: 13px; background-color: #eeeeee; ">) {<br />                </span><span style="font-size: 13px; background-color: #eeeeee; color: #0000ff; ">byte</span><span style="font-size: 13px; background-color: #eeeeee; "> b </span><span style="font-size: 13px; background-color: #eeeeee; ">=</span><span style="font-size: 13px; background-color: #eeeeee; "> md[i];<br />                </span><span style="font-size: 13px; background-color: #eeeeee; color: #008000; ">//</span><span style="font-size: 13px; background-color: #eeeeee; color: #008000; ">没个数(int)bq行双字节加?/span><span style="font-size: 13px; background-color: #eeeeee; color: #008000; "><br /></span><span style="font-size: 13px; background-color: #eeeeee; ">                str[k</span><span style="font-size: 13px; background-color: #eeeeee; ">++</span><span style="font-size: 13px; background-color: #eeeeee; ">] </span><span style="font-size: 13px; background-color: #eeeeee; ">=</span><span style="font-size: 13px; background-color: #eeeeee; "> hexDigits[b </span><span style="font-size: 13px; background-color: #eeeeee; ">>></span> <span style="font-size: 13px; background-color: #eeeeee; ">4</span> <span style="font-size: 13px; background-color: #eeeeee; ">&</span> <span style="font-size: 13px; background-color: #eeeeee; ">0xf</span><span style="font-size: 13px; background-color: #eeeeee; ">];<br />                str[k</span><span style="font-size: 13px; background-color: #eeeeee; ">++</span><span style="font-size: 13px; background-color: #eeeeee; ">] </span><span style="font-size: 13px; background-color: #eeeeee; ">=</span><span style="font-size: 13px; background-color: #eeeeee; "> hexDigits[b </span><span style="font-size: 13px; background-color: #eeeeee; ">&</span> <span style="font-size: 13px; background-color: #eeeeee; ">0xf</span><span style="font-size: 13px; background-color: #eeeeee; ">];<br />            }<br />            </span><span style="font-size: 13px; background-color: #eeeeee; color: #0000ff; ">return</span> <span style="font-size: 13px; background-color: #eeeeee; color: #0000ff; ">new</span><span style="font-size: 13px; background-color: #eeeeee; "> String(str);<br />        } </span><span style="font-size: 13px; background-color: #eeeeee; color: #0000ff; ">catch</span><span style="font-size: 13px; background-color: #eeeeee; "> (Exception e) {<br />            </span><span style="font-size: 13px; background-color: #eeeeee; color: #0000ff; ">return</span> <span style="font-size: 13px; background-color: #eeeeee; color: #0000ff; ">null</span><span style="font-size: 13px; background-color: #eeeeee; ">;<br />        }<br />    }<br />  <br />}</span></div><img src ="http://www.aygfsteel.com/CrackRen/aggbug/362032.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/CrackRen/" target="_blank">CrackRen</a> 2011-10-25 17:37 <a href="http://www.aygfsteel.com/CrackRen/archive/2011/10/25/362032.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>CCSprite各种动作介绍和?/title><link>http://www.aygfsteel.com/CrackRen/archive/2011/10/14/361961.html</link><dc:creator>CrackRen</dc:creator><author>CrackRen</author><pubDate>Fri, 14 Oct 2011 05:18:00 GMT</pubDate><guid>http://www.aygfsteel.com/CrackRen/archive/2011/10/14/361961.html</guid><wfw:comment>http://www.aygfsteel.com/CrackRen/comments/361961.html</wfw:comment><comments>http://www.aygfsteel.com/CrackRen/archive/2011/10/14/361961.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/CrackRen/comments/commentRss/361961.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/CrackRen/services/trackbacks/361961.html</trackback:ping><description><![CDATA[<p> </p> <p> </p> <pre name="code" class="c">// 触摸? -(void) ccTouchesEnded:(NSSet *)touches withEvent:(UIEvent *)event { for( UITouch *touch in touches ) { CGPoint location = [touch locationInView: [touch view]]; location = [[CCDirector sharedDirector] convertToGL: location]; // 各种动作 // 瞬时动作 // 讄坐标 id action0 = [CCPlace actionWithPosition:ccp(240,160)]; // 隐藏 id action1 = [CCHide action]; // 昄 id action2 = [CCShow action]; // 隐藏/昄 id action3 = [CCToggleVisibility action]; // 延时动作 // Ud id action4 = [CCMoveTo actionWithDuration:2 position:ccp(0,0)]; id action5 = [CCMoveBy actionWithDuration:2 position:ccp(100,100)]; // 弹蟩 id action6 = [CCJumpTo actionWithDuration:2 position:ccp(0,200) height:30 jumps:5]; id action7 = [CCJumpBy actionWithDuration:2 position:ccp(100, 0) height:30 jumps:5]; // 贝塞移? ccBezierConfig bezier; bezier.controlPoint_1 = ccp(0, 0); bezier.controlPoint_2 = ccp(100, 300); bezier.endPosition = ccp(0,100); id action8 = [CCBezierTo actionWithDuration:3 bezier:bezier]; id action9 = [CCBezierBy actionWithDuration:3 bezier:bezier]; // ~放 id action10 = [CCScaleTo actionWithDuration:2 scale:4]; id action11 = [CCScaleBy actionWithDuration:2 scale:0.5]; // 旋{ id action12 = [CCRotateTo actionWithDuration:2 angle:180]; id action13 = [CCRotateBy actionWithDuration:2 angle:-180]; // 闪烁 id action14 = [CCBlink actionWithDuration:3 blinks:5]; // 色调变化 id action15 = [CCTintTo actionWithDuration:2 red:255 green:0 blue:0]; id action16 = [CCTintBy actionWithDuration:0.5 red:0 green:255 blue:255]; // 淡化?淡入/淡出 id action17 = [CCFadeTo actionWithDuration: 1 opacity:80]; id action18 = [CCFadeIn actionWithDuration:1.0f]; id action19 = [CCFadeOut actionWithDuration:1.0f]; // 动画序播放 CCAnimation *animation = [CCAnimation animation]; [animation setDelay:2]; // q里添加两帧,需要自己添? [animation addFrameWithTexture:sprTest.texture rect:CGRectMake(0, 0, 44, 34)]; [animation addFrameWithTexture:sprTest.texture rect:CGRectMake(0, 34, 44, 34)]; id action20 = [CCAnimate actionWithAnimation: animation]; // l合动作 // 动画序列 id action21 = [CCSequence actions:action19, action18, nil]; // 重复动作 id action22 = [CCRepeat actionWithAction:action21 times:10]; // 延时动作 id action23 = [CCDelayTime actionWithDuration:1]; // 同时动作 id action24 = [CCSpawn actions:action0, action4, action21, nil]; // 无限循环动作 id action25 = [CCRepeatForever actionWithAction:action21]; // 扩展动作 // 回调动作 id acf0 = [CCCallFunc actionWithTarget:self selector:@selector(CallBack1)]; // 回调动作Q传递动画自w指? id acf1 = [CCCallFuncN actionWithTarget:self selector:@selector(CallBack2:)]; // 回调动作Q传递动画自w指针已l一个参? id acf2 = [CCCallFuncND actionWithTarget:self selector:@selector(CallBack3:data:) data:(void*)2]; id action26 = [CCSequence actions:action19, action18, acf0, action23, action0, nil]; // 反{动作Q只能用在有方向有顺序的动作? id action27 = [action9 reverse]; // 速度变化 //id ac = [CCSequence actions:action9,action27,nil]; id actiontest = [CCMoveBy actionWithDuration:0.5 position:ccp(200,0)]; id ac = [CCSequence actions:actiontest,actiontest, nil]; // 渐快 id action28 = [CCEaseIn actionWithAction:ac rate:3]; // 渐慢 id action29 = [CCEaseOut actionWithAction:ac rate:3]; // 先渐快再渐慢 id action30 = [CCEaseInOut actionWithAction:ac rate:3]; // 正u波移? id action31 = [CCEaseSineIn actionWithAction:ac]; id action32 = [CCEaseSineOut actionWithAction:ac]; id action33 = [CCEaseSineInOut actionWithAction:ac]; // 由极慢至极快 id action34 = [CCEaseExponentialIn actionWithAction:ac]; // 由极快到极慢 id action35 = [CCEaseExponentialOut actionWithAction:ac]; // 由极慢至极快 再由极快到慢 id action36 = [CCEaseExponentialInOut actionWithAction:ac]; // 手动讑֮速度,可通过SetSpeed不断调整 id action37 = [CCSpeed actionWithAction:ac speed:(CCRANDOM_0_1() * 5)]; [sprTest runAction:action37]; } } // 回调函数1 - (void) CallBack1 { [sprTest runAction:[CCTintBy actionWithDuration:2 red:255 green:0 blue:255]]; } // 回调函数2 - (void) CallBack2:(id)sender { [sender runAction:[CCTintBy actionWithDuration:1 red:255 green:0 blue:255]]; } // 回调函数3 -(void) CallBack3:(id)sender data:(void*)data { [sender runAction:[CCTintBy actionWithDuration:(NSInteger)data red:255 green:0 blue:255]]; }</pre> <img src ="http://www.aygfsteel.com/CrackRen/aggbug/361961.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/CrackRen/" target="_blank">CrackRen</a> 2011-10-14 13:18 <a href="http://www.aygfsteel.com/CrackRen/archive/2011/10/14/361961.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Scene切换Ҏhttp://www.aygfsteel.com/CrackRen/archive/2011/10/11/361962.htmlCrackRenCrackRenTue, 11 Oct 2011 05:57:00 GMThttp://www.aygfsteel.com/CrackRen/archive/2011/10/11/361962.htmlhttp://www.aygfsteel.com/CrackRen/comments/361962.htmlhttp://www.aygfsteel.com/CrackRen/archive/2011/10/11/361962.html#Feedback0http://www.aygfsteel.com/CrackRen/comments/commentRss/361962.htmlhttp://www.aygfsteel.com/CrackRen/services/trackbacks/361962.html 

 

   //
    -(void) startMenu:(id) sender
    {
        CCScene* scenec = [CCTestScene scene];
        //部落|Q-Q-Q?
        //CCTransitionTurnOffTiles *transitionScene = [CCTransitionTurnOffTiles transitionWithDuration:3 scene:scenec];
        //q远Q远q-Q-Q-
        //CCTransitionShrinkGrow *transitionScene = [CCTransitionShrinkGrow transitionWithDuration:3 scene:scenec];
        //另一个layout左侧q入Q视觉感觉是屏幕右移Q?
        //CCTransitionSlideInL *transitionScene = [CCTransitionSlideInL transitionWithDuration:3 scene:scenec];
        //另一个layout右侧q入Q视觉感觉是屏幕左移Q?
        //CCTransitionSlideInR *transitionScene = [CCTransitionSlideInR transitionWithDuration:3 scene:scenec];
        //另一个layout上侧q入Q视觉感觉是屏幕下移Q?
        //CCTransitionSlideInT *transitionScene = [CCTransitionSlideInT transitionWithDuration:3 scene:scenec];
        //另一个layout下侧q入Q视觉感觉是屏幕上移Q?
        //CCTransitionSlideInB *transitionScene = [CCTransitionSlideInB transitionWithDuration:3 scene:scenec];
        //当前屏幕被分?列,两则下移Q中间上U?
        //CCTransitionSplitCols *transitionScene = [CCTransitionSplitCols transitionWithDuration:3 scene:scenec];
        //当前屏幕被分?列,两则左移Q中间右U?
        //CCTransitionSplitRows *transitionScene = [CCTransitionSplitRows transitionWithDuration:3 scene:scenec];
        //扇Ş转换Q-Q-Q?
        //CCTransitionRadialCW *transitionScene = [CCTransitionRadialCW transitionWithDuration:3 scene:scenec];
        //q面旋{Q-Q-Q?
        //CCTransitionRotoZoom *transitionScene = [CCTransitionRotoZoom transitionWithDuration:3 scene:scenec];
        //q-q-跛_Q-Q-Q-
        //CCTransitionJumpZoom *transitionScene = [CCTransitionJumpZoom transitionWithDuration:3 scene:scenec];
        //立体反{QX_Q-(q有U从q到q,从远到近的感?Q-Q-Q-Q-
        //CCTransitionZoomFlipX *transitionScene = [CCTransitionZoomFlipX transitionWithDuration:3 scene:scenec];
        //立体反{QY_Q?q有U从q到q,从远到近的感?Q-Q-Q-Q?
        //CCTransitionZoomFlipY *transitionScene = [CCTransitionZoomFlipY transitionWithDuration:3 scene:scenec];
        //立体反{QX,Y_Q-Q?q有U从q到q,从远到近的感?Q-Q-Q?
        //CCTransitionZoomFlipAngular *transitionScene = [CCTransitionZoomFlipAngular transitionWithDuration:3 scene:scenec];
        //另外一个layout左侧q入覆盖当前layout
        //CCTransitionMoveInL *transitionScene = [CCTransitionMoveInL transitionWithDuration:3 scene:scenec];
        //另外一个layout右侧q入覆盖当前layout
        //CCTransitionMoveInR *transitionScene = [CCTransitionMoveInR transitionWithDuration:3 scene:scenec];
        //另外一个layout上侧q入覆盖当前layout
        //CCTransitionMoveInT *transitionScene = [CCTransitionMoveInT transitionWithDuration:3 scene:scenec];
        //另外一个layout下侧q入覆盖当前layout
        //CCTransitionMoveInB *transitionScene = [CCTransitionMoveInB transitionWithDuration:3 scene:scenec];
        //立体反{QX_Q-2Dq面反{Q没有远q感
        //CCTransitionFlipX *transitionScene = [CCTransitionFlipX transitionWithDuration:3 scene:scenec];
        //立体反{QY_Q-2Dq面反{Q没有远q感
        //CCTransitionFlipY *transitionScene = [CCTransitionFlipY transitionWithDuration:3 scene:scenec];
        //立体反{QX,Y_Q-2Dq面反{Q没有远q感
        //CCTransitionFlipAngular *transitionScene = [CCTransitionFlipAngular transitionWithDuration:3 scene:scenec];
        //实体Q透明Q实?默认无颜Ԍ可以附带颜色)
        //CCTransitionFade* transitionScene = [CCTransitionFade transitionWithDuration:3 scene:scenec withColor:ccWHITE];
        //另外一个直接渐变覆盖当前layout
        //CCTransitionCrossFade *transitionScene = [CCTransitionCrossFade transitionWithDuration:3 scene:scenec];
        //UdQ方格状Q部落格Q从左下往右上
        //CCTransitionFadeTR *transitionScene = [CCTransitionFadeTR transitionWithDuration:3 scene:scenec];
        //UdQ方格状Q部落格Q从右上往左下
        CCTransitionFadeBL *transitionScene = [CCTransitionFadeBL transitionWithDuration:3 scene:scenec];
        //UdQ长矩ŞQ宽度是屏幕宽)部落|从下往?
        //CCTransitionFadeUp *transitionScene = [CCTransitionFadeUp transitionWithDuration:3 scene:scenec];
        //UdQ长矩ŞQ宽度是屏幕宽)部落|从上往?
        //CCTransitionFadeDown *transitionScene = [CCTransitionFadeDown transitionWithDuration:3 scene:scenec];
        [[CCDirector sharedDirector] replaceScene: transitionScene];
    }
  

CrackRen 2011-10-11 13:57 发表评论
]]>
下蝲|页http://www.aygfsteel.com/CrackRen/archive/2011/08/31/361963.htmlCrackRenCrackRenWed, 31 Aug 2011 08:35:00 GMThttp://www.aygfsteel.com/CrackRen/archive/2011/08/31/361963.htmlhttp://www.aygfsteel.com/CrackRen/comments/361963.htmlhttp://www.aygfsteel.com/CrackRen/archive/2011/08/31/361963.html#Feedback0http://www.aygfsteel.com/CrackRen/comments/commentRss/361963.htmlhttp://www.aygfsteel.com/CrackRen/services/trackbacks/361963.html 

BOOL Download( CString szURL, CString szDstFile )
{
	BOOL res = false;
	CInternetSession Session;
	CHttpFile *pHttpFile = NULL;

	try{
		pHttpFile = (CHttpFile*)Session.OpenURL(szURL);
	}catch(CInternetException * m_pException){
		pHttpFile = NULL;
		m_pException->m_dwError;
		m_pException->Delete();
		Session.Close();
		res = false;
	}

	CString strLine;
	CFile xmlFile;
	BOOL bResult = xmlFile.Open(szDstFile, CFile::modeCreate | CFile::modeWrite);
	if(pHttpFile != NULL && bResult)
	{
		while(pHttpFile->ReadString(strLine) != NULL)
		{
			xmlFile.Write(strLine, strLine.GetLength());
		}
		xmlFile.Close();
		res = true;
	}
	else
	{
		res = false;
	}

	Session.Close();
	pHttpFile->Close();
	delete pHttpFile;
	pHttpFile = NULL;
	
	return res;
}
 

CrackRen 2011-08-31 16:35 发表评论
]]>
վ֩ģ壺 | | | | | Զ| | ƽ| | | | ̴| ī| ָɽ| | | | üɽ| | | Ͽ| | | żҽ| ƽ| Ρɽ| | | | | | | ̫| Ҧ| ʯɽ| | | | | | ֦|