Newbie binding/predicate issue
Newbie binding/predicate issue
- Subject: Newbie binding/predicate issue
- From: Dominik Pich <email@hidden>
- Date: Fri, 6 Apr 2007 03:36:17 +0200
Hello,
sorry if the question sounds stupid but Im still figuring out all
this KVC/KVO/Bindings technology.
My issue is not a crash or something I cant get to work but I wonder
if I do apply the techniques correctly.
My state is the following.
I want to have a POOL of PLAYING CARDS and a Number of PLAYERS.
1. via (a table) lists all the stones and is bound to a 'global' pool.
2. view (a popup button) selects the player (or none) for which to
list stones
so far so good :: Master-Detail
but
- all stones are NSDictionaries and have a OWNER key set to the name
of the player it belongs to.
- the filterPredicate of the table is bound to the playersController
and is 'owner like "name"'
The problem is:
1. small :: NAME is a string.. of course I could make it an ID but...
cant I use the object there?
2. later I will have 'tricks' (my dictionary came up with that...
number of cards played every round :)) and I somehow want to keep
track which Cards are in what Trick and what trick...
How would I do that? Should I have another ID there in my 'global' pool?
Thank you,
Dominik
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden