• 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: Using bindings to make an NSPopupButton to assign an array filter predicate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using bindings to make an NSPopupButton to assign an array filter predicate


  • Subject: Re: Using bindings to make an NSPopupButton to assign an array filter predicate
  • From: "Sean McBride" <email@hidden>
  • Date: Tue, 19 Dec 2006 10:42:52 -0500
  • Organization: Rogue Research

On 2006-12-18 15:08, Matt Neuburg said:

>I must stress, as I have often done in the past, that the first step in a
>decent understanding of bindings is to expunge the word "magic" from one's
>conceptual vocabulary. Nothing magical or mysterious happens.

Indeed; but sometimes it appears magical.

>It is true that when you bind an NSTableColumn's value to an
>NSArrayController, it is effectively the NSTableView itself that ends up
>bound to the NSArrayController's arrangedObjects (the content),
>selectionIndexes, and sortDescriptors. (I say "effectively" because in fact
>there is an intermediate NSTableBinder object.) But that isn't magic - it's
>more like a convenient shorthand.

This is a good example of the magic.  Nothing in the UI of IB gives the
slightest clue that the NSTableView is also bound.  NSTableBinder gives
0 hits in Xcode's built-in docs.  And other than mmalc's hints page, I
see no docs about this automatic binding.  I can understand why
beginners find this magical.

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: Using bindings to make an NSPopupButton to assign an array filter predicate
      • From: Scott Anguish <email@hidden>
References: 
 >Re: Using bindings to make an NSPopupButton to assign an array filter predicate (From: Matt Neuburg <email@hidden>)

  • Prev by Date: NSURLDownload and file resuming
  • Next by Date: capturing a verbal response (voice recognition)
  • Previous by thread: Re: Using bindings to make an NSPopupButton to assign an array filter predicate
  • Next by thread: Re: Using bindings to make an NSPopupButton to assign an array filter predicate
  • Index(es):
    • Date
    • Thread