UA-17470720-3

Jump to content


Photo
- - - - -

Master Controller Pushes duplicate of itself when selecting object

view-controllers

  • Please log in to reply
3 replies to this topic

#1 TODD GARLAND

TODD GARLAND

    Experienced Member

  • STV 4.0 Pro
  • PipPipPipPip
  • 69 posts
Reputation: 21
Excellent

Posted 03 December 2014 - 12:38 PM

Gents,

 

I have master controller with names entity and object containing addresses. One to one relationship.

 

If I change the attribute for addresses to array of objects (4.05) the seque to the detail for the addresses works like a charm. However, since I have one-to-one, I don't want an array of objects I want an object. 

 

So when I change the attribute for addresses to an object, and click, the detail controller for the addresses doesn't show, but a duplicate of the master controller is pushed.

Now the interesting thing, when I click on the address object again via the duplicate master, the detail for the address controller appears.

 

The question then is, what idiotic thing have I done to prevent the correct performance, or on the flip side of that, what have I missed, or did not implement.

 

Thanks

 

TRG



#2 Dave Guerin

Dave Guerin

    Forum Master

  • STV 5.0 Pro
  • PipPipPipPipPipPipPip
  • 542 posts
  • LocationIreland
Reputation: 135
Popular

Posted 03 December 2014 - 11:15 PM

Hi Todd,

 

Is this not the same sort of issue as discussed in this thread:

 

http://sensiblecocoa...-relationships/

 

 

In what limited testing I've done it was fixed in STV 4.0.5. 

 

Are you still seeing the issue with 4.0.5?


  • Tarek likes this
Cheers,

Dave

www.dgapps.ie

#3 ozie

ozie

    ¯\_(ツ)_/¯

  • STV 5.0 Pro
  • PipPipPipPipPipPipPip
  • 526 posts
  • LocationAustralia
Reputation: 169
Popular

Posted 04 December 2014 - 12:20 AM

make sure you do a proper clean of the sim and the project.. especially when going to a newer version of STV, else you might see funny things going on because of old version files being cached

 

else try something like this

http://sensiblecocoa...view/#entry9396


  • Tarek likes this

P.S. I hate Swift.. don't talk Swift.. Too old school to learn yet another programming language.


#4 TODD GARLAND

TODD GARLAND

    Experienced Member

  • STV 4.0 Pro
  • PipPipPipPip
  • 69 posts
Reputation: 21
Excellent

Posted 04 December 2014 - 03:21 AM

Gents,

 

Thanks for the feedback. My 4.05 samples were working fine so I knew it was something I was doing. I have large core model and one or two of the attributes matched in the entities. Once I fixed that issue the problem was solved.

 

TRG







Also tagged with one or more of these keywords: view-controllers

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users