[baseten-users] Baseten Examples

Michael Ruepp michael at ruepp.at
Wed Sep 2 02:39:49 EEST 2009


Hi all,

I am quite new to Baseten/Core Data and Bindings. I went through the  
tutorial provided, the introspection and the stickies as well as the  
manual.

No I try to create a simple solution with two tables (table_a and  
table_b. each with just one column called "name" and relationship in  
table_a is called table_b and vice versa), a one-to many relationship  
(table_a one, table_b many) and four buttons (table_a.add.  
table_a.remove and table_b.add table_b.remove):

Data Model is ok, baseten import ok

1. I want to populate two nstableviews. I can create objects in  
table_a, and when I create objects in table_b, these will be in  
relation to the selected object in table_a. So when I select object in  
table_a, I want table_b to show all related objects to object in  
table_a.

I am really stuck, messed around with bindings, tried to populate the  
contentarray of table_b by binding it to the table_a with selection  
and baseten name of the relationship, no success.
Is such a solution possible entirely in interface builder with bindings?

How can I tell the add button of table_b to use the relationship to  
the selected object in table_a and to check first if an object is  
selected?

Can someone lead me on the right track?


2. How can I achive the same setting, but show the data in a  
NSOutlineView or NSBrowser? Do I have to connect to a  
NSTreeController? And how can I do that?

3. I would be very thankful if someone could write the baseten  
tutorial maybe with two tables and a one to many relationship or at  
least with one table entirely in code. There exists so few examples  
for coding, I´d appreciate it very much because the learning curve  
would be much faster when seeing the code and at least more complex  
examples.

Thanks for your kind support,

Mike

_________________
michael ruepp
michael at ruepp.at
fon +41 76 593 04 49
skype michaelruepp

CONFIDENTIALITY NOTICE
This message (including any attachments transmitted with it) contains  
confidential information and is intended only for the individual named  
herein. If you are not the herein named addressee you should not  
disseminate, distribute, copy or otherwise make use of this message.  
Please notify the sender immediately by e-mail if you have received  
this message by mistake, and delete it from your systems.




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basetenframework.org/pipermail/baseten-users/attachments/20090902/4a8b40ae/attachment.htm>


More information about the baseten-users mailing list