gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mouse cursor out of place?


From: Bluna Ratimonkey
Subject: Re: Mouse cursor out of place?
Date: Fri, 24 Jun 2011 04:53:14 +0700

Oh sorry,
the mouse down was

NSPoint mouseDownPoint = [self convertPointFromBase:[anEvent locationInWindow]];

I tried this instead without success though. Was wondering if I should do this.

                                [self dragImage:[NSImage 
imageNamed:@"Plug.tiff"]
                                        at:[self convertPointFromBase:[anEvent 
locationInWindow]]
                                        offset:NSZeroSize
                                        event:anEvent
                                        pasteboard:pb
                                        source:mouseDownPort
                                        slideBack:YES];

The case is in TMNodeView.m line 842
Thanks,
Bluna

On Fri, Jun 24, 2011 at 4:24 AM, Fred Kiefer <address@hidden> wrote:
> Thank you for the code snipplet. But this doesn't include the source of the 
> mouse down point, which is the most interesting value here. Most likely this 
> is in the wrong coordinate system, I will have to check in the full source 
> code.
>
> Fred
>
> On the road
>
> Am 23.06.2011 um 20:57 schrieb Bluna Ratimonkey <address@hidden>:
>
>> Thanks guys
>>
>> and for Fred, here's the code that start the dragging process.
>>
>> http://pastebin.com/te9WiGew
>>
>> the code that starts it begins ~ line 43
>>
>> for the rest you can
>>  git clone git://git.sv.gnu.org/threadmill.git
>> then
>>  cd threadmill && ./build.sh br
>>
>> Thanks a lot!
>> Bluna
>>
>>
>> On Thu, Jun 23, 2011 at 11:09 PM, Fred Kiefer <address@hidden> wrote:
>>> Yes, this really looks great. I don't quite understand what it does, but it
>>> does it a lot nicer than any other GNUstep applications I know.
>>>
>>> I am willing to help with the drag image position. Could you please mail me
>>> the code that starts this operation?
>>>
>>> Thank you
>>> Fred
>>>
>>> On 23.06.2011 04:38, Bluna Ratimonkey wrote:
>>>>
>>>> Hi,
>>>> Why mouse image is out of place. Is it like that in WMaker or did I do
>>>> something wrong?
>>>>
>>>> Like the plug in this one... http://www.youtube.com/watch?v=MPa95IJ1-a8
>>>>
>>>> Thanks,
>>>> Bluna
>>>>
>>>> PS. Check out my other unrelated video, me doing 3SUM in action!
>>>>
>>>> http://www.youtube.com/watch?v=FcsEGUd37U8
>>>
>>>
>>> _______________________________________________
>>> Gnustep-dev mailing list
>>> address@hidden
>>> https://lists.gnu.org/mailman/listinfo/gnustep-dev
>>>
>>
>>
>>
>> --
>> /* Join Bluna Ratimonkey (漫画家) and build the real future for GNUstep ! */
>>    [@"http://mus3.sourceforge.net"; setNeedsYourHelps:YES!!];
>



-- 
/* Join Bluna Ratimonkey (漫画家) and build the real future for GNUstep ! */
   [@"http://mus3.sourceforge.net"; setNeedsYourHelps:YES!!];



reply via email to

[Prev in Thread] Current Thread [Next in Thread]