Re: CoreData/Bindings question
Re: CoreData/Bindings question
- Subject: Re: CoreData/Bindings question
- From: Andy Kim <email@hidden>
- Date: Fri, 16 Sep 2005 22:30:47 -0700
Kind of off topic, but I think still relevant...
Does anyone know how to copy paste stuff in IB without having all of
its bindings destroyed?
It is such a hassle to move things to different views/windows.
- Andy Kim
On Sep 16, 2005, at 10:24 PM, Ryan Stevens wrote:
On Sep 11, 2005, at 11:44 AM, Ryan Stevens wrote:
I'm just now learning to use CoreData and Bindings so be kind...
Say I've got a pretty simple Person Entity with attributes name,
mom, dad (among others). So far so good - I can add and remove
records from my table, etc.
Now say I'd like to show a sort of family tree...
dad
dad - |
mom
child - |
dad
mom - |
mom
I've got the GUI for the family tree set up already and it's even
printing nicely. I've bound the 'child' field to selection.name
and the first 'dad' and 'mom' fields to selection.dad/mom so
they're filled in (or I can easily grab their records and add more
info). Now what's going to be the easiest way to get the next (and
the next-next) generation?
TIA!
Hey yeah, check out how dumb I am...
I got rid of the bindings (so I can beautify/edit the tree w/o
modifying the table data), subclassed NSTextField, added two
outlets and overrode setObjectValue. I use the arg (the person's
name) to get the record, pull the mom and dad's name and pass those
on to the two outlets. Those fields then do the same until there's
either no records or no fields left...
Now all I have to do is pass the 'child' field a name and the tree
gets filled.
_______________________________________________
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