[Mono-osx] MonoMac - Cocoa Bindings question
Raul Bravo
bracaboy at gmail.com
Thu Feb 24 09:27:44 EST 2011
Hi,
I'm using cocoa for the first time (i'm using it through MonoMac), so I'm
having problems understanding how I can do this:
I have some text fields with some data binded to it (using Cocoa bindings,
and a Object Controller), the problem is that I want to making changes in
those textfields saved
only when I press a button, but I can't figure how I can do this, as for now
when I change the text in a textfield those changes are automatically
commited when I leave the textfield..
I've attachted a sample project.
In this project, as soon as you run it, a new window with some textfields
with some data binded to it will appear. I've changed the object properties
setter, so when any property setter is called
a MessageBox will appear to let you know that the object is being updated..
So if you run the app, and change any textfield, you will notice (with a
messagebox) that those changes are being saved as soon as you change from
one textfield to another one..
ps. Sorry but english is not my main language :/
Thanks
BraCa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20110224/23adffa2/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cocoa_bindings.zip
Type: application/zip
Size: 24066 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-osx/attachments/20110224/23adffa2/attachment-0001.zip
More information about the Mono-osx
mailing list