• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: More Newbie Trouble with Basic Bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: More Newbie Trouble with Basic Bindings


  • Subject: Re: More Newbie Trouble with Basic Bindings
  • From: Kane Dijkman <email@hidden>
  • Date: Fri, 1 Apr 2005 07:56:48 -0800

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


  • Follow-Ups:
    • Re: More Newbie Trouble with Basic Bindings
      • From: todd ransom <email@hidden>
    • Re: More Newbie Trouble with Basic Bindings
      • From: Scott Stevenson <email@hidden>
  • Prev by Date: Re: bindings...
  • Next by Date: Re: NSToolbar Problem
  • Previous by thread: Re: A more attractive NSSlider?
  • Next by thread: Re: More Newbie Trouble with Basic Bindings
  • Index(es):
    • Date
    • Thread