• 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: Quickest Way to Open an NSTextAttachment in NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quickest Way to Open an NSTextAttachment in NSTextView


  • Subject: Re: Quickest Way to Open an NSTextAttachment in NSTextView
  • From: Jeremy Dronfield <email@hidden>
  • Date: Sun, 27 Feb 2005 12:05:07 +0000

Implement the NSTextView delegate method:

- (void)textView:(NSTextView *)textView clickedOnCell:(id <NSTextAttachmentCell>)cell inRect:(NSRect)cellFrame atIndex:(unsigned)charIndex

Of course, this is called by a single click. You'll have to work on setting it up to handle double clicks.

Regards,

-Jeremy

===================================
SkoobySoft, home of viJournal and Skooby Renamer
email: email@hidden or visit:
http://freespace.virgin.net/jeremy.dronfield/skoobysoft.html
===================================

On 27 Feb 2005, at 6:36 am, Kirt Cathey wrote:

Hi All.

Can anyone point me in the right direction on setting up my app so that the user can double-click on an embedded file (NSTextAttachment) and have the file open in a separate/associated application?

From the desk of ..........
                   Barking Frog
email: email@hidden

_________________________________________________________________
無料250MBメールボックスのMSN Hotmail https://registernet.passport.net/reg.srf?id=2&lc=1041
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Quickest Way to Open an NSTextAttachment in NSTextView (From: "Kirt Cathey" <email@hidden>)

  • Prev by Date: Re: NSTableView opacity problem
  • Next by Date: Re: Making NSView respond to command+key equivalent
  • Previous by thread: Quickest Way to Open an NSTextAttachment in NSTextView
  • Next by thread: LSOpenFromURLSpec () problems
  • Index(es):
    • Date
    • Thread