• 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
drawing and writing text in a NSQuickDrawView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

drawing and writing text in a NSQuickDrawView


  • Subject: drawing and writing text in a NSQuickDrawView
  • From: Angelo Chen <email@hidden>
  • Date: Thu, 29 Jun 2006 19:09:30 -0700 (PDT)

Hi,

i set a NSCustomView in IB, then set it's custom class
to NSQuickDrawView and linked it to a outlet called
view, I'd like to draw a red background on it, i tried
the following code, but does not work, what I miss
here? thanks.

[[NSColor redColor] set];
NSRectFill([view bounds]);
[view display];

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: drawing and writing text in a NSQuickDrawView
      • From: "Michael Ash" <email@hidden>
  • Prev by Date: Re: Distributed Objects and Bonjour
  • Next by Date: Re: NSScrollView - keep document view's top left pinned when resizing?
  • Previous by thread: Re: Untitled files and NSApp delegate
  • Next by thread: Re: drawing and writing text in a NSQuickDrawView
  • Index(es):
    • Date
    • Thread