Re: Even More Bindings!
Re: Even More Bindings!
- Subject: Re: Even More Bindings!
- From: J Nozzi <email@hidden>
- Date: Fri, 16 Jul 2004 23:22:39 -0400
Thanks! Exactly the push I needed. I need to think of this particular
data structure as more of a relational database - an important lesson.
Neat.
As to updating the container-to-asset array, I'm sure that can be
done with manual bindings. Scott? Mmalc?
- J
On Jul 16, 2004, at 8:16 PM, Mont Rothstein wrote:
On 7/16/04 4:55 PM, "J Nozzi" <email@hidden> wrote:
Any asset can be in any container (though only once per container).
I'm not sure how this advice applies. ;-) It very probably does, I
just
don't see it. Any more suggestions?
- J
OK, so it is a many-to-many relationship (multiple containers each with
multiple assets).
What you need looks like this:
ContainerArray<->>containerToAssetArray<<->assetArray
The containers won't directly store asset IDs and he assets won't
directly
store any container IDs.
I'll be honest that I'm not certain how to automatically populate the
containerToAssetArray via bindings, you may have to do it manually.
However, once you have it created, you can get to any attribute in the
assets by following selection.containerToAssetsArray.assetAttribute.
The
opposite, asset to container path will also work.
If that isn't clear yet, let me know.
-Mont
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.