Xojo Conferences
XDCMay2019MiamiUSA

[MBS] 3.2pr14 (MBS Xojo Plugin Mailinglist archive)

Back to the thread list
Previous thread: [MBS] Fwd: execute rb app from a webserver or commandline
Next thread: [MBS] Welcome to the 100th member of this list!


Re: [MBS] MIDI Destinations and External Devices   -   Ron Benditt
  [MBS] 3.2pr14   -   Christian Schmitz
   Re: [MBS] 3.2pr14   -   Frederik Seiffert
    Re: [MBS] 3.2pr14   -   Christian Schmitz
   Re: [MBS] 3.2pr14   -   Paul
    Re: [MBS] 3.2pr14   -   Christian Schmitz
   Re: [MBS] 3.2pr14   -   aron nelson
    Re: [MBS] 3.2pr14   -   Christian Miller
     Re: [MBS] 3.2pr14   -   Christian Schmitz
      Re: [MBS] 3.2pr14   -   Christian Miller
   Re: [MBS] 3.2pr14   -   aron nelson
    Re: [MBS] 3.2pr14   -   Christian Schmitz
     Re: [MBS] 3.2pr14   -   aron nelson
      Re: [MBS] 3.2pr14   -   Christian Schmitz
      Re: [MBS] 3.2pr14   -   aron
       Re: [MBS] 3.2pr14   -   Christian Schmitz
        Re: [MBS] 3.2pr14   -   Andreas Sander
        Re: [MBS] 3.2pr14   -   aron
         Re: [MBS] 3.2pr14   -   Christian Schmitz
        [MBS] Keypress charcode   -   aron nelson
     Re: [MBS] 3.2pr14   -   Winfried Henrich
   Re: [MBS] 3.2pr14   -   Charlie Boisseau
    Re: [MBS] 3.2pr14   -   Christian Schmitz
    Re: [MBS] 3.2pr14   -   Christian Schmitz
   Re: [MBS] 3.2pr14   -   Carsten Friehe
    Re: [MBS] 3.2pr14   -   Christian Schmitz
     Re: [MBS] 3.2pr14   -   Carsten Friehe

[MBS] 3.2pr14
Date: 21.04.03 00:18 (Mon, 21 Apr 2003 01:18:14 +0200)
From: Christian Schmitz
Hi,

A lot of things changed while working on the new alpha, so first a quick
list of changes from the release notes:

* The help which comes included with the download was changed to work
with short file names.
* Fixed services (on Mac OS X) and included an example to demonstrate
how it works.
* Added SoftDeclareMBS.LoadLibaryFile to load frameworks from any
folder.
* Several improvements to the QTComponentInformation class including two
new functions: CountComponentsOfType and NextComponentOfType.
* Note: QuickTime crashes when reading bad JPEG files. This affects the
QTGraphicsImporterMBS class and folderitem.OpenAsPicture. Only
folderitem.OpenAsJPEG doesn't crash for damaged JPEG files.
* Added date properties to the CatSearchMBS class.
* Added folderitem.ModificationDateMBS folderitem.CreationDateMBS
folderitem.BackupDateMBS
* Added submenu support to the Statusitem class.
* Added new methods for Core Foundation to the System object.
* Added new functions to the CFDateMBS class. Some others moved to the
new CFAbsoluteTimeMBS class.
* Added CFGregorianDateMBS, CFAbsoluteTimeMBS, CFGregorianUnitsMBS,
CFTimeZoneMBS and CFTimeIntervalMBS classes.
* Removed CFDateValuesMBS class.
* Added Events to the CocoaMenuItemMBS class.

Examples you should check out are the "Services on Mac OS X" folder,
"StatusItem with submenu" and "StatusItem with Events", "Find stuff from
today" and finally "Sound Output Component".

The movie class got some more functions for track function. But I think
I will add in one of the next versions a TrackMBS class to do such stuff
more directly. But we'll see.

Mfg
Christian

Re: [MBS] 3.2pr14
Date: 21.04.03 01:06 (Mon, 21 Apr 2003 02:06:04 +0200)
From: Frederik Seiffert

> * Added Events to the CocoaMenuItemMBS class.

Very cool indeed. Two showstoppers though:

- doesn't work in the IDE (RB 4.5.3, not too important)
- will crash compiled app when the app is not foreground and a menu item is
chosen

> * Added new methods for Core Foundation to the System object.

What would these new methods be?

Thanks!
Frederik

Re: [MBS] 3.2pr14
Date: 21.04.03 11:02 (Mon, 21 Apr 2003 12:02:59 +0200)
From: Christian Schmitz
> > * Added Events to the CocoaMenuItemMBS class.
>
> Very cool indeed. Two showstoppers though:
>
> - doesn't work in the IDE (RB 4.5.3, not too important)

That's normal for all carbon events.

> - will crash compiled app when the app is not foreground and a menu item is
> chosen

It works here, so maybe you can give me a crash report?

> > * Added new methods for Core Foundation to the System object.
>
> What would these new methods be?

For current timezone values.

Mfg
Christian

Re: [MBS] 3.2pr14
Date: 21.04.03 01:07 (Sun, 20 Apr 2003 20:07:25 -0400)
From: Paul
In this new version bevelbutton.Clock.. Functions don't work. The show up in
the tips window and in auto complete but the compiler says no method or
property exists. This happens with the included example and when writing it
myself in RB 5.1fc1.

Re: [MBS] 3.2pr14
Date: 21.04.03 11:03 (Mon, 21 Apr 2003 12:03:00 +0200)
From: Christian Schmitz
> In this new version bevelbutton.Clock.. Functions don't work. The show up in
> the tips window and in auto complete but the compiler says no method or
> property exists. This happens with the included example and when writing it
> myself in RB 5.1fc1.

Fine. You found a bug in RB 5.1fc1.

The compiler seems to ignore the class extension to the bevelbutton
class.

Please report this on the bugreport website from RS.

Mfg
Christian

Re: [MBS] 3.2pr14
Date: 21.04.03 02:23 (Sun, 20 Apr 2003 15:23:49 -1000)
From: aron nelson
>Examples you should check out are the "Services on Mac OS X" folder,
>"StatusItem with submenu" and "StatusItem with Events", "Find stuff from
>today" and finally "Sound Output Component".

Thank you!

Aron

Re: [MBS] 3.2pr14
Date: 21.04.03 04:40 (Sun, 20 Apr 2003 23:40:46 -0400)
From: Christian Miller
Where might I find a CocoaMenuItem example? :)

Re: [MBS] 3.2pr14
Date: 21.04.03 11:03 (Mon, 21 Apr 2003 12:03:01 +0200)
From: Christian Schmitz
> Where might I find a CocoaMenuItem example? :)

Äh? The two new statusitem example show it. Or are you missing
something?

mfg
Christian

-

Re: [MBS] 3.2pr14
Date: 21.04.03 13:00 (Mon, 21 Apr 2003 08:00:02 -0400)
From: Christian Miller

On Monday, April 21, 2003, at 06:03 AM, Christian Schmitz wrote:

>> Where might I find a CocoaMenuItem example? :)
>
> Äh? The two new statusitem example show it. Or are you missing
> something?

I was looking for something that said "CocoMenuItem Example". :)
Thanks!

-

Re: [MBS] 3.2pr14
Date: 21.04.03 09:58 (Sun, 20 Apr 2003 22:58:28 -1000)
From: aron nelson
>Examples you should check out are the "Services on Mac OS X" folder,

I just tried it. For some reason, I cannot get the demo to do
anything. The service menu items do show up, but choosing them does
nothing.

I tried compiling with 4.5.2 and 5.1fc1 and both didn't seem to make
a difference.

This was with OS X 10.2.5

Thanks,

Aron

Re: [MBS] 3.2pr14
Date: 21.04.03 11:07 (Mon, 21 Apr 2003 12:07:31 +0200)
From: Christian Schmitz
> >Examples you should check out are the "Services on Mac OS X" folder,
>
> I just tried it. For some reason, I cannot get the demo to do anything.
> The service menu items do show up, but choosing them does nothing.

The service application must be compiled and sitting inside the bundle.
Than you drop the bundle into the application folder.
Of course the data in the info.plist must be correct (unique bundle id
and name of executeable file).

If it still doesn't work, please look for debug messages on the console
which may help.

Mfg
Christian

Re: [MBS] 3.2pr14
Date: 21.04.03 19:12 (Mon, 21 Apr 2003 08:12:31 -1000)
From: aron nelson
>The service application must be compiled and sitting inside the bundle.
Than you drop the bundle into the application folder.
Of course the data in the info.plist must be correct (unique bundle id
and name of executeable file).

Yes, that's what I did. I logged out and in as well.

>If it still doesn't work, please look for debug messages on the console
which may help.

OK, I will try that.

Does it need 4.52 or will 5.1fc1 work as well?

Thanks,

Aron

Re: [MBS] 3.2pr14
Date: 21.04.03 20:04 (Mon, 21 Apr 2003 21:04:24 +0200)
From: Christian Schmitz

> Does it need 4.52 or will 5.1fc1 work as well?

I used 4.5.2 and I don't know about 5.1 is good or bad for this.
Andreas Sander reported that it works for him. Maybe you talk to him.

Mfg
Christian

Re: [MBS] 3.2pr14
Date: 21.04.03 21:56 (Mon, 21 Apr 2003 10:56:17 -1000)
From: aron
At 09:04 PM 4/21/2003 +0200, you wrote:
>I used 4.5.2 and I don't know about 5.1 is good or bad for this.
>Andreas Sander reported that it works for him. Maybe you talk to him.

Who is Andreas Sander?

What is his email?

Anyway, I tried with 4.52 and 5.1 under 10.2.5.

Where you trying with 10.2.5?

Thanks,

Aron

Re: [MBS] 3.2pr14
Date: 21.04.03 22:07 (Mon, 21 Apr 2003 23:07:38 +0200)
From: Christian Schmitz
> At 09:04 PM 4/21/2003 +0200, you wrote:
> >I used 4.5.2 and I don't know about 5.1 is good or bad for this.
> >Andreas Sander reported that it works for him. Maybe you talk to him.
>
> Who is Andreas Sander?
> What is his email?

Sorry, Andreas Sander <<email address removed>>.

> Anyway, I tried with 4.52 and 5.1 under 10.2.5.
>
> Where you trying with 10.2.5?

Yes.
Can you send me your compiled service bundle for testing?
(offlist!)

Mfg
Christian

Re: [MBS] 3.2pr14
Date: 22.04.03 12:43 (Tue, 22 Apr 2003 13:43:12 +0200)
From: Andreas Sander
On 2003-04-21 23:07:38 +0200 Christian Schmitz <<email address removed>> wrote:

>> At 09:04 PM 4/21/2003 +0200, you wrote:
>>> I used 4.5.2 and I don't know about 5.1 is good or bad for this.
>>> Andreas Sander reported that it works for him. Maybe you talk to him.
>>
>> Who is Andreas Sander?
>> What is his email?
>
> Sorry, Andreas Sander <<email address removed>>.
>

Hallo,

I updated "Eddie the blind eagle" and it should be available on Versiontracker. It's a good example how services works. :-)

Andy

Re: [MBS] 3.2pr14
Date: 23.04.03 00:16 (Tue, 22 Apr 2003 13:16:04 -1000)
From: aron
At 01:43 PM 4/22/2003 +0200, you wrote:
>I updated "Eddie the blind eagle" and it should be available on
>Versiontracker. It's a good example how services works. :-)

Andreas,

What did you have to do to get it to work?

I control clicked and opened the bundle.
Compile the .rb file.
Copied the bundle into the Applications folder.
Logged out, then in.
Selected text in a notepad app and saw the new menu items.

I tried selecting the new menu items with and without the demo app running.

Nothing happened.

Aron

Re: [MBS] 3.2pr14
Date: 23.04.03 20:59 (Wed, 23 Apr 2003 21:59:33 +0200)
From: Christian Schmitz
> What did you have to do to get it to work?

The bundle must be named with a ".app" at the end.

Seems like I made a mistake there.

Mfg
Christian

Re: [MBS] 3.2pr14
Date: 21.04.03 20:16 (Mon, 21 Apr 2003 21:16:47 +0200)
From: Winfried Henrich
I have tried it also, nothing happens. There is no message in the console,
when i choose one of the test menuitems. HmŠ

Mac OS X 10.2.5
RB 4.5.3

BTW: it would be fine for the services, to get the files as folderitem
selected in the finder. I have tried it with apple events, but it doesn't
work. Have someone an working example for OS X?

>> I just tried it. For some reason, I cannot get the demo to do anything.
>> The service menu items do show up, but choosing them does nothing.
>
> The service application must be compiled and sitting inside the bundle.
> Than you drop the bundle into the application folder.
> Of course the data in the info.plist must be correct (unique bundle id
> and name of executeable file).
>
> If it still doesn't work, please look for debug messages on the console
> which may help.
>
winfried

-

Re: [MBS] 3.2pr14
Date: 21.04.03 10:26 (Mon, 21 Apr 2003 10:26:10 +0100)
From: Charlie Boisseau
> "StatusItem with submenu" and "StatusItem with Events"

Neither of these work for me in RB v5.1fc1. The submenu example reports a
nilobject exception and the events example doesn't fire any events on the
menus.

Re: [MBS] 3.2pr14
Date: 21.04.03 11:03 (Mon, 21 Apr 2003 12:03:01 +0200)
From: Christian Schmitz
> > "StatusItem with submenu" and "StatusItem with Events"
>
> Neither of these work for me in RB v5.1fc1. The submenu example reports a
> nilobject exception and the events example doesn't fire any events on the
> menus.

Well, the events example works for me in 5.1fc1 on 10.2.5, so is there
any debug output on the console?

Maybe something like using the wrong statusitem.bundle?

Mfg
Christian

Re: [MBS] 3.2pr14
Date: 21.04.03 17:33 (Mon, 21 Apr 2003 18:33:01 +0200)
From: Christian Schmitz
> > "StatusItem with submenu" and "StatusItem with Events"
>
> Neither of these work for me in RB v5.1fc1. The submenu example reports a
> nilobject exception and the events example doesn't fire any events on the
> menus.

Ok. I found two ways a crash can be created.

The first thing, I change in the plugin.
And the second thing is that RB may release your CocoaMenuItem. The
Statusmenu Item doesn't keep a reference to the RB objects, so you need
to do this.

The new unified StatusItem example will shows this. Simply the menu
items are kept in an array till the application quits.

Mfg
Christian

Re: [MBS] 3.2pr14
Date: 25.04.03 20:13 (Fri, 25 Apr 2003 21:13:54 +0200)
From: Carsten Friehe
Hi Christian!

>* Removed CFDateValuesMBS class.

I saw that you used this class in your Addressbook demo "Show my entry".
What should there be used instead?

Carsten

Re: [MBS] 3.2pr14
Date: 25.04.03 20:28 (Fri, 25 Apr 2003 21:28:15 +0200)
From: Christian Schmitz
> Hi Christian!
>
> >* Removed CFDateValuesMBS class.
>
> I saw that you used this class in your Addressbook demo "Show my entry".
> What should there be used instead?

CFGregorianDateMBS, like this:

Sub trydate(person as abpersonmbs,p as cfStringmbs,label as
staticText,text as staticText)
dim v as CFDateMBS
dim dv as CFGregorianDateMBS
dim s as CFStringMBS
dim o as CFObjectMBS
dim d as Date
dim at as CFAbsoluteTimeMBS

s ABlocalizeString(p)
if s=nil then
label.text=p.str
else
label.text=s.str
end if

o=person.GetValue(p)
if o<>Nil and o.Type=kCFDateMBSTypeID then
o.RetainObject
v=NewCFDateMBSHandle(o.Handle,true)
end if
if v<>nil then
d=new date
at=v.AbsoluteTime
dv .GregorianDate(nil)

d.yearÐ.year
d.monthÐ.month
d.dayÐ.day
text.textÐlongdate
else
text.text="?"
end if
End Sub

Mfg
Christian

--
Fou

Re: [MBS] 3.2pr14
Date: 25.04.03 21:11 (Fri, 25 Apr 2003 22:11:39 +0200)
From: Carsten Friehe
Hi!

>CFGregorianDateMBS, like this:

Thank you!

Carsten