[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bindings
Subject:    Re: [Kde-bindings] Get a pointer to SmokeBinding
From:       j j <jerro.public () gmail ! com>
Date:       2013-01-14 23:19:23
Message-ID: CAOYRX8z4usmWG8kim_63pUG4mdpLcF26fY6f-=fwDsvheLxbmA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


> But if there's a valid use-case I wouldn't object to implementing this in
smokev4.

I'm only learning to use Smoke, so maybe what I want to do can be achieved
in some other way. I wan't to be able to call the most derived method given
a Smoke object.

Say I have a Smoke object foo of type Foo, on which I have set a
SmokeBinding bind which overrides bar(). Now say I call foo's method bar()
thorugh the Smoke api. It seems that this results in Foo.bar being called
directly, without bind->callMethod() being called first. I could call the
most derived method if I could get to the binding instance, but if there's
a better way to do it, I'd love to hear about it.

regards,
jerro


On Mon, Jan 14, 2013 at 3:18 PM, Arno Rehn <arno@arnorehn.de> wrote:

> On 14/01/13 01:36, j j wrote:
> 
> > Hi,
> > 
> > Is there any way to get a pointer to the SmokeBinding from a smoke object?
> > 
> No. Why would you need to do that? The SmokeBinding only implements
> callbacks, so normally you shouldn't have to access it directly.
> But if there's a valid use-case I wouldn't object to implementing this in
> smokev4.
> 
> --
> Arno Rehn
> ______________________________**_________________
> Kde-bindings mailing list
> Kde-bindings@kde.org
> https://mail.kde.org/mailman/**listinfo/kde-bindings<https://mail.kde.org/mailman/listinfo/kde-bindings>
>  


[Attachment #5 (text/html)]

<div dir="ltr">&gt; <span style="font-family:arial,sans-serif;font-size:13px">But if \
there&#39;s a valid use-case I wouldn&#39;t object to implementing this in \
smokev4.</span><div><span style="font-family:arial,sans-serif;font-size:13px"><br> \
</span></div><div style><span \
style="font-family:arial,sans-serif;font-size:13px">I&#39;m only learning to use \
Smoke, so maybe what I want to do can be achieved in some other way. I wan&#39;t to \
be able to call the most derived method given a Smoke object. </span></div> <div \
style><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div \
style><span style="font-family:arial,sans-serif;font-size:13px">Say I have a Smoke \
object foo of type Foo, on which I have set a SmokeBinding bind which overrides \
bar(). Now say I call foo&#39;s method bar() thorugh the Smoke api. It seems that \
this results in Foo.bar being called directly, without bind-&gt;callMethod() being \
called first. I could call the most derived method if I could get to the binding \
instance, but if there&#39;s a better way to do it, I&#39;d love to hear about \
it.</span></div> <div style><br></div><div style><font face="arial, \
sans-serif">regards,</font></div><div style><font face="arial, \
sans-serif">jerro</font></div></div><div class="gmail_extra"><br><br><div \
class="gmail_quote">On Mon, Jan 14, 2013 at 3:18 PM, Arno Rehn <span dir="ltr">&lt;<a \
href="mailto:arno@arnorehn.de" target="_blank">arno@arnorehn.de</a>&gt;</span> \
wrote:<br> <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex"><div class="im">On 14/01/13 01:36, j j wrote:<br> \
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"> Hi,<br>
<br>
Is there any way to get a pointer to the SmokeBinding from a smoke object?<br>
</blockquote></div>
No. Why would you need to do that? The SmokeBinding only implements callbacks, so \
normally you shouldn&#39;t have to access it directly.<br> But if there&#39;s a valid \
use-case I wouldn&#39;t object to implementing this in smokev4.<span \
class="HOEnZb"><font color="#888888"><br> <br>
-- <br>
Arno Rehn<br>
______________________________<u></u>_________________<br>
Kde-bindings mailing list<br>
<a href="mailto:Kde-bindings@kde.org" target="_blank">Kde-bindings@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/kde-bindings" \
target="_blank">https://mail.kde.org/mailman/<u></u>listinfo/kde-bindings</a><br> \
</font></span></blockquote></div><br></div>



_______________________________________________
Kde-bindings mailing list
Kde-bindings@kde.org
https://mail.kde.org/mailman/listinfo/kde-bindings


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic