Re: Finder's sidebar background color

2008-11-16 Thread Benjamin Dobson
Well, it is kind of a source list (a list of command descriptions).  
It is hard to explain in words, please take a look at the link to  
OnMyCommand I've posted earlier.


However, I do think it really fits its purpose :D


I agree, but I don't understand why a real source list doesn't do what  
you want.

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Finder's sidebar background color

2008-11-15 Thread Knut Lorenzen


Am 15.11.2008 um 23:30 schrieb Kyle Sluder:

On Sat, Nov 15, 2008 at 5:06 PM, Knut Lorenzen <[EMAIL PROTECTED]>  
wrote:
I am afraid I was unclear, mimicing Finder (and it's ilk) only  
color-wise.


I'm still a bit confused... where will you be using this color?  This
is the color for source lists.  You should have a *very* good reason
for using it anywhere else (and thus cause your app to function
counter to user expectations).



Well, it is kind of a source list (a list of command descriptions). It  
is hard to explain in words, please take a look at the link to  
OnMyCommand I've posted earlier.


However, I do think it really fits its purpose :D

Cheers,

Knut



___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Finder's sidebar background color

2008-11-15 Thread Kyle Sluder
On Sat, Nov 15, 2008 at 5:06 PM, Knut Lorenzen <[EMAIL PROTECTED]> wrote:
> I am afraid I was unclear, mimicing Finder (and it's ilk) only color-wise.

I'm still a bit confused... where will you be using this color?  This
is the color for source lists.  You should have a *very* good reason
for using it anywhere else (and thus cause your app to function
counter to user expectations).

--Kyle Sluder
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Finder's sidebar background color

2008-11-15 Thread Knut Lorenzen


Am 15.11.2008 um 22:45 schrieb Andrew Merenbach:


Just out of curiosity: if you're trying to mimic the Finder, iTunes,
etc., what would you be using besides an outline view?  A normal table
view wouldn't allow you to have groupings of subitems that are
viewable with disclosure triangles.



Hello again, Andrew!

I am afraid I was unclear, mimicing Finder (and it's ilk) only color- 
wise.


If you are really curious, check out OnMyCommand (). It is free and a very nifty piece of software for the Mac.


Cheers,

Knut






___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Finder's sidebar background color

2008-11-15 Thread Andrew Merenbach

On Nov 15, 2008, at 1:41 PM, Knut Lorenzen wrote:



Am 15.11.2008 um 22:10 schrieb Markus Spoettl:


On Nov 15, 2008, at 12:58 PM, Knut Lorenzen wrote:

is there a way to obtain the background color of Finder's sidebar
programmatically?


Yes, if you have an NSOutlineView instance in SourceList display mode
you can just use its -backgroundColor is to get the correct color.
Refreshing whatever you draw whenever your window receives a
NSWindowDidBecomeMainNotification or  
NSWindowDidResignMainNotification

notification will keep it in sync with the outline view background
when the window becomes active and inactive.


Markus,

thanks, that looks promising.

There is no NSOutlineView in my App right now, but it sounds as it  
might be possible to use an invisible NSOutlineView-dummy just in  
order to get the colors from it.


Cheers,

Knut


Hi, Knut,

Just out of curiosity: if you're trying to mimic the Finder, iTunes,  
etc., what would you be using besides an outline view?  A normal table  
view wouldn't allow you to have groupings of subitems that are  
viewable with disclosure triangles.


Best,
Andrew


smime.p7s
Description: S/MIME cryptographic signature
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: Finder's sidebar background color

2008-11-15 Thread Knut Lorenzen


Am 15.11.2008 um 22:10 schrieb Markus Spoettl:


On Nov 15, 2008, at 12:58 PM, Knut Lorenzen wrote:

is there a way to obtain the background color of Finder's sidebar
programmatically?


Yes, if you have an NSOutlineView instance in SourceList display mode
you can just use its -backgroundColor is to get the correct color.
Refreshing whatever you draw whenever your window receives a
NSWindowDidBecomeMainNotification or NSWindowDidResignMainNotification
notification will keep it in sync with the outline view background
when the window becomes active and inactive.


Markus,

thanks, that looks promising.

There is no NSOutlineView in my App right now, but it sounds as it  
might be possible to use an invisible NSOutlineView-dummy just in  
order to get the colors from it.


Cheers,

Knut





___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Finder's sidebar background color

2008-11-15 Thread Knut Lorenzen


Am 15.11.2008 um 22:04 schrieb Kyle Sluder:

On Sat, Nov 15, 2008 at 3:58 PM, Knut Lorenzen <[EMAIL PROTECTED]>  
wrote:

is there a way to obtain the background color of Finder's sidebar
programmatically?


If you're trying to create a sidebar, set its selection highlight
style to NSTableViewSelectionHighlightStyleSourceList.


Kyle,

thanks for the quick reply, but I am not trying to do so.


If you're not trying to create a sidebar, why do you need this color?


My App (OMCEdit, see ) mimics the look of Finder (and Mail, iTunes,...), hence I need  
these colors in order to display an active/inactive state.


Cheers,

Knut



___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Finder's sidebar background color

2008-11-15 Thread Markus Spoettl

On Nov 15, 2008, at 12:58 PM, Knut Lorenzen wrote:
is there a way to obtain the background color of Finder's sidebar  
programmatically?


Yes, if you have an NSOutlineView instance in SourceList display mode  
you can just use its -backgroundColor is to get the correct color.  
Refreshing whatever you draw whenever your window receives a  
NSWindowDidBecomeMainNotification or NSWindowDidResignMainNotification  
notification will keep it in sync with the outline view background  
when the window becomes active and inactive.


Regards
Markus
--
__
Markus Spoettl



smime.p7s
Description: S/MIME cryptographic signature
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: Finder's sidebar background color

2008-11-15 Thread Kyle Sluder
On Sat, Nov 15, 2008 at 3:58 PM, Knut Lorenzen <[EMAIL PROTECTED]> wrote:
> is there a way to obtain the background color of Finder's sidebar
> programmatically?

If you're trying to create a sidebar, set its selection highlight
style to NSTableViewSelectionHighlightStyleSourceList.  If you're not
trying to create a sidebar, why do you need this color?  If you try to
extract it from an appropriately-configured NSTableView (or
NSOutlineView) is some sort of weird, funky NSColor subclass that
changes when the application gains/loses active status.

--Kyle Sluder
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Finder's sidebar background color

2008-11-15 Thread Knut Lorenzen


Hi list,

is there a way to obtain the background color of Finder's sidebar  
programmatically? In active (i.e. frontmost) and inactive state? I've  
searched the documentation and looked up NSColorList to no avail.


Of course it it rather easy to "steal" the colors from Finder and set  
them to
[NSColor colorWithDeviceRed: 214/256.0 green: 221/256.0 blue:  
229/256.0 alpha: 1.0 ] and
[NSColor colorWithDeviceRed: 232/256.0 green: 232/256.0 blue:  
232/256.0 alpha: 1.0 ] respectively,

but I'd rather not hard-wire this.

Cheers,

Knut

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]