|
It is currently Thu Feb 09, 2012 12:31 am
|
View unanswered posts | View active topics
| Welcome |
|
Welcome to RHAPSODY4YOU
You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, respond to polls, upload and download content, and access many other special features. Registration is fast, simple, and absolutely free, so please, register to join our community today. |
 |
|
 |
|
| Author |
Message |
|
bitblit
|
Post subject: Automatic setting of association ends Posted: Fri Dec 26, 2008 9:20 pm |
Joined: Wed Dec 10, 2008 10:51 pm Posts: 138
|
|
I have 3 instances of two sets of classes with a 1 to 1 association between the two. I would like one instance of one class to be associated to another instance of the other class. In other words, 3 1-to-1 associations. I noticed Rhapsody doesn't initialize this association automatically. Even the easy ones with a single instance. Is there a way to define which object is associated with which from within the model, or do I have to do this at initialization within the code?
|
|
|
|
 |
|
BorgesW
|
Post subject: Posted: Mon Jan 05, 2009 2:22 pm |
Joined: Fri Dec 05, 2008 4:55 pm Posts: 15
|
|
I'm not sure if I fully understand your problem, but I'll give it a try. Firstly, associations do not initialize/instantiate pointers. They only define them. So drawing an association will define a pointer to an object in your .h file (by default).
In order to instantiate the association, you need to draw a link (green line), between the two objects. The link should automatically match itself up with the association you've already drawn and put in the correct instantiation code. You can double check that the link is matching up correctly by right-clicking on it and then hovering over "Select Association to instantiate". You should then see a check mark next to the association you've drawn.
|
|
|
|
 |
|
bitblit
|
Post subject: Posted: Tue Jan 06, 2009 6:43 pm |
Joined: Wed Dec 10, 2008 10:51 pm Posts: 138
|
|
Thanks. I know that now. I replied to a similar post of mine with the same information.
|
|
|
|
 |
|
|
 |
|
 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|