On Feb 12, 2015, at 23:28, Maxwell, Adam R wrote:

> 
> On Feb 12, 2015, at 14:10, Christiaan Hofman <cmhof...@gmail.com> wrote:
> 
>> Adam, I cannot really follow what is going on in _FVPreviewerWindow. 
>> Somehow, it does not become key initially, even though it should. The reason 
>> seems to be the -canBecomeKeyWindow override. But I have no idea what is 
>> going on there, and what the role of _clickCount is. What is the intention 
>> of all that code? Is it meant to prevent the window from becoming key 
>> initially? And if not, can that be fixed?
> 
> It's meant to handle double-clicks and still allow text selection, if I 
> recall correctly, but I haven't looked at the code in years. -[FileView 
> keyDown:] is probably what you want to look at to dismiss it, if that's the 
> problem.
> 
> My current source uses the OS previewer on 10.6 and later
> 
> https://github.com/amaxwell/fileview/blob/master/FileView.m#L3509
> 
> …which also supports text selection on 10.7 and later:
> 
> https://github.com/amaxwell/fileview/blob/master/FileView.m#L159
> 
> This is better in most respects, mainly because I couldn't keep up with 
> Apple's changes to the appearance of the window on every OS release.
> 


Actually that still uses FVPreviewer for single files.

Christiaan

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Bibdesk-develop mailing list
Bibdesk-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-develop

Reply via email to