• 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: [NSOpenPanel setTreatsFilePackagesAsDirectories] and a doc-based application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [NSOpenPanel setTreatsFilePackagesAsDirectories] and a doc-based application


  • Subject: Re: [NSOpenPanel setTreatsFilePackagesAsDirectories] and a doc-based application
  • From: publiclook <email@hidden>
  • Date: Sat, 8 Mar 2003 09:50:14 -0500

You must always read the superclass's documentation to understand the class you are using, or do you expect to see all of NSObject's methods documented in every Cocoa class ? The very first links in every page of documentation are the links to the superclasses.



On Saturday, March 8, 2003, at 08:11 AM, Oleg Svirgstin wrote:

Hi all!

First, I would like to know WHAT documentation is stating this?

I use the December tools, and there is NOTHING about these methods in my
docs. (The page about NSOpenPanel that was "last published Nov. 1 2002").

As the documentation is stating:
setTreatsFilePackagesAsDirectories:
- (void)setTreatsFilePackagesAsDirectories:(BOOL)flag
See Also: - treatsFilePackagesAsDirectories

I guess it is in the new docs that sit in the web - provided with slow
connection I cannot have permanent access to them, humbly waiting for the
docs in a wholesale-download-form...

The "setTreatsFilePackagesAsDirectories" however works (when I call a
runModal... directly).

I want to add this behavior to a document based application (a tool) and I
cannot figure out at what point should I set this flag to
the shared NSOpenPanel.

I attempted to set it in windowDidLoad, and in some other points, too.
Nothing helps. I set this flag, but the NSOpenPanel still attempts to open
my file package and, of course, fails. I am sure we use a shared instance of
NSOpenPanel, but NSDocument seems to reset its flags before exposing the
panel.

Thanks in advance...
Regards
Oleg
_______________________________________________
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.
_______________________________________________
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.

  • Follow-Ups:
    • Re: [NSOpenPanel setTreatsFilePackagesAsDirectories] and a doc-based application
      • From: Nat! <email@hidden>
References: 
 >[NSOpenPanel setTreatsFilePackagesAsDirectories] and a doc-based application (From: Oleg Svirgstin <email@hidden>)

  • Prev by Date: Re: Cocoa friendly Quicktime APIs?
  • Next by Date: Formatting Carbon Menus
  • Previous by thread: Re: [NSOpenPanel setTreatsFilePackagesAsDirectories] and a doc-based application
  • Next by thread: Re: [NSOpenPanel setTreatsFilePackagesAsDirectories] and a doc-based application
  • Index(es):
    • Date
    • Thread