• 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
WOPopUp and NSMutableDictionary
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

WOPopUp and NSMutableDictionary


  • Subject: WOPopUp and NSMutableDictionary
  • From: Hunter Hillegas <email@hidden>
  • Date: Tue, 27 Apr 2004 16:13:07 -0700

I have an array of NSMutableDictionaries. Each NSMutableDictionary contains two keys, rating_id and rating_text. I have the bindings for the popup set as follows:

PoolRatingPopup: WOPopUpButton {
	class = "txt2";
	displayString = theCurrentPoolRating.rating_text;
	item = theCurrentPoolRating;
	list = application.ratingsList;
	selection = theHotelRating.poolRating;
	value = theCurrentPoolRating.rating_id;
}

theCurrentPoolRating is of type NSMutableDictionary. The binding for 'selection' is a string in my 'HotelRating' object...

This renders the HTML I would expect but it seems that when I submit, WO doesn't attempt to insert 'value' into 'theHotelRating.poolRating', it instead inserts the item binding, which is NSMutableDictionary, not String...

So, how can I get WO to submit the value of the key, as in theCurrentPoolRating.rating_id, to theHotelRating.poolRating?

Is that possible?

Thanks,
Hunter
_______________________________________________
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: CSS background graphics
  • Next by Date: Ports and Hosts Again..
  • Previous by thread: Re: XCode 1.2 and Breakpoints
  • Next by thread: Ports and Hosts Again..
  • Index(es):
    • Date
    • Thread