FROM : Ricky Sharp
DATE : Tue Dec 07 18:24:03 2004
On Tuesday, December 07, 2004, at 10:51AM, Lorenzo <<email_removed>> wrote:
>> when my window is not active, I have to click once then I have to click again
>> in order to select an object. I forgot how to make this in one click only.
>> Could someone remind me that?
>> Thanks.
>I have found, just to let the others know, in the window's delegate:
>
>-(void)windowDidBecomeMain:(NSNotification*)aNotification
>{
> [theView mouseDown:[NSApp currentEvent]];
>}
If your view is a custom view, you can also provide an implementation of acceptsFirstMouse: to return YES.
--
Rick Sharp
Intstant Interactive(tm)
DATE : Tue Dec 07 18:24:03 2004
On Tuesday, December 07, 2004, at 10:51AM, Lorenzo <<email_removed>> wrote:
>> when my window is not active, I have to click once then I have to click again
>> in order to select an object. I forgot how to make this in one click only.
>> Could someone remind me that?
>> Thanks.
>I have found, just to let the others know, in the window's delegate:
>
>-(void)windowDidBecomeMain:(NSNotification*)aNotification
>{
> [theView mouseDown:[NSApp currentEvent]];
>}
If your view is a custom view, you can also provide an implementation of acceptsFirstMouse: to return YES.
--
Rick Sharp
Intstant Interactive(tm)
| Related mails | Author | Date |
|---|---|---|
| Lorenzo | Dec 7, 17:55 | |
| Ricky Sharp | Dec 7, 18:24 | |
| Lorenzo | Dec 7, 22:24 |






Cocoa mail archive

