Home | About | All Things STL | Dev | Investing | iPad | Links | Site Search | StockInsight* | Twitter | USX China | Login | Register

Ads

RSS Feed for This PostCurrent Article

Objective-C: first impression

I like Apple products: I had iPod Nano (2nd gen) since 2007, and I owned MacBook (white plastic), and bought iPhone for my wife this Jan. All bring us very good user experience. That is not to say, Apple products are flawless. IPod and iPhone will die once a while, but nothing catastrophic as it does not erase music etc. MacBook has minor problems too such as “could not come back to life after hibernate”, and the heat generated by battery. But I like both my old iPod nano and my fairly new MacBook (the user interface is just beautiful :D

Ok, now back to the hard part. One reason I bought MacBook is I want to learn Objective C (the programming language on Mac OS X) and Cocoa (UI framework). My first impression (after almost a year, on and off) on Objective C and Cocoa (using XCode) is: very unforgiving, like Steve Jobs :-(

Two little stories from my own study, both on Chapter 9 NSUndoManager

1) I forgot to add [self startObservingPerson:p] at
(void)insertObject:(Person *)p inEmployeesAtIndex:(int)index

This gives me a runtime error took me 3 months to figure out (I googled for answer, but could not find anything directly address the problem, finally I found my stupid mistake).

2) More recently, I could not drag the tableView outlet (of File’s Owner) to the table view, until I found at p93, Chapter 5 Target Action, “Debugging Hints”.

NSTabView *tableView instead of NSTableView

Aha !!!

Trackback URL

del.icio.us

Save to del.icio.us

Ads

Google
 
Web www.stlplace.com

RSS Feed for This PostPost a Comment

// 最新推荐 Noteworthy
  • NBR at PBS (Oct 2009 through Sept 2010): Your Mind & Your Money
  • Bogle WSJ op-ed 01/08/2009: 6 Lessons for Investors
  • Buffett on Market 12/10/2001: Whats in the future for investors
  • JoelOnSoftware 04/06/2000: Things You Should Never Do, Part I
  • Google Ad

  • blog

  • China

  • Dev

  • finance

  • Links

  • Major

  • Saint Louis

  • Shanghai

  • Meta

  • Author作者

    "古人云,人不自信谁人信之." Others won't believe in you unless you believe yourself. --Chinese proverb

    Hello, world :-) I am not another stock expert. I am an ordinary guy who believes: by lifetime learning, indepenent analysis and disciplined investing, little guys can achieve great return.

    I grew up in China. Currently I am working toward CFA level II. Here I'm blogging about business, finance, stocks, other fun stuffs in the US and China. Comments and Email are welcome.

  • Disclaimer声明

    See Disclaimer Page
  • Valid XHTML 1.0 Transitional