Xojo Conferences
XDCMay2019MiamiUSA

[MBS] Folder Labels (MBS Xojo Plugin Mailinglist archive)

Back to the thread list
Previous thread: [MBS] About QT Video Output component
Next thread: [MBS] 4.0dr5


Re: [MBS] MIDI Destinations and External Devices   -   Ron Benditt
  [MBS] Folder Labels   -   Paul
   Re: [MBS] Folder Labels   -   Christian Schmitz
    Re: [MBS] Folder Labels   -   Paul

[MBS] Folder Labels
Date: 25.01.04 20:28 (Sun, 25 Jan 2004 14:28:25 -0500)
From: Paul
Hi Christian,

Labels work fine with files but they don't seem to work with Folders. Also,
some of the colors are not the same then the Finder. This is on Mac OS X
10.3 with RB 5.2.4. Is there something more that must be done to use Labels
with Folders?

Thanks
- Paul

Re: [MBS] Folder Labels
Date: 25.01.04 21:06 (Sun, 25 Jan 2004 21:06:53 +0100)
From: Christian Schmitz
Paul <<email address removed>> wrote:

> Hi Christian,
>
> Labels work fine with files but they don't seem to work with Folders. Also,
> some of the colors are not the same then the Finder. This is on Mac OS X
> 10.3 with RB 5.2.4. Is there something more that must be done to use Labels
> with Folders?

It's just that this property (folderitem.FinderLabelMBS) does not
support folders. I fixed that for 4.0dr6 (email me if you need it
today).

>From Apple's Carbon Mailing list:

> If the colors are not "paired" with the right label names, definitely
> write a bug. (The Finder & other system places don't use the solid color
> values available from GetLabel; we've hard-coded a set of gradient images
> instead.)
>
> The "display order" of labels is an interesting permutation...you could
> figure it out empirically, but I'll save you the trouble:
> 0, 6, 7, 5, 2, 4, 3, 1
>
> That is: none, Red, Orange, Yellow, Green, Blue, Purple, Gray
>
> On disk, the label values (0-7) are:
> none, gray, green, purple, blue, yellow, red, orange
>
> The H.I. folks picked the colors *and* the display order. The
> permutation is because we decided it was worthwhile to make the on-disk
> values match the Mac OS 9 default colors when a close match was
> available...so something you labeled "red" on 9 is still red on Panther.

Just to remember.

Mfg
Christian

Re: [MBS] Folder Labels
Date: 25.01.04 22:35 (Sun, 25 Jan 2004 16:35:42 -0500)
From: Paul
Hi Christian,

Thanks a lot. I don't need it right away so I'll wait for the 4.0dr6.

- Paul

> Paul <<email address removed>> wrote:
>
>> Hi Christian,
>>
>> Labels work fine with files but they don't seem to work with Folders. Also,
>> some of the colors are not the same then the Finder. This is on Mac OS X
>> 10.3 with RB 5.2.4. Is there something more that must be done to use Labels
>> with Folders?
>
> It's just that this property (folderitem.FinderLabelMBS) does not
> support folders. I fixed that for 4.0dr6 (email me if you need it
> today).
>
>> From Apple's Carbon Mailing list:
>
>> If the colors are not "paired" with the right label names, definitely
>> write a bug. (The Finder & other system places don't use the solid color
>> values available from GetLabel; we've hard-coded a set of gradient images
>> instead.)
>>
>> The "display order" of labels is an interesting permutation...you could
>> figure it out empirically, but I'll save you the trouble:
>> 0, 6, 7, 5, 2, 4, 3, 1
>>
>> That is: none, Red, Orange, Yellow, Green, Blue, Purple, Gray
>>
>> On disk, the label values (0-7) are:
>> none, gray, green, purple, blue, yellow, red, orange
>>
>> The H.I. folks picked the colors *and* the display order. The
>> permutation is because we decided it was worthwhile to make the on-disk
>> values match the Mac OS 9 default colors when a close match was
>> available...so something you labeled "red" on 9 is still red on Panther.
>
> Just to remember.
>
> Mfg
> Christian