• 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: Do I Need Multiple NSArrayControllers For This?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Do I Need Multiple NSArrayControllers For This?


  • Subject: Re: Do I Need Multiple NSArrayControllers For This?
  • From: Benjamin Stiglitz <email@hidden>
  • Date: Thu, 11 Sep 2008 16:11:01 -0400

Just want to clarify this a bit. In the Bindings inspector, when I assign a
value transformer, that gets applied to the Controller Key and then the
Model Key Path portion applies to the transformed value. Am I understanding
that correctly?

The value transformer gets applied immediately before providing the value to the bound object; if you have a model key path (which, by the way, is not always required), it will get applied to the result of getting the value from the model key path of the model.

By the way, another way to implement this is to set a property in a subclass of NSArrayController inside its -arrangeObjects: method.


-Ben
_______________________________________________

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: 
 >Do I Need Multiple NSArrayControllers For This? (From: Jamie Phelps <email@hidden>)
 >Re: Do I Need Multiple NSArrayControllers For This? (From: Benjamin Stiglitz <email@hidden>)
 >Re: Do I Need Multiple NSArrayControllers For This? (From: "Jamie Phelps" <email@hidden>)
 >Re: Do I Need Multiple NSArrayControllers For This? (From: Benjamin Stiglitz <email@hidden>)

  • Prev by Date: Re: First responder design question. Are controllers in the chain?
  • Next by Date: Re: Trying to compile an ObjectiveC and C++ program in XCode 3.1
  • Previous by thread: Re: Do I Need Multiple NSArrayControllers For This?
  • Next by thread: Re: Do I Need Multiple NSArrayControllers For This?
  • Index(es):
    • Date
    • Thread