Re: NSOpenPanel obsolete method?
Re: NSOpenPanel obsolete method?
- Subject: Re: NSOpenPanel obsolete method?
- From: Joe Muscara <email@hidden>
- Date: Mon, 2 Jul 2001 10:39:03 -0500
On Monday, July 2, 2001, at 12:06 AM, email@hidden
wrote:
It already has been replicated. Check out the NSOpenPanel docs, and you
will find the new method,
"beginSheetForDirectory:file:types:modalForWindow:modalDelegate:didEndSelect
or> :
contextInfo" .
Thanks for the advice. I don't entirely understand the "new Class[]"
bit in
the middle of selectors, but I can certainly use it regardless of my
state
of enlightenment.
Is this "new Class[]" thing a Java thing? I can only tell you that my
(Objective-C) code looks like this.
[openP beginSheetForDirectory:[dirPath stringByStandardizingPath]
file:nil
types:fontTypesArray
modalForWindow:fatWindow
modalDelegate:self
didEndSelector:@selector(didEndActivateSheet:returnCode:contextInfo:)
contextInfo:nil]
The last thing I'm not sure about is the "contextInfo". I've looked
through
all the docs on open and save panels - they all use it, but I can't
find it
explained anywhere. Still, using Java, null works fine, so I'm
assuming it
would be for my own personal use were I using the same method for more
than
one save panel. Is that accurate?
I'm not sure. I've been feeding it nil and it's been working great for
me.
Joe