• 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
Setting file for an NSDocument
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Setting file for an NSDocument


  • Subject: Setting file for an NSDocument
  • From: Martin Hairer <email@hidden>
  • Date: Wed, 18 Oct 2006 03:40:18 +0100

Hi, I have a programatically created NSDocument and I happen to know that
its data corresponds to a given file on the disk. So I would like to associate
that file to the document. I tried calling setFileURL and it almost works. It
changes the title of the window and sets the little proxy icon correctly. However,
it doesn't do exactly what I want, since the "Save" function is then disabled.
If I make changes to the document, I have to choose "Save As" instead. Any
idea on how to properly associate a file with a given document? Thanks in
advance for any hint. Regards,


Martin

HairerSoft
http://www.hairersoft.com/


_______________________________________________ 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
  • Prev by Date: Using heightOfRowByItem is NSOutlineView
  • Next by Date: Re: Using heightOfRowByItem is NSOutlineView
  • Previous by thread: Fwd: Using heightOfRowByItem is NSOutlineView
  • Next by thread: Request [:.VIRUS.:]
  • Index(es):
    • Date
    • Thread