You got it right :-). That's what I've been doing. I was just wondering whether people would use binding in that case. thanks a lot for clarification.

Cheers
Chris

On 20.11.2009, at 20:02, Karolis Ramanauskas <karol...@gmail.com> wrote:

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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to