Re: Disabled controls don't update their visual appearance
Re: Disabled controls don't update their visual appearance
- Subject: Re: Disabled controls don't update their visual appearance
- From: Uli Kusterer <email@hidden>
- Date: Tue, 11 Aug 2009 08:00:34 +0200
On Aug 10, 2009, at 6:04 PM, Christopher Campbell Jensen wrote:
I am sure I am just missing a single line of code, but I can't
understand the following behavior:
This code is where the issue occours:
- (void)refreshButtonsEnabledState
{
NSLog(@"%d", [[[tabView selectedTabViewItem] label]
isEqualToString:@"Current/Custom"] && [movieFile.movieMetaData
isCreated]);
[toggleWriteCheckMarksButton setEnabled:[[[tabView
selectedTabViewItem] label] isEqualToString:@"Current/Custom"] &&
[movieFile.movieMetaData isCreated]];
[resetMetaDataButton setEnabled:[movieFile.movieMetaData isCreated]];
}
I presume tabView, movieFile, toggleWriteCheckMarksButton and
resetMetaDataButton are instance variables, and most of them are
outlets. Is any of them perhaps NIL at the point where your code fails?
Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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