• 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
Fwd: Drawing in custom views
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: Drawing in custom views


  • Subject: Fwd: Drawing in custom views
  • From: David Hill <email@hidden>
  • Date: Sat, 24 Dec 2005 14:09:43 -0800

Hi all,

I am a comparative newbie, though I came to Xcode via NeXT.

I am porting some of the NeXT software we originally developed at Trillium Sound Research (but now out under a GPL as "gnuspeech"). In creating a custom GUI widget, I have been unable to make images appear in my custom views. My implementation of the example in Scott's book Chapter 13 determinedly hides the stuff I put in the image cache -- nothing seems to make it appear in the application window (which is mostly occupied by the [invisible] custom view) and certainly not [myImageCache draw], which is the method in the example. Changing the custom view size and various other measures reveal nothing.

I set up a simpler test app involving adjusting the size of a new filled rectangle using a mouse drag. If I offset the filled rectangle I wish to manipulate slightly away from the filled custom view I've created in the window, it is clearly drawing correctly and is visible *outside* the custom view, clipped by the view, and I can vary its size using the mouse. But, again, nothing seems to work to allow anything to appear in the custom view itself, including setting the custom view fill to (NSColor) clearColor or setting it to any color having a low or zero alpha value.

It is seems that I am missing something very simple, and I would certainly appreciate a pointer or two. I am using Xcode 2.2 running under 10.4.3 on a G5.

Many thanks.

david



_______________________________________________
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
  • Prev by Date: NSMatrix NSImageCell binding
  • Next by Date: Questions About Hiring a Programmer
  • Previous by thread: NSMatrix NSImageCell binding
  • Next by thread: Re: Fwd: Drawing in custom views
  • Index(es):
    • Date
    • Thread