On Mar 1, 2010, at 4:40 AM, Joanna Carter wrote: > I have discovered that adding a private ivar of type id to a class makes it > visible as an IBOutlet in Interface Builder. > > @interface MyController : NSObject > { > @private > id anIvar; > > ... > } > > @end > > Is this a known bug, or expected behaviour? > > Joanna
Not a bug --- a Feature . . . That is a legacy of Interface Builder on NextStep, from the days before the IBOutlet marker was added. If you care to try it out, you will find that a method declaration of this form: - (void)doSomething: (did)sender; is viewed by Interface Builder as an IBAction method to which you can connect from some control . . . That's also a legacy feature. Cheers, . . . . . . . . Henry www.nonatomic-retain.com _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com