On Fri, Apr 25, 2008 at 5:13 PM, Yann Disser <[EMAIL PROTECTED]> wrote:
> I realize that my buttons are generally not affected by the changes I make
> to the bool-values. Only the other way around.
On Sun, Apr 27, 2008 at 10:59 AM, Yann Disser <[EMAIL PROTECTED]> wrote:
> The problem was, that
and, to add another addendum..
in the case of some controls (text fields and text views for example)
not using a controller _can_ cause you problems, and your app to lose
data.
anything that doesn't immediately send its value to from a control to
the data model upon editing requires some
Just a little addendum here...
You aren't strictly _required_ to use an NSObjectController (or other
NSController subclass), but in practice it is generally better to do
so. Yes, you can bind your views directly to your controller classed,
but that's not really the ideal pattern - see http:
Ok, I finally solved my problem...
I do NOT need an NSObjectController! Perhaps you got me wrong about
what I tried to accomplish.
The problem was, that I was binding the value of my buttons to bools
that did not directly belong to my controller class but to an
attribute of my controller
On Apr 25, 2008, at 7:37 PM, Yann Disser wrote:
Are you binding via an NSObjectController?
No, should I?
Yes (or one of its subclasses). You have to make sure "everyone is
on the same page" as mindless corporate and government automatons are
wont to say. In Cocoa, this is done easiest
No, should I?
Yann
On 25. Apr 2008, at 18:32, Hamish Allan wrote:
On Fri, Apr 25, 2008 at 5:13 PM, Yann Disser <[EMAIL PROTECTED]> wrote:
I realize that my buttons are generally not affected by the changes
I make
to the bool-values. Only the other way around.
Can I not bind bools to the v
On Fri, Apr 25, 2008 at 5:13 PM, Yann Disser <[EMAIL PROTECTED]> wrote:
> I realize that my buttons are generally not affected by the changes I make
> to the bool-values. Only the other way around.
>
> Can I not bind bools to the value of NSButtons? Or am I missing something
> else?
Are you bind
I realize that my buttons are generally not affected by the changes I
make to the bool-values. Only the other way around.
Can I not bind bools to the value of NSButtons? Or am I missing
something else?
Thanks for your help,
Yann
Yann Disser wrote:
I have five textured NSButtons that are s
I have five textured NSButtons that are set to operate in "On Off"
mode. All of them are value-bound to different bools in my application.
Somehow the first button starts in the "On"-state and the others in
the off state, no matter which button I bind to which bool. If I
remove the bindings,