Revert use of fast enumeration

This commit is contained in:
Gregory John Casamento 2021-03-10 01:49:46 -05:00
parent f9ae7fc326
commit b777e0e383
2 changed files with 7 additions and 2 deletions

View file

@ -47,7 +47,9 @@
- (void)awakeFromNib
{
for (NSCell *cell in [orientation cells])
NSEnumerator *en = [orientation objectEnumerator];
NSCell *cell = nil;
while ((cell = [en nextObject]) != nil)
{
[cell setRefusesFirstResponder: YES];
}

View file

@ -67,7 +67,10 @@ const unichar rt[]={NSRightArrowFunctionKey};
- (void) awakeFromNib
{
for (NSCell *cell in [keyType cells])
NSArray *cells = [keyType cells];
NSEnumerator *en = [cells objectEnumerator];
NSCell *cell = nil;
while ((cell = [en nextObject]) != nil)
{
[cell setRefusesFirstResponder: YES];
}