• 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: multiple wocheckbox in form
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: multiple wocheckbox in form


  • Subject: Re: multiple wocheckbox in form
  • From: Michael Engelhart <email@hidden>
  • Date: Sat, 24 Jul 2004 17:25:25 -0500

Hi Andrew -

Thanks - that's exactly the trick I was looking for.

Cheers.
Michael
On Jul 24, 2004, at 4:04 PM, Andrew Lindesay wrote:

addProductToCompareList() method that somehow knows which checkbox is
connected to which object.   I have the products being displayed in a

Hello Michael;

If you're going through a WORepetition of product objects in your component then you'll have an interation variable like "aProduct". I tend to keep an NSMutableSet or something handy to remember which products I want and then I do something like this...

public boolean getIsSelectedForAProduct() { chosenProductSet.containsObject(aProduct); }
public void setIsSelectedForAProduct(boolean value) { chosenProductSet.addObject(aProduct); }


...and bind "isSelectedForAProduct" to the "checked" binding on your WOCheckBox.

cheers.

___
Andrew Lindesay
http://www.lindesay.co.nz/
021 47 0929
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >re: multiple wocheckbox in form (From: Andrew Lindesay <email@hidden>)

  • Prev by Date: re: multiple wocheckbox in form
  • Next by Date: Re: Display Groups
  • Previous by thread: re: multiple wocheckbox in form
  • Next by thread: Cached EO Objects
  • Index(es):
    • Date
    • Thread