• 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: Open Multiple Files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Open Multiple Files


  • Subject: Re: Open Multiple Files
  • From: "Sean McBride" <email@hidden>
  • Date: Wed, 29 Sep 2010 18:32:40 -0400
  • Organization: Rogue Research Inc.

On Wed, 29 Sep 2010 16:21:41 -0600, Richard Somers said:

>I need to know how many files the user is attempting to open.
>
>The NSApplicationDelegate Protocol has this method.
>
>- (void)application:(NSApplication *)sender openFiles:(NSArray
>*)filenames
>
>Just count the number of items in the array and then re-route the call
>for continued processing. But re-routing the call using super will not
>work because this is a delegate method. You can't send it back to
>NSApp because it has no methods for opening files.
>
>Does anyone know how this could be easily done?

Are you a document-based app?  Have you seen this:?
<http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/
Documents/Articles/ObjectInteractions.html>

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Open Multiple Files
      • From: Richard Somers <email@hidden>
References: 
 >Open Multiple Files (From: Richard Somers <email@hidden>)

  • Prev by Date: Re: Core data: Inverse relationships with subclasses
  • Next by Date: Re: Core Data inheritance across models?
  • Previous by thread: Open Multiple Files
  • Next by thread: Re: Open Multiple Files
  • Index(es):
    • Date
    • Thread