摘要:mac SVN 设置代理打开终端vim ~/.subversion/severs在[global]节点修改如下http-proxy-host = 127.0.0.1http-proxy-port = 8080注意,前面不能有空格,=符号的前后也不能有空格。
阅读全文
07 2011 档案
摘要:1.什么是NSRunLoop?我们会经常看到这样的代码:12345678910-(IBAction)start:(id)sender{pageStillLoading=YES;[NSThreaddetachNewThreadSelector:@selector(loadPageInBackground:)toTarget:self withObject:nil];[progress setHidden:NO];while(pageStillLoading){[NSRunLoopcurrentRunLoop]runMode:NSDefaultRunLoopMode beforeDate:[NSD
阅读全文
摘要:如果程序中使用了com,为了程序的健壮性com中的异常就需要捕获了。一般格式如下:try{}catch(_com_error& ce){dump_com_error(ce);}catch(...)// ...是所有的异常,不知道的异常也可以捕获{ AfxMessageBox(_T("发生未知异常"));}dump_com_error的函数实现如下voiddump_com_error(_com_error&e){_bstr_tbstrSource(e.Source());_bstr_tbstrDescription(e.Description());TCHAR
阅读全文