I have a Core Data application, several fields of which are Int16s which are bound to NSLevelIndicators and a NSLevelIndicatorCell. I have some methods that calculate and set the values of these properties in a subclass of NSManagedObject, using old-style accessor methods.

I'm aware of the broken nature of the "Editable" checkbox for NSLevelIndicator and NSLevelIndicatorCell elements in Interface Builder, so I subclassed them, set the UI objects to the subclass, and added the following method:


- (void) awakeFromNib {
        [self setEnabled:NO];
        NSLog(@"checking isEnabled: %d", [self isEnabled]);
}


Checking the log, it's returning a value of 0, so it should be disabled, right? Wrong. The level indicators are still responding to mouse events (click, click-and-drag).

I've googled for over a week, and I can't find out what I'm missing here.

Can anyone shed some light on this?

TIA,
- Mike

---
Michael A. LaMorte

          "In matters of style, swim with the current;
           In matters of principle, stand like a rock"
                         -Thomas Jefferson



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to