• 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
Should I be trying to use bindings for this?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Should I be trying to use bindings for this?


  • Subject: Should I be trying to use bindings for this?
  • From: Paul Bruneau <email@hidden>
  • Date: Wed, 3 Oct 2007 11:10:21 -0400

I'm about to give up on bindings for a part of my user interface. This is a non-document-based application.

I have a array in my appController called operationTypes which contains objects of class OperationType. These are all the operations that can be performed in a production facility.

I have an array in my appController called workCenters which contains objects of class WorkCenter. These are the divisions within the facility that do the work (like departments).

A workCenter can perform one or many operationTypes, so each workCenter has an instance variable array called operationTypes.

I want an interface that will allow the user to specify the operationTypes that a workCenter can do. I have successfully bound the workCenters array to a table on the top half of the window. The user clicks on the workCenter to see the operationTypes that it can do. This part works great.

I am trying to successfully bind (in Master-Detail fashion) another table, on the bottom of the window, containing the instance variable array of operationTypes for the workCenter selected in the top table.

I put an NSPopupButton into the column so that I can choose from the total list of operationTypes.

With mmalc's help some time ago I thought I was able to get this to work. Visually, it works fine and error free. The key was to set up an NSArrayController which has for content the selection of the WorkCenters array controller.

But now I have found that the objects in the operationTypes instance variable array are not the same objects that are in my "global" operationTypes array as I expected them to be. They are some kind of copy, or created objects that must be being created by my binding. This is a problem for me.

Is it advisable to use bindings for this? From my readings it seems so, but I have spent days and days and my stomach hurts :(

_______________________________________________

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: Should I be trying to use bindings for this?
      • From: "I. Savant" <email@hidden>
  • Prev by Date: Job Opportunity: Box Services is hiring a full-time cocoa Developer
  • Next by Date: Any one interested in my new framework from GSL?
  • Previous by thread: Job Opportunity: Box Services is hiring a full-time cocoa Developer
  • Next by thread: Re: Should I be trying to use bindings for this?
  • Index(es):
    • Date
    • Thread