Archive for the ‘Apple & Mac’ Category

21
Mar

iPad 开发初探

   Posted by: 边城浪子 Tags: , , , , , ,

因为 Apple 宣布开始接受 iPad App 的 Review,而且要赶在 27 号之前,所以我着急忙慌的将之前的 iPhone App 做一下改装。本来没想这么快就开发 iPad App,所以只能借助官方的 iPad Programming Guide 来进入。

之前在小屏幕上,不断的切换 UIView,倒是很方便的,而且内存泄露也很好查。现在这些 PopoverController、RootViewController、DetailViewController 以及 SplitViewController 混在一起,之前跑得好好的代码又出现了轻微的泄露,害得改了半天。

开发 iPad App,如果不常使用 delegate 的话,就会比较麻烦了。比如你要写 PopoverView,那么如果不通过 delegate(或者用 notification,不过没必要),那么就会费很大的劲儿。感觉上,现在 iPad App 更像是在开发一个真正意义上的应用了。

在我的第一个 iPad 应用中,除了 SplitView 自己有一个 Popover 以外,我自己还有一个 Popover,当用户按下上面的按钮的时候,需要关闭 Popover 并且将更改的数据传回主程序,同时刷新 RootViewController 里面的 tableView。以前我直接将数据传给一个 UIView,然后再 Push 它就可以了,现在则需要用 delegate。下面是核心的代码,其实很简单喽:

#pragma mark -
#pragma mark 选择代理
-(IBAction)dateSelectorButtonPushed:(id)sender {
 
	// 获取 target
	DateViewController *parent = (DateViewController *)sender;
 
	// 重新读取数据
	RootViewController *rootViewController = 
	     (RootViewController *)[[[UIApplication sharedApplication] delegate]
			     rootViewController];
	[rootViewController setDateMonth:parent.monthNow Day:parent.dayNow];	
	[rootViewController readContent];
 
	// Dismiss
	[self.popoverController dismissPopoverAnimated:YES];
	self.popoverController = nil;	
}

总的来说,移植还是满快的,我已经提交到 iTunes Connection 去了,上传界面多了 iPad 的截图文件上传,其它倒也没看见什么大变化。现在 Waiting For Review 了。

28
Jan

Apple iPad

   Posted by: 边城浪子 Tags: , ,

昨晚本来想挺到两点,看一下现场的直播,后来想了想还是决定睡了,对于第二天早上起来就能看到最新的消息,也觉得不错。

结果,半夜三点多,共同封闭开发的同事们上楼来,把我吵醒了。我知道他们是刚看完直播,不然不会这么晚,于是忍不住拿起 iTouch 上网去看一看。结果很失望,不知道为什么,可能是期望太高了吧,看见新出来的 iPad 总觉得不是很舒服。

今天中午看到了一些实际操作的视频,想法却突然有了改变:苹果的 UE 还真是做得很到位啊,一下子对这款 iPad 充满了期待。

回到家以后的第一件事应该就是下一个新的 SDK,感受一下 iPad 模拟器吧?

6
Jan

Adobe iPhone 上面要发威

   Posted by: 边城浪子 Tags: , , , ,

今天收到 CS5 Beta 测试的例行邮件,又有新的消息出来。新消息无疑会极大程度上激励开发者,比如我,就琢磨着把之前搁置的一个小项目拿起来。

由于 NDA 的缘故,不能说什么了,不过,相信很快大家就会在 AppStore 中看到更多的 Flash 作品了。

转帖的,但是此消息比较震惊啊!

Earlier today, Adobe revealed Flash Player 10.1 for smartphones, the company’s fastest and most efficient form of flash for mobile phones yet. Android, Symbian, Windows Mobile, webOS, BlackBerry…all of these phones will support Flash Player 10.1 by mid-2010. But the iPhone was nowhere to be found.

The problem: Adobe and Apple have been playing a painful game that has resulted in a lack of Flash support for red-hot smartphone. Apple doesn’t seem enthusiastic about adding Flash support, Adobe isn’t pushing hard enough. But at the Adobe MAX Conference, the rich Internet application software company announced support for Flash. Sort of.

It’s actually a new addition to Adobe Flash Professional CS5. Adobe has added the ability for Flash developers to export their work into iPhone app format, without the need to rebuild the entire app from scratch. You could soon see your favorite Flash games and web apps in the iTunes App Store.

The announcement is a great one for developers who have had to rebuild code to make their apps iPhone-friendly. However, this does nothing to place Flash inside the iPhone Safari browser. Until this happens, we won’t be satisfied. Flash is a core component of the web. Hopefully Apple realizes this sometime soon.

From:http://mashable.com/2009/10/05/iphone-flash/

29
Jan

Apple 的调查问卷

   Posted by: 边城浪子 Tags:

今天一早就接到 Apple 发来的调查问卷,怒长的一个。作为水果用户,就硬着头皮配合填一下吧,结果发现里面有些内容是关于便携式媒体播放器的,另外还问到常看的电视节目、杂志,还有常用的支付方式。这个不免给人一种感觉,那就是水果公司可能有准备要开拓中国的内容市场。是啊,就算你打算用信用卡结账,在 iTunes 上面还是被拒之门外,这简直是一种歧视啊?莫非,现在时机开始成熟了?不知道,拭目以待吧。

10
Jan

iPhone !!!

   Posted by: 边城浪子 Tags: , ,

iPhone如果说有什么东西是真正“千呼万唤始出来”的话,我想在今年,能够被这么称呼的东西只有 Apple 的 iPhone 了,M$ 的 Vista 注定仍旧是个垃圾。在今天的 Macworld2007 上,乔布斯向大家发布了 iPhone。

用 Keynote 上的一句话来介绍的话,就是:“苹果重新发明了电话”:iPod + Phone + Internet。Multi-Touch 技术使得用户可以不用触控笔,在屏幕上进行快速的输入,3.5 吋屏幕,高解析 320 by 480 at 160 ppi,115 x 61 x 11.6mm,135 grams,GSM,200 万像素相机,WiFi(802.11b/g) + EDGE + Bluetooth 2.0,手机屏幕上只有 Home 这一个按键,--苹果的简约是大家所熟悉的。内建 4 到 8 G 内存,而且令人惊讶的是:运行在 OS X 上!还有 Safari 浏览器--这简直就是传说中的梦幻手机!但是却是真实的从乔布斯口中发布出来! Read the rest of this entry »

8
Nov

Mac 的 safe mode

   Posted by: 边城浪子 Tags: ,

某个朋友在和我对话的时候,突然消失在比特海。

过了一会儿,有短信发来:“我的苹果死机了,进不去啦。”

小 case,我查了下资料,打电话过去:“按住 Shift 开机,进入 safe mode。再重新启动”

过了一会儿,有一、两分钟吧。貌似能进 safe mode 了。

我说:“那好,我挂了哈,启动了通知一声”。

两分钟后,我突然想起来 Read the rest of this entry »

13
Sep

iTunes 7.0

   Posted by: 边城浪子 Tags: , ,

今天装上了最新发布的 iTunes 7,废话不说,上一张图片:我的 CD 架,馋死 pawaca 的 CD 架 Read the rest of this entry »

13
Sep

我终于成了 Fans?

   Posted by: 边城浪子 Tags: ,

Apple很遗憾,我一直没有机会成为一个真正意义上的 Fans,我想如果黄家驹还健在的话,或许我有可能成为 Beyond 的真正 Fans,可惜,我再也没有这机会了。

自从我买了 iPod 以后,就对水果公司赞不绝口,虽然我在几年前就工作在一台 PC、一台激光打印机以及一台 Mac 面前,但是一直没找到感觉。而当我拥有了一台自己的 MacBook 之后,我发现自己真的变成了一个 Fans。

首先,我会喋喋不休的向朋友们推荐水果公司的产品,并且告诉他们水果的 MacOS 有多来劲儿。MacBook 的推出,是对个人电脑市场的一个巨大冲击,积蓄了多年的力量仿佛在一瞬间释放出来,让人赞叹不已。 Read the rest of this entry »