On 2 May 2009, at 2:32 PM, Charles Turner wrote:

> On May 2, 2009, at 5:20 AM, Christiaan Hofman wrote:
>
>> On 2 May 2009, at 12:40 AM, Charles Turner wrote:
>>> Sorry to just barge in here with a question, but I'm having trouble
>>> living with the default behavior of Skim, although in every respect
>>> it's a fantastic application I can't live without.
>>>
>
>> These are tool tips on the notes table?
>
> Yeah. Pretty crazy, eh?
>
>> If you want to override this in code, probably the easiest way to do
>> this is to add the following method to SKMainWindowController_UI.m:
>>
>> - (BOOL)outlineView:(NSOutlineView *)ov
>> shouldShowCellExpansionForTableColumn:(NSTableColumn *)tableColumn
>> item:(id)item
>>
>> You can return NO when the outlineView is the noteOutlineView, or
>> perhaps it's suffient to only return NO when [item type] == nil.
>>
>> If you want more control, like setting a maximum size, you need to
>> subclass the texFieldCell that's used.
>
> I'm happy just to shut them off, and your suggestion above to simply
> return NO works fine.
>
> While I was poking around, I noticed:
>
> - (NSString *)outlineView:(NSOutlineView *)ov toolTipForCell:(NSCell
> *)cell rect:(NSRectPointer)rect tableColumn:(NSTableColumn
> *)tableColumn item:(id)item mouseLocation:(NSPoint)mouseLocation {
>     if ([ov isEqual:noteOutlineView] && [[tableColumn identifier]
> isEqualToString:NOTE_COLUMNID]) {
>         return [item string];
>     }
>     return nil;
> }
>
> Does this control whether the "regular" tooltip string is returned for
> a Note/Hilite? So I could return nil in all cases to shut all tooltips
> off in the Note view column?
>

That's correct.

> Or is there something like shouldShowToolTipForTableColumn that could
> return NO? (I guess I could search Apple's documentation for this.)
>

No, that would not be necessary because there's already the other  
delegate method.

>> It's an extension containing Leopard-only code (in particular the
>> print panel accessory view). It should be automatically built and
>> copied to the right location when you build the Skim target.
>
> I see it's in the Skim.app bundle.
>
>> For that you need to rigorously change the view hierarchy of the main
>> window, which involves quite a bit of changes in the code as well. It
>> would not be easy, especially as you don't know by heart the content
>> of the window, because you'll have to remove and re-add several  
>> views.
>
> I poked around with IB and got the impression that the change would be
> non-trivial! :-)
>
> Thanks so much for your help with this. Skim is a really wonderful
> application, and I should Paypal you some beer money!
>
> Best, Charles

You're welcome

Christiaan


------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Skim-app-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-users

Reply via email to