Question

I have a custom control that I use that has some (NSTextField *) NSCells in it. I have attempted at the cell level to disable all cells from usage, yet my loop that goes through all the cells seems to do nothing.

[myCell setEnabled:NO];

compile and run...

cell is still clickable and editable.

My final goal is to ofcourse disable only a few during runtime... but I cant even disable all of them during setup.

Was it helpful?

Solution 2

the issue was with a super method that was toggling everything. I then had to deal with both the keyDown actions and keyUp actions that were also enabling entry. Also had to deal with the NSStepper ability to circumvent the fields not being enabled.

OTHER TIPS

Try calling setEditable:NO on them as well.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top