• 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: filtering a tableView from a pulldown
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: filtering a tableView from a pulldown


  • Subject: Re: filtering a tableView from a pulldown
  • From: Amy Heavey <email@hidden>
  • Date: Tue, 28 Oct 2008 15:57:35 +0000

I can't work out what the controllers and key paths should be.

The pulldown is bound as follows:

content: arrangedObjects[PurchaseOrder Array Controller(NSArray Controller)]
content values: Purchase ORder Array Controller arrangedObjects.orderReference


The Table view has 6 columns, one of which is the Purchase Order number (as displayed in the pulldown)
that column is bound as:


content: arrangedObjects[PurchaseOrder Array Controller 13(NSArray Controller)]
content values: arrangedObjects.orderReference


does that help at all?

I created the master/details interface by alt-dragging from the data model. In the model there are purchaseORderItems that have the following attributes/relationships:

Attributes
qty
vendorsku

Relationships
product
purchaseOrder
shipment

The tableview shows all the purchaseOrderItems, and I want to filter it by the order reference in the pulldown above the tableview.


Many Thanks

Amy


On 28 Oct 2008, at 14:36, I. Savant wrote:

I have a pulldown button, and a tableview. They both seem to be displaying
the correct data, but I'd like to filter the content of the tableview based
on the selection in the pulldown button. I've tried all manner of binding
combinations but it doesn't seem to work.

This is difficult to answer because you left out all the critical details (controller names, key paths, etc.). All that is left is to point you to the documentation:

Cocoa Bindings Programming Topics - Creating a Master-Detail Interface
http://developer.apple.com/documentation/Cocoa/Conceptual/ CocoaBindings/Tasks/masterdetail.html


--
I.S.

_______________________________________________

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: filtering a tableView from a pulldown
      • From: "I. Savant" <email@hidden>
References: 
 >filtering a tableView from a pulldown (From: Amy Heavey <email@hidden>)
 >Re: filtering a tableView from a pulldown (From: "I. Savant" <email@hidden>)

  • Prev by Date: Re: Turning off Auto Complete feature for NSTextField
  • Next by Date: Re: Security - Write to protected directory
  • Previous by thread: Re: filtering a tableView from a pulldown
  • Next by thread: Re: filtering a tableView from a pulldown
  • Index(es):
    • Date
    • Thread