• 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
binding options ???
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: binding options ???
      • From: Ondra Cada <email@hidden>
  • Prev by Date: Re: New ML List Software
  • Next by Date: Re: binding options ???
  • Previous by thread: Re: custom NSView problem
  • Next by thread: Re: binding options ???
  • Index(es):
    • Date
    • Thread