• 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: Getting filename in NSDocument readFromData
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting filename in NSDocument readFromData


  • Subject: Re: Getting filename in NSDocument readFromData
  • From: Kyle Sluder <email@hidden>
  • Date: Wed, 28 Apr 2010 11:40:33 -0700

On Wed, Apr 28, 2010 at 11:37 AM, Pascal Harris
<email@hidden> wrote:
> How do I get the filename of the source document when using NSDocument readFromData?

Just override -readFromURL:ofType:error: instead. The documentation is
quite clear about this method's implementation simply being a wrapper
around -readFromFileWrapper:ofType:error, which in turn is documented
to just be a wrapper for -readFromData:ofType:error:.

--Kyle Sluder
_______________________________________________

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

  • Follow-Ups:
    • Re: Getting filename in NSDocument readFromData
      • From: Pascal Harris <email@hidden>
References: 
 >Getting filename in NSDocument readFromData (From: Pascal Harris <email@hidden>)

  • Prev by Date: Re: Getting a bezier path for a character
  • Next by Date: Re: white screen windows at first
  • Previous by thread: Getting filename in NSDocument readFromData
  • Next by thread: Re: Getting filename in NSDocument readFromData
  • Index(es):
    • Date
    • Thread