Re: IBOutlets or property + binding
Re: IBOutlets or property + binding
- Subject: Re: IBOutlets or property + binding
- From: Karolis Ramanauskas <email@hidden>
- Date: Fri, 20 Nov 2009 13:02:50 -0600
Let me see.
The way I understand what you want to do is this:
You have some controls in your window: c1, c2, c3, c4...
You don't care to be notified when they change. Only thing you care about is
to read their values when you click a button. I thing the best thing to do
here is just create a bunch of IBOutleted ivars:
IBOutlet NS... * c1
IBOutlet NS... * c2
IBOutlet NS... * c3
IBOutlet NS... * c4
Then in you simply have one method that responds to a click:
(IBAction)buttonClicked:(id)sender
{
NSInteger var1 = [c1 intValue];
NSInteger var2 = [c2 ...
do whatever...
}
So in this method you read the values, do something with them and you're
done!
Peace,
Karolis
_______________________________________________
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