|
From: | Matt Rice |
Subject: | NSTableView/NSCell/NSScrollView stuff |
Date: | Fri, 9 Jul 2004 15:14:10 -0700 (PDT) |
plethora of patches NSTableView.misc.diff: 2 things in here, one of them is probably something which we need to think about/discuss i'd split it up but it'd just cause conflicts... a) don't copy/destroy the cell, there is a remark that it may not be needed in the source, and it causes problems where you trackMouse:inRect:ofView:untilMouseUp: of a copy of the cell but NSTableView still draws with the original, so the display and the cell state are out of sync b) currently there is no way to differentiate if the NSCell should be sent trackMouse:inRect:ofView:untilMouseUp or editWithFrame:inView:editor:delegate:event: not really a problem for NSTextField and friends because it can just blindly send the correct thing, but for "cell collection" classes a way to tell seems neccesary this is currently causing some issues with NSTextFieldCells in NSTableView this for example: http://savannah.gnu.org/bugs/index.php?func=detailitem&item_id=9463 there was a discussion about using -sendsActionOnEndEditing: where I was wrong.. that does something else useful in it's own right.. http://storrow.org/cocoa-javadoc/com/apple/cocoa/application/NSCell.html#sendsActionOnEndEditing() so changing the _action_mask of NSTextFieldCell seems to have the effect of disabling sending the action on unselectable text field's but i'm not so sure if it should send the action then anyways. NSTableView-cornerheader.diff and NSTableView-cornerheader4.diff do basically the same thing though the 4 one adds ivars so it isn't binary compatible, and is a bit different (should work better with non-NSTableView classes that use corner/header views) iirc at least 4 apps subclass NSScrollView so this may be an issue. i have a test program for the above stuff, it's just ugly so i haven't attached it let me know if i should.. NSTableView-validateDrop.diff: bugfix where the return value of tableView:validateDrop:proposedRow:proposedDropOperation: is being ignored and for -draggingUpdated: it returns the draggingSourceOperationMask __________________________________ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail
NSTableView.misc.diff
Description: NSTableView.misc.diff
NSTableView-cornerheader.diff
Description: NSTableView-cornerheader.diff
NSTableView-cornerheader4.diff
Description: NSTableView-cornerheader4.diff
NSTableView-validateDrop.diff
Description: NSTableView-validateDrop.diff
[Prev in Thread] | Current Thread | [Next in Thread] |