• 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
Making target/action of a view visible to IB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Making target/action of a view visible to IB


  • Subject: Making target/action of a view visible to IB
  • From: Graham Cox <email@hidden>
  • Date: Fri, 02 Dec 2011 14:23:48 +1100

I have some custom views that act in some ways like lightweight controls - they have target and action properties - but they inherit NSView, not NSControl.

It would be useful to be able to allow the targets and actions of these views to be hooked up in IB. Target isn't usually a problem - it can be an outlet. But the action is another matter, IB can't "see" it, so doesn't allow me to specify the selector. Am I missing something or this a feature that is hard-coded into IB and not available to custom views?

I'd rather not subclass NSControl, because that would compromise the simplicity and lightness of these views just to allow an action to be set - NSControl brings in way too much other baggage as well.

--Graham


_______________________________________________

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: Making target/action of a view visible to IB
      • From: Andy Lee <email@hidden>
  • Prev by Date: Re: Grabbing at 60hz
  • Next by Date: Re: iOS AdMob full screen banner does not hide
  • Previous by thread: Re: Grabbing at 60hz
  • Next by thread: Re: Making target/action of a view visible to IB
  • Index(es):
    • Date
    • Thread