menus within NSTable
menus within NSTable
- Subject: menus within NSTable
- From: Chris Idou <email@hidden>
- Date: Sun, 17 May 2009 21:36:29 -0700 (PDT)
I've got an NSTable where I've made one column to have a NSPopupButtonCell as its contents.
Depending on the object that relates to a particular row, I only want two of four possible values to be selectable in each row.
I tried to achieve this by setting the Enabled binding of each NSMenuItem in the cell to be bound to the Array Controller, with controller key arrangedObjects and a model key path to be a BOOL method on the objects in my table. However this blows up like this:
Unhandled Exception: Cannot create BOOL from object (
0
) of class NSCFArray
How would I make it work?
Need a Holiday? Win a $10,000 Holiday of your choice. Enter now.http://us.lrd.yahoo.com/_ylc=X3oDMTJxN2x2ZmNpBF9zAzIwMjM2MTY2MTMEdG1fZG1lY2gDVGV4dCBMaW5rBHRtX2xuawNVMTEwMzk3NwR0bV9uZXQDWWFob28hBHRtX3BvcwN0YWdsaW5lBHRtX3BwdHkDYXVueg--/SIG=14600t3ni/**http://au.rd.yahoo.com/mail/tagline/creativeholidays/*http://au.docs.yahoo.com/homepageset/?p1=other&p2=au&p3=mailtagline
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden