FROM : Douglas Davidson
DATE : Mon Jan 14 19:43:34 2008
On Jan 12, 2008, at 11:20 AM, Mike Wright wrote:
> Under Tiger, clicking one of these links acts just like double-
> clicking the file icon in the Finder--it opens the file in its
> default application.
>
> Under Leopard, clicking a file link just shows the file in the Finder.
>
> I thought at first that Leopard might have added a System Preference
> item to control this, but haven't found anything.
>
> So, has the behavior of file links been changed in Leopard, or am I
> seeing a flaw in my approach that just slipped through in Tiger? The
> code involved is pretty simple.
This change was made for security reasons. As you note, the text
view's delegate can override this behavior.
In the case of a table view, the text view you are dealing with is the
field editor. This is shared by all of the controls in a window, and
its state is normally reset whenever the editing focus changes.
Ordinarily the control would be set up as the field editor's delegate,
so the natural thing to try would be to implement -
textView:clickedOnLink:atIndex: in a custom NSTableView subclass.
Douglas Davidson
DATE : Mon Jan 14 19:43:34 2008
On Jan 12, 2008, at 11:20 AM, Mike Wright wrote:
> Under Tiger, clicking one of these links acts just like double-
> clicking the file icon in the Finder--it opens the file in its
> default application.
>
> Under Leopard, clicking a file link just shows the file in the Finder.
>
> I thought at first that Leopard might have added a System Preference
> item to control this, but haven't found anything.
>
> So, has the behavior of file links been changed in Leopard, or am I
> seeing a flaw in my approach that just slipped through in Tiger? The
> code involved is pretty simple.
This change was made for security reasons. As you note, the text
view's delegate can override this behavior.
In the case of a table view, the text view you are dealing with is the
field editor. This is shared by all of the controls in a window, and
its state is normally reset whenever the editing focus changes.
Ordinarily the control would be set up as the field editor's delegate,
so the natural thing to try would be to implement -
textView:clickedOnLink:atIndex: in a custom NSTableView subclass.
Douglas Davidson
| Related mails | Author | Date |
|---|---|---|
| Mike Wright | Jan 12, 20:20 | |
| Douglas Davidson | Jan 14, 19:43 | |
| Mike Wright | Jan 15, 00:20 |






Cocoa mail archive

