Skip navigation.
 
mlRe: Simple bindings problem
FROM : Martin Linklater
DATE : Sun Jan 06 14:13:23 2008

On 6 Jan 2008, at 09:58, mmalc crawford wrote:
> I'm not sure how many times it's been said now, but to reiterate, 
> "Sometimes you have to write some code".


Heh - indeed. I'm not averse to writing code 8).. I just thought there 
might be a way to do it just using IB and bindings.

> Presumably your App Controller could have outlets to the text field 
> and the array controller...?
> Or you could subclass NSArrayController to add an outlet to the text 
> field...


Yes - I have subclasses NSArrayCotroller and given it an IBOutlet to 
the NSTextField etc. Works a treat.

There do seem to be an awful lot of ways to accomplish what you want 
in Obj-C and Cocoa. I've been writing C/C++ for a living 15+ years, 
and the weaker type constraints and generally more flexible 
architecture of Cocoa are taking a little getting used to. Most of the 
external libraries that I use in my day job are very strict in how 
they allow you to accomplish a certain task - Cocoa feels a lot 
different. It *is* falling into place as I try more things, but one of 
my worries is that I pick up too many bad habits and adopt techniques 
that may be frowned upon by more experienced Cocoa programmers.

Thanks for your patience - it is most appreciated.

Related mailsAuthorDate
mlSimple bindings problem Martin Linklater Jan 5, 10:58
mlRe: Simple bindings problem Martin Linklater Jan 5, 12:46
mlRe: Simple bindings problem Martin Linklater Jan 5, 23:02
mlRe: Simple bindings problem mmalc crawford Jan 6, 01:24
mlRe: Simple bindings problem Martin Linklater Jan 6, 09:22
mlRe: Simple bindings problem mmalc crawford Jan 6, 10:58
mlRe: Simple bindings problem Martin Linklater Jan 6, 14:13