• 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: Jonathan Hess <email@hidden>
  • Date: Fri, 14 Nov 2008 11:39:12 -0800

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

_______________________________________________ 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
  • Follow-Ups:
    • Re: Determining GUI ivar assignments in IB
      • From: Jonathon Kuo <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>)

  • Prev by Date: Re: Determining GUI ivar assignments in IB
  • Next by Date: Re: Determining GUI ivar assignments in IB
  • Previous by thread: Re: Determining GUI ivar assignments in IB
  • Next by thread: Re: Determining GUI ivar assignments in IB
  • Index(es):
    • Date
    • Thread