• 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: Cocoa binding question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa binding question


  • Subject: Re: Cocoa binding question
  • From: mmalcolm crawford <email@hidden>
  • Date: Mon, 30 May 2005 21:32:13 -0700


On May 30, 2005, at 7:28 PM, Dominic Germain wrote:
When I try to build a TableView for "mastertable", I try to use a NSPopUpButtonCell for the id_detail column. I set my "content" to the array matching detailTable, I set the "contentValue" to "somefield1". A this point, everything is OK... The Popup lists the expected data. Since I don't want to link my tables using an object address (this is not usefull for saving in MySQL) and I don't want to show the field I want to save, I decide to use the selectedTag way... So I bind my selectedTag to id_detail... But there is a problem... The value of the Tag for each menu item is a self assign zero starting number.
The class I use in my arrays is a home-made class that implement - tag and -setTag and my tags are not loaded by cocoa binding when building PopUpButton...


Before going into too much detail, it's not clear why you're trying to use the selectedTag binding? The tag is the tag of the NSMenuItem. I suspect you want selectedValue?

mmalc



_______________________________________________
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: Cocoa binding question
      • From: Dominic Germain <email@hidden>
References: 
 >Cocoa binding question (From: Dominic Germain <email@hidden>)

  • Prev by Date: Setting the cursor for a link in an NSTextView
  • Next by Date: Re: Core Data Abstractions
  • Previous by thread: Cocoa binding question
  • Next by thread: Re: Cocoa binding question
  • Index(es):
    • Date
    • Thread