Re: tags and sliders
Re: tags and sliders
- Subject: Re: tags and sliders
- From: Chris Stephens <email@hidden>
- Date: Tue, 29 Mar 2005 16:58:36 +1000
Thanks, Mark.
I feared I might have to do this.
Given that these sliders will be responding to inputs from MIDI
hardware and adjusting themselves to match the physical device I
suspect a lot of view lookups is more work than this app needs to do so
I think I'll go with your approach.
I was just hoping there was a neat way to achieve it that was analogous
to the single-method-and-tags way for going the other way (i.e. when
the hardware is following the software).
I'm sure the software would keep up but I might keep things simple and
have an outlet for each slider. No big deal...
Thanks everyone for your help!
Chris
On 29 Mar 2005, at 4:44 PM, Mark Ritchie wrote:
On Mar 28, 2005, at 11:12 PM, Chris Stephens wrote:
Do I use viewWithTag: and if so how..? I've tried a few things and
they haven't worked. And I've googled around and searched this list
and can't find anything.
While viewWithTag: might work, it would need to search the view
hierarchy each time you wanted to set the value of a slider. This
might not matter but it's worth thinking about if your window has a
lot of other views which would have to be checked.
The traditional way would be to have outlets for each single slider
and probably an outlet for each matrix of sliders. Although, you
could have individual outlets for each slider, whether they were in a
matrix or not.
I hope that helps!
Mark.
__
Mark Ritchie, email@hidden 416-843-5479
Software Developer, Apple Certified Developer Trainer
WebObjects, Cocoa, Mac OS X and Mac OS X Server
Diamond Lake Consulting Inc., Toronto, Ontario, Canada
*** Currently looking for work in Toronto ***
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden