• 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: Click in underlying document while sheet displayed?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Click in underlying document while sheet displayed?


  • Subject: Re: Click in underlying document while sheet displayed?
  • From: WT <email@hidden>
  • Date: Wed, 30 Mar 2011 21:21:10 -0300

On Mar 30, 2011, at 9:01 PM, Graham Cox wrote:

> Hi all,
>
> I have a situation where I present a sheet dialog. The sheet asks the user for some input values to perform a "polar duplicate" of a graphic object in the underlying document (number of copies, rotation increment, etc). One of the parameters is the centre point, and I figure a nice way to allow the user to set this is to allow them simply to click in the document which enters the value of that point into the dialog's text fields.
>
> The problem is of course, how to do this while the sheet is showing, since it grabs all the events. It would be acceptable (and probably necessary) to have a special mode a bit like Color Panel's sampling click mode for doing  this.
>
> Just looking for inspiration on an approach to take...
>
> --Graham

Hi Graham,

if I understand correctly what you're trying to do, it's similar to an app I wrote quite some time ago. In that app, I was creating fractals and needed a means for the user to set the point around which to zoom in. The way I solved it was to have a smaller-scale version of the full image already rendered on the window, appearing as a custom view on the sheet. Of course, rendering the smaller-scale version need not be done in much detail.

That avoids the issue of getting a click through the sheet. Maybe you could try something similar.

Hope this helps.
WT_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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: 
 >Click in underlying document while sheet displayed? (From: Graham Cox <email@hidden>)

  • Prev by Date: Click in underlying document while sheet displayed?
  • Next by Date: constructor cannot be overloaded?
  • Previous by thread: Click in underlying document while sheet displayed?
  • Next by thread: Re: Click in underlying document while sheet displayed?
  • Index(es):
    • Date
    • Thread