ArrayController vs Pop-up button vs Transformer -- three way tag team death match!
ArrayController vs Pop-up button vs Transformer -- three way tag team death match!
- Subject: ArrayController vs Pop-up button vs Transformer -- three way tag team death match!
- From: Ben Golding <email@hidden>
- Date: Tue, 19 Apr 2011 17:41:35 +1000
I am a bit stumped. I have an array controller which I have hooked up to a pop-up button and that works quite well. The members of the array are NSStrings but I would like to reformat them when they're displayed by the pop-up button. Seems fairly straightforward, I thought I'd just write a little transformer to do that.
I plugged everything together and was surprised that that the transformer was raising an exception because it was being passed an NSObjectControllerProxy as its argument, not an NSString as I'd been expecting.
After some hunting around on the interwebs, I've tried all sorts of permutations, doing the binding via the pop-up buttons content values but I seem to come up against the same problem.
Is it possible to do this? I feel like I'm missing something obvious.
Ben.
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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