Re: Simple bindings problem
Re: Simple bindings problem
- Subject: Re: Simple bindings problem
- From: Martin Linklater <email@hidden>
- Date: Sun, 6 Jan 2008 13:13:23 +0000
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.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden