Re: what are outlet collections?
Re: what are outlet collections?
- Subject: Re: what are outlet collections?
- From: danton chin <email@hidden>
- Date: Tue, 30 Nov 2010 08:52:53 -0500
I've attached a picture of the drop down that Matt is referring to. In the Interface Builder guide on page 142:
"In Mac OS X and in iOS 3.2 and earlier, you can connect an outlet to only a single object. However, starting with iOS 4.0, you can connect an outlet to multiple objects. To do so, use the IBOutletCollection keyword. For example, to connect a view controller to multiple objects of type UILabel, you could add the following code in Xcode:
@interface MyController : UIViewController {
IBOutletCollection (UILabel) NSArray* multipleLabels;
}
@end
"
Regards,
Danton Chin
On Tue, Nov 30, 2010 at 6:04 AM, Bill Cheeseman
<email@hidden> wrote:
On Nov 29, 2010, at 11:32 PM, Matt Neuburg wrote:
> Sorry - here are more explicit instructions. You need to be editing an actual nib (like from a real Xcode project, so you have some classes to work with): in the Library window switch to Classes. Halfway down that window there is now a pop-up menu (where there used to be a segmented control) and one of the items is "Outlet collections". I want to know what that means; I've never heard of an outlet collection, and I can't find a reference to it in any docs or release notes.
On my computer, I see an "Outlets" menu item, but not an "Outlet collections" menu item. There are 4 menu items: "Inheritance," "Definitions," "Outlets," and "Actions." When "Outlets" is chosen, I see in the pane under the menu a number (zero, one, or more) of outlets, which are apparently all of the outlets declared in the selected class. That's certainly what it is when I'm looking at one of my own classes, and it appears to be the same principle when I look at Cocoa or other classes.
--
Bill Cheeseman - 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
Attachment:
OutletsCollections.jpg
Description: JPEG image
_______________________________________________
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