objective c - Transfer values multiple text inputs to table view, add table view items as NSManaged Objects -
i getting started obj-c programming , cocoa. here trying accomplish , have gotten stumped on.
i have single table view of managed objects in window1. have "add items" button calls window2 has blank table view (additemstableview) , series of form fields user fill in.
when user fills in these fields , clicks add button in window2, string values of said fields input additemstableview show running list of items preparing add. when commit add, running list instantiate nsmanagedobjects
do need seperate entity within coredata created objects added, transfer objects new entity upon add action? need save them in mutable dictionary , convert dictionary managed objects?
it's important additemstableview contains data time period window open. when add commmited, window closes , table bound core data entity in window1 updates new results. if add items in window 1 pressed again, window2 called empty tableview again.
i've been searching through , other forums days trying find attempting same thing. can point me in right direction?
thank much!
connect add table view original table view via delegate @protocol
can inform other on state , enable react accordingly.
of course use same type of managed object throughout, no interim objects such dictionaries. when added data saved, send object original table processed.
(alternatively can save , rely on e.g. fetched results controller delegate - maybe advanced @ stage.)
Comments
Post a Comment