Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

[MBS] TransitionWindow in Cocoa? (MBS Xojo Plugin Mailinglist archive)

Back to the thread list
Previous thread: [MBS] [ANN] Reselling Real Studio / Xojo licenses
Next thread: [MBS] DyanPDF isColorPage


Re: [MBS] PortAudio bug?   -   Garth Hjelte
  [MBS] TransitionWindow in Cocoa?   -   Marnaud
   Re: [MBS] TransitionWindow in Cocoa?   -   Christian Schmitz
   Re: [MBS] TransitionWindow in Cocoa?   -   Koua Lo
   Re: [MBS] TransitionWindow in Cocoa?   -   Christian Schmitz
   Re: [MBS] TransitionWindow in Cocoa?   -   Beatrix Willius
   Re: [MBS] TransitionWindow in Cocoa?   -   Marnaud
   Re: [MBS] TransitionWindow in Cocoa?   -   Christian Schmitz
   Re: [MBS] TransitionWindow in Cocoa?   -   Marnaud
   Re: [MBS] TransitionWindow in Cocoa?   -   Christian Schmitz

[MBS] TransitionWindow in Cocoa?
Date: 07.05.13 09:06 (Tue, 07 May 2013 10:06:12 +0200)
From: Marnaud
Greetings,

I'm trying to use the Window.TransitionWindow method, which I used to like in a previous project, but this time I'm on Cocoa. The documentation says this:
“Works only in Carbon, not in Cocoa. For Cocoa please use NSWindowMBS class.”.

So far, so good, I've checked the documentation of NSWindowMBS class and the only *possible* method I've found is “NSWindowMBS.animator”, but it returns a NSWindowMBS object, so I don't think it's what I'm looking for (and it only permits to change properties of the existing window).

I'd like to have effects like the “genie” effect, or the window coming with zoom out rectangles (or other effects that are available with TransitionWindow in Carbon). What's the magical command?
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] TransitionWindow in Cocoa?
Date: 07.05.13 16:58 (Tue, 7 May 2013 17:58:51 +0200)
From: Christian Schmitz

Am 07.05.2013 um 14:53 schrieb Koua Lo <<email address removed>>:

> Christian,
>
> Is it too much to ask for some transitional examples to be added for the
> final release (including CGS* examples like flip)? I really enjoy using
> your examples as a sort of reference library so I don't have to dig so much
> into MBS. MBShas become quite large over the years.

I think our CGS examples work both in Cocoa and Carbon.

Greetings
Christian

Re: [MBS] TransitionWindow in Cocoa?
Date: 07.05.13 13:53 (Tue, 7 May 2013 07:53:00 -0500)
From: Koua Lo
Christian,

Is it too much to ask for some transitional examples to be added for the
final release (including CGS* examples like flip)? I really enjoy using
your examples as a sort of reference library so I don't have to dig so much
into MBS. MBShas become quite large over the years.

Thanks,

Koua

On Tuesday, May 7, 2013, Christian Schmitz wrote:

>
> Am 07.05.2013 um 10:39 schrieb Beatrix Willius <<email address removed><javascript:;>
> >:
>
> > On the advice from Sam Rowlands I had a quick look at his app Shine,
> where he uses something to flip the window. He told me that he uses
> CoreGraphics. So something must be available.
>
> The CGS* classes work with Cocoa, so you can have the flip effect.
>
> Greetings
> Christian
>
> --
> Read our blog about news on our plugins:
>
> http://www.mbsplugins.de/
>
> _______________________________________________
> Mbsplugins_monkeybreadsoftware.info mailing list
> <email address removed> <javascript:;>
> https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
>
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] TransitionWindow in Cocoa?
Date: 07.05.13 09:39 (Tue, 7 May 2013 10:39:39 +0200)
From: Christian Schmitz

Am 07.05.2013 um 10:39 schrieb Beatrix Willius <<email address removed>>:

> On the advice from Sam Rowlands I had a quick look at his app Shine, where he uses something to flip the window. He told me that he uses CoreGraphics. So something must be available.

The CGS* classes work with Cocoa, so you can have the flip effect.

Greetings
Christian

Re: [MBS] TransitionWindow in Cocoa?
Date: 07.05.13 09:39 (Tue, 7 May 2013 10:39:00 +0200)
From: Beatrix Willius
On the advice from Sam Rowlands I had a quick look at his app Shine, where he uses something to flip the window. He told me that he uses CoreGraphics. So something must be available.

On 07.05.2013, at 10:32, Christian Schmitz <<email address removed>> wrote:

>
> Am 07.05.2013 um 10:30 schrieb Marnaud <<email address removed>>:
>
>> And for kWindowGenieTransitionEffect, any clue you might give is welcome. Should I compute the window's buffer and draw it on screen?
>
>
> Maybe you google and see how people do it in Cocoa apps?
> maybe I can simply add it as a method if I know which API to use.

Mit freundlichen Grüßen/Regards

Trixi Willius

http://www.mothsoftware.com
Mail Archiver X: The email archiving solution for professionals

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] TransitionWindow in Cocoa?
Date: 07.05.13 09:38 (Tue, 07 May 2013 10:38:19 +0200)
From: Marnaud
Le 7 mai 2013 à 10:32, Christian Schmitz a écrit:

> Maybe you google and see how people do it in Cocoa apps?

That's usually not my preferred method. Because I avoid programming in C and such (one reason I use RB), I'm often lost by all the traditional Cocoa programming pieces of code (where do I search for constants value? What does c==+!-- mean? What's the API for <long method name>?). But, well, I'll give it a try…

> maybe I can simply add it as a method if I know which API to use.

Is it at least available in Cocoa?

Thanks.
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] TransitionWindow in Cocoa?
Date: 07.05.13 09:32 (Tue, 7 May 2013 10:32:45 +0200)
From: Christian Schmitz

Am 07.05.2013 um 10:30 schrieb Marnaud <<email address removed>>:

> And for kWindowGenieTransitionEffect, any clue you might give is welcome. Should I compute the window's buffer and draw it on screen?

Maybe you google and see how people do it in Cocoa apps?
maybe I can simply add it as a method if I know which API to use.

Greetings
Christian

Re: [MBS] TransitionWindow in Cocoa?
Date: 07.05.13 09:30 (Tue, 07 May 2013 10:30:49 +0200)
From: Marnaud
Le 7 mai 2013 à 10:19, Christian Schmitz a écrit:

> There may be none.

Ok. In this case, I think the note (“Works only in Carbon, not in Cocoa. For Cocoa please use NSWindowMBS class.”) should be shortened, since the second part is wrong, should it not?

> In general we use API for the TransitionWindow function which is Carbon only.

Yes, a cool API that is no longer available.

> The animator does indeed offer some animations:
>
> dim w as new NSWindowMBS(self)
>
> dim r as NSRectMBS = w.frame
> r.x = r.x + 10
> w.animator.setFrame r

Then I have to make them from code. kWindowFadeTransitionEffect and kWindowSlideTransitionEffect are certainly easily doable (a short timer that changes the bounds or the alpha value). I won't implement kWindowSheetTransitionEffect because I don't have a parent window.

So there remains these two traditional Mac OS effects: kWindowZoomTransitionEffect and kWindowGenieTransitionEffect. For kWindowZoomTransitionEffect, I'd have to draw directly on screen, is it possible?
And for kWindowGenieTransitionEffect, any clue you might give is welcome. Should I compute the window's buffer and draw it on screen?

Thank you.
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] TransitionWindow in Cocoa?
Date: 07.05.13 09:19 (Tue, 7 May 2013 10:19:50 +0200)
From: Christian Schmitz

Am 07.05.2013 um 10:06 schrieb Marnaud <<email address removed>>:

> Greetings,
>
> I'd like to have effects like the “genie” effect, or the window coming with zoom out rectangles (or other effects that are available with TransitionWindow in Carbon). What's the magical command?

There may be none.

The animator does indeed offer some animations:

dim w as new NSWindowMBS(self)

dim r as NSRectMBS = w.frame
r.x = r.x + 10
w.animator.setFrame r

In general we use API for the TransitionWindow function which is Carbon only.

Greetings
Christian

--