Re: Should I be trying to use bindings for this?
Re: Should I be trying to use bindings for this?
- Subject: Re: Should I be trying to use bindings for this?
- From: Erik Buck <email@hidden>
- Date: Wed, 3 Oct 2007 12:36:56 -0700 (PDT)
I am in the middle of my own journey to using Bindings, but I have some questions for you. Your answers might solve your problem.
1) Why do you insist on pointer comparison for OperationTypes instances. Why not inplement -compare: and test for equality of two OperationTypes instances with compare:? Then it doesn't matter if theye are different instances or not if the compare as NSOrderedSame.
2) Why don't you just write [workCentersArrayController valueForKeyPath: @"selection.operationTypes"]. Assuming that the selected WorkCenter instance actually has an array instance variable called "operationTypes", the above code should retrun that array as an NSArray. Whatever is in the returned NSArray is what is in the instance variable, so if the OperationTypes instances have unexpected pointer values, the problem occured when the array was filled and not when it was returned.
_______________________________________________
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