Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Re: [MBS] IconImageMBS slow 10.9 (MBS Xojo Plugin Mailinglist archive)

Back to the thread list
Previous thread: [MBS] Dropbox Plugins
Next thread: [MBS] NSMenuItemMBS, Cocoa and Lion 10.7.5


Re: [MBS] Writing to /Library/Preferences in Lion   -   Garth Hjelte
  Re: [MBS] IconImageMBS slow 10.9   -   Christian Schmitz
    [MBS] IconImageMBS slow 10.9   -   Garth Hjelte
     Re: [MBS] IconImageMBS slow 10.9   -   Christian Schmitz
      Re: [MBS] IconImageMBS slow 10.9   -   Christian Schmitz
      Re: [MBS] IconImageMBS slow 10.9   -   Garth Hjelte
       [MBS] FileMapping : Detach memoryblock?   -   Michael Diehr
      Re: [MBS] IconImageMBS slow 10.9   -   Christian Schmitz
      Re: [MBS] IconImageMBS slow 10.9   -   Garth Hjelte
       [MBS] Dropbox Plugins   -   William Koperwhats
     [MBS] NSMenuItemMBS, Cocoa and Lion 10.7.5   -   Jean-Luc Arnaud

Re: [MBS] IconImageMBS slow 10.9
Date: 20.06.14 10:49 (Fri, 20 Jun 2014 11:49:34 +0200)
From: Christian Schmitz

Am 20.06.2014 um 03:47 schrieb Garth Hjelte <<email address removed>>:

> Sorry, this is a carry over from something else. I'm finding on OSX 10.9 that especially in cases of folders, FolderItem.IconImageMBS can be pretty slow. Can you comment on that - is there anything smart that could speed such stuff up?

with next plugin on I will do this internally for you and use NSWorkSpace function.

Sincerely
Christian

[MBS] IconImageMBS slow 10.9
Date: 20.06.14 02:47 (Thu, 19 Jun 2014 20:47:05 -0500)
From: Garth Hjelte
Sorry, this is a carry over from something else. I'm finding on OSX 10.9 that especially in cases of folders, FolderItem.IconImageMBS can be pretty slow. Can you comment on that - is there anything smart that could speed such stuff up?

Garth Hjelte
Sampler User

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

Re: [MBS] IconImageMBS slow 10.9
Date: 20.06.14 09:11 (Fri, 20 Jun 2014 10:11:43 +0200)
From: Christian Schmitz

Am 20.06.2014 um 03:47 schrieb Garth Hjelte <<email address removed>>:

> Sorry, this is a carry over from something else. I'm finding on OSX 10.9 that especially in cases of folders, FolderItem.IconImageMBS can be pretty slow. Can you comment on that - is there anything smart that could speed such stuff up?

Apple optimized something else.

But you can use Cocoa classes:

// get image
dim n as NSImageMBS = NSWorkspaceMBS.iconForFile(SpecialFolder.desktop)
// set the size we want
n.setSize 512,512
// make a copy as picture
Backdrop = n.CopyPictureWithMask

Sincerely
Christian

Re: [MBS] IconImageMBS slow 10.9
Date: 20.06.14 16:50 (Fri, 20 Jun 2014 17:50:30 +0200)
From: Christian Schmitz

Am 20.06.2014 um 16:44 schrieb Garth Hjelte <<email address removed>>:

> So IconImageMBS was Carbon calls in your plug?

I think so.

Sincerely
Christian

Re: [MBS] IconImageMBS slow 10.9
Date: 20.06.14 15:44 (Fri, 20 Jun 2014 09:44:57 -0500)
From: Garth Hjelte
At 09:21 AM 6/20/2014, you wrote:

>> -How far back does this work - does it work in 10.4? 10.5?
>
>Docs don't tell, so maybe 10.4 or earlier.

Thanks, I'll check.

>> -Based on what you know ("Apple optimized something else"), is this something in 10.9 to worry about or does it go further back?
>Apple does no longer care about Carbon stuff...

So IconImageMBS was Carbon calls in your plug?

>> -I assume on Windows the IconImageMBS and IconMaskMBS still are valid?
>yes.

OK, thanks very much for your time.

Garth Hjelte
Sampler User

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

Re: [MBS] IconImageMBS slow 10.9
Date: 20.06.14 15:21 (Fri, 20 Jun 2014 16:21:22 +0200)
From: Christian Schmitz

Am 20.06.2014 um 15:04 schrieb Garth Hjelte <<email address removed>>:

> -How far back does this work - does it work in 10.4? 10.5?

Docs don't tell, so maybe 10.4 or earlier.

> -Based on what you know ("Apple optimized something else"), is this something in 10.9 to worry about or does it go further back?

Apple does no longer care about Carbon stuff...

> -I assume on Windows the IconImageMBS and IconMaskMBS still are valid?

yes.

Sincerely
Christian

Re: [MBS] IconImageMBS slow 10.9
Date: 20.06.14 14:04 (Fri, 20 Jun 2014 08:04:28 -0500)
From: Garth Hjelte
At 03:11 AM 6/20/2014, you wrote:

>>Sorry, this is a carry over from something else. I'm finding on OSX 10.9 that especially in cases of folders, FolderItem.IconImageMBS can be pretty slow. Can you comment on that - is there anything smart that could speed such stuff up?

>Apple optimized something else.
>
>But you can use Cocoa classes:
>
> // get image
> dim n as NSImageMBS = NSWorkspaceMBS.iconForFile(SpecialFolder.desktop)
> // set the size we want
> n.setSize 512,512
> // make a copy as picture
> Backdrop = n.CopyPictureWithMask

>with next plugin on I will do this internally for you and use NSWorkSpace function.

Thanks - this works fine (even in Carbon builds), although I still have to have the client test it for speed.

-How far back does this work - does it work in 10.4? 10.5?
-Based on what you know ("Apple optimized something else"), is this something in 10.9 to worry about or does it go further back?
-I assume on Windows the IconImageMBS and IconMaskMBS still are valid?

Garth Hjelte
Sampler User

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