• 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: exposeBinding:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: exposeBinding:


  • Subject: Re: exposeBinding:
  • From: Quincey Morris <email@hidden>
  • Date: Sun, 3 Jan 2010 15:24:12 -0800

On Jan 3, 2010, at 14:56, Rick Mann wrote:

> Is -exposeBinding: only necessary when implementing an IB plug-in? Or is it required to make bind: work at all (on a custom object)? I find two slightly conflicting statements in the docs about this.

I can't speak definitively, but I believe the answer lies somewhere in the middle. You don't actually need to expose bindings to make them work, but if you want to have your bindings established automatically during nib loading they'll need to be exposed to IB. Whether an IB plug-in is the only way to make IB aware of an exposed binding, or whether there's an alternate mechanism (by analogy with action methods, where IB can find them by looking at header files, but you can still "declare" them explicitly within IB if necessary), I don't know.

OTOH I don't think there's any point to defining new bindings at all, unless you want to make them generally available to users who are not working at the source code level, or unless you going to use them so much that it's worth being able to hook them up in IB rather than code. In that case, you'd want the plug-in anyway. (For one-off use, ad-hoc coding using KVO is probably sufficient.)

FWIW.


_______________________________________________

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: 
 >exposeBinding: (From: Rick Mann <email@hidden>)

  • Prev by Date: Revolving scoreboard
  • Next by Date: Re: Revolving scoreboard
  • Previous by thread: exposeBinding:
  • Next by thread: Re: exposeBinding:
  • Index(es):
    • Date
    • Thread