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

Re: Should I be trying to use bindings for this?


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

On Oct 3, 2007, at 11:27 AM, I. Savant wrote:

On 10/3/07, Paul Bruneau <email@hidden> wrote:
I'm about to give up on bindings for a part of my user interface.
This is a non-document-based application.

It's not a perfect fit for everything.

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.

Why is this a problem? Are you aware that NSArrayController passes you a *proxy* object that represents your actual object?

Shamefully, no. I'll go re-re-read about NSArrayControllers.

What are you
trying to do that requires them to be the exact same object (maybe we
can suggest a better way of getting at it)?

Because later, when I want to schedule a workOrder, my app has to step through all the orderSteps of that order to see what operationType they are, and I have to check to see what workCenters are available to take on each of those steps. In order to see if a workCenter is able to do that kind of work, I look to see if the workCenter's operationTypes array contains the same operationType as is required by the orderStep.


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 :(

I don't see what you've described as being too difficult a problem but the part you left out is what you're doing that you need the objects to be exactly the same (why the proxy won't do and how you're trying to access the objects).

It could very well be that I am Doing It Wrong™. I am very open to hearing how I might do it better._______________________________________________


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>
References: 
 >Should I be trying to use bindings for this? (From: Paul Bruneau <email@hidden>)
 >Re: Should I be trying to use bindings for this? (From: "I. Savant" <email@hidden>)

  • Prev by Date: Re: Nib & retainCount confusion
  • Next by Date: Bound table not getting sorted when cell content is modified
  • Previous by thread: Re: Should I be trying to use bindings for this?
  • Next by thread: Re: Should I be trying to use bindings for this?
  • Index(es):
    • Date
    • Thread