Am Do,21.08.2008 um 10:51 schrieb Jon Hess:

Hey Amin -

It's a compatibility feature that, I believe, dates from before the existence of IBOutlet. All id typed ivars without a leading underscore are available as outlets. There are similar rules for actions. I For example, IB will treat any method with a single id typed argument named 'sender' as an action.

From my phone -
Jon Hess
Incredible! I'm developing with IB for more than five years and have never realized that. Probably the reason is, that I hate id-typed ivars and use them very rarely.

Thanks!
Amin



On Aug 21, 2008, at 12:01 AM, Negm-Awad Amin <negm- [EMAIL PROTECTED]> wrote:

Hi

before I report this, I want to check, whether I misunderstood something.

I've a window controller subclass with three outlets. Additional the class owns to ivars, one of them typed id. These ivars are not marked as outlet.

@interface GroupsWC : NSWindowController {
 IBOutlet NSArrayController* personsController;
 IBOutlet NSArrayController* groupsController;
 IBOutlet NSOutlineView*     sidebarView;

 NSIndexSet* selectionIndexes;
 id selectedGroup;
}

In the IB3 I see the ivar typed id and can connect it. Is this the intended behaviour? (I accidentally connected this "outlet" to a view.)
http://www.cocoading.de/webspace/id_outlet.tiff

Cheers,

Amin Negm-Awad
[EMAIL PROTECTED]




_______________________________________________

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/jhess%40apple.com

This email sent to [EMAIL PROTECTED]

Amin Negm-Awad
[EMAIL PROTECTED]




_______________________________________________

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 [EMAIL PROTECTED]

Reply via email to