• 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: Creating segues
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating segues


  • Subject: Re: Creating segues
  • From: Kyle Sluder <email@hidden>
  • Date: Mon, 14 Sep 2015 16:32:42 -0700

On Sep 14, 2015, at 4:24 PM, Quincey Morris <email@hidden> wrote:

On Sep 14, 2015, at 16:06 , Carl Hoefs <email@hidden> wrote:

I guess I was exploiting undocumented/obsolete Xcode GUI behavior and getting away with it until now.

I think the missing information here is that in IB you’re working with abstractions, not Cocoa classes. In particular, note that when you drag what IB calls a (vanilla) View Controller onto the canvas, what it puts there is a *scene*, which doesn’t really exist. (It isn’t a Cocoa class, nor is it represented in your app as a specific object. AFAIK)

IB knows in which pairs of scenes you can drag segues between controllers (in your original way), and (vanilla) View Controller to View Controller isn’t one of the pairs.

You can always create a segue between any two scenes, regardless of what kind of view controllers they contain. But you’re right that  only certain view controllers support dragging from their content areas to create a segue—the ones which can be the source of a relationship segue. The rest need to come from one of the proxies.

In the video for WWDC 2015 session 215, Tony creates a so-called “manual segue” to the “delete confirmation” view controller.

--Kyle Sluder

 

A similar point came up recently in regard to bindings. From any given UI object and binding, you can only connect it to a few possible kinds of targets. That’s not because other bindings couldn’t be established by force in theory, but just that IB is protecting you from yourself. 

(Cue PSA ending with kids waving at a smiling IB, “Thanks, IB!”)

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Creating segues (From: Carl Hoefs <email@hidden>)
 >Re: Creating segues (From: Kyle Sluder <email@hidden>)
 >Re: Creating segues (From: Carl Hoefs <email@hidden>)
 >Re: Creating segues (From: Kyle Sluder <email@hidden>)
 >Re: Creating segues (From: Carl Hoefs <email@hidden>)
 >Re: Creating segues (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: Creating segues
  • Next by Date: Re: ENABLE_BITCODE=NO and assistive applications
  • Previous by thread: Re: Creating segues
  • Next by thread: Error when trying to submit using Xcode 7 GM
  • Index(es):
    • Date
    • Thread