Seemingly Simple Bindings Question
Subject : Seemingly Simple Bindings Question
From: Jamie Phelps <email@hidden >
Date: Sun, 31 Aug 2008 18:38:30 -0500
Delivered-to: email@hidden
Delivered-to: email@hidden
I have an NSPopUpButton with five menu items: WTD, MTD, QTD, YTD, and
Specific Dates. What I want to do is show and hide two labels and
textfields for Start Date and End Date depending on if the Specific
Dates option is selected.
My first attempt was to do
@property (readonly) BOOL specifyingDateRange;
-(BOOL)specifyingDateRange{
if([dateRangePopUp indexOfSelectedItem] == 4){
return YES;
}
return NO;
}
but this is not working correctly.
Can anyone explain what the correct implementation is and possibly
what mistake I made in assessing the problem?
Thanks in advance,
Jamie
_______________________________________________
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:
http://lists.apple.com/mailman/options/cocoa-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.