Xojo Conferences
XDCMay2019MiamiUSA

FontPanel 1.1 - already??? (Real Studio Plugins Mailinglist archive)

Back to the thread list
Previous thread: Searching for plugin testers
Next thread: [ANN] FontPanel plugin 1.0


Re: class extensions...   -   Jan Erik Moström <
  FontPanel 1.1 - already???   -   Alexander Cohen
   Re: FontPanel 1.1 - already???   -   Christian Schmitz
    Re: FontPanel 1.1 - already???   -   Alexander Cohen
     Re: FontPanel 1.1 - already???   -   Will Cosgrove
      Re: FontPanel 1.1 - already???   -   Alexander Cohen
       Re: FontPanel 1.1 - already???   -   Kevin Ballard
        Re: FontPanel 1.1 - already???   -   Alfred Van Hoek
         Re: FontPanel 1.1 - already???   -   Christian Schmitz
          Re: FontPanel 1.1 - already???   -   Alexander Cohen
        Re: FontPanel 1.1 - already???   -   Alexander Cohen
     Re: FontPanel 1.1 - already???   -   Christian Schmitz
      Re: FontPanel 1.1 - already???   -   Alexander Cohen
       Re: FontPanel 1.1 - already???   -   Christian Schmitz
        Re: FontPanel 1.1 - already???   -   Alexander Cohen

FontPanel 1.1 - already???
Date: 21.09.02 23:00 (Sat, 21 Sep 2002 18:00:24 -0400)
From: Alexander Cohen
I fixed a bug that made RB crash when using the FontPanel.

http://www.webprofitable.com/index.html

Re: FontPanel 1.1 - already???
Date: 21.09.02 23:48 (Sun, 22 Sep 2002 00:48:21 +0200)
From: Christian Schmitz
> I fixed a bug that made RB crash when using the FontPanel.

Still crashes. One time when selecting the menu entry and another time
when I clicked on the panels title bar.

Well, just two days ago I looked into this myself and though noone would
need this, but if you made it, I'll make it, too. ;-)

Mfg
Christian

Re: FontPanel 1.1 - already???
Date: 21.09.02 23:54 (Sat, 21 Sep 2002 18:54:05 -0400)
From: Alexander Cohen

On Saturday, September 21, 2002, at 06:48 PM, Christian Schmitz wrote:

>> I fixed a bug that made RB crash when using the FontPanel.
>
> Still crashes. One time when selecting the menu entry and another time
> when I clicked on the panels title bar.
>
> Well, just two days ago I looked into this myself and though noone
> would
> need this, but if you made it, I'll make it, too. ;-)

I didn't think anyone would need this either... but i had started it a
few weeks ago, and thought i might as well finish it... it's more
trouble than anything else.

Re: FontPanel 1.1 - already???
Date: 22.09.02 01:03 (Sat, 21 Sep 2002 19:03:41 -0500)
From: Will Cosgrove

On Saturday, September 21, 2002, at 05:54 PM, Alexander Cohen wrote:

>
> On Saturday, September 21, 2002, at 06:48 PM, Christian Schmitz wrote:
>
>>> I fixed a bug that made RB crash when using the FontPanel.
>>
>> Still crashes. One time when selecting the menu entry and another time
>> when I clicked on the panels title bar.
>>
>> Well, just two days ago I looked into this myself and though noone
>> would
>> need this, but if you made it, I'll make it, too. ;-)
>
> I didn't think anyone would need this either... but i had started it a
> few weeks ago, and thought i might as well finish it... it's more
> trouble than anything else.

I would much rather use the Font Panel than have a font menu that's
200+ items long which takes time to enable and check the selected item.
Now that Apple is pushing this as standard font access I, for one, am
looking forward to using it. Thanks Alex for making this, once the
bugs get ironed out!

I basically had the plug-in done too but I still had to add the Mach-o
framework function call...glad I don't have to go through adding that.
=)

Cheers,
Will C.

---
A searchable archive of this list is available at:
<http://dbserver.realsoftware.com/KBDB/search.php>

Unsubscribe:
<mailto:<email address removed>>

Subscribe to the digest:
<mailto:<email address removed>>

Re: FontPanel 1.1 - already???
Date: 22.09.02 01:42 (Sat, 21 Sep 2002 20:42:15 -0400)
From: Alexander Cohen

On Saturday, September 21, 2002, at 08:03 PM, Will Cosgrove wrote:

>
> I would much rather use the Font Panel than have a font menu that's
> 200+ items long which takes time to enable and check the selected
> item. Now that Apple is pushing this as standard font access I, for
> one, am looking forward to using it. Thanks Alex for making this,
> once the bugs get ironed out!
>
> I basically had the plug-in done too but I still had to add the Mach-o
> framework function call...glad I don't have to go through adding that.
> =)

Cool, i'm happy to hear it will be usefull!

You know, the MachO is not that complicated. I've brought apples MachO
sample code down to 2 routines, and created 1 function so i can use
MachO function pointers from CFM without having to bundle them up in
frameworks. With those 3 functions, i can get to any framework very
easily, and do anything i want in CFM and MachO. With 3 lines per MachO
routine (2 of them are error checking), we can remove the border
between MachO and CFM.

Re: FontPanel 1.1 - already???
Date: 22.09.02 02:19 (Sat, 21 Sep 2002 21:19:15 -0400)
From: Kevin Ballard
In that case, can you please post the relevant code here so we all can
use it?

On Saturday, September 21, 2002, at 08:42 PM, Alexander Cohen wrote:

> On Saturday, September 21, 2002, at 08:03 PM, Will Cosgrove wrote:
>
>>
>> I would much rather use the Font Panel than have a font menu that's
>> 200+ items long which takes time to enable and check the selected
>> item. Now that Apple is pushing this as standard font access I, for
>> one, am looking forward to using it. Thanks Alex for making this,
>> once the bugs get ironed out!
>>
>> I basically had the plug-in done too but I still had to add the
>> Mach-o framework function call...glad I don't have to go through
>> adding that. =)
>
> Cool, i'm happy to hear it will be usefull!
>
> You know, the MachO is not that complicated. I've brought apples MachO
> sample code down to 2 routines, and created 1 function so i can use
> MachO function pointers from CFM without having to bundle them up in
> frameworks. With those 3 functions, i can get to any framework very
> easily, and do anything i want in CFM and MachO. With 3 lines per
> MachO routine (2 of them are error checking), we can remove the border
> between MachO and CFM.

Re: FontPanel 1.1 - already???
Date: 22.09.02 02:30 (Sat, 21 Sep 2002 21:30:46 -0400)
From: Alfred Van Hoek
on 9/21/02 9:19 PM, Kevin Ballard at kevin@sb.org wrote:

> In that case, can you please post the relevant code here so we all can
> use it?

One can use:

void* CFMFunctionPointerForMachOFunctionPointer( void* inMachProcPtr )
{
TVector_rec *vTVector;

vTVector = (TVector_rec*) malloc( sizeof(TVector_rec) );

if( MemError() =eoErr && vTVector != NULL ) {
vTVector->fProcPtr = (ProcPtr) inMachProcPtr;
vTVector->fTOC = 0; // ignored
}

return( (void *) vTVector );
}

Alfred

---
A searchable archive of this list is available at:
<http://dbserver.realsoftware.com/KBDB/search.php>

Unsubscribe:
<mailto:<email address removed>>

Subscribe to the digest:
<mailto:<email address removed>>

Re: FontPanel 1.1 - already???
Date: 22.09.02 08:49 (Sun, 22 Sep 2002 09:49:51 +0200)
From: Christian Schmitz
> on 9/21/02 9:19 PM, Kevin Ballard at kevin@sb.org wrote:
>
> > In that case, can you please post the relevant code here so we all can
> > use it?
>
> One can use:
>
> void* CFMFunctionPointerForMachOFunctionPointer( void* inMachProcPtr )
> {
> TVector_rec *vTVector;
>
> vTVector = (TVector_rec*) malloc( sizeof(TVector_rec) );
>
> if( MemError() =>oErr && vTVector != NULL ) {
> vTVector->fProcPtr = (ProcPtr) inMachProcPtr;
> vTVector->fTOC = 0; // ignored
> }
>
> return( (void *) vTVector );
> }

Strange. I'm used to call MachO directly. No usering this TVector stuff.

Mfg
Christian

Re: FontPanel 1.1 - already???
Date: 22.09.02 09:54 (Sun, 22 Sep 2002 04:54:08 -0400)
From: Alexander Cohen

On Sunday, September 22, 2002, at 03:49 AM, Christian Schmitz wrote:

>> on 9/21/02 9:19 PM, Kevin Ballard at kevin@sb.org wrote:
>>
>>> In that case, can you please post the relevant code here so we all
>>> can
>>> use it?
>>
>> One can use:
>>
>> void* CFMFunctionPointerForMachOFunctionPointer( void*
>> inMachProcPtr )
>> {
>> TVector_rec *vTVector;
>>
>> vTVector = (TVector_rec*) malloc( sizeof(TVector_rec) );
>>
>> if( MemError() =!oErr && vTVector != NULL ) {
>> vTVector->fProcPtr = (ProcPtr) inMachProcPtr;
>> vTVector->fTOC = 0; // ignored
>> }
>>
>> return( (void *) vTVector );
>> }
>
> Strange. I'm used to call MachO directly. No usering this TVector
> stuff.
>

This code is used so you can convert a between MachO and CFM when
passing function ptrs for callbacks!

Re: FontPanel 1.1 - already???
Date: 22.09.02 02:32 (Sat, 21 Sep 2002 21:32:25 -0400)
From: Alexander Cohen
Send me a mail off-list and i will send you the code!

Re: FontPanel 1.1 - already???
Date: 22.09.02 12:07 (Sun, 22 Sep 2002 13:07:03 +0200)
From: Christian Schmitz
> I didn't think anyone would need this either... but i had started it a
> few weeks ago, and thought i might as well finish it... it's more
> trouble than anything else.

I tried it myself and it's crashing a lot.

Any idea?
Or should I report to Apple?

Mfg
Christian

2002-09-22 11:31:29.091 REALbasic 4.5.1fc3 Mac OS X[811] An uncaught
exception was raised
2002-09-22 11:31:29.091 REALbasic 4.5.1fc3 Mac OS X[811] ***
-[NSCFDictionary setObject:forKey:]: attempt to insert nil value
2002-09-22 11:31:29.091 REALbasic 4.5.1fc3 Mac OS X[811] *** Uncaught
exception: <NSInvalidArgumentException> *** -[NSCFDictionary
setObject:forKey:]: attempt to insert nil value

2002-09-22 12:32:52.142 REALbasic 4.5.1fc3 Mac OS X[825] An uncaught
exception was raised
2002-09-22 12:32:52.142 REALbasic 4.5.1fc3 Mac OS X[825] ***
-[NSCFDictionary setObject:forKey:]: attempt to insert nil value
2002-09-22 12:32:52.143 REALbasic 4.5.1fc3 Mac OS X[825] *** Uncaught
exception: <NSInvalidArgumentException> *** -[NSCFDictionary
setObject:forKey:]: attempt to insert nil value

2002-09-22 12:39:06.737 REALbasic 4.5.1fc3 Mac OS X[844] An uncaught
exception was raised
2002-09-22 12:39:06.737 REALbasic 4.5.1fc3 Mac OS X[844] ***
-[NSCFDictionary setObject:forKey:]: attempt to insert nil value
2002-09-22 12:39:06.737 REALbasic 4.5.1fc3 Mac OS X[844] *** Uncaught
exception: <NSInvalidArgumentException> *** -[NSCFDictionary
setObject:forKey:]: attempt to insert nil value

2002-09-22 12:55:46.629 REALbasic 4.5.1fc3 Mac OS X[847] ***
-[NSConcreteNotifyingMutableAttributedString count]: selector not
recognized
2002-09-22 12:55:46.629 REALbasic 4.5.1fc3 Mac OS X[847] An uncaught
exception was raised
2002-09-22 12:55:46.630 REALbasic 4.5.1fc3 Mac OS X[847] ***
-[NSConcreteNotifyingMutableAttributedString count]: selector not
recognized
2002-09-22 12:55:46.630 REALbasic 4.5.1fc3 Mac OS X[847] *** Uncaught
exception: <NSInvalidArgumentException> ***
-[NSConcreteNotifyingMutableAttributedString count]: selector not
recognized

2002-09-22 12:57:23.777 REALbasic 4.5.1fc3 Mac OS X[850] An uncaught
exception was raised
2002-09-22 12:57:23.777 REALbasic 4.5.1fc3 Mac OS X[850] ***
-[NSCFDictionary setObject:forKey:]: attempt to insert nil value
2002-09-22 12:57:23.777 REALbasic 4.5.1fc3 Mac OS X[850] *** Uncaught
exception: <NSInvalidArgumentException> *** -[NSCFDictionary
setObject:forKey:]: attempt to insert nil value

Re: FontPanel 1.1 - already???
Date: 22.09.02 18:02 (Sun, 22 Sep 2002 13:02:36 -0400)
From: Alexander Cohen
I'm not sure yet... i know the crashes you have been sufering from are
due to apples code and not mine. It seems to mostly crash when you
sleect a font that it does not like (?). In the docs, it says that the
carbon version does not handle style cery well. Are you using ATSU or
QD for your fonts?

Re: FontPanel 1.1 - already???
Date: 22.09.02 22:08 (Sun, 22 Sep 2002 23:08:49 +0200)
From: Christian Schmitz
> I'm not sure yet... i know the crashes you have been sufering from are
> due to apples code and not mine. It seems to mostly crash when you
> sleect a font that it does not like (?). In the docs, it says that the
> carbon version does not handle style cery well. Are you using ATSU or
> QD for your fonts?

QD, I reported to Apple and it's using my plugin.

Mfg
Christian

Re: FontPanel 1.1 - already???
Date: 22.09.02 22:11 (Sun, 22 Sep 2002 17:11:29 -0400)
From: Alexander Cohen

On Sunday, September 22, 2002, at 05:08 PM, Christian Schmitz wrote:

>> I'm not sure yet... i know the crashes you have been sufering from are
>> due to apples code and not mine. It seems to mostly crash when you
>> sleect a font that it does not like (?). In the docs, it says that the
>> carbon version does not handle style cery well. Are you using ATSU or
>> QD for your fonts?
>
> QD, I reported to Apple and it's using my plugin.

It seems to crash less using ATSU functions.