• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Change in File Link Behavior in NSTextView Under Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Change in File Link Behavior in NSTextView Under Leopard


  • Subject: Re: Change in File Link Behavior in NSTextView Under Leopard
  • From: Mike Wright <email@hidden>
  • Date: Mon, 14 Jan 2008 18:20:39 -0500

On Jan 14, 2008, at 1:43 PM, Douglas Davidson wrote:

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

Thanks. Worked like a charm.

Regards,
Mike Wright
http://www.idata3.com/
http://www.raccoonbend.com/
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Change in File Link Behavior in NSTextView Under Leopard (From: Mike Wright <email@hidden>)
 >Re: Change in File Link Behavior in NSTextView Under Leopard (From: Douglas Davidson <email@hidden>)

  • Prev by Date: Re: Move window by dragging button
  • Next by Date: Re: NSImage to PDFPage in Tiger?
  • Previous by thread: Re: Change in File Link Behavior in NSTextView Under Leopard
  • Next by thread: Re: Cocoa-dev Digest, Vol 5, Issue 44
  • Index(es):
    • Date
    • Thread