Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Button with two functions



Hi,

I have a Cocoa-Application, which displays images in a NSImageView by pressing a button in random order. But now, I want to add an option for the user who wants, that the images are displayed each after the other. On my interface I added a checkbox for this reason. But how I can tell the Computer, that he should use a different method when you click on the button and when the checkbox is checked?
The Pseudo-Code perhaps is like that:


- Look for checkbox: If it is checked execute: - LoadImage in order
If not checked execute: - LoadImage randomly
- LoadImage randomly
- LoadImage in order


A simple solution would be to add a new button and give him the method to - LoadImage in order. But then I have two buttons and that is not very user-friendly.

I hope you understand my problem and can give me some advice!

Ludwig
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Student-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/student-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.