On 19 Apr 2011, at 08:41, Ben Golding wrote:

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

[snip]

> Is it possible to do this?  I feel like I'm missing something obvious.


How about, instead of trying to change what you pass to the transformer; 
transform what you get. i.e transform the NSObjectControllerProxy into the 
desired output?

Hope that helps / works.

Dave
------
David Kennedy (http://www.zenopolis.com)


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to