• 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: mmalcolm crawford <email@hidden>
  • Date: Mon, 2 Aug 2004 12:03:04 -0700

On Jul 24, 2004, at 2:04 PM, Andrew Lindesay wrote:

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...

For situations when you need to use an array rather than a set:
	<http://www.stepwise.com/Articles/Technical/WOF_Checkboxes.html>

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

	public void setIsSelectedForAProduct(boolean value)
	{
		if (value) { chosenProductSet.addObject(aProduct); }
			else { chosenProductSet.removeObject(aProduct); }
	}

mmalc
_______________________________________________
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.


  • Prev by Date: Re: Are Apple's Java docs any good?
  • Next by Date: Re: Non-integer primary keys
  • Previous by thread: Re: Are Apple's Java docs any good?
  • Next by thread: wocomponent implementing an interface
  • Index(es):
    • Date
    • Thread