Re: Two text fields, one outlet?
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