Mailing Lists: Apple Mailing Lists

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

Re: Button with two functions



Am 03.09.2005 um 11:08 schrieb Ludwig Villiger:
- 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!

Several options:

1) Just start your -loadImage method with an "if" statement that checks the checkbox's -state.

2) Use two buttons and put them in an NSTabView with tabs and border turned off, then make the chackbox change the tab view's tabs (state is zero or 1, tab number starts at 0 -- a match made in heaven).

Cheers,
-- M. Uli Kusterer
http://www.zathras.de


_______________________________________________ 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
References: 
 >Button with two functions (From: Ludwig Villiger <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.