Re: Delegation methods from NSOpenPanel?
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.