• 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: Delegation methods from NSOpenPanel?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Delegation methods from NSOpenPanel?


  • Subject: Re: Delegation methods from NSOpenPanel?
  • From: David P Henderson <email@hidden>
  • Date: Thu, 6 Feb 2003 18:58:12 -0500

On Thursday, Feb 6, 2003, at 02:10 US/Eastern, Laurent Daudelin wrote:

I already listen through that didEndSelector: method, however, at that time,
the panel is just about to be removed from the screen. So, if the user's
selection is invalid, then he'll have to start another open panel session,
which is what I was hoping to avoid...

Are you trying to limit the user to opening only certain types of files, for example, text, jpeg, et al? If so, you want to use the method Scott suggested while supplying the list of valid file types which your application can open. The open panel itself will then disallow selection of invalid file types.

Dave
--
Chaos Assembly Werks
"The difference between Objective-C and Java is: in Java , you only get a shoe string with which to hang yourself, but in Objective-C, you get as much rope as you want."
_______________________________________________
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: 
 >Re: Delegation methods from NSOpenPanel? (From: Laurent Daudelin <email@hidden>)

  • Prev by Date: Re: Cocoa Cleanup
  • Next by Date: Re: Cocoa Cleanup & NSConnection
  • Previous by thread: Re: Delegation methods from NSOpenPanel?
  • Next by thread: Image conversions (EPS/PDF/TIFF -> JPG/GIF)
  • Index(es):
    • Date
    • Thread