• 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: Special behaviour for a Save/Open Panel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Special behaviour for a Save/Open Panel


  • Subject: Re: Special behaviour for a Save/Open Panel
  • From: "John W. Whitworth" <email@hidden>
  • Date: Tue, 12 Mar 2002 20:15:19 +0000

Take a look at NSSavePanel

-
beginSheetForDirectory:file:modalForWindow:modalDelegate:didEndSelector:contextInfo:
- runModalForDirectory:file:
- runModalForDirectory:file:relativeToWindow:

On Tuesday, March 12, 2002, at 07:30 PM, Gerben Wierda wrote:

> I need to contrsuct a Save Panel that lets me select a directory or a
> directory that does not exist yet (which will then be created by the
> app). When I use the Save Panel I have the problem that I cannot
> restrict behaviour to just directories. When I use the Open Panel I
> have the problem that I cannot select something that does not exist yet
> nor can I create intermediate cirectories on-the-fly
>
> Example:
> /usr/local exists
> /usr/local/teTeX exists
> /usr/local/TeX does not exist
> I want to be able to choose either
> /usr/local/TeX
> /usr/local/teTeX
>
> I think I am stuck and I can't see a way out. Anybody else smarter,
> more knowledgeable than me out there? What do I need to override in a
> subclass if I want to get this behaviour?
>
> Thanks,
>
> G
> _______________________________________________
> 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: Special behaviour for a Save/Open Panel
      • From: Gerben Wierda <email@hidden>
References: 
 >Special behaviour for a Save/Open Panel (From: Gerben Wierda <email@hidden>)

  • Prev by Date: Re: preventWindowOrdering
  • Next by Date: Re: NSTextField refreshes are wacky.
  • Previous by thread: Special behaviour for a Save/Open Panel
  • Next by thread: Re: Special behaviour for a Save/Open Panel
  • Index(es):
    • Date
    • Thread