• 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
Newbie question on NSControl
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Newbie question on NSControl


  • Subject: Newbie question on NSControl
  • From: Rob Crawford <email@hidden>
  • Date: Fri, 04 Jan 2002 17:16:03 -0500

Thanks in advance!
I would like to create a custom control that draw's differenctly depending
on the value that is in the control. This is my header file:

@interface ExampleView : NSControl
{
}
- (void)drawRect:(NSRect)aRect;

Question 1.
What else do I need to override so when the value gets changed the drawRect
method gets called?

Question 2.
How can I get IB to let me put in the default value for this control so that
it will draw correctly the first time?


  • Follow-Ups:
    • Re: Newbie question on NSControl
      • From: "John C. Randolph" <email@hidden>
  • Prev by Date: Re: Key event handling theory
  • Next by Date: Re: Key event handling theory
  • Previous by thread: Re: Key event handling theory
  • Next by thread: Re: Newbie question on NSControl
  • Index(es):
    • Date
    • Thread