Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > GUI Customization > Alpha Value for Cocoa windows

Alpha Value for Cocoa windows
Thread Tools
bentoon
Dedicated MacNNer
Join Date: Jan 2004
Location: N.Y.C.
Status: Offline
Reply With Quote
Jan 8, 2005, 12:07 PM
 
     
siMac
Mac Elite
Join Date: Aug 2004
Location: ZZ9 Plural Z Alpha
Status: Offline
Reply With Quote
Jan 8, 2005, 12:52 PM
 
Awesome!



Edit: Now if Apple would just write the damn Finder in Cocoa...
|\|0\/\/ 15 7|-|3 71|\/|3
     
slava
Forum Regular
Join Date: Oct 2001
Location: Unsanity
Status: Offline
Reply With Quote
Jan 8, 2005, 03:18 PM
 
Originally posted by siMac:
Edit: Now if Apple would just write the damn Finder in Cocoa...
...then it would be even slower than it is now
// slava@unsanity
     
rhythmicmoose
Mac Enthusiast
Join Date: Sep 2003
Location: Pittsburgh, PA
Status: Offline
Reply With Quote
Jan 8, 2005, 06:54 PM
 
Originally posted by slava:
...then it would be even slower than it is now
Huh? Really? Why? From everything I've seen, Cocoa apps run a ton more smoothly than Carbon ones. Why would this not be so for the Finder?

(Note: I'm interested in the really detailed explanation).
     
BlueIce
Fresh-Faced Recruit
Join Date: Mar 2004
Location: Iowa
Status: Offline
Reply With Quote
Jan 8, 2005, 07:56 PM
 
I know I've heard that statement before somewhere that Finder would run slow if written in Cocoa, but I'd like a detailed reason why that would be the case as well. It seems counter-intuitive to Apple's whole development of Cocoa in the first place.
     
holygoat
Dedicated MacNNer
Join Date: Mar 2003
Location: UK
Status: Offline
Reply With Quote
Jan 8, 2005, 08:20 PM
 
With appropriate caching of selectors and so on, I imagine the Finder wouldn't be a great deal slower in Cocoa.

Furthermore, there's a lot of shared back-end, IIRC, between Cocoa and Carbon, so hey
     
slava
Forum Regular
Join Date: Oct 2001
Location: Unsanity
Status: Offline
Reply With Quote
Jan 8, 2005, 09:23 PM
 
Originally posted by holygoat:
With appropriate caching of selectors and so on, I imagine the Finder wouldn't be a great deal slower in Cocoa.

Furthermore, there's a lot of shared back-end, IIRC, between Cocoa and Carbon, so hey
Or, better to say, Cocoa uses lots of Carbon behind the scenes.

For a pretty dated yet still accurate representation of my thoughts about Carbon vs Cocoa, here's a link to the article in our blog: http://www.unsanity.org/archives/000024.php

This said, I am not intending to start a flame war here. I love Cocoa. It is slower just because that's that way ObjC works. But Cocoa advantages often outweight that minor issue anyway. We can always buy a faster Mac, right?
// slava@unsanity
     
rhythmicmoose
Mac Enthusiast
Join Date: Sep 2003
Location: Pittsburgh, PA
Status: Offline
Reply With Quote
Jan 8, 2005, 09:32 PM
 
Originally posted by slava:
Or, better to say, Cocoa uses lots of Carbon behind the scenes.

For a pretty dated yet still accurate representation of my thoughts about Carbon vs Cocoa, here's a link to the article in our blog: http://www.unsanity.org/archives/000024.php

This said, I am not intending to start a flame war here. I love Cocoa. It is slower just because that's that way ObjC works. But Cocoa advantages often outweight that minor issue anyway. We can always buy a faster Mac, right?
Very interesting. Thanks, slava.
     
holygoat
Dedicated MacNNer
Join Date: Mar 2003
Location: UK
Status: Offline
Reply With Quote
Jan 8, 2005, 09:54 PM
 
I hope this doesn't double-post...

Originally posted by slava:
Or, better to say, Cocoa uses lots of Carbon behind the scenes.
This said, I am not intending to start a flame war here. I love Cocoa. It is slower just because that's that way ObjC works. But Cocoa advantages often outweight that minor issue anyway. We can always buy a faster Mac, right?
Which is actually a very good summary of why the Finder should not (or, contrarily, should!) be rewritten to use Cocoa.

1) Cocoa provides faster development time and easier reuse. Thus, if I were writing a new file manager, I would use Cocoa — the ability to write it more quickly would outweigh any performance gain from using Carbon. However, the Finder already exists and works. Rewriting it doesn't make business sense, especially given a minor performance loss at the end!
2) The counter-case is that it might be becoming hard to maintain, is lacking certain features, etc., in which case future extension and modification might be made simpler by rewriting. Faster Macs will, indeed, come into play!
3) The tipping point, of course, is that Carbon allows you to do some things (like unload bundles) that Cocoa simply does not. I expect the Finder uses some of these.

In short, things are the way they are because they're the way they are
     
Catfish_Man
Mac Elite
Join Date: Aug 2001
Status: Offline
Reply With Quote
Jan 9, 2005, 04:42 AM
 
I would argue that faster development time means more time can be spent on optimizations, and that choice of algorithms almost always outweighs choice of API...
     
siMac
Mac Elite
Join Date: Aug 2004
Location: ZZ9 Plural Z Alpha
Status: Offline
Reply With Quote
Jan 9, 2005, 09:49 AM
 
Originally posted by slava:
...then it would be even slower than it is now
Hmm, I didn't know that - in which case we need an alpha value equivalent for Carbon apps too. Or for this feature to be integrated into WindowShade...
|\|0\/\/ 15 7|-|3 71|\/|3
     
rhythmicmoose
Mac Enthusiast
Join Date: Sep 2003
Location: Pittsburgh, PA
Status: Offline
Reply With Quote
Jan 9, 2005, 12:35 PM
 
Originally posted by siMac:
Hmm, I didn't know that - in which case we need an alpha value equivalent for Carbon apps too. Or for this feature to be integrated into WindowShade...
I recall hearing about a possible future WindowShade feature that would turn all background windows transparent, and leave the foreground window opaque.

Sounded awesome to me.
     
siMac
Mac Elite
Join Date: Aug 2004
Location: ZZ9 Plural Z Alpha
Status: Offline
Reply With Quote
Jan 9, 2005, 02:01 PM
 
Originally posted by rhythmicmoose:
I recall hearing about a possible future WindowShade feature that would turn all background windows transparent, and leave the foreground window opaque.

Sounded awesome to me.
Yup. I was one of the people who requested it. Would still love to see it happen (nudge, nudge)!
|\|0\/\/ 15 7|-|3 71|\/|3
     
holygoat
Dedicated MacNNer
Join Date: Mar 2003
Location: UK
Status: Offline
Reply With Quote
Jan 9, 2005, 02:58 PM
 
Originally posted by Catfish_Man:
I would argue that faster development time means more time can be spent on optimizations, and that choice of algorithms almost always outweighs choice of API...
That's certainly true for many situations; however, I would argue that the Macintosh file manager is extremely well-understood, in which case API performance becomes paramount. The amount of exploratory development in the Finder is very low, and there is already a large amount of "legacy" Finder code, so Carbon is a much better choice.

For new applications, though, you're definitely correct --- even more so when you switch to "cost" rather than "performance", in which case the amount of time spent by developers is the main thing.
     
slava
Forum Regular
Join Date: Oct 2001
Location: Unsanity
Status: Offline
Reply With Quote
Jan 9, 2005, 04:14 PM
 
Originally posted by siMac:
Yup. I was one of the people who requested it. Would still love to see it happen (nudge, nudge)!
We remember. I actually also was going to add a new optional widget to the window title bar with a transparency slider in it. Cannot give a timeframe for this feature though.
// slava@unsanity
     
siMac
Mac Elite
Join Date: Aug 2004
Location: ZZ9 Plural Z Alpha
Status: Offline
Reply With Quote
Jan 9, 2005, 04:53 PM
 
Originally posted by slava:
We remember. I actually also was going to add a new optional widget to the window title bar with a transparency slider in it. Cannot give a timeframe for this feature though.
Awesome.
|\|0\/\/ 15 7|-|3 71|\/|3
     
bentoon  (op)
Dedicated MacNNer
Join Date: Jan 2004
Location: N.Y.C.
Status: Offline
Reply With Quote
Jan 9, 2005, 05:37 PM
 
Slava,
You're the man !
     
AveTenebrae
Junior Member
Join Date: Mar 2004
Location: Marseille, France
Status: Offline
Reply With Quote
Jan 9, 2005, 08:12 PM
 
GeekBind can do that on all windows type (cocoa and carbon) in an easier way plus some other cool stuff
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 08:36 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,