FROM : John Stiles
DATE : Wed Jan 16 16:59:18 2008
I am not certain if this will actually work, but you could try doing
performSelector:...inModes: in the preprocess step, and passing the
NSDefaultRunLoopMode as the mode. Theoretically, while the menu is open,
you'll be stuck in event tracking mode, and the selector will not be
called. Once the menu closes, you'll go back to the default mode and
wham! Your selector will get called.
I don't know if it will work because this technique /didn't/ work for me
with drag-and-drop in an outline view, due to what seems to be a bug in
Apple's outline view code :(
Apparao Mulpuri wrote:
> Thanks Nick,
>
> NSMenu has provides methods for doing pre process operations before its
> displaying. I need to capture events after user closes the dock menu with
> out doing/'clicking on any menu items in the Dockl menu.
>
> - Apparao.
>
> On 1/16/08, Nick Zitzmann <<email_removed>> wrote:
>
>> On Jan 15, 2008, at 10:29 PM, Apparao Mulpuri wrote:
>>
>>
>>> I have a application, in which i need to do some pre and post
>>> processing
>>> operations when the user open and close the dock menu. Is it
>>> possible using
>>> Cocoa?. f yes, please explain how?
>>>
>> The NSMenu delegate methods started working on Dock menus in Tiger &
>> later.
>>
>> Nick Zitzmann
>> <http://www.chronosnet.com/>
>>
>>
>>
>>
>>
>>
> _______________________________________________
>
> Cocoa-dev mailing list (<email_removed>)
>
> 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/<email_removed>
>
> This email sent to <email_removed>
>
DATE : Wed Jan 16 16:59:18 2008
I am not certain if this will actually work, but you could try doing
performSelector:...inModes: in the preprocess step, and passing the
NSDefaultRunLoopMode as the mode. Theoretically, while the menu is open,
you'll be stuck in event tracking mode, and the selector will not be
called. Once the menu closes, you'll go back to the default mode and
wham! Your selector will get called.
I don't know if it will work because this technique /didn't/ work for me
with drag-and-drop in an outline view, due to what seems to be a bug in
Apple's outline view code :(
Apparao Mulpuri wrote:
> Thanks Nick,
>
> NSMenu has provides methods for doing pre process operations before its
> displaying. I need to capture events after user closes the dock menu with
> out doing/'clicking on any menu items in the Dockl menu.
>
> - Apparao.
>
> On 1/16/08, Nick Zitzmann <<email_removed>> wrote:
>
>> On Jan 15, 2008, at 10:29 PM, Apparao Mulpuri wrote:
>>
>>
>>> I have a application, in which i need to do some pre and post
>>> processing
>>> operations when the user open and close the dock menu. Is it
>>> possible using
>>> Cocoa?. f yes, please explain how?
>>>
>> The NSMenu delegate methods started working on Dock menus in Tiger &
>> later.
>>
>> Nick Zitzmann
>> <http://www.chronosnet.com/>
>>
>>
>>
>>
>>
>>
> _______________________________________________
>
> Cocoa-dev mailing list (<email_removed>)
>
> 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/<email_removed>
>
> This email sent to <email_removed>
>
| Related mails | Author | Date |
|---|---|---|
| Apparao Mulpuri | Jan 16, 06:29 | |
| Nick Zitzmann | Jan 16, 06:40 | |
| Apparao Mulpuri | Jan 16, 07:51 | |
| John Stiles | Jan 16, 16:59 | |
| Peter Ammon | Jan 16, 20:40 |






Cocoa mail archive

