Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NSOutlineView + Pattern as Background #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

stuffmc
Copy link

@stuffmc stuffmc commented Nov 18, 2012

You might want to just merge the OutlineView commit but I'm wondering if there's a way to have this work when the background of the Backing View isn't a plain colour.

@jnozzi
Copy link
Owner

jnozzi commented Nov 18, 2012

I'm curious about what happens if you just try to set the background color of your outline view (what do you see?).

@stuffmc
Copy link
Author

stuffmc commented Nov 18, 2012

That: http://twitpic.com/befr1d — but as soon as I "disclose" my first node the whole thing is filled with nodes and then the shadow completely disappears. Try it for yourself — I've just put a small Demo app (without your code yet) at https://github.com/stuffmc/TreeBindings

@jnozzi
Copy link
Owner

jnozzi commented Nov 18, 2012

Ah, I see. I wonder if JLNFadingScrollView would be better suited to your needs. If I recall correctly, I turned off background drawing in the outline view and let the scroll view's background show through. I think we've hit the limits of what this (recessed source view) can do, which is why I developed the fading scroll view. You should be able to set any background color/pattern you like since the fades are really just views tiled atop the content.

If you have no objections, I'd like to see what you find using JLNFadingScrollView before I merge this pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants