binding options ???
binding options ???
- Subject: binding options ???
- From: Theodore Petrosky <email@hidden>
- Date: Sun, 12 Sep 2004 11:31:32 -0700 (PDT)
I have a database project that stores a value. I have
successfully created a valuetransformer such that if I
retrieve 'OFA' it transforms to 'Out For Approval'.
This works great with the table view.
I have a problem with a popup. I have manual bindings
setup to feed the popup. I can not figure out the
bindingoptions. I need to select "out for approval' in
the popup but have 'OFA' updated in the array.
Do I need two valuetransformers?
this is how I am setting up the bindings...
[ejsPopUpController bind:@"contentArray"
toObject:self withKeyPath:@"statuses" options:nil];
[ejsMainArrayController bind:@"contentArray"
toObject: self withKeyPath:@"editingJobArray"
options:nil];
[ejsStatusPopUp bind:@"content" toObject:
ejsPopUpController withKeyPath:@"arrangedObjects"
options:nil];
[ejsStatusPopUp bind:@"contentValues"
toObject:ejsPopUpController
withKeyPath:@"arrangedObjects.title" options:nil];
[ejsStatusPopUp bind:@"selectedObject"
toObject:ejsMainArrayController
withKeyPath:@"selection.jobStatus"
options:statusTransformBinding];
The 'statusTransformBinding' works as expected taking
the value 'OFA' from the db and displaying 'Out For
Approval'.
Any help would be really appreciated.
Ted
__________________________________
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden