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

[SOLVED] Re: Click in underlying document while sheet displayed?


  • Subject: [SOLVED] Re: Click in underlying document while sheet displayed?
  • From: Graham Cox <email@hidden>
  • Date: Thu, 31 Mar 2011 22:02:59 +1100

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 (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>)
 >Re: Click in underlying document while sheet displayed? (From: Ken Thomases <email@hidden>)

  • Prev by Date: Re: Distribution via DMG fails
  • Next by Date: Re: iOS - Play streaming(mp3) audio with effects
  • Previous by thread: Re: Click in underlying document while sheet displayed?
  • Next by thread: constructor cannot be overloaded?
  • Index(es):
    • Date
    • Thread