• 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: Two text fields, one outlet?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Two text fields, one outlet?


  • Subject: Re: Two text fields, one outlet?
  • From: Jens Alfke <email@hidden>
  • Date: Sat, 3 Apr 2010 18:33:31 -0700

No, an outlet is a single variable that can point to only one object at a time. (You can't use NSArrays as outlet values.) you'll need multiple outlets, or one view you move between two superviews.

--Jens {via iPad}

On Apr 3, 2010, at 4:22 PM, Jenny M <email@hidden> wrote:

> Is it possible to link multiple NSTextFields to one outlet? I have
> three views - one of A items, one of B items, and one of both A and B
> items. So the text boxes in the A view also exists in the A&B view,
> and the value needs to be able to appear in both, though not at the
> same time. I have a method that calculates values and sets the textbox
> values (or label values, same concept) using an outlet, but I don't
> want it to set 2 outlets, I want it to just set 1.
>
> Is this possible using outlets or bindings??
>
> Or is there a way I can place two NSViews into one NSView so there's
> only one copy of everything?
>
> Thanks...
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please 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:
>
> This email sent to email@hidden
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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:

This email sent to email@hidden

References: 
 >Two text fields, one outlet? (From: Jenny M <email@hidden>)

  • Prev by Date: Re: How do I get a file reference w/o relying on the path?
  • Next by Date: Re: Invalidated managed objects
  • Previous by thread: Two text fields, one outlet?
  • Next by thread: Re: Two text fields, one outlet?
  • Index(es):
    • Date
    • Thread