• 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: Negm-Awad Amin <email@hidden>
  • Date: Thu, 21 Aug 2008 10:55:29 +0200


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@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

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


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

  • Prev by Date: Re: !foo vs foo == nil
  • Next by Date: Re: !foo vs foo == nil
  • Previous by thread: Re: IB displays a non-outlet (Bug or feature?)
  • Next by thread: Sending a message to super's super (tab keyDown in NSTextView)
  • Index(es):
    • Date
    • Thread