Thanks for the suggestions,

Turns out it was straightforward, given a mode for doing the capture. Just 
required an event-fetching loop that used the global mouse position, passed to 
the dialog's delegate (which can perform a global > local conversion, and has 
access to all the relevant parts of the data model). The mode is ended on a 
click or keypress so the user doesn't get stuck in it.

--Graham



On 31/03/2011, at 12:43 PM, Ken Thomases wrote:

> On Mar 30, 2011, at 7:01 PM, Graham Cox wrote:
> 
>> 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.
> 
> You might have mentioned the solution to your own problem: do it like the 
> color panel.  That is, don't use a document-modal sheet.  Use an inspector or 
> other panel.  Not appropriate for every situation, but might work for this 
> purpose.

_______________________________________________

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