• 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: NSOpenPanel obsolete method?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSOpenPanel obsolete method?
      • From: Ali Ozer <email@hidden>
  • Prev by Date: RE: Setting the vm heap size...
  • Next by Date: re: Java Cocoa and 3rd Party JARs
  • Previous by thread: Re: NSOpenPanel obsolete method?
  • Next by thread: Re: NSOpenPanel obsolete method?
  • Index(es):
    • Date
    • Thread