Xojo Conferences
XDCMay2019MiamiUSA

[MBS] Custom FolderIcon (MBS Xojo Plugin Mailinglist archive)

Back to the thread list
Previous thread: [MBS] FileMapping
Next thread: [MBS] movie player action filter


Re: [MBS] MIDI Destinations and External Devices   -   Ron Benditt
  [MBS] Custom FolderIcon   -   jis
   Re: [MBS] Custom FolderIcon   -   Christian Schmitz
    Re: [MBS] Custom FolderIcon   -   jis
     Re: [MBS] Custom FolderIcon   -   Knut Lorenzen
      Re: [MBS] Custom FolderIcon   -   jis
       Re: [MBS] Custom FolderIcon   -   Christian Schmitz
     Re: [MBS] Custom FolderIcon   -   Christian Schmitz
      Re: [MBS] Custom FolderIcon   -   jis
       Re: [MBS] Custom FolderIcon   -   Christian Schmitz
    Re: [MBS] Custom FolderIcon   -   Steve Kellogg
    Re: [MBS] Custom FolderIcon   -   jis
     Re: [MBS] Custom FolderIcon   -   Christian Schmitz
    Re: [MBS] Custom FolderIcon   -   jis
     Re: [MBS] Custom FolderIcon   -   Jason Rubin
     Re: [MBS] Custom FolderIcon   -   Christian Schmitz
      Re: [MBS] Custom FolderIcon   -   Steve Kellogg
    Re: [MBS] Custom FolderIcon   -   Greg O'Lone

[MBS] Custom FolderIcon
Date: 19.07.05 11:25 (Tue, 19 Jul 2005 12:25:17 +0200)
From: jis
Why doesn't this work? Please give me any clue.

Johan Simons

<code>

dim f as FolderItem, b as TextOutputStream, i as Integer
dim g as IconFamilyMBS, s as IconSuiteMBS, p, m as Picture

f = DesktopFolder.Child("Untitled").Child("Icon")
b = f.createTextFile
b.Close
f.Visible = false

f = DesktopFolder.Child("test.jpg")
p = f.OpenAsPicture

m = NewPicture(p.Width,p.Height,1)
m.Graphics.ForeColor = rgb(0,0,0)
m.Graphics.fillrect 0,0,m.Width,m.Height

g = newIconFamilyMBS
g.Thumbnail32BitData = p
g.Thumbnail8BitMask = m

g.Large1BitData = p
g.Large1BitMask = m
g.Large32BitData = p
g.Large4BitData = p
g.Large8BitData = p
g.Large8BitMask = m

g.Huge1BitData = p
g.Huge1BitMask = m
g.Huge32BitData = p
g.Huge4BitData = p
g.Huge8BitData = p
g.Huge8BitMask = m

g.Small1BitData = p
g.Small1BitMask = m
g.Small32BitData = p
g.Small4BitData = p
g.Small8BitData = p
g.Small8BitMask = m

f = DesktopFolder.Child("Untitled").Child("Icon")
i = f.AddCustomIconMBS(g, true)

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

Re: [MBS] Custom FolderIcon
Date: 19.07.05 20:17 (Tue, 19 Jul 2005 21:17:48 +0200)
From: Christian Schmitz
jis <<email address removed>> wrote:

> Why doesn't this work? Please give me any clue.
> f = DesktopFolder.Child("Untitled").Child("Icon")

The first thing is that for a folder icon you need much more than just
this Icon file which should named "Icon"+chr(13).

Please get the newer plugins with the "Custom Icon Test" test project
which shows exactly how to make a folder icon.

And I verified it to work even on Mac OS 9.

Mfg
Christian

Re: [MBS] Custom FolderIcon
Date: 19.07.05 21:49 (Tue, 19 Jul 2005 22:49:44 +0200)
From: jis
On 19 Jul 2005, at 9:17 PM, Christian Schmitz wrote:

> jis <<email address removed>> wrote:
>
>> Why doesn't this work? Please give me any clue.
>> f = DesktopFolder.Child("Untitled").Child("Icon")
>>
> The first thing is that for a folder icon you need much more than just
> this Icon file which should named "Icon"+chr(13).

Why then, don't you change that in your examples?

>
> Please get the newer plugins with the "Custom Icon Test" test project
> which shows exactly how to make a folder icon.

Not yet. I have lost already too many hours on your poor
documentation and buggy examples.

> And I verified it to work even on Mac OS 9.

Mac OS 9 is dead. But don't forget: your example mentions that it
works on OS X. With other words: you sold me a defective plugin!!!


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

Re: [MBS] Custom FolderIcon
Date: 19.07.05 22:11 (Tue, 19 Jul 2005 23:11:49 +0200)
From: Knut Lorenzen
jis schrieb dereinst (am 19.07.2005 22:49 Uhr) via <email address removed>:

>> Please get the newer plugins with the "Custom Icon Test" test project
>> which shows exactly how to make a folder icon.
>
> Not yet. I have lost already too many hours on your poor
> documentation and buggy examples.

Perhaps you should spend your precious time to provide a better plugin?

Get real.

Cheers,

Knut

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

Re: [MBS] Custom FolderIcon
Date: 19.07.05 22:26 (Tue, 19 Jul 2005 23:26:23 +0200)
From: jis

On 19 Jul 2005, at 11:11 PM, Knut Lorenzen wrote:

> jis schrieb dereinst (am 19.07.2005 22:49 Uhr) via <email address removed>:
>
>>> Please get the newer plugins with the "Custom Icon Test" test
>>> project
>>> which shows exactly how to make a folder icon.
>>>
>> Not yet. I have lost already too many hours on your poor
>> documentation and buggy examples.
>>
> Perhaps you should spend your precious time to provide a better
> plugin?
>
> Get real.
>

Yes, indeed. I rather do my job in pure Rb than spending all my time
fighting the MBS documentation that has no usable search-function.
Moreover, even the plugins I wrote for my own project don't use
property names that might *ever* conflict with Rb.

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

Re: [MBS] Custom FolderIcon
Date: 21.07.05 00:01 (Thu, 21 Jul 2005 01:01:34 +0200)
From: Christian Schmitz
jis <<email address removed>> wrote:

> Moreover, even the plugins I wrote for my own project don't use
> property names that might *ever* conflict with Rb.

You really have property names with "MBS" on the end of name?

Mfg
Christian

Re: [MBS] Custom FolderIcon
Date: 19.07.05 22:17 (Tue, 19 Jul 2005 23:17:09 +0200)
From: Christian Schmitz
jis <<email address removed>> wrote:

> > The first thing is that for a folder icon you need much more than just
> > this Icon file which should named "Icon"+chr(13).
>
> Why then, don't you change that in your examples?

The example was changed month ago and I have no idea which plugin
version you use and why you use this old example code.

> > And I verified it to work even on Mac OS 9.
>
> Mac OS 9 is dead. But don't forget: your example mentions that it
> works on OS X. With other words: you sold me a defective plugin!!!

It works here with 5.2 plugins, RB 5.5 and Mac OS X 10.4 doing nice
icons for files and folders.

The code is compatible with Mac OS 9 as I have customers asking for
this.

Mfg
Christian

Re: [MBS] Custom FolderIcon
Date: 19.07.05 22:36 (Tue, 19 Jul 2005 23:36:47 +0200)
From: jis

On 19 Jul 2005, at 11:17 PM, Christian Schmitz wrote:

> jis <<email address removed>> wrote:
>
>>> The first thing is that for a folder icon you need much more than
>>> just
>>> this Icon file which should named "Icon"+chr(13).
>>
>> Why then, don't you change that in your examples?
>>
> The example was changed month ago and I have no idea which plugin
> version you use and why you use this old example code.
>

The example I only yesterday found in your documentation.

>
>>> And I verified it to work even on Mac OS 9.
>>>
>> Mac OS 9 is dead. But don't forget: your example mentions that it
>> works on OS X. With other words: you sold me a defective plugin!!!
>>
> It works here with 5.2 plugins, RB 5.5 and Mac OS X 10.4 doing nice
> icons for files and folders.
>

To be honest, as long as you don't have your documentation usable and
searchable in plain English, I won't update from version 4.3 as I
have meanwhile rewritten the six or seven MBS-calls I used in my
project in pure Rb.

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

Re: [MBS] Custom FolderIcon
Date: 21.07.05 00:01 (Thu, 21 Jul 2005 01:01:34 +0200)
From: Christian Schmitz
jis <<email address removed>> wrote:

> > The example was changed month ago and I have no idea which plugin
> > version you use and why you use this old example code.
> >
> The example I only yesterday found in your documentation.

Where?
Without this information I can't fix it.
A full text search on the 10000 help files I have on disc does not find
the line "f = DesktopFolder.Child("test.jpg")".
And there is not a single line ".Child("Icon")", too.

> > It works here with 5.2 plugins, RB 5.5 and Mac OS X 10.4 doing nice
> > icons for files and folders.
>
> To be honest, as long as you don't have your documentation usable and
> searchable in plain English, I won't update from version 4.3 as I
> have meanwhile rewritten the six or seven MBS-calls I used in my
> project in pure Rb.

OK. Ways to search the help:

1.
Use the Google search from my website (on the left below the links)
which will find for "add folder icon" the example on the third and the
help on folderitem icon functions on first in the result list.

2.
The documentation has a link to the online search page
<http://www.monkeybreadsoftware.info/suchen.php>.
I know it is slow, but it does a simple full text search on all the html
files. First icon stuff is on 5th place and the custom icon example on
10th place.

3.
If you download the docs PDF you can search it in Preview, Acrobat or
whatever PDF viewer you have.

4.
Included with the downloadable docs there is a project "MBS Help
Search.rb" which is simple full text search.
The example is here on the 13th place.

5.
The "About the plugin" file contains instructions on makeing the whole
MBS help part of the Apple help system to have it searchable there.

Enough?

PS: You know that I'm trying to help you after your support time
expired?

Mfg
Christian

Re: [MBS] Custom FolderIcon
Date: 19.07.05 22:48 (Tue, 19 Jul 2005 16:48:31 -0500)
From: Steve Kellogg

On Jul 19, 2005, at 3:49 PM, jis wrote:
>
>>
>> Please get the newer plugins with the "Custom Icon Test" test project
>> which shows exactly how to make a folder icon.
>
> Not yet. I have lost already too many hours on your poor
> documentation and buggy examples.
>

Too many HOURS? Really? How is it possible to spend HOURS figuring
this out? Icon files have had a carriage return in them since custom
folder icons became part of Mac OS in the first place.

>> And I verified it to work even on Mac OS 9.
>
> Mac OS 9 is dead. But don't forget: your example mentions that it
> works on OS X. With other words: you sold me a defective plugin!!!
>

WOW, You're CLEARLY VERY IMPORTANT! Thanks for blessing us all with
your opinions.

I'm sure the fact that the current version of this example works fine
and that the lack of a carriage return is something that any high
school student would have noticed in MOMENTS are no excuses for the
fact that your precious time was wasted because none of us made a
special point to call you to tell you that the example had been
changed. Although I have no connection to Monkeybread, I just want to
take this opportunity to apologize for being so thoughtless. I'm sure
that everyone on the list is thinking the same thing.

I just hope you can someday forgive us.

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

Re: [MBS] Custom FolderIcon
Date: 19.07.05 23:04 (Wed, 20 Jul 2005 00:04:33 +0200)
From: jis
On 19 Jul 2005, at 11:48 PM, Steve Kellogg wrote:

>
> WOW, You're CLEARLY VERY IMPORTANT! Thanks for blessing us all with
> your opinions.
>
> I'm sure the fact that the current version of this example works fine
> and that the lack of a carriage return is something that any high
> school student would have noticed in MOMENTS

Don't worry, that was the first error I found in MBS sample codes.

> are no excuses for the
> fact that your precious time was wasted because none of us made a
> special point to call you to tell you that the example had been
> changed.

Examples should be verified. The example (and many more) I downloaded
when I paid for the 4.3 plugins should have been tested at the time.
The example *never* worked as was posted by Schmitz on-line (without
that Chr(13) --- mind you)...

> Although I have no connection to Monkeybread, I just want to
> take this opportunity to apologize for being so thoughtless. I'm sure
> that everyone on the list is thinking the same thing.

I don't agree. There are many, may MBS-customers who feel swindled
after being unable to find anything in the *very* unprofessional
documentation.

Johan Simons

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

Re: [MBS] Custom FolderIcon
Date: 21.07.05 00:08 (Thu, 21 Jul 2005 01:08:54 +0200)
From: Christian Schmitz
jis <<email address removed>> wrote:

>
> Don't worry, that was the first error I found in MBS sample codes.

For the first error you found you are crying quite loud.

> Examples should be verified. The example (and many more) I downloaded
> when I paid for the 4.3 plugins should have been tested at the time.
> The example *never* worked as was posted by Schmitz on-line (without
> that Chr(13) --- mind you)...

Let me check.
The "Custom Icon Test for Folder" example project from the 4.3 examples
does not include your bad code.
And in the html docs from version 4.3 I can't find them.

Where is this piece of code from?

> > Although I have no connection to Monkeybread, I just want to
> > take this opportunity to apologize for being so thoughtless. I'm sure
> > that everyone on the list is thinking the same thing.
>
> I don't agree. There are many, may MBS-customers who feel swindled
> after being unable to find anything in the *very* unprofessional
> documentation.

I regulary ask for what to improve.
Tell me what to improve and I may consider doing it.

Mfg
Christian

Re: [MBS] Custom FolderIcon
Date: 19.07.05 23:26 (Wed, 20 Jul 2005 00:26:43 +0200)
From: jis
Any way, I feel swindled. Schmitz should understand that when
*selling* plugins for Realbasic, writing code is *less than* half the
job. The more important part is how users can find the solution to
their problems in *Realbasic wordings*.

Johan Simons

On 20 Jul 2005, at 12:04 AM, jis wrote:

> On 19 Jul 2005, at 11:48 PM, Steve Kellogg wrote:
>
>> Although I have no connection to Monkeybread, I just want to
>> take this opportunity to apologize for being so thoughtless. I'm
>> sure
>> that everyone on the list is thinking the same thing.
>>
> I don't agree. There are many, many MBS-customers who feel swindled
> after being unable to find anything in the *very* unprofessional
> documentation.
>
> Johan Simons
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
http://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] Custom FolderIcon
Date: 20.07.05 12:59 (Wed, 20 Jul 2005 07:59:43 -0400)
From: Jason Rubin
I'm new here but is this conversation something that anyone feels is
helpful. If you don't like the plug-in, don't freaking use it. I'm
personally sick of seeing these *very* unprofessional emails while I am
trying to work.

Jason

On 7/19/05 6:26 PM, "jis" <<email address removed>> wrote:

> Any way, I feel swindled. Schmitz should understand that when
> *selling* plugins for Realbasic, writing code is *less than* half the
> job. The more important part is how users can find the solution to
> their problems in *Realbasic wordings*.
>
> Johan Simons
>
> On 20 Jul 2005, at 12:04 AM, jis wrote:
>
>> On 19 Jul 2005, at 11:48 PM, Steve Kellogg wrote:
>>
>>> Although I have no connection to Monkeybread, I just want to
>>> take this opportunity to apologize for being so thoughtless. I'm
>>> sure
>>> that everyone on the list is thinking the same thing.
>>>
>> I don't agree. There are many, many MBS-customers who feel swindled
>> after being unable to find anything in the *very* unprofessional
>> documentation.
>>
>> Johan Simons
> _______________________________________________
> Mbsplugins_monkeybreadsoftware.info mailing list
> <email address removed>
> http://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

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

Re: [MBS] Custom FolderIcon
Date: 21.07.05 00:15 (Thu, 21 Jul 2005 01:15:39 +0200)
From: Christian Schmitz
jis <<email address removed>> wrote:

> Any way, I feel swindled. Schmitz should understand that when
> *selling* plugins for Realbasic,

I'm not just selling plugins, I'm selling solutions.

Realbasic users have problems.
There a bugs in Realbasic and limitations in the built in functions.
I think half the plugin is code to replace Realbasic built in functions
for more access on specific details.
(e.g. Drag & Drop classes)

Realbasic users need more in Realbasic.
The plugins provide stuff that is not possible without the plugin.
(e.g. Disc Recording classes)

Realbasic users need help on their applications
I'm doing classes, moduls, functions even whole applications for
customers. Often just a prototype so they see how it is possible or even
whether it is possible in Realbasic at all.

> writing code is *less than* half the job. The more important part is how
> users can find the solution to their problems in *Realbasic wordings*.

If you can't find something you can just ask.

Think about this thread and whether it is not worth a minute of your
time to write an email like this to this list or to me personal:

"How do I add an icon to a folder?"

And I'd answer you:

"Try the Custom Icon Test" project.

PS: Unless you proof where you found your piece of code I must bet that
you are a troll who complains about his own code not working.

Mfg
Christian

Re: [MBS] Custom FolderIcon
Date: 21.07.05 00:22 (Wed, 20 Jul 2005 18:22:44 -0500)
From: Steve Kellogg

On Jul 20, 2005, at 6:15 PM, Christian Schmitz wrote:

> PS: Unless you proof where you found your piece of code I must bet that
> you are a troll who complains about his own code not working.
>

Christian,

I'm SURE that most of us are making this same assumption. This guy's
problem was SO OBVIOUSLY just a case of him not knowing his ass from a
hole in the ground, and still looking for someone to blame.

I (for one) do NOT feel swindled.

Steve

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

Re: [MBS] Custom FolderIcon
Date: 20.07.05 13:28 (Wed, 20 Jul 2005 08:28:22 -0400)
From: Greg O'Lone


On Jul 19, 2005, at 6:04 PM, jis wrote:

>>
>> WOW, You're CLEARLY VERY IMPORTANT! Thanks for blessing us all with
>> your opinions.
>>
>> I'm sure the fact that the current version of this example works fine
>> and that the lack of a carriage return is something that any high
>> school student would have noticed in MOMENTS
>>
> Don't worry, that was the first error I found in MBS sample codes.

Jonah,

If that's the first error you've found, what are you complaining
about? We've been using Monkeybread for a little under two years, and
although I admit having had issues here and there, If an example
doesn't work, we typically post a message to the list and Christian
has an answer. We've even had occassion to request new functions be
added to the library and Christian has been very accommodating, which
made our development faster.

I'd like to see YOU manage a library that has over 8000 functions and
make sure that all of the examples work and make sense to all of the
programmers in the world.

By the way, if you want the documentation to be searchable, you might
try indexing the PDF file using Acrobat. I've found this solution to
be very helpful.

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