Re: Bind button title to Boolean
Re: Bind button title to Boolean
- Subject: Re: Bind button title to Boolean
- From: Trygve Inda <email@hidden>
- Date: Mon, 27 Oct 2008 11:00:42 +0000
- Thread-topic: Bind button title to Boolean
> How can I bind a button title to a Boolean but have a custom title for each
> state? For example, I have a BOOL isRunning, if YES, my button should read
> "Stop Running" else "Start Running".
>
> I can't really do this with an alternate title since when the button is
> pushed and temporarily held down, the title should not change as it is a
> normal push "pill" button.
I know I can write a value transformer, but is there a simple way to do such
a two state button title in IB and just provide it my "isRunning" method? It
seems like a common enough default situation.
T.
_______________________________________________
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