Re: Using Bindings for a toggle control
Subject : Re: Using Bindings for a toggle control
From: "I. Savant" <email@hidden >
Date: Thu, 26 Apr 2007 06:39:42 -0400
Delivered-to: email@hidden
Delivered-to: email@hidden
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=C/dTSKZpD9Lvhdr6ghHclWFCHiO2h51jUWbkwRFnNnKzdmz3bX7ueVnC/RP7i2r4l+EH2F1XnUaXQXMQFGjLfTSTHRs6mhtQ+3uV8UWOesU/aDRCrODujVhaGVB2UF90OCOvz4J2SyZuV/Vj4rRB4h8jy5V+RlUokG5e2TKSsVg=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=emNE80xCS+Jr6bCtW5IoFVQ1/GqWc/8kSau3uH4d42D/43qr/1/SqI4ECnNWpbT9HslMN58j11AFRIszDwzA3BJgMYZEC3KvGv+2W9c8CjOrR/FkUd3q2iGBToN/08E/gc7pb3txBajBqkBfa4YEulMgu3XMyBR2dhopAUZDWhE=
On Apr 26, 2007, at 4:50 AM, Paul Thomas wrote:
To make it a little more concrete, what I'm looking at is a Play/
Pause button that
- displays "Play" and is bound to -play: when -isPlaying is NO
- displays "Pause" and is bound to -pause: when -isPlaying is YES
See NSValueTransformer ...
http://developer.apple.com/documentation/Cocoa/Conceptual/
ValueTransformers/index.html
--
I.S.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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/email@hidden
This email sent to email@hidden
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.