• 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: IB displays a non-outlet (Bug or feature?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IB displays a non-outlet (Bug or feature?)


  • Subject: Re: IB displays a non-outlet (Bug or feature?)
  • From: Jon Hess <email@hidden>
  • Date: Thu, 21 Aug 2008 01:51:17 -0700

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

On Aug 21, 2008, at 12:01 AM, Negm-Awad Amin <email@hidden> 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@hidden




_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: IB displays a non-outlet (Bug or feature?)
      • From: Negm-Awad Amin <email@hidden>
References: 
 >IB displays a non-outlet (Bug or feature?) (From: Negm-Awad Amin <email@hidden>)

  • Prev by Date: Re: !foo vs foo == nil
  • Next by Date: Re: !foo vs foo == nil
  • Previous by thread: IB displays a non-outlet (Bug or feature?)
  • Next by thread: Re: IB displays a non-outlet (Bug or feature?)
  • Index(es):
    • Date
    • Thread