• 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: Drawing over a view's subviews
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drawing over a view's subviews


  • Subject: Re: Drawing over a view's subviews
  • From: "Mark Munz (DevList)" <email@hidden>
  • Date: Wed, 15 Jun 2005 11:10:27 -0500

Some options:

1. One way to do it may be to creating a container view, with the actual content subview inside of it (similar to Automator Actions).

2. Another option would be to subclass each view type you have. In the drawRect method -- call the super's drawRect and then draw your resize "grab point".

I believe option 1 is a little more versatile, since you don't need to know what view you're holding.

Mark Munz


On Jun 15, 2005, at 10:56 AM, Mark Morrill wrote:

Hi all,

I've got a view with an arbitrary number of subviews. Some of the subviews might be custom WebViews, for example. The application is an authoring tool.

What I want to be able to do is to draw 'grab points' so that the user can resize a subview.

If I draw inside the view, the subviews draw over top of what I draw. I need to be able to draw after the subviews draw.

Where would I hook into the drawing process to do this?

Thanks,

Mark
_______________________________________________
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


References: 
 >Drawing over a view's subviews (From: Mark Morrill <email@hidden>)

  • Prev by Date: Re: Drawing over a view's subviews
  • Next by Date: Re: Drawing over a view's subviews
  • Previous by thread: Re: Drawing over a view's subviews
  • Next by thread: Re: Drawing over a view's subviews
  • Index(es):
    • Date
    • Thread