• 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: Determining GUI ivar assignments in IB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Determining GUI ivar assignments in IB


  • Subject: Re: Determining GUI ivar assignments in IB
  • From: Jonathon Kuo <email@hidden>
  • Date: Fri, 14 Nov 2008 11:56:33 -0800

Jonathan, Brian,

Those are interesting ways to find the connections, and they help out a lot. Kewl.

Is there any hope to get an indication set within the little black panel that comes up when you're control-dragging to make the connection, to show what if any connection already exists for that object? That would be a great timesaver.
Thanks!



On Nov 14, 2008, at 11:39 AM, Jonathan Hess wrote:

Hey Jonathan -

If you have a controller "MyController" with an outlet "myButton" and a button "Button (OK)", and you've connected the controller to the button through the myButton outlet, you can see the outlet in Interface Builder in a couple of ways. The first way is the way Brian pointed out, select the controller, control click on it, and then view the outlets section and see what is connected to each outlet. The second way is to control-click the button so that you get a connection display focused on the button. Then if you scroll further down through the display, you'll find the 'Referencing Outlets' section. In that section, you'll see all of the connections that are outlets that come from other objects and reference the object you've focused the connections display on.

Good Luck -
Jon Hess

On Nov 14, 2008, at 11:09 AM, Brian Stern wrote:


On Nov 14, 2008, at 1:58 PM, Jonathon Kuo wrote:

Okay, let me rephrase the question...

I have an NSButton in my MainMenu.nib, and I've connected it to my controller class's "myButton" ivar by control-drag. Repeat this many times. Now, is there any way in Interface Builder to determine what IBOutlet/ivar a particular button has been connected to? If I control-drag from myButton to my controller instantiation, I get a little black menu showing all of the IBOutlets, but none of them are selected or indicated in any way. So far as I can tell, there's *no way* to know or find out what, if any, assignments have been made. Surely I'm overlooking something!

Set the xib/nib window to list view mode. Control-click on the file's owner and a little black window will appear that shows the connections. You can click on all the views in the list as well.



On Nov 13, 2008, at 12:48 PM, Jonathon Kuo wrote:

How can I tell in IB what IBOutlet ivar (in my controller code) my GUI controls are bound to ? I don't see this info in the Connections Inspector pane, but maybe I'm overlooking it... (Xcode 3.1.1, OSX 10.5.5)



--
Brian Stern
email@hidden

_______________________________________________
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: 
 >Determining GUI ivar assignments in IB (From: Jonathon Kuo <email@hidden>)
 >Re: Determining GUI ivar assignments in IB (From: Jonathon Kuo <email@hidden>)
 >Re: Determining GUI ivar assignments in IB (From: Brian Stern <email@hidden>)
 >Re: Determining GUI ivar assignments in IB (From: Jonathan Hess <email@hidden>)

  • Prev by Date: Re: Determining GUI ivar assignments in IB
  • Next by Date: Re: Xcode debug follow fork
  • Previous by thread: Re: Determining GUI ivar assignments in IB
  • Next by thread: Could not find the sub-node whose rename was requested
  • Index(es):
    • Date
    • Thread