• 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: Can't make an adaptive segue push
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't make an adaptive segue push


  • Subject: Re: Can't make an adaptive segue push
  • From: Roland King <email@hidden>
  • Date: Fri, 06 May 2016 21:30:15 +0800

> On 6 May 2016, at 20:49, Roland King <email@hidden> wrote:
>
> I have a navigation controller as the detail pane of a UISplitView (pretty much right from the standard splitview template).
>
> Now I want to push another view onto that stack. I have the view, I’ve dragged out a segue to connect it up however none of the available ‘adaptive segues’ do a ‘push’. Even the ‘Show (Push)’ one doesn’t push, it replaces the view entirely and removes the nav controller.
>
> If I use the deprecated ‘push’ segue, then it pushes, but it’s deprecated and gives me a handy yellow triangle warning me of such.
>
> Am I falling foul of the splitview controller’s adaptation here somehow? I’m a little hazy on the way adaptive segues work but it feels like the ‘show’ is being sent up to and interpreted by the splitview controller and doing a replace on the detail pane instead of a push. But it could be something entirely different.
>
> I could hook the button up to make the new view controller and push it instead of using a segue, but I’d rather not. Is there a way I can make ‘Show’ do a ‘Push’?

As usual, asking the question made me think about it and get the answer. Override showDetailViewController:sender: to do the push (or something else if appropriate in that adaptation which in this case is always push). If not, the targetViewController is found which is the splitview controller which does a detail pane replace.

This stuff sometimes almost makes sense, if you don’t think about it too hard.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >Can't make an adaptive segue push (From: Roland King <email@hidden>)

  • Prev by Date: Can't make an adaptive segue push
  • Next by Date: Re: Bind NSTableView to array of dictionaries in user defaults
  • Previous by thread: Can't make an adaptive segue push
  • Next by thread: NSTableView is messaging zombie delegate
  • Index(es):
    • Date
    • Thread