On 2012-10-24, at 7:41 PM, Quincey Morris wrote: On Oct 24, 2012, at 15:45 , Peter Teeson < email@hidden> wrote In IB I can set a Received action by selecting one of the instances and Ctl-dragging.
Dragging it to what? Your view is the target of an action, but where is the action coming from? Are you saying that one view receives 'changeStartColor' and the other receives 'changeStopColor'? Are there separate color wells for these?
To answer your questions: No: at present all of the Start/Stop IBActions are pointing at one and the same target. Yes: at present there are separate colour wells ( but I have an idea to use just one).
But what I would like to achieve is that the IBAction targets both instances so the new colour is set for both of them. Since the only difference between the sub=class instances is the direction of the gradient (not the colour) Start/Stop mid-points (e.g. top to bottom in one and bottom to top in the other) , I would like the setting of a new colour to occur in both from that single action.
I suppose I could make a method in the Document class akin to the one I used to set the isPushed ivar in my sub-class. But then why bother with an IBAction.
Perhaps it is not allowed to have an Action that Targets multiple instances. Or perhaps my understanding is flawed. |