• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSLevelIndicator - setEnabled not respected
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSLevelIndicator - setEnabled not respected


  • Subject: NSLevelIndicator - setEnabled not respected
  • From: Michael LaMorte <email@hidden>
  • Date: Fri, 26 Sep 2008 11:40:10 -0400

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 (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


  • Follow-Ups:
    • Re: NSLevelIndicator - setEnabled not respected
      • From: Benjamin Stiglitz <email@hidden>
  • Prev by Date: Re: Porting 'operator' to Obj-C
  • Next by Date: Re: Porting 'operator' to Obj-C
  • Previous by thread: Re: Porting 'operator' to Obj-C
  • Next by thread: Re: NSLevelIndicator - setEnabled not respected
  • Index(es):
    • Date
    • Thread