• 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: CoreData/Bindings question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >CoreData/Bindings question (From: Ryan Stevens <email@hidden>)
 >Re: CoreData/Bindings question (From: Ryan Stevens <email@hidden>)

  • Prev by Date: Re: CoreData/Bindings question
  • Next by Date: Universal Binary and Backwards compatability
  • Previous by thread: Re: CoreData/Bindings question
  • Next by thread: Re: CoreData/Bindings question
  • Index(es):
    • Date
    • Thread