• 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: Jenny M <email@hidden>
  • Date: Sun, 4 Apr 2010 19:09:58 -0700

Thanks everyone! Your answers helped, it's what I thought, I was just
overthinking things.

> You can certainly bind any number of UI objects to a single property of an object.
>
> Specifying an IBOutlet is only necessary if you want to create a connection and can only be connected to one thing at a time. Simply specify a property and bind the NSTextFields to that.
>


This is the method I ended up going with. I had tried to use bindings
before by doing exactly that - setting up a property, synthesizing it,
and binding the value to the property - but I noticed I was setting
the value wrong. I was calling
   property = [NSNumber...]
rather than
   [self setProperty:[]]. <-- Finally, that worked!!


Jenny
_______________________________________________

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

  • Follow-Ups:
    • Re: Two text fields, one outlet?
      • From: Klaus Backert <email@hidden>
References: 
 >Two text fields, one outlet? (From: Jenny M <email@hidden>)
 >Re: Two text fields, one outlet? (From: Joanna Carter <email@hidden>)

  • Prev by Date: Re: How do I get a file reference w/o relying on the path?
  • Next by Date: How do I compare two NSDates using NSPredicate & Core Data
  • Previous by thread: Re: Two text fields, one outlet?
  • Next by thread: Re: Two text fields, one outlet?
  • Index(es):
    • Date
    • Thread