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
Show URLs have children, don't show text has children #859
Conversation
Works fine, but I don’t like the Mainly trying to prevent confusion for someone who looks at this in the future. |
OK I've tried to make it clearer now, and have added some comments :) On 30 April 2012 21:01, Rob McBroom <
|
I can't remember where I understood that, but I think the arrow next to text objects was there to allow access to lines inside some files or something like that... Yes, it looks like that, there's a bunch of QSParser subclasses that fit in the picture, for links in HTML files, items in plist data, and lines in text files. |
We discussed this on IRC yesterday - you're right, you can right arrow into Having said that, .txt files don't have the the '>' next to them anyway! I've added another commit that checks whether there are valid parsers for I have also tried to prioritise the order to check for children, in my Folder meaning that the checks to check if the object has children is done in this On 1 May 2012 12:55, Etienne Samson <
|
…the file has children Also - the 'QSFSFileTypeChildHandlers' table doesn't seem to exist anywhere, so I've removed this bit of code
I like the smarts based on handlers and parsers. For some reason, I’m not seeing the arrow next to applications with recent documents. Any ideas? |
…ions Also, release the `recentDocuments` object immediately if it exists
…y recent documents for the app
Show URLs have children, don't show text has children
Previously, text was set to return YES for
objectHasChildren
meaning there was always a small '>' arrow next to text objects.In the same manner, URLs were also set to return NO for
objectHasChildren
so the '>' would never show for URLs.Regarding the URLs - I have added the
objectHasChildren
method, which checks if the URL has a correspondingQSURLParser
available for it.If it does, then it saves the
type
of URL parser in the object's meta for easy collection later on. Otherwise, it would be required to iterate through all the .tlds again to find the type.