Re: More Newbie Trouble with Basic Bindings
Re: More Newbie Trouble with Basic Bindings
- Subject: Re: More Newbie Trouble with Basic Bindings
- From: todd ransom <email@hidden>
- Date: Fri, 1 Apr 2005 10:06:16 -0700
Bindings are confusing when you first start to use them. Once you get
used to the idea, and understand what a "key path" is, you will find
it much easier. There are some really good resources out there to help
you, though.
The best one is mmalc's page at
http://homepage.mac.com/mmalc/CocoaExamples/controllers.html He has
well-commented sample code for a bunch of different scenarios. But you
should also look at www.cocoadev.com, www.macdevcenter.com and
developer.apple.com.
TR
On Apr 1, 2005, at 8:56 AM, Kane Dijkman wrote:
Is that how it is supposed to be done?
Currently I have an object with two values (one for each column) that
has an instance for each line in the NSTableView. Each of those
instances is stored in an array that the ArrayController is bound too.
And the array is created in my controller class.
So I am not sure how I would use willChangeValueForKey or what the
"key" is.
Do I need to change the data model?
Do I need a new class that has the array in it?
I am rather confused and have not found an example online that has a
programatically created data model that I have been able to follow and
understand, given my newbie-ness.
Bindings seem to be a great way to do stuff, but the limited amount of
documentation and examples is making it hard for this beginner to get
ones head around it all.
Kane
On Mar 31, 2005, at 9:48 PM, Rémy Schumm wrote:
you send willChangeValueForKey: etc. to the content object containing
the array, right? And which key?
Kane, I ran into the same problems too, in ObjC and in Java...
and the most difficult question: how is this done in Cocoa for Java?
Can it be done at all?!?
-Rémy
Am 31.03.2005 um 23:14 schrieb todd ransom:
willChangeValueForKey:
[change array]
didChangeValueForKey:
--
Rémy Schumm, 8400 Winterthur, Switzerland
Zurich University of Applied Sciences Winterthur - ZHW
Communications and Computer Science
Technical Assistant Software Engineering
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
-----------------------------------------------------------------------
-------------------
"I prayed and prayed to God to give me a bicycle. Then I realized
that's not the way he works. So I stole one and prayed for
forgiveness."
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden