• 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
Re: NSRulerView background color
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSRulerView background color


  • Subject: Re: NSRulerView background color
  • From: Lorenzo <email@hidden>
  • Date: Sat, 12 May 2007 21:03:44 +0200

Thank you Alan,
it works well!

Best Regards
--
Lorenzo
email: email@hidden

> From: Alan Smith <email@hidden>
> Date: Wed, 02 May 2007 12:16:24 -0400
> To: Lorenzo <email@hidden>
> Cc: email@hidden
> Subject: Re: NSRulerView background color
>
> Hello Lorenzo,
>
> It just so happens NSRulerView has the following method:
>
> - (void)drawBackgroundInRect:(NSRect)rect;
>
> It should suffice very nicely. Don't call super with this though, that
> will mess it up. The below snippet should work fine.
>
> - (void)drawBackgroundInRect:(NSRect)rect
> {
>  [[NSColor colorWithCalibratedWhite: 0.85 alpha: 1.0] set];
>  [NSBezierPath fillRect: rect];
> }
>
> Have fun!
> Peace, Alan
>
>
> --
> // Quotes from yours truly -------------------------
> "You don't forget, you just don't remember."
> "Maturity resides in the mind."
> "Silence is the Universe's greatest gift."
> "When the World realizes that religion really is unnecessary, then it
> shall evolve."

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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

References: 
 >Re: NSRulerView background color (From: "Alan Smith" <email@hidden>)

  • Prev by Date: Re: To C++ users trying to use Cocoa
  • Next by Date: What Happens When a Nib File is Loaded
  • Previous by thread: Re: NSRulerView background color
  • Next by thread: ScrollView - slowing down the scroll speed
  • Index(es):
    • Date
    • Thread