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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to