Re: NSOpenPanel obsolete method?
Re: NSOpenPanel obsolete method?
- Subject: Re: NSOpenPanel obsolete method?
- From: Carlos Weber <email@hidden>
- Date: Sun, 1 Jul 2001 07:23:09 -1000
On Sunday, July 1, 2001, at 04:32 , John Timmer wrote:
>
*** WARNING: Method runModalForDirectory:file:types:relativeToWindow: in
>
class NSOpenPanel is obsolete and will be removed in release GM ***
>
>
A few questions on this:
>
>
Is this method really going to be removed?
>
>
Can I safely assume that schedule has changed, as the GM has come and
>
gone?
>
>
If it is going to be removed, is its functionality going to be
>
replicated
>
(clearly, I think it should be)?
>
>
Aside from waiting for my compiles or the resulting program to start
>
failing, is there any way to track when this method will actually
>
change?
>
< trimmage>
>
How am I to make sense of that? I want to be a good boy and avoid
>
coding
>
something that's going to break, but nothing in the docs seems to give
>
me a
>
hint as to how to avoid doing that.
In the docs for NSOpenPanel , under the method you're getting the
warning on, I read:
This method has been deprecated. Instead use
beginSheetForDirectory:file:types:modalForWindow:modalDelegate:didEndSelector:
contextInfo:.
The message is that if you are running the panel relative to a specific
window you should be using a sheet method instead.