• 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: Filename of the file opened via the open menu
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Filename of the file opened via the open menu


  • Subject: Re: Filename of the file opened via the open menu
  • From: Nick Zitzmann <email@hidden>
  • Date: Mon, 25 Aug 2003 12:04:07 -0700

On Monday, August 25, 2003, at 02:19 AM, Damien Pacaud wrote:

I have a document based application that uses the open Item in its
menu...when I select a file, is goes through a
- (BOOL)loadDataRepresentation:(NSData *)data ofType:(NSString *)aType
method...and I'd like to get the filename or the path for the file I
just openned....
Is there a simple way of doing this ?

NSDocument's -fileName method ought to work...

Nick Zitzmann
AIM/iChat: dragonsdontsleep
Check out my software page: http://seiryu.home.comcast.net/

"I have always wished that my computer would be as easy to use as my telephone. My wish has come true. I no longer know how to use my telephone." - Bjarne Stroustrup
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: 
 >Filename of the file opened via the open menu (From: Damien Pacaud <email@hidden>)

  • Prev by Date: New controller class sample code
  • Next by Date: Re: Help me, which book I should buy to learn Cocoa??
  • Previous by thread: Filename of the file opened via the open menu
  • Next by thread: NSTableView does not show contents on startup
  • Index(es):
    • Date
    • Thread