Re: Image bindings
Re: Image bindings
- Subject: Re: Image bindings
- From: Shane Stanley <email@hidden>
- Date: Tue, 23 Nov 2010 08:23:29 +1100
- Thread-topic: Image bindings
On 23/11/10 2:11 AM, "Jasper Van Proeyen" <email@hidden> wrote:
> - I can't seem to find an example of binding images. Can anyone lead me in the
> right direction if possible?
It's pretty simple. If you have loaded them into NSImages, you bind the
image well's Value, or you can use paths and bind to Value Path. The former
sounds more sensible if you have a fixed set of images.
> - Now I have one number, e.g. 317529. Can I get every "character" of that
> number separately into a "Model Key Path", or, can I accomplish this via
> "Display Pattern"?
If I understand you correctly, no. It might be just as easy to do it
manually.
Repeat with i from 1 to 6
set oneNum to (character i of numString) as integer
tell item i of imageWellList to setImage_(item oneNum of imageList)
...
--
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden