Re: Even More Bindings!
Re: Even More Bindings!
- Subject: Re: Even More Bindings!
- From: Mont Rothstein <email@hidden>
- Date: Fri, 16 Jul 2004 17:16:03 -0700
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.