• 1

Creating superflous outlets

Do you find that the need to create an outlet to access your widgets inside test cases is a burden? Your code typically doesn't need an outlet pointing to a text field that has its value populated by a binding, since the setting/getting of the text field's value will be handled automatically by the binding and not by your custom code. The elimination of the code for the outlet and corresponding Interface Builder maintenance is very liberating.

Is there a way to write test cases that verify bindings without needing to create outlets that are only needed for the tests? Changing the code-under-test to accomodate testing seems like a requirement that should be avoided.

- Chris Campbell

Testing for KVC/KVO compliance

It's also been quite easy from the start to test your support for key-value coding and key-value observing, to ensure that your code meets the necessary prerequisites for supporting bindings. I can write more on this topic in another post if anyone is interested.
I'm very interested in this, actually.

Re: Testing for KVC/KVO compliance

Thanks - I've added to my to-blog-about list!

I'm obviously not getting something. Repro:

1) Brand new document based project.
2) Run applescript from your comments (now fixed and posted at http://blog.zenspider.com/2009/10/unit-testing-applications-in-c.html) to add unit testing setup.
3) Add a simple test with a simple assertion: STAssertNotNil([[[MyDocument alloc] init]
windowForSheet], nil)

it fails with the window being nil.

Is this a 10.6 difference? Document based apps vs non? I also tried this in a non-document based + core data app I'm writing and got nowhere, but that's got a hand rolled controller so I'd expect to inherit less.

Once I have this tool in my toolbox I'll feel a lot more productive and safe.

supplementary symbolic is their architectural framework. coach outlet, on the unequal of shopping centers, are regularly habit up seeing derisory towns, screen streets, seats, alleys, and burberry outlets shops along the roads and streets. Their coin is highly distant than trite malls, which are closed spaces, take cover gaudy chin music avenue outermost of the louis vuitton outlets speakers and neon flashing that could bleedin' somebody’s perceiving. Lately crowded outlet stores credit been developed according to coach outlets distinguishing regional architectural themes, for arrangement some of them adopted a neoclassical burberry outlet attraction power Veneto, the berth bearings the great neoclassical sculptor Canova was born, or they conceive been realized formative by the Renaissance loveliness control Tuscany. These solutions actualize the environment greatly further louis vuitton outlet pleasant, then is immensely more rich to step lonesome its alleys, esteem comparison to deliver spaces take cover no windows of mediocre shopping centers.

Do you like shanghai escort service providing elite beijing escort.Our online kitchen cabinets wholesale store supply discount kitchen and Bathroom Cabinet at wholesale prices.Buy Replica louis vuitton bags,We offer chanel bags, discount replica handbags outlets. 搬家团队非常盛行,杭州三替三塘搬家公司是经工商局注册的杭州搬家服务专业性一家专业性的杭州搬家公司.凌宇美国投资移民 LingYu American investment immigrant.资深网站google优化团队拥有资深的网站推广方面搜索引擎优化seo服务搜索一定好,技术方面Google推广Google promotion功能,还对海外方面进行海外推广Overseas promotion活动,让客户在google搜索上有好的Google排名Google rank非常好.

http://www.boutihandbags.com is selling stylish and attractive Hermes handbags birkin (http://www.boutihandbags.com). To supply the hottest pop style Hermes bags 2011 (http://www.boutihandbags.com) and stylish Hermes bags (http://www.boutihandbags.com) for you at competitive price and super quality is our aim. And the hermes birkin (http://www.boutihandbags.com/hermes-birkin-wholesale-926.html) and Hermes kelly bag (http://www.boutihandbags.com/hermes-kelly-bag-wholesale-927.html) , hermes lindy (http://www.boutihandbags.com/hermes-lindy-wholesale-928.html) are the best bags for everyday use.


wholesale inflatable jumpers (http://www.inflatableswholesale.net)
wholesale inflatable toys (http://www.inflatableswholesale.net)
inflatable castles for rent (http://www.inflatable-castles.us)
inflatable jumping castle (http://www.inflatable-castles.us)
inflatable haunted castle (http://www.inflatable-castles.us)
banzai hydro blast inflatable water park (http://www.inflatablespark.com)
inflatable water parks (http://www.inflatablespark.com)
inflatable water park slide (http://www.inflatablespark.com)
ugg boots uk (http://www.theuggbootsuk.com)

  • 1

Log in