• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Multiple Instances with Multiple Connections in IB - how to?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multiple Instances with Multiple Connections in IB - how to?


  • Subject: Re: Multiple Instances with Multiple Connections in IB - how to?
  • From: Peter Teeson <email@hidden>
  • Date: Wed, 24 Oct 2012 21:59:38 -0400

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.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Multiple Instances with Multiple Connections in IB - how to?
      • From: Quincey Morris <email@hidden>
References: 
 >Multiple Instances with Multiple Connections in IB - how to? (From: Peter Teeson <email@hidden>)
 >Re: Multiple Instances with Multiple Connections in IB - how to? (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: Multiple Instances with Multiple Connections in IB - how to?
  • Next by Date: Re: Multiple Instances with Multiple Connections in IB - how to?
  • Previous by thread: Re: Multiple Instances with Multiple Connections in IB - how to?
  • Next by thread: Re: Multiple Instances with Multiple Connections in IB - how to?
  • Index(es):
    • Date
    • Thread