Archive for the ‘iphone web app开发’ Category

使用Ruby:rbiphonetest 来处理iphone apps 应用的单元测试

星期二, 08月 19th, 2008
Everything to love about Ruby: the concise, powerful language; the sexy testing frameworks; and finally, the people.Everything to love about Objective-C: hmmm; well…; and finally, its the only high-level language you can use to write iPhone apps.

On iPhone 2.0, to arrive on the 11th of July, you cannot run RubyCocoa. But you can run it on your Mac, so let’s use it to unit test your Objective-C classes. This tutorial shows you how to get started using a new project rbiphonetest [GitHub | Lighthouse | Google Group]

If you followed some of my recent tweets, this project was previously called “iphoneruby”. And alas, the screencast also calls it “iphoneruby” but that was a crap name. People thought it was a way to run Ruby on the iphone. I can’t do that yet. So, a far better name is ‘rbiphonetest’. [track on summize]

Even if you’ve never touched Objective-C, Cocoa, the iPhone SDK, nor RubyCocoa I recommend watching the video anyway. It should give you hope that if you make the transition to iPhone development you don’t have to go alone without Ruby: your trusty swiss army knife of language/libraries/tools.


Unit Testing iPhone apps using Ruby from Dr Nic on Vimeo.
You cannot run RubyCocoa on an iPhone, but you can use it for your unit testing of your Objective-C classes. This tutorial shows you how to get started.

Project at github.com/drnic/rbiphonetest/

NOTE: the project has been renamed to ‘rbiphonetest’ and not ‘iphoneruby’ as in the video.

Installation and Usage

To summarize the video, but change ‘iphoneruby’ to ‘rbiphonetest’, you install the framework via RubyGems:

sudo gem install rbiphonetest

Then change to your project’s folder and install the test framework:

rbiphonetest .

Finally, for each generic, non-UIKit-framework-using class you want to test:

script/generate model WidgetModel

Then write your tests in test/test_widget_model.rb

Sun正在把Java带到iPhone上面

星期三, 08月 6th, 2008

今天看到一则消息,说是 Sun 已经研究了把 Java 带进 iPhone 的可能性,现在可以确定的是ava Micro Edition (ME) 应该很快就有 iPhone 的版本了,届时应该既有的 Java ME (J2ME) 的程序可以快速地导入 iPhone。

另外根据这篇文章,未来也不排除导入 Java SE 以及 Java FX 的技术,当然,有了这句话:

“It’s a new platform for us. We might be able to bring additional technologies onto the iPhone and the iTouch,”

应该是 iPod Touch 也有机会能跑java了Java 了

 盼望着iphone 3G进入中国,最好是低于3000RMB 哈哈~~   美国售价是199美元,

iphone web开发唯一发现的一本书

星期一, 07月 21st, 2008

作者:Richard Wagner
在老外网站上发现的(Professional+iPhone+and+iPod+Touch+Programming.pdf),PDF电子文档居然还收费..晕倒 ,Google一下(顺便提下:狗狗使用新的域名www.g.cn好些日子-不错 我很喜欢 我挺你,让我从百度www.baidu.com 转型到狗狗上找东西,就是冲着你的域名短~~忽忽  让我少打两个字母,狗狗买这个域名值了 相信不少人都和我一样的,要是百度也弄个www.b.cn 哪就好咯 不过这个www.b.cn好些被某些令人讨厌的抢注机构给K了。)
果然强大一下就找到了下载的地方 。

现在转到本网站来 希望朋友们直接右击下载,不要使用迅雷等p2p软件下载。  http://www.roredu.com/up_files/Professional+iPhone+and+iPod+Touch+Programming.pdf

     恩这本书不错,前台方面的讲的很详细 有同道中人 留言谈下你们开发iphone web 遇到的问题。